/**
 * CSS del Sistema POS - VERSIÓN OPTIMIZADA
 * Versión: 1.2.1
 * Sin redundancias - Todos los estilos centralizados
 */

/* ============================================
   RESET COMPLETO
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pos-primary: #007cba;
    --pos-primary-dark: #005a87;
    --pos-success: #28a745;
    --pos-danger: #dc3545;
    --pos-warning: #ffc107;
    --pos-info: #17a2b8;
    --pos-light: #f8f9fa;
    --pos-dark: #343a40;
    --pos-white: #ffffff;
    --pos-border: #dee2e6;
    --pos-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --pos-transition: all 0.3s ease;
    --pos-border-radius: 8px;
}

/* ============================================
   SCROLL Y BODY BASE
   ============================================ */
html,
html body {
    overflow: visible !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100% !important;
}

body,
body.pos-page,
.pos-body,
body.admin-bar {
    overflow: visible !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100vh !important;
    background: var(--pos-light) !important;
    color: var(--pos-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* ============================================
   HEADER FIJO
   ============================================ */
.pos-header {
    width: 100%;
    height: 70px;
    background: var(--pos-primary);
    color: var(--pos-white);
    box-shadow: var(--pos-box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.pos-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.header-user {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#pos-clock {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.pos-main-content {
    margin-top: 70px;
    width: 100%;
    display: block;
    overflow: visible !important;
    height: auto !important;
    min-height: calc(100vh - 70px);
    padding-bottom: 50px;
}

@media (min-width: 1025px) {
    .pos-main-content {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
}

/* ============================================
   COLUMNA IZQUIERDA - PRODUCTOS
   ============================================ */
.products-section {
    background: var(--pos-white);
    padding: 20px;
    flex: 2;
    overflow: visible !important;
    height: auto !important;
}

@media (min-width: 1025px) {
    .products-section {
        border-right: 3px solid var(--pos-primary);
    }
}

@media (max-width: 1024px) {
    .products-section {
        border-bottom: 3px solid var(--pos-primary);
        width: 100%;
    }
}

.products-header {
    margin-bottom: 20px;
}

/* ============================================
   CONTROLES DE BÚSQUEDA
   ============================================ */
.search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.view-controls {
    display: flex;
    gap: 5px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: var(--pos-border-radius);
}

.view-btn {
    padding: 8px 12px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--pos-transition);
    color: #666;
    font-size: 16px;
}

.view-btn.active,
.view-btn:hover {
    border-color: var(--pos-primary);
    background: var(--pos-primary);
    color: var(--pos-white);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid var(--pos-border);
    border-radius: var(--pos-border-radius);
    font-size: 16px;
    transition: var(--pos-transition);
}

.search-box input:focus {
    border-color: var(--pos-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
}

.barcode-scanner {
    padding: 10px 15px;
    background: var(--pos-success);
    color: var(--pos-white);
    border: none;
    border-radius: var(--pos-border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--pos-transition);
    white-space: nowrap;
}

.barcode-scanner:hover {
    background: #218838;
}

.category-filter {
    margin-top: 10px;
}

.category-filter select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--pos-border);
    border-radius: var(--pos-border-radius);
    font-size: 14px;
}

/* ============================================
   GRID DE PRODUCTOS
   ============================================ */
.products-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.view-list {
    display: flex;
    flex-direction: column;
}

.view-list .product-card {
    display: grid;
    grid-template-columns: 100px 1fr 250px;
    gap: 15px;
    padding: 12px;
}

.view-list .product-image {
    width: 100px !important;
    height: 100px !important;
}

.view-compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

/* ============================================
   TARJETAS DE PRODUCTO
   ============================================ */
.product-card {
    background: var(--pos-white);
    border: 2px solid var(--pos-border);
    border-radius: var(--pos-border-radius);
    overflow: hidden;
    transition: var(--pos-transition);
    cursor: pointer;
    box-shadow: var(--pos-box-shadow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--pos-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.15);
}

.product-card.out-of-stock {
    opacity: 0.6;
    border-color: var(--pos-danger);
}

.product-card.low-stock {
    border-color: var(--pos-warning);
}

.product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--pos-dark);
    margin-bottom: 5px;
    line-height: 1.3;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--pos-success);
    margin-bottom: 5px;
}

.product-stock {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 12px;
}

.qty-btn-product {
    width: 28px;
    height: 28px;
    border: 1px solid var(--pos-primary);
    background: var(--pos-white);
    color: var(--pos-primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pos-transition);
}

.qty-btn-product:hover {
    background: var(--pos-primary);
    color: var(--pos-white);
}

.qty-display {
    font-weight: bold;
    font-size: 14px;
    min-width: 35px;
    text-align: center;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
}

.discount-controls {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0 12px 8px;
}

.discount-controls input {
    flex: 1;
    padding: 5px 6px;
    border: 1px solid var(--pos-border);
    border-radius: 4px;
    font-size: 12px;
}

.discount-controls select {
    padding: 5px;
    border: 1px solid var(--pos-border);
    border-radius: 4px;
    font-size: 12px;
    width: 50px;
}

.product-actions {
    border-top: 1px solid var(--pos-border);
}

.btn-add {
    width: 100%;
    padding: 12px;
    background: var(--pos-primary);
    color: var(--pos-white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pos-transition);
    font-size: 14px;
}

.btn-add:hover:not(:disabled) {
    background: var(--pos-primary-dark);
}

.btn-add:disabled {
    background: var(--pos-danger);
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--pos-primary);
    font-size: 18px;
    font-weight: 600;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* ============================================
   COLUMNA DERECHA - CARRITO
   ============================================ */
.cart-section {
    background: var(--pos-white);
    flex: 1;
    overflow: visible !important;
    height: auto !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

@media (min-width: 1025px) {
    .cart-section {
        border-left: 2px solid var(--pos-border);
    }
}

@media (max-width: 1024px) {
    .cart-section {
        border-top: 2px solid var(--pos-border);
        width: 100%;
    }
}

.cart-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--pos-success), #20c997);
    color: var(--pos-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.btn-clear-cart {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--pos-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--pos-transition);
    font-size: 13px;
    font-weight: 600;
}

.btn-clear-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ============================================
   ITEMS DEL CARRITO
   ============================================ */
.cart-items {
    padding: 20px;
    background: #f8fafc;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-cart small {
    font-size: 14px;
    opacity: 0.8;
}

.cart-item {
    background: var(--pos-white);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: var(--pos-border-radius);
    border: 1px solid #e2e8f0;
    transition: var(--pos-transition);
}

.cart-item:hover {
    border-color: var(--pos-success);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.3;
    word-wrap: break-word;
}

.item-price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.item-price-discounted {
    font-size: 16px;
    color: var(--pos-success);
    font-weight: bold;
}

.item-price-single {
    font-size: 15px;
    color: var(--pos-success);
    font-weight: bold;
}

.item-total-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-total-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.item-total {
    font-weight: bold;
    color: var(--pos-success);
    font-size: 18px;
    white-space: nowrap;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}

.item-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.meta-badge {
    font-size: 11px;
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
}

.discount-badge {
    background: #fff3cd;
    color: #856404;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: var(--pos-white);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--pos-transition);
}

.qty-btn:hover {
    background: var(--pos-success);
    color: var(--pos-white);
    border-color: var(--pos-success);
}

.qty-btn-sm {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

.item-quantity {
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    font-size: 13px;
}

.remove-item {
    padding: 4px 8px;
    background: var(--pos-danger);
    color: var(--pos-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--pos-transition);
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ============================================
   TOTALES
   ============================================ */
.cart-totals {
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-top: 1px solid var(--pos-border);
    border-bottom: 1px solid var(--pos-border);
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
}

.total-line span:first-child {
    font-weight: 600;
    color: #475569;
}

.total-line span:last-child {
    font-weight: 700;
    color: var(--pos-dark);
}

.total-final {
    border-top: 2px solid #cbd5e1;
    padding-top: 15px;
    margin-top: 8px;
    font-size: 20px;
}

.total-final span:last-child {
    font-size: 22px;
    color: var(--pos-success);
    font-weight: 800;
}

/* ============================================
   SECCIONES DEL CARRITO
   ============================================ */
.customer-section,
.payment-section,
.notes-section {
    padding: 20px;
    border-bottom: 1px solid var(--pos-border);
    background: var(--pos-white);
}

.customer-section h4,
.payment-section label,
.notes-section label {
    margin: 0 0 15px 0;
    font-weight: 700;
    color: var(--pos-dark);
    font-size: 16px;
    display: block;
}

.customer-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.customer-selector select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--pos-border-radius);
    font-size: 14px;
    background: var(--pos-white);
    transition: var(--pos-transition);
}

.customer-selector select:focus {
    border-color: var(--pos-success);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.btn-new-customer {
    padding: 12px 16px;
    background: var(--pos-success);
    color: var(--pos-white);
    border: none;
    border-radius: var(--pos-border-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--pos-transition);
}

.btn-new-customer:hover {
    background: #218838;
    transform: translateY(-1px);
}

#customer-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#customer-details input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--pos-border-radius);
    font-size: 14px;
    transition: var(--pos-transition);
}

#customer-details input:focus {
    border-color: var(--pos-success);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* ============================================
   MÉTODOS DE PAGO
   ============================================ */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--pos-border-radius);
    cursor: pointer;
    transition: var(--pos-transition);
    background: var(--pos-white);
}

.payment-option:hover {
    border-color: var(--pos-success);
    background: rgba(40, 167, 69, 0.05);
}

.payment-option input {
    margin-right: 10px;
}

.payment-option input:checked + span {
    color: var(--pos-success);
    font-weight: 700;
}

.payment-option:has(input:checked) {
    border-color: var(--pos-success);
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 0 1px var(--pos-success);
}

/* ============================================
   NOTAS
   ============================================ */
.notes-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--pos-border-radius);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.notes-section textarea:focus {
    border-color: var(--pos-success);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* ============================================
   BOTONES DE ACCIÓN
   ============================================ */
.action-buttons {
    padding: 25px 20px 50px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-btn {
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--pos-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modern-btn.primary {
    background: var(--pos-success);
    color: var(--pos-white);
}

.modern-btn.primary:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.modern-btn.primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modern-btn.secondary {
    background: var(--pos-warning);
    color: var(--pos-dark);
}

.modern-btn.secondary:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ============================================
   MODALES
   ============================================ */
.pos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modern-modal {
    background: var(--pos-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.success-header {
    background: linear-gradient(135deg, var(--pos-success), #20c997) !important;
    color: var(--pos-white);
}

.modal-header h3 {
    margin: 0;
    color: var(--pos-dark);
    font-size: 20px;
    font-weight: 700;
}

.success-header h3 {
    color: var(--pos-white);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--pos-transition);
}

.modal-close:hover {
    background: rgba(100, 116, 139, 0.1);
    color: var(--pos-dark);
}

.success-header .modal-close {
    color: rgba(255, 255, 255, 0.8);
}

.success-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pos-white);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.success-message {
    text-align: center;
    margin-bottom: 25px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 18px;
    color: var(--pos-success);
    font-weight: 600;
    margin: 0;
}

.sale-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #475569;
}

.summary-value {
    font-weight: 700;
    color: var(--pos-dark);
}

.total-amount {
    font-size: 20px;
    color: var(--pos-success) !important;
}

.customer-form-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.modern-input,
.modern-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--pos-border-radius);
    font-size: 14px;
    background: var(--pos-white);
    transition: var(--pos-transition);
}

.modern-input:focus,
.modern-textarea:focus {
    border-color: var(--pos-success);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.modern-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* ============================================
   NOTIFICACIONES
   ============================================ */
.pos-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--pos-border-radius);
    color: white;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pos-notification-success {
    background: var(--pos-success);
}

.pos-notification-error {
    background: var(--pos-danger);
}

.pos-notification-warning {
    background: var(--pos-warning);
    color: #856404;
}

.pos-notification-info {
    background: var(--pos-info);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pos-header {
        padding: 0 15px;
        height: 60px;
    }
    
    .pos-header h1 {
        font-size: 18px;
    }
    
    .header-user {
        display: none;
    }
    
    #pos-clock {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .pos-main-content {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .search-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .view-controls {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cart-item-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .item-controls {
        justify-content: flex-end;
    }
    
    .modern-modal {
        width: 95%;
        margin: 10px;
    }
}

/* ============================================
   OCULTAR FOOTERS DE WORDPRESS
   ============================================ */
body.pos-page footer,
body.pos-page .site-footer,
body.pos-page #footer,
#footer,
footer {
    display: none !important;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .pos-header,
    .products-section,
    .action-buttons,
    .modal-close {
        display: none !important;
    }
    
    .pos-main-content {
        margin-top: 0;
        display: block;
    }
    
    .cart-section {
        width: 100%;
        border: none;
    }
}
