﻿/* ESTILOS PARA EL CHECKOUT */

/* Checkout Modal */
.checkout-modal-content {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.checkout-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #ddd;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.step.active {
    background: #D4A017;
    color: white;
    border-color: #28a745;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.step-content {
    padding: 15px 0;
}

/* Botones del checkout */
.checkout-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.checkout-back-btn, .checkout-next-btn, .checkout-complete-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-back-btn {
    background: #6c757d;
    color: white;
    flex: 1;
}

.checkout-back-btn:hover {
    background: #5a6268;
}

.checkout-next-btn {
    background: #D4A017;
    color: white;
    flex: 2;
}

.checkout-next-btn:hover {
    background: #b88a10;
}

.checkout-complete-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    flex: 2;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.checkout-complete-btn:hover {
    opacity: 0.9;
}

/* Opciones de envío */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.shipping-option {
    display: block;
}

.shipping-option input[type="radio"] {
    display: none;
}

.shipping-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option label:hover {
    border-color: #28a745;
    background: #f8f9fa;
}

.shipping-option input[type="radio"]:checked + label {
    border-color: #28a745;
    background: #e8f5e9;
}

.shipping-option label i {
    font-size: 1.5rem;
    color: #28a745;
    width: 40px;
}

.shipping-option label strong {
    display: block;
    margin-bottom: 4px;
}

.shipping-option label small {
    color: #666;
    font-size: 0.85rem;
}

.shipping-option input[type="radio"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.agencia-selection {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Opciones de pago */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.payment-option {
    display: block;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.payment-option label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 0 0 1px #667eea;
}

.payment-option label i {
    font-size: 1.2rem;
    color: #667eea;
}


.payment-badge-secure {
    margin-left: auto;
    font-size: 0.65rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.payment-badge-manual {
    margin-left: auto;
    font-size: 0.65rem;
    color: #999;
    white-space: nowrap;
}

.shalom-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.yape-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #f3f0ff;
    border: 1px solid #d9d0f5;
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0 8px;
}

.yape-qr-img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.yape-qr-info p {
    margin: 0 0 4px;
    font-size: 0.88rem;
    color: #333;
}

.yape-qr-info p i {
    color: #667eea;
    margin-right: 4px;
}

.yape-qr-apps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.yape-tag {
    background: #742284;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.plin-tag {
    background: #00b140;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.yape-qr-info {
    text-align: center;
}

.transferencia-info-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 14px;
    margin-top: 10px;
}

.transferencia-info-box p {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: #555;
}

.upload-transferencia-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.upload-transferencia-label:hover {
    background: #5a6fd6;
}

.transferencia-preview {
    margin-top: 8px;
}

.transferencia-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Resumen de compra en checkout */
.checkout-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.checkout-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

#checkout-items-summary {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid #ddd;
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

/* Botón de comprar por la web en el carrito */
.checkout-web-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 15px;
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    transition: background 0.2s;
}

.checkout-web-button:hover {
    background: #c82333;
}

.cart-footer-area {
    margin-top: 15px;
}

/* ESTILOS PARA EL BOTÓN DE ELIMINAR PRODUCTO */
.delete-product-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
    opacity: 0;
}

.card:hover .delete-product-btn {
    opacity: 1;
}

.delete-product-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Mostrar siempre el botón de eliminar en modo admin/helper */
body.admin-mode .delete-product-btn,
body.helper-mode .delete-product-btn {
    opacity: 1;
}

/* Ajustar posición de los botones de editar/eliminar */
.edit-product-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s;
    opacity: 0;
}

.card:hover .edit-product-btn {
    opacity: 1;
}

.edit-product-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

body.admin-mode .edit-product-btn,
body.helper-mode .edit-product-btn {
    opacity: 1;
}

/* Mostrar botones de admin siempre en pantallas grandes */
@media (min-width: 600px) {
    body.admin-mode .edit-product-btn,
    body.admin-mode .delete-product-btn,
    body.helper-mode .edit-product-btn,
    body.helper-mode .delete-product-btn {
        opacity: 0.8;
    }
    
    body.admin-mode .card:hover .edit-product-btn,
    body.admin-mode .card:hover .delete-product-btn,
    body.helper-mode .card:hover .edit-product-btn,
    body.helper-mode .card:hover .delete-product-btn {
        opacity: 1;
    }
}

/* ===== BOTÓN OCULTAR PRODUCTO ===== */
.hide-product-btn {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 9px 0;
    background: linear-gradient(135deg, #ff9800, #f44336);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.8px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(244,67,54,0.35);
    transition: all 0.2s;
}
body.admin-mode .hide-product-btn,
body.helper-mode .hide-product-btn {
    display: flex;
}
.hide-product-btn:hover {
    background: linear-gradient(135deg, #e65100, #c62828);
    transform: scale(1.02);
    box-shadow: 0 3px 12px rgba(244,67,54,0.5);
}
.hide-product-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== MODAL PRODUCTOS OCULTOS ===== */
.productos-ocultos-content {
    max-width: 600px;
}
.oculto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #1e1e1e;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
}
.oculto-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #333;
}
.oculto-item-info {
    flex: 1;
    min-width: 0;
}
.oculto-item-info strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oculto-item-info span {
    font-size: 0.75rem;
    color: #aaa;
}
.btn-mostrar-producto {
    padding: 8px 14px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    gap: 5px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.btn-mostrar-producto:hover {
    background: #388e3c;
}
.btn-mostrar-producto:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Badge de preview de imágenes */
.preview-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
}

/* Contador de imágenes */
.image-counter {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

.file-info-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* Contador del carrito en el botón */
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    opacity: 0;
    transition: 0.3s;
    font-weight: 700;
}

#cart-count.active {
    opacity: 1;
}

/* Resto del CSS anterior se mantiene igual... */

:root {
    --color-fondo: #f4f2ee;
    --color-header-footer: #0a0a0a;
    --color-promo: #D4A017;
    --color-mayor: #F0C040;
    --color-whatsapp: #25D366;
    --color-sombra: rgba(0,0,0,0.12);
    --color-accent: #D4A017;
    --color-electric: #00c8e0;
    --color-border: #D8C9A0;
    --color-text: #1a1a18;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo);
    overflow-x: hidden;
    max-width: 100vw;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #0a0a0a 0%, #111318 100%);
    padding: 3px 8px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    border-bottom: 1px solid rgba(0,200,224,0.18);
}

/* Auth-controls siempre visible (controla qué botones internos se muestran via JS) */
.auth-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.header-logos { position: static; transform: none; left: auto; display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.header-logos img { pointer-events: auto; }

/* Al loguearse: logos vuelven al flujo normal (izquierda) */
body.logged-in .header-logos,
body.admin-mode .header-logos,
body.helper-mode .header-logos {
    position: static;
    transform: none;
    left: auto;
    pointer-events: auto;
}

.menu-toggle-btn {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: none;
    pointer-events: none;
    opacity: 0.45;
}

.menu-toggle-btn:hover {
    background: rgba(255,255,255,0.06);
}

.header-logo-small {
    height: 34px;
    width: auto;
    border-radius: 5px;
}

@media (max-width: 599px) {
    .header-logo-small { display: none; }
    .header-logos {
        position: static;
        transform: none;
        left: auto;
        pointer-events: auto;
    }
}

#logo-image.header-logo-wide { max-height: 52px;
    height: auto;
    border-radius: 6px;
}

@media (min-width: 600px) {
    header {
        padding: 3px 14px;
    }

    .menu-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .header-logo-small {
        height: 32px;
    }

    #logo-image.header-logo-wide {
        max-height: 50px;
    }

    .header-logos {
        gap: 10px;
    }
}

/* .auth-controls movido arriba junto al header */

#logout-button {
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

#logout-button:hover {
    background: rgba(255,255,255,0.25);
}

/* Botón de login en el footer fijo */
#auth-icon-button {
    background: #333;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: white;
    border-radius: 10px;
    width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

#auth-icon-button:hover {
    background: #000;
}

#mis-pedidos-btn { position: relative; }
#mis-pedidos-notif-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: #e53935;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    line-height: 1;
}

.user-greeting {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 600px) {
    #logout-button {
        font-size: 1.4rem;
        padding: 8px 12px;
    }
    #auth-icon-button {
        width: 55px;
        height: 48px;
        font-size: 1.2rem;
    }
    .user-greeting {
        font-size: 0.82rem;
    }
}

/* TICKER DE TEXTO */
.brand-ticker-bar {
    background: #1a1a18;
    overflow: hidden;
    white-space: nowrap;
    height: 42px;
    display: flex;
    align-items: center;
    margin-bottom: -2px;
}

.brand-ticker-track {
    display: inline-flex;
    align-items: center;
    animation: tickerScroll 28s linear infinite;
    will-change: transform;
}

.brand-ticker-text {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding-right: 60px;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* BUSCADOR - barra sticky debajo del header */
.header-search {
    position: sticky;
    top: 38px;
    z-index: 999;
    background: linear-gradient(180deg, #0e1014 0%, #0a0a0a 100%);
    padding: 7px 12px;
    margin-top: 0;
    border-top: none;
    border-bottom: 1px solid rgba(0,200,224,0.12);
    display: flex;
    align-items: center;
    gap: 0;
}

.search-icon-left {
    position: absolute;
    left: 26px;
    color: rgba(0,200,224,0.55);
    font-size: 0.72rem;
    pointer-events: none;
    z-index: 1;
}

.header-search {
    position: relative;
}

.header-search #search-input {
    flex: 1;
    padding: 7px 32px 7px 32px;
    border-radius: 50px;
    border: 1px solid rgba(0,200,224,0.25);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--font-body);
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
    width: 100%;
}

.header-search #search-input::placeholder {
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.02em;
}

.header-search #search-input:focus {
    border-color: rgba(0,200,224,0.6);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(0,200,224,0.12), 0 2px 16px rgba(0,0,0,0.4);
}

.header-search .search-clear-button {
    position: absolute;
    right: 20px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 0.2s;
    z-index: 2;
}

.header-search .search-clear-button:hover {
    color: rgba(255,255,255,0.9);
}

@media (min-width: 600px) {
    .header-search {
        top: 48px;
        padding: 8px 20px;
    }
    .search-icon-left {
        left: 34px;
        font-size: 0.78rem;
    }
    .header-search #search-input {
        font-size: 0.85rem;
        padding: 8px 36px 8px 36px;
    }
}

/* MENÚ LATERAL DE CATEGORÍAS */
.categories-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
    z-index: 2500;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.categories-sidebar.open {
    left: 0;
}

@media (min-width: 600px) {
    .categories-sidebar {
        left: -320px;
        width: 320px;
    }
    
    .categories-sidebar.open {
        left: 0;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #000;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-content {
    padding: 10px;
}

.ubicaciones-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    font-weight: 700;
    margin-bottom: 10px;
}

.ubicaciones-toggle:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    transform: translateX(0);
}

.ubicaciones-toggle .chevron-icon {
    transition: transform 0.3s;
}

.ubicaciones-toggle.open .chevron-icon {
    transform: rotate(180deg);
}

.ubicaciones-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-bottom: 10px;
}

.ubicaciones-list.open {
    max-height: 500px;
}

.chevron-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

.ubicacion-item {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ubicacion-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ubicacion-link:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.ubicacion-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 28px;
    transition: background 0.2s;
}

.ubicacion-link:hover .ubicacion-maps-btn {
    background: #5a6fd6;
}

.ubicacion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #333;
}

.ubicacion-header i {
    color: #667eea;
    font-size: 1.1rem;
}

.ubicacion-header strong {
    font-size: 1rem;
    font-weight: 700;
}

.ubicacion-address {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    padding-left: 28px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.category-item:hover {
    background: #f5f5f5;
    border-color: #333;
    transform: translateX(5px);
}

.category-item.active {
    background: #000;
    color: white;
    border-color: #000;
}

.category-item i:first-child {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.category-item span {
    flex: 1;
}

.category-item i:last-child {
    font-size: 0.9rem;
    opacity: 0.5;
}

.category-item.all-categories {
    background: #333;
    color: white;
    border-color: #333;
    font-weight: 600;
}

.category-item.all-categories:hover {
    background: #000;
    border-color: #000;
}

.category-item.all-categories.active {
    background: #000;
    border-color: #000;
}

.categories-divider {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    padding: 15px 10px 8px 10px;
    letter-spacing: 1px;
}

.brands-list {
    display: flex;
    flex-direction: column;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* BOTÓN FLOTANTE VOLVER */
.back-to-all-btn {
    position: fixed;
    left: 15px;
    bottom: 90px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 1500;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.back-to-all-btn:hover {
    transform: scale(1.1);
    background: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 600px) {
    .back-to-all-btn {
        left: 25px;
        bottom: 100px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (min-width: 600px) {
    .search-container { 
        gap: 8px; 
        padding: 10px; 
    }
}

/* CARRUSEL DE SLIDES */
.slides-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slides-carousel.hidden {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 297px;
    border-radius: 0;
    overflow: hidden;
}

@media (min-width: 600px) {
    .slides-container {
        height: 357px;
    }
}

@media (min-width: 1024px) {
    .slides-container {
        height: 437px;
    }
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-item.no-link {
    cursor: default;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.2s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.slides-carousel:hover .carousel-nav {
    display: flex;
}

.carousel-nav:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-nav.prev {
    left: 16px;
}

.carousel-nav.next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 6px;
    z-index: 10;
    align-items: center;
}
@media (min-width: 1024px) {
    .carousel-dots { display: flex; }
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* estilos viejos de search reemplazados por .header-search */

@media (min-width: 600px) {
    .header-search #search-clear-button {
        font-size: 0.9rem;
    }
}

/* ── Filter Scroll Bar (chips debajo del buscador) ── */
.brands-scroll-bar {
    display: none;
    height: 78px;
    overflow: visible;
    clip-path: inset(-220px 0px 0px 0px);
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 9px;
}
@media (max-width: 1023px) {
    .brands-scroll-bar::before,
    .brands-scroll-bar::after {
        display: none;
    }
    .brand-scroll-btn {
        height: 74px !important;
        width: 74px !important;
        border-radius: 14px;
        background: #2a2a2a !important;
        border: none !important;
        box-shadow:
            0 6px 0 #111,
            0 8px 14px rgba(0,0,0,0.7),
            inset 0 1px 0 rgba(255,255,255,0.15) !important;
        transform: translateY(-3px);
        transition: box-shadow 0.1s, transform 0.1s !important;
    }
    .brand-scroll-btn img {
        border-radius: 12px;
    }
    .brand-scroll-btn:active {
        box-shadow:
            0 2px 0 #111,
            0 3px 6px rgba(0,0,0,0.5),
            inset 0 1px 0 rgba(255,255,255,0.1) !important;
        transform: translateY(1px) !important;
    }
}

@media (min-width: 1024px) {
    .brands-scroll-bar {
        height: 124px;
    }
}

.brands-scroll-bar::before,
.brands-scroll-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.brands-scroll-bar::before { display: none; }
.brands-scroll-bar::after  { display: none; }

/* ── Tipo filter bar ── */
.tipo-filter-wrap {
    position: relative;
    overflow: hidden;
}
.tipo-filter-bar {
    display: none;
}
.tipo-filter-bar::-webkit-scrollbar { display: none; }
#tipo-filter-btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}
.tipo-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}
.tipo-scroll-hint {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    background: linear-gradient(to right, transparent, #f5f5f5 70%);
    color: #aaa;
    font-size: 1.2rem;
    pointer-events: none;
    transition: opacity 0.3s;
}
@media (min-width: 1024px) {
    .tipo-scroll-hint { display: none; }
    .tipo-filter-bar {
        justify-content: center;
        padding: 14px 16px;
    }
}
.tipo-filter-btn {
    background: #fff;
    color: #333;
    border: 1.5px solid #ddd;
    border-radius: 22px;
    padding: 7px 20px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tipo-filter-btn:hover {
    border-color: #28a745;
    color: #28a745;
}
.tipo-filter-btn.active {
    background: #D4A017;
    color: #fff;
    border-color: #28a745;
}

/* ── Marca filter bar ── */
.marca-filter-bar {
    display: none;
}
.marca-filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}
.marca-filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.marca-filter-btn {
    background: #fff;
    color: #333;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.marca-filter-btn:hover { border-color: #28a745; color: #28a745; }
.marca-filter-btn.active {
    background: #D4A017;
    color: #fff;
    border-color: #28a745;
}
@media (min-width: 1024px) {
    .marca-filter-bar { padding: 10px 24px 14px; }
    .marca-filter-label { font-size: 0.85rem; }
}

.brands-scroll-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
}

.brand-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 112px;
    height: 110px;
    margin: 0 4px;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
    cursor: pointer;
    font-family: var(--font-body);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    padding: 8px 6px;
    box-sizing: border-box;
    transform-origin: bottom center;
    position: relative;
    overflow: hidden;
}

.brand-scroll-btn img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 1;
}

.brand-scroll-btn.has-img span { display: none; }

.brand-scroll-btn span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-scroll-btn.no-img span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.8);
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 0 4px;
}

.brand-scroll-btn:hover,
.brand-scroll-btn:active {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}

.brand-scroll-btn.active {
    background: #D4A017;
    border-color: #28a745;
    box-shadow: 0 0 14px rgba(40,167,69,0.5);
}
.brand-scroll-btn.active span { color: #fff; }
.brand-scroll-btn.active img { opacity: 1; }

.filter-bar { display: none; }

.search-toggle-button { 
    background: #333; 
    color: white; 
    border: none; 
    border-radius: 12px; 
    width: 40px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.9rem;
}

@media (min-width: 600px) {
    .search-toggle-button { 
        border-radius: 15px; 
        width: 45px; 
        font-size: 1rem;
    }
}

/* MAIN CONTAINER */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2px 0 2px;
}

@media (min-width: 600px) {
    main {
        padding: 0 10px 0 10px;
    }
}

/* BARRA DE FILTROS */
.product-filter-bar {
    padding: 10px 10px 0;
}

.filter-toggle-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #1a1a18;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.filter-toggle-btn .filter-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.clear-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.filter-options-panel {
    padding: 10px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-options-panel::-webkit-scrollbar { display: none; }

.filter-options-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tipo-filter-btn, .marca-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.15s;
}

.tipo-filter-btn.active, .marca-filter-btn.active {
    background: #1a1a18;
    color: #fff;
    border-color: #1a1a18;
}

/* GRID PRODUCTOS - RESPONSIVE */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 3px; 
    padding: 3px 2px 80px 2px;
}

/* TABLET: 2 columnas */
@media (min-width: 600px) {
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
        padding: 12px 12px 80px 12px;
    }
}

/* PC: 5 columnas con máximo ancho */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        padding: 8px 10px 60px 10px;
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* DRAG & DROP PRODUCTOS */
body.admin-mode .card,
body.helper-mode .card {
    cursor: grab;
}

body.admin-mode .card:active,
body.helper-mode .card:active {
    cursor: grabbing;
}

.card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.card.drag-over {
    outline: 2px dashed #667eea;
    outline-offset: 3px;
}

.touch-drag-clone {
    position: fixed;
    width: 80px;
    height: 80px;
    opacity: 0.7;
    z-index: 9999;
    pointer-events: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* CARDS DE PRODUCTOS */
.card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e4dc;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.13), 0 0 0 1px rgba(212,160,23,0.18);
    border-color: rgba(212,160,23,0.3);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
}

.product-image {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}

.card-img-incoming {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img-nav {
    position: absolute;
    top: 0;
    background: rgba(0,0,0,0.25);
    color: white;
    border: none;
    width: 20px;
    height: 100%;
    cursor: pointer;
    font-size: 0.55rem;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card:hover .card-img-nav { opacity: 0.7; }
.card-img-nav:hover { opacity: 1; background: rgba(0,0,0,0.45); }
.card-img-prev { left: 0; }
.card-img-next { right: 0; }

@media (max-width: 600px) {
    .card-img-nav { display: none; }
}

/* Imágenes más grandes en pantallas grandes */
@media (min-width: 600px) {
    .product-image {
        height: 180px;
    }
    .card-img-nav {
        width: 24px;
        font-size: 0.65rem;
    }
}

@media (min-width: 1024px) {
    .product-image {
        height: 220px;
    }
}

.product-info { 
    padding: 6px; 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 600px) {
    .product-info { 
        padding: 10px; 
        gap: 5px;
    }
}

.card h3 {
    font-size: 0.7rem;
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    font-family: var(--font-head);
    letter-spacing: -0.01em;
    color: #111;
}

.card h3 .title-text-wrapper {
    display: inline-block;
}

.card h3.marquee-title .title-text-wrapper {
    animation: marquee-title 8s linear infinite;
}

@keyframes marquee-title { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(var(--marquee-title-dist)); } 
}

@media (min-width: 600px) {
    .card h3 {
        font-size: 0.92rem;
        line-height: 1.2;
    }
}

.product-brand {
    font-size: 0.58rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 3px 0 5px;
}

.card-tag-tipo, .card-tag-marca {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-tag-tipo {
    background: #1a1a18;
    color: #fff;
}

.card-tag-marca {
    background: #f0f0f0;
    color: #444;
    border: 1px solid #ddd;
}

.product-desc-line {
    font-size: 0.58rem;
    color: #888;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.product-desc-line::-webkit-scrollbar { display: none; }

@media (min-width: 600px) {
    .product-brand {
        font-size: 0.75rem;
    }
    .product-desc-line {
        font-size: 0.72rem;
    }
}

.marquee-brand .brand-text-wrapper {
    display: inline-block;
    animation: marquee 6s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-dist)); }
}

/* PRECIOS */
.product-prices {
    margin: 2px 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

@media (min-width: 600px) {
    .product-prices {
        margin: 4px 0;
        gap: 2px;
    }
}

.price-row-live { 
    color: var(--color-mayor); 
    font-weight: 700; 
    font-size: 0.75rem; 
    transition: all 0.3s;
    line-height: 1.2;
}

.price-row-normal {
    color: var(--color-promo);
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s;
    line-height: 1.2;
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

@media (min-width: 600px) {
    .price-row-live,
    .price-row-normal { 
        font-size: 0.95rem; 
    }
}

.small-price-label { 
    font-size: 0.45rem; 
    color: #999;
    margin-left: 3px;
}

@media (min-width: 600px) {
    .small-price-label { 
        font-size: 0.58rem; 
    }
}

/* CLASES DE BRILLO */
.shining-promo { 
    text-shadow: 0 0 10px var(--color-promo); 
    transform: scale(1.05); 
    font-weight: 800; 
}

.shining-mayor { 
    text-shadow: 0 0 10px var(--color-mayor); 
    transform: scale(1.05); 
    font-weight: 800; 
}

/* CONTROLES DEL CARRITO */
.cart-controls { 
    display: flex; 
    gap: 3px; 
    margin-top: auto; 
    padding-top: 3px; 
    align-items: center; 
    width: 100%; 
}

@media (min-width: 600px) {
    .cart-controls { 
        gap: 6px;
        padding-top: 6px; 
    }
}

.qty-selector {
    display: flex;
    background: #f0ede6;
    border-radius: 8px;
    flex: 1.2;
    height: 24px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e0dcd4;
}

@media (min-width: 600px) {
    .qty-selector { 
        height: 32px; 
    }
}

.minus, .plus { 
    border: none; 
    background: none; 
    width: 22px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 0.9rem; 
    flex-shrink: 0;
    transition: background 0.2s;
}

.minus:hover, .plus:hover {
    background: #ddd;
}

@media (min-width: 600px) {
    .minus, .plus { 
        width: 35px; 
        font-size: 1.2rem; 
    }
}

.qty-display { 
    flex: 1; 
    text-align: center; 
    font-size: 0.75rem; 
    font-weight: bold; 
}

@media (min-width: 600px) {
    .qty-display { 
        font-size: 1rem; 
    }
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #25D366 0%, #1aab52 100%);
    color: white;
    border: none;
    border-radius: 8px;
    flex: 0.8;
    height: 24px;
    font-size: 0.68rem;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(37,211,102,0.3);
    font-family: var(--font-body);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #1fc85a 0%, #178a42 100%);
    box-shadow: 0 4px 12px rgba(37,211,102,0.45);
    transform: scale(1.03);
}

@media (min-width: 600px) {
    .add-to-cart-btn { 
        height: 32px; 
        font-size: 0.85rem; 
        padding: 0 6px;
    }
}

/* MODALES */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); 
    z-index: 2000; 
    overflow-y: auto; 
}

.modal-content { 
    background: white; 
    margin: 20px auto; 
    padding: 20px; 
    border-radius: 15px; 
    width: 92%; 
    max-width: 450px; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

@media (min-width: 768px) {
    .modal-content { 
        width: 85%; 
        max-width: 600px; 
        padding: 30px; 
    }
}

/* ── CARRITO BOTTOM-SHEET (todas las páginas) ── */
.cart-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 2000; align-items: flex-end;
}
.cart-overlay.open { display: flex; }
.cart-sheet {
    background: #fff; width: 100%; max-width: 500px;
    margin: 0 auto; border-radius: 18px 18px 0 0;
    padding: 20px 16px 100px; max-height: 80vh; overflow-y: auto;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cart-sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-sheet-header h3 { font-size: 1rem; font-weight: 700; }
.cart-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #aaa; line-height: 1; }
.cart-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-meta { font-size: 0.74rem; color: #bbb; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: #ddd; font-size: 1rem; cursor: pointer; padding: 4px; flex-shrink: 0; }
.cart-item-remove:hover { color: #e53935; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; margin-top: 14px; }
.cart-empty { text-align: center; padding: 28px 0; color: #ccc; font-size: 0.88rem; }
.cart-empty i { font-size: 2rem; display: block; margin-bottom: 8px; }
.cart-sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.csa-wsp { background: linear-gradient(135deg, #25d366 0%, #1aab52 100%); color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 0.9rem; font-weight: 700; font-family: var(--font-body); cursor: pointer; width: 100%; box-shadow: 0 4px 14px rgba(37,211,102,0.35); transition: all 0.2s; letter-spacing: 0.02em; }
.csa-wsp:hover { box-shadow: 0 6px 20px rgba(37,211,102,0.5); transform: translateY(-1px); }
.csa-web { background: #007bff; color: #fff; border: none; border-radius: 10px; padding: 12px; font-size: 0.9rem; font-weight: 700; font-family: inherit; cursor: pointer; width: 100%; }

/* Carrito como bottom-sheet (legado #cart-modal) */
#cart-modal {
    background: rgba(0,0,0,0.5);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: flex-end;
    overflow: visible;
}
#cart-modal[style*="block"] {
    display: flex !important;
}
#cart-modal .modal-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 18px 18px 0 0;
    padding: 20px 16px 100px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    animation: cartSlideUp 0.25s ease;
}
@keyframes cartSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.close-button {
    position: absolute;
    right: 10px;
    top: 10px; 
    font-size: 32px; 
    cursor: pointer; 
    z-index: 3000; 
    color: #333; 
    background: rgba(255,255,255,0.9); 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: background 0.2s;
}

.close-button:hover {
    background: rgba(255,255,255,1);
}

/* DETALLES DEL PRODUCTO */
.details-container {
    max-width: 700px;
}

#details-price-normal { 
    color: var(--color-promo); 
    font-weight: 700; 
    font-size: 1.2rem; 
}

#details-price-live { 
    color: var(--color-mayor); 
    font-weight: 700; 
    font-size: 1.2rem; 
}

.details-image-wrapper { 
    position: relative; 
    width: 100%; 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #eee; 
}

#details-image { 
    width: 100%; 
    height: auto; 
    display: block; 
    max-height: 380px; 
    object-fit: contain; 
}

@media (min-width: 768px) {
    #details-image { 
        max-height: 500px; 
    }
}

.nav-button { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); 
    color: white; 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 1rem;
    transition: background 0.2s;
}

.nav-button:hover {
    background: rgba(0,0,0,0.7);
}

.nav-button.prev { 
    left: 10px; 
}

.nav-button.next { 
    right: 10px; 
}

.thumbnail-gallery { 
    display: flex; 
    gap: 8px; 
    margin-top: 10px; 
    overflow-x: auto; 
    padding-bottom: 5px; 
}

.thumbnail-gallery img { 
    width: 55px; 
    height: 55px; 
    object-fit: cover; 
    border-radius: 8px; 
    opacity: 0.5; 
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-gallery img:hover {
    opacity: 0.8;
}

.thumbnail-gallery img.active { 
    opacity: 1; 
    border-color: var(--color-mayor); 
}

.details-prices-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-around;
    border: 1px solid #eee;
}

.details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.details-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.details-tag-tipo {
    background: #1a1a18;
    color: #fff;
}

.details-tag-marca {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

/* CARRITO */
.checkout-button { 
    background-color: var(--color-whatsapp); 
    color: white; 
    border: none; 
    padding: 14px; 
    border-radius: 15px; 
    width: 100%; 
    font-weight: 800; 
    font-size: 1.1rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    margin-top: 10px; 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: background 0.2s;
}

.checkout-button:hover {
    background-color: #1ea952;
}

/* FOOTER FIJO (WhatsApp y Carrito) */
.fixed-footer { 
    background: white; 
    padding: 8px; 
    position: fixed; 
    bottom: 0; 
    left: 0;
    right: 0;
    box-shadow: 0 -2px 10px var(--color-sombra); 
    z-index: 1000; 
}

@media (min-width: 600px) {
    .fixed-footer { 
        padding: 10px; 
    }
}

.footer-content { 
    display: flex; 
    gap: 6px; 
    max-width: 500px; 
    margin: 0 auto; 
}

@media (min-width: 600px) {
    .footer-content { 
        gap: 8px; 
        max-width: 600px; 
    }
}

#whatsapp-button { 
    background: var(--color-whatsapp); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    flex: 1; 
    font-weight: bold; 
    font-size: 0.85rem; 
    cursor: pointer;
    padding: 10px 8px;
    transition: background 0.2s;
    height: 44px;
}

@media (min-width: 600px) {
    #whatsapp-button { 
        border-radius: 12px; 
        font-size: 0.9rem; 
        padding: 12px; 
        height: 48px;
    }
}

#whatsapp-button:hover {
    background: #1ea952;
}

.cart-toggle-footer {
    background: #333;
    color: white;
    border: none;
    border-radius: 10px;
    width: 50px;
    height: 44px;
    position: relative;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
}

@media (min-width: 600px) {
    .cart-toggle-footer { 
        border-radius: 12px; 
        width: 55px; 
        height: 48px; 
        font-size: 1.2rem;
    }
}

.cart-toggle-footer:hover {
    background: #000;
}

#open-admin-menu-button { 
    background: #eee; 
    color: #333; 
    border: none; 
    border-radius: 10px; 
    width: 44px; 
    height: 44px; 
    cursor: pointer; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: background 0.2s;
}

@media (min-width: 600px) {
    #open-admin-menu-button { 
        border-radius: 12px; 
        width: 48px; 
        height: 48px; 
        font-size: 1.2rem; 
    }
}

#open-admin-menu-button:hover {
    background: #ddd;
}

@media (min-width: 1024px) {
    .fixed-footer { padding: 5px; }
    .footer-content { gap: 6px; }
    #whatsapp-button { height: 36px; padding: 6px 10px; font-size: 0.85rem; }
    .cart-toggle-footer { height: 36px; width: 48px; font-size: 1rem; }
    #auth-icon-button { height: 36px; width: 40px; font-size: 1rem; }
    #open-admin-menu-button { height: 36px; width: 40px; font-size: 1rem; }
}

/* FOOTER INFORMATIVO (después de productos) */
.info-footer {
    background: #f8f8f8;
    padding: 40px 20px 80px 20px;
    border-top: 3px solid #000;
    margin: 0;
}

.info-footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #000;
}

.footer-shipping-info {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-shipping-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.footer-shipping-info p:first-child {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 12px;
}

.footer-shipping-info strong {
    color: #000;
    font-weight: 700;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
}

.footer-phone:hover {
    background: #000;
    color: white;
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #000;
}

.footer-social a:hover {
    background: #000;
    color: white;
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

@media (min-width: 600px) {
    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: #000;
    color: white;
}

.footer-payment {
    font-size: 0.9rem;
    color: #555;
    margin: 25px 0 15px 0;
    line-height: 1.6;
}

.footer-payment strong {
    color: #000;
}

.footer-credits {
    font-size: 0.85rem;
    color: #999;
    margin: 15px 0 0 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-credits strong {
    color: #000;
    font-weight: 600;
}

/* GESTOR DE CATEGORÍAS */
.categories-manager-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.category-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.category-section:last-child {
    border-bottom: none;
}

.category-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.add-category-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.add-category-btn:hover {
    background: #333;
}

/* Select con botón "+" inline en formulario de producto */
.select-with-add {
    display: flex;
    gap: 8px;
    align-items: center;
}

.select-with-add select {
    flex: 1;
}

.btn-add-option {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: #1a1a18;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-add-option:hover {
    background: #444;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.category-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.category-tag:hover {
    border-color: #000;
    transform: translateY(-2px);
}

.category-tag span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-category-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.3s;
}

.delete-category-btn:hover {
    background: #c82333;
}

.categories-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* ADMIN UI - GESTIÓN DE ROLES */
.admin-only, .any-admin { 
    display: none !important; 
}

body.admin-mode .admin-only, 
body.admin-mode .any-admin { 
    display: flex !important; 
}

body.helper-mode .any-admin { 
    display: flex !important; 
}

/* SECCIÓN DE VENTAS */
.ventas-modal-content {
    max-width: 600px;
}

.ventas-stats {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.venta-stat-box {
    flex: 1;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.venta-stat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.venta-stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.ventas-list-container {
    max-height: 450px;
    overflow-y: auto;
}

.venta-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 5px;
    transition: box-shadow 0.2s;
}

.venta-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.venta-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.venta-card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.venta-card-productos {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venta-card-fecha {
    font-size: 0.75rem;
    color: #999;
}

.venta-card-monto {
    font-size: 1rem;
    color: #222;
    white-space: nowrap;
}

.venta-card-details {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #eee;
}

.venta-detail-row {
    font-size: 0.82rem;
    padding: 1px 0;
    color: #555;
}

.venta-detail-row strong {
    color: #333;
}

.venta-estado {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.venta-estado.pendiente {
    background: #fff3cd;
    color: #856404;
}

.venta-estado.pagado {
    background: #d4edda;
    color: #155724;
}

.venta-productos-list {
    margin-top: 5px;
    padding-left: 10px;
}

.venta-producto-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 3px 0;
    color: #666;
    gap: 8px;
}

.venta-producto-item span {
    color: #999;
}

.venta-ver-mas-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 1px 0 0;
    margin-top: 1px;
    width: 100%;
    text-align: left;
}

.venta-ver-mas-btn:hover {
    text-decoration: underline;
}

.venta-pendiente {
    border-left: 3px solid #ffc107;
    opacity: 0.7;
}

.venta-detail-separator {
    border-top: 1px dashed #e0e0e0;
    margin: 4px 0;
}

.venta-verificar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
}

.venta-verificar-check {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
    cursor: pointer;
}

.venta-verificar-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.venta-desc-pago {
    display: block;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    margin-top: 2px;
}

.venta-eliminar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    justify-content: center;
}

.venta-eliminar-btn:hover {
    background: #e74c3c;
    color: white;
}

/* VENTAS SHALOM - TONO ROJO */
.venta-shalom {
    border-left: 4px solid #e74c3c;
    background: #fff5f5;
}

.venta-badge-shalom {
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.venta-card-cliente {
    font-size: 0.75rem;
    color: #666;
}

.venta-card-cliente i {
    margin-right: 3px;
    color: #999;
}

.venta-card-dni-cel {
    font-size: 0.7rem;
    color: #888;
    margin-top: -1px;
}

.venta-card-right-quick,
.venta-card-right-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.venta-pago-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.venta-pago-thumb:hover {
    transform: scale(1.5);
    z-index: 10;
}

.venta-pago-full {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    border: 1px solid #eee;
}

.venta-check-quick {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.venta-check-quick input {
    display: none;
}

.venta-card-titulo-shalom {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.venta-quick-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.venta-action-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.venta-action-btn:hover {
    background: #667eea;
    color: white;
}

.venta-shalom .venta-action-btn:hover {
    background: #e74c3c;
}

.venta-check-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.venta-check-inline input { display: none; }

.venta-check-icon {
    font-size: 1.1rem;
    color: #ccc;
}

.venta-check-inline input:checked ~ .venta-check-icon {
    color: #28a745;
}

.venta-check-label {
    font-weight: 600;
    color: #999;
    white-space: nowrap;
}

.venta-check-inline input:checked ~ .venta-check-label {
    color: #28a745;
}

.venta-prods-expandible,
.venta-pago-expandible {
    margin-top: 4px;
    padding: 5px 8px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.venta-pago-expandible {
    text-align: center;
}

/* LAZY LOADING IMÁGENES */
.lazy-img {
    background: #f0f0f0;
    min-height: 80px;
}

.lazy-slide {
    background: #e8e8e8;
}

/* VENTAS - RESPONSIVE MÓVIL */
@media (max-width: 600px) {
    .ventas-modal-content {
        max-width: 100%;
        margin: 10px;
        padding: 10px;
    }

    .ventas-stats {
        gap: 6px;
        margin: 8px 0;
    }

    .venta-stat-box { padding: 6px; }
    .venta-stat-num { font-size: 1rem; }

    .venta-card { padding: 5px 7px; margin-bottom: 3px; }

    .venta-card-header {
        flex-direction: column;
        gap: 2px;
    }

    .venta-card-info { gap: 0px; }

    .venta-card-right-quick,
    .venta-card-right-compact {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0px;
        margin-top: 1px;
    }

    .venta-quick-actions { gap: 3px; margin-top: 0; }
    .venta-action-btn { width: 26px; height: 26px; font-size: 0.7rem; }
    .venta-check-inline { font-size: 0.6rem; }
    .venta-check-label { font-size: 0.55rem; }
    .venta-check-icon { font-size: 0.85rem; }
    .venta-card-productos { font-size: 0.78rem; }
    .venta-card-cliente { font-size: 0.68rem; }
    .venta-card-dni-cel { font-size: 0.62rem; }
    .venta-card-titulo-shalom { font-size: 0.78rem; flex-wrap: wrap; }
    .venta-card-monto { font-size: 0.88rem; }
    .venta-card-fecha { font-size: 0.62rem; }
    .venta-producto-item { font-size: 0.73rem; }
    .venta-pago-full { max-height: 160px; }
    .venta-detail-row { font-size: 0.75rem; padding: 0; }
    .venta-card-details { margin-top: 2px; padding-top: 2px; }
    .ventas-list-container { max-height: 380px; }
    .venta-prods-expandible, .venta-pago-expandible { padding: 4px; margin-top: 3px; }
    .venta-ver-mas-btn { font-size: 0.72rem; padding: 0; margin-top: 1px; }
    .venta-eliminar-btn { font-size: 0.72rem; padding: 4px 8px; }
}

/* BADGE ESTADO COMPRAS (CLIENTE) */
.compra-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.compra-verificado {
    background: #d4edda;
    color: #155724;
}

.compra-pendiente {
    background: #fff3cd;
    color: #856404;
}

/* BOTÓN SHALOM FLOTANTE */
.shalom-float-btn {
    position: fixed;
    bottom: 70px;
    left: 15px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.shalom-float-btn:hover {
    transform: scale(1.08);
}

.shalom-float-title {
    background: #c0392b;
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 3px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-align: center;
}

.shalom-float-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(231,76,60,0.5);
    border: 3px solid #e74c3c;
    animation: shalomGlow 1.8s ease-in-out infinite;
}

.shalom-float-label {
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 3px;
    white-space: nowrap;
    animation: shalomLabelGlow 2s ease-in-out infinite;
}

@keyframes shalomLabelGlow {
    0%, 100% { background: #e74c3c; box-shadow: none; }
    50% { background: #f1c40f; color: #333; box-shadow: 0 0 10px rgba(241,196,15,0.7); }
}

@keyframes shalomGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(231,76,60,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 22px rgba(231,76,60,1); transform: scale(1.08); }
}

.shalom-pulsing img {
    animation: shalomPulseStrong 0.6s ease-in-out infinite alternate;
}

@keyframes shalomPulseStrong {
    from { box-shadow: 0 0 5px rgba(231,76,60,0.4); transform: scale(1); }
    to { box-shadow: 0 0 25px rgba(231,76,60,1); transform: scale(1.1); }
}

/* CHECKOUT SHALOM MODAL */
.shalom-modal-content {
    max-width: 500px;
}

.shalom-title-icon {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

.shalom-oficina-dropdown {
    display: none;
    position: absolute;
    z-index: 100;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: calc(100% - 2px);
}

.shalom-oficina-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.shalom-oficina-item:hover {
    background: #f0f4ff;
}

.shalom-oficina-tag {
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
}

.shalom-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 25px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    color: #999;
    transition: border-color 0.2s, background 0.2s;
}

.shalom-upload-area:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.shalom-upload-area i {
    font-size: 1.5rem;
}

.shalom-pago-preview {
    position: relative;
    display: inline-block;
    margin-top: 8px;
}

.shalom-pago-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.shalom-pago-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shalom-resumen {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.shalom-resumen h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.shalom-finalizar-btn {
    width: 100%;
    margin-top: 12px;
    background: #e74c3c;
    border-color: #e74c3c;
}

.shalom-finalizar-btn:hover {
    background: #c0392b;
}

/* BOTÓN MIS COMPRAS */
#open-mis-compras-button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#open-mis-compras-button:hover {
    background: #5a6fd6;
}

@media (min-width: 1024px) {
    #open-mis-compras-button { height: 36px; width: 40px; font-size: 0.9rem; }
    .shalom-float-btn { bottom: 55px; }
}

/* Posición relativa para dropdown de oficinas */
.shalom-modal-content .form-group {
    position: relative;
}

/* MENÚ ADMIN */
.admin-menu-content {
    max-width: 400px;
}

.admin-menu-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.admin-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.admin-menu-btn:hover {
    background: #e8e8e8;
    border-color: #999;
    transform: translateY(-2px);
}

.admin-menu-btn i {
    font-size: 1.5rem;
    color: #333;
}

/* GESTOR DE USUARIOS */
.users-manager-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.users-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

@media (max-width: 600px) {
    .users-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-card i {
    font-size: 2rem;
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.stat-card span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.users-search {
    margin: 15px 0;
}

.users-search input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.users-search input:focus {
    border-color: #667eea;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #eee;
    transition: all 0.3s;
}

.user-item:hover {
    border-color: #667eea;
}

.user-item.banned {
    background: #ffe6e6;
    border-color: #ffcccc;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-item.banned .user-avatar {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-email {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.user-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.user-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-badge.role-admin {
    background: #ffd700;
    color: #333;
}

.user-badge.role-helper {
    background: #ffa500;
    color: white;
}

.user-badge.role-user {
    background: #e0e0e0;
    color: #666;
}

.user-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.user-badge.status-banned {
    background: #f8d7da;
    color: #721c24;
}

.user-date {
    font-size: 0.75rem;
    color: #999;
}

.user-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.user-ban-btn,
.user-unban-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.user-ban-btn {
    background: #dc3545;
    color: white;
}

.user-ban-btn:hover {
    background: #c82333;
}

.user-unban-btn {
    background: #D4A017;
    color: white;
}

.user-unban-btn:hover {
    background: #b88a10;
}

.users-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.users-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* GESTOR DE SLIDES */
.slides-manager-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.add-slide-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-whatsapp);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.add-slide-btn:hover {
    background: #1ea952;
}

.slides-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.slide-item-manager {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #eee;
}

.slide-preview-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.slide-info {
    flex: 1;
    min-width: 0;
}

.slide-info small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide-order-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slide-order-btn {
    background: #ddd;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slide-order-btn:hover {
    background: #ccc;
}

.slide-order-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-actions {
    display: flex;
    gap: 6px;
}

.slide-edit-btn,
.slide-delete-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slide-edit-btn {
    background: #007bff;
    color: white;
}

.slide-edit-btn:hover {
    background: #0056b3;
}

.slide-delete-btn {
    background: #dc3545;
    color: white;
}

.slide-delete-btn:hover {
    background: #c82333;
}

/* FORMULARIO DE SLIDE */
.slide-form-content {
    max-width: 550px;
}

.slide-dimensions-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.slide-dimensions-info i {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.slide-dimensions-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.slide-dimensions-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.slide-dimensions-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.slide-dimensions-info li {
    margin: 5px 0;
    font-size: 0.9rem;
}

.slide-dimensions-info .warning-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}

.slide-image-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    cursor: pointer;
}

#slide-image-url:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.slide-preview-container {
    margin-top: 15px;
    display: none;
}

.slide-preview-container.active {
    display: block;
}

.slide-preview-container img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #eee;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

.card.add-new { 
    height: 120px; 
    background: #f0f0f0; 
    border: 2px dashed #bbb; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    font-size: 2rem; 
    color: #999;
    transition: all 0.2s;
}

.card.add-new:hover {
    background: #e8e8e8;
    border-color: #999;
}

@media (min-width: 600px) {
    .card.add-new { 
        height: 200px; 
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .card.add-new { 
        height: 280px; 
    }
}

/* NOTIFICACIONES */
.toast-notification { 
    position: fixed; 
    bottom: 85px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #D4A017; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 25px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    z-index: 3000; 
    font-weight: 600; 
    font-size: 0.85rem; 
}

/* FORMULARIOS */
.form-row { 
    display: flex; 
    gap: 10px; 
}

.form-group { 
    margin-bottom: 12px; 
}

.form-group.flex-1 {
    flex: 1;
}

.form-group label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #555; 
    margin-bottom: 4px; 
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 10px; 
    border-radius: 10px; 
    border: 1px solid #ddd; 
    font-family: var(--font-body); 
    box-sizing: border-box; 
}

.select-wrapper {
    display: flex;
    gap: 5px;
}

.select-wrapper select {
    flex: 1;
}

.save-product-btn { 
    background: #000; 
    color: white; 
    padding: 14px; 
    border: none; 
    border-radius: 12px; 
    width: 100%; 
    cursor: pointer; 
    font-weight: 700; 
    margin-top: 10px;
    transition: background 0.2s;
}

.save-product-btn:hover {
    background: #333;
}

.add-new-option-button { 
    background: #333; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    width: 35px; 
    cursor: pointer;
    transition: background 0.2s;
}

.add-new-option-button:hover {
    background: #000;
}

.file-input-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-custom-btn {
    background: #eee;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #ccc;
    transition: all 0.2s;
}

.file-custom-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

.image-preview-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 5px; 
    margin-top: 10px; 
}

.preview-item { 
    position: relative; 
    aspect-ratio: 1/1; 
    border: 1px solid #eee; 
    border-radius: 5px; 
    overflow: hidden; 
}

.preview-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.remove-preview-btn { 
    position: absolute; 
    top: 2px; 
    right: 2px; 
    background: red; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 18px; 
    height: 18px; 
    font-size: 10px; 
    cursor: pointer;
    transition: background 0.2s;
}

.remove-preview-btn:hover {
    background: darkred;
}

/* CARRITO - ESTILOS ADICIONALES */
.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price-tag {
    font-size: 0.75rem;
    color: #888;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: #ddd;
}

.cart-qty-val {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item-subtotal {
    font-size: 0.95rem;
    color: #222;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #e74c3c;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
}

.cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cart-empty p {
    font-size: 1rem;
}

.cart-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.cart-total-box {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* AUTH MODAL */
.auth-modal-content {
    max-width: 400px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #333;
    border-bottom-color: #667eea;
}

.auth-tab:hover {
    color: #667eea;
}

.auth-error {
    color: red;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Estilo para cuando se arrastra un archivo sobre la zona */
.file-custom-btn.drag-over {
    background: #e0e0e0;
    border: 2px dashed #000;
    transform: scale(1.02);
    color: #000;
}

/* ============================================ */
/* TOP BAR                                      */
/* ============================================ */

/* top-bar eliminada */

/* ============================================ */
/* PERFIL DE USUARIO - MODAL                    */
/* ============================================ */

.profile-section {
    margin-bottom: 18px;
}
.profile-section h4 {
    font-size: 0.85rem;
    color: #01a1d5;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-section input,
.profile-section select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    box-sizing: border-box;
    background: #fafafa;
    transition: border-color 0.2s;
}
.profile-section input:focus,
.profile-section select:focus {
    outline: none;
    border-color: #01a1d5;
    background: #fff;
}
#btn-save-profile {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #01a1d5, #0189b5);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}
#btn-save-profile:hover { opacity: 0.9; }
#btn-save-profile:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================ */
/* MIS COMPRAS - ESTADOS Y DETALLE              */
/* ============================================ */

.compra-card { position: relative; }
.compra-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.estado-pendiente { background: #fff3cd; color: #856404; }
.estado-pagado { background: #d4edda; color: #155724; }
.estado-datos { background: #cce5ff; color: #004085; }
.estado-enviado { background: #d1ecf1; color: #0c5460; }
.editado-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    background: #ffeeba;
    color: #856404;
    font-weight: 500;
}
.compra-detail-section { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.compra-detail-section:last-of-type { border-bottom: none; }
.compra-detail-section h4 {
    font-size: 0.82rem; color: #555; margin-bottom: 8px;
    display: flex; align-items: center; gap: 5px;
}
.compra-envio-section { background: #f0fdf4; border-radius: 10px; padding: 12px; margin-top: 8px; }
.compra-envio-section h4 { color: #27ae60; }
.btn-editar-pedido {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 16px; background: #f8f9fa; border: 1px solid #dee2e6;
    border-radius: 10px; font-size: 0.82rem; color: #495057;
    cursor: pointer; margin-top: 10px; transition: all 0.2s;
}
.btn-editar-pedido:hover { background: #e9ecef; border-color: #adb5bd; }
.venta-card-right-quick { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

/* ============================================ */
/* VENTAS - GRID DE CIRCULOS DE USUARIOS        */
/* ============================================ */

.ventas-usuarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px; padding: 16px 0;
}
.ventas-usuario-circle {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; cursor: pointer; transition: transform 0.2s;
    padding: 8px; border-radius: 12px;
}
.ventas-usuario-circle:hover { transform: translateY(-3px); background: #f8f9fa; }
.usuario-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; color: #fff;
    position: relative; box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.avatar-ok { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.avatar-pendiente { background: linear-gradient(135deg, #e67e22, #f39c12); animation: avatarPulse 2s infinite; }
@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(230,126,34,0.3); }
    50% { box-shadow: 0 3px 20px rgba(230,126,34,0.6); }
}
.avatar-badge {
    position: absolute; top: -4px; right: -4px;
    background: #e74c3c; color: #fff; font-size: 0.65rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.usuario-nombre { font-size: 0.78rem; font-weight: 600; color: #333; text-align: center; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-total { font-size: 0.65rem; color: #999; text-align: center; }

/* ============================================ */
/* VENTAS USUARIO - DETALLE ADMIN               */
/* ============================================ */

.ventas-usuario-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ventas-usuario-header h2 { margin: 0; font-size: 1.1rem; }
.back-btn-inline {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; background: #f0f0f0; border: none;
    border-radius: 8px; font-size: 0.82rem; color: #555;
    cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.back-btn-inline:hover { background: #e0e0e0; }
.venta-card-details-admin { padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 8px; }
.admin-acciones { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #e0e0e0; display: flex; flex-direction: column; gap: 10px; }
.admin-accion-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-accion-row > label:first-child { font-size: 0.82rem; font-weight: 600; color: #555; min-width: 100px; }
.admin-estado-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.82rem; background: #fafafa; flex: 1; max-width: 200px; }
.upload-foto-envio-label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; background: #01a1d5; color: #fff; border-radius: 8px; font-size: 0.8rem; cursor: pointer; transition: opacity 0.2s; }
.upload-foto-envio-label:hover { opacity: 0.85; }
.admin-foto-preview { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 1px solid #ddd; }
.admin-comentario-envio { display: flex; gap: 6px; flex: 1; }
.admin-comentario-input { flex: 1; padding: 6px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.82rem; }
.btn-guardar-comentario { padding: 6px 12px; background: #27ae60; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 0.85rem; transition: opacity 0.2s; }
.btn-guardar-comentario:hover { opacity: 0.85; }

.historial-ediciones { margin-top: 12px; padding: 10px; background: #fff8e1; border-radius: 10px; border: 1px solid #ffe082; }
.historial-ediciones h4 { font-size: 0.8rem; color: #f57f17; margin-bottom: 6px; }
.historial-item { font-size: 0.75rem; color: #666; padding: 3px 0; border-bottom: 1px solid #fff3c4; }
.historial-item:last-child { border-bottom: none; }
.historial-fecha { color: #999; font-size: 0.7rem; }

/* ===== PANEL MIS PEDIDOS ===== */
.pedidos-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 2100;
    align-items: flex-end; justify-content: center;
}
.pedidos-overlay.open { display: flex; }
.pedidos-panel {
    background: #f5f5f5; width: 100%; max-width: 540px;
    height: 90vh; border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    animation: slideUp 0.28s ease;
    overflow: hidden;
}
.pedidos-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    background: #111; color: #fff;
    font-size: 1rem; font-weight: 700;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}
.pedidos-panel-header button {
    background: none; border: none; color: #fff;
    font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.pedidos-panel-body {
    flex: 1; overflow-y: auto;
    padding: 16px 16px 32px;
}
.pedidos-loading { text-align: center; padding: 40px; color: #999; font-size: 0.9rem; }
.pedido-card-panel {
    background: #fff; border-radius: 14px;
    padding: 16px; margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.pedido-card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 8px;
}
.pedido-card-modelos { font-weight: 700; font-size: 0.88rem; color: #111; }
.pedido-card-fecha { font-size: 0.75rem; color: #999; margin-top: 2px; }
.pedido-card-monto { font-size: 1rem; font-weight: 800; color: #28a745; white-space: nowrap; }
.pedido-estado-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    margin-bottom: 12px;
}
.badge-pago_recibido  { background: #e8f5e9; color: #2e7d32; }
.badge-preparando     { background: #fff3e0; color: #e65100; }
.badge-enviado        { background: #e3f2fd; color: #1565c0; }
.badge-en_destino     { background: #f3e5f5; color: #6a1b9a; }
.badge-entregado      { background: #e8f5e9; color: #1b5e20; }
.badge-pendiente      { background: #fafafa; color: #888; }
.pedido-toggle-btn {
    width: 100%; background: none; border: 1px solid #eee;
    border-radius: 8px; padding: 7px; font-size: 0.78rem;
    color: #555; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pedido-toggle-btn:hover { background: #f5f5f5; }
.pedido-timeline-wrap { display: none; margin-top: 12px; }

/* Tracking timeline */
.tracking-timeline { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.tracking-step { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.tracking-step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: -4px; width: 2px; background: #eee; }
.tracking-step-active:not(:last-child)::after { background: #c8e6c9; }
.tracking-step-icon { width: 32px; height: 32px; border-radius: 50%; background: #eee; color: #aaa; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.tracking-step-active .tracking-step-icon { background: #D4A017; color: #fff; }
.tracking-step-content { flex: 1; padding-top: 4px; }
.tracking-step-title { font-weight: 700; font-size: 0.85rem; color: #111; }
.tracking-step-fecha { font-size: 0.75rem; color: #999; margin-top: 1px; }
.tracking-step-comentario { font-size: 0.8rem; color: #555; margin-top: 4px; }

/* ============================================ */
/* NOTIFICACIONES BELL                          */
/* ============================================ */

.notif-badge {
    position: absolute; top: -5px; right: -5px;
    background: #e74c3c; color: #fff; font-size: 0.6rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid #111; box-sizing: border-box;
}
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 10px; margin-bottom: 8px; transition: background 0.2s; }
.notif-nueva { background: #e3f2fd; border-left: 3px solid #01a1d5; }
.notif-leida { background: #f8f9fa; border-left: 3px solid #ddd; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: #01a1d5; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.notif-leida .notif-icon { background: #bbb; }
.notif-content { flex: 1; min-width: 0; }
.notif-mensaje { font-size: 0.85rem; color: #333; margin: 0 0 4px 0; line-height: 1.3; }
.notif-fecha { font-size: 0.7rem; color: #999; }
.btn-marcar-todas-leidas { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; background: #f0f0f0; border: none; border-radius: 10px; font-size: 0.82rem; color: #555; cursor: pointer; margin-top: 12px; transition: background 0.2s; }
.btn-marcar-todas-leidas:hover { background: #e0e0e0; }

/* Agencia otra */
#otra-agencia-input { margin-top: 8px; }
#checkout-agencia-otra {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: 0.9rem; box-sizing: border-box;
}

/* ============================================ */
/* RESPONSIVE - NUEVOS COMPONENTES              */
/* ============================================ */

@media (max-width: 600px) {
    .ventas-usuarios-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
    .usuario-avatar { width: 50px; height: 50px; font-size: 1rem; }
    .admin-accion-row { flex-direction: column; align-items: flex-start; }
    .admin-estado-select { max-width: 100%; width: 100%; }
    .admin-comentario-envio { width: 100%; }
    .ventas-usuario-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .compra-estado-badge { font-size: 0.65rem; }
}

/* ============================================ */
/* BRAND TICKER - CINTA DE MARCAS               */
/* ============================================ */

.brands-ticker-wrapper {
    background: #0a0a0a;
    overflow: hidden;
    padding: 18px 0;
    position: relative;
}

.brands-ticker-wrapper::before,
.brands-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.brands-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, transparent);
}
.brands-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, transparent);
}

.brands-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
}

.brands-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin: 0 28px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
    pointer-events: none;
}

/* ============================================ */
/* AUTH MODAL - DISEÑO MODERNO TIPO APPLE       */
/* ============================================ */

.auth-modal-content {
    max-width: 420px !important;
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden;
}

.auth-modal-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #111318 60%, #0d1a20 100%);
    border-bottom: 1px solid rgba(0,200,224,0.2);
    padding: 32px 30px 24px;
    text-align: center;
}

.auth-modal-header .auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 12px;
    object-fit: cover;
}

.auth-modal-header h2 {
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 700;
    margin: 0;
}

.auth-modal-header p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-top: 4px;
}

.auth-modal-body {
    padding: 24px 28px 28px;
}

.auth-tabs {
    display: flex;
    background: #f0f0f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    border-bottom: none !important;
    gap: 0 !important;
}

.auth-tab {
    flex: 1;
    padding: 9px 12px !important;
    background: transparent;
    border: none !important;
    border-radius: 9px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #888 !important;
    transition: all 0.25s ease;
    border-bottom: none !important;
}

.auth-tab.active {
    background: white !important;
    color: #1d1d1f !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-bottom: none !important;
}

.auth-tab:hover:not(.active) {
    color: #555 !important;
}

.auth-modal-body .form-group {
    margin-bottom: 14px;
}

.auth-modal-body .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.auth-modal-body .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e5ea;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #1d1d1f;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.auth-modal-body .form-group input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
    background: white;
}

.auth-modal-body .save-product-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0071e3, #0056b3);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.auth-modal-body .save-product-btn:hover {
    background: linear-gradient(135deg, #0077ed, #005ec4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,113,227,0.35);
}

.auth-modal-body .save-product-btn:active {
    transform: translateY(0);
}

.auth-error {
    color: #ff3b30 !important;
    font-size: 0.82rem !important;
    margin-top: 8px !important;
    text-align: center;
}

.auth-modal-body .password-wrapper {
    position: relative;
}

.auth-modal-body .password-wrapper input {
    padding-right: 44px;
}

.auth-modal-body .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}
.auth-modal-body .toggle-password:hover {
    color: #555;
}

/* ================================================
   SECCIÓN DE PROMOCIONES
================================================ */
.promo-section { margin: 20px 0 6px; padding: 0 10px; }

.promo-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding: 9px 14px;
    background: linear-gradient(135deg, #ff9800, #f44336);
    border-radius: 12px;
}
.promo-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 900; color: #000;
    letter-spacing: 2px; text-transform: uppercase;
}
.promo-flame {
    font-size: 1.3rem; display: inline-block;
    animation: promoFlame 0.85s ease-in-out infinite alternate;
}
@keyframes promoFlame {
    from { transform: scale(1) rotate(-7deg); }
    to   { transform: scale(1.25) rotate(7deg); }
}
.promo-section-sub { font-size: 0.7rem; color: rgba(0,0,0,0.6); font-weight: 700; }

.promo-scroll-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(88vw, 360px);
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.promo-scroll-container::-webkit-scrollbar { display: none; }

/* ── CARD ── */
.promo-card {
    width: 100%;
    height: 460px;
    border-radius: 20px; overflow: hidden;
    position: relative; cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
    isolation: isolate;
}
.promo-card.rojo    { box-shadow: 0 0 0 1.5px rgba(244,67,54,.45),  0 14px 40px rgba(0,0,0,.55); }
.promo-card.naranja { box-shadow: 0 0 0 1.5px rgba(255,152,0,.45),  0 14px 40px rgba(0,0,0,.55); }
.promo-card.morado  { box-shadow: 0 0 0 1.5px rgba(156,39,176,.45), 0 14px 40px rgba(0,0,0,.55); }
.promo-card.azul    { box-shadow: 0 0 0 1.5px rgba(33,150,243,.45), 0 14px 40px rgba(0,0,0,.55); }
.promo-card.verde   { box-shadow: 0 0 0 1.5px rgba(76,175,80,.45),  0 14px 40px rgba(0,0,0,.55); }
.promo-card.dorado  { box-shadow: 0 0 0 1.5px rgba(249,168,37,.45), 0 14px 40px rgba(0,0,0,.55); }
.promo-card:hover   { transform: translateY(-7px) scale(1.02); }

.promo-bg-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.5s ease; z-index: 0;
}
.promo-card:hover .promo-bg-img { transform: scale(1.09); }

.promo-overlay-dark {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.08) 0%, rgba(0,0,0,.05) 25%,
        rgba(0,0,0,.62) 60%, rgba(0,0,0,.93) 100%);
    z-index: 1; pointer-events: none;
}

.promo-shimmer {
    position: absolute; inset: 0;
    background: linear-gradient(108deg, transparent 35%, rgba(255,255,255,.07) 50%, transparent 65%);
    z-index: 2; pointer-events: none;
    animation: promoShimmer 5s ease-in-out infinite;
}
@keyframes promoShimmer {
    0%        { transform: translateX(-150%) skewX(-15deg); }
    60%, 100% { transform: translateX(250%) skewX(-15deg); }
}

.promo-ribbon {
    position: absolute; top: 22px; right: -32px;
    width: 130px; padding: 6px 0; text-align: center;
    font-size: 0.65rem; font-weight: 900; letter-spacing: 1px;
    color: #fff; transform: rotate(38deg); z-index: 6; text-transform: uppercase;
}
.promo-ribbon.rojo    { background:#e53935; box-shadow:0 2px 10px rgba(229,57,53,.6); }
.promo-ribbon.naranja { background:#fb8c00; box-shadow:0 2px 10px rgba(251,140,0,.6); }
.promo-ribbon.morado  { background:#8e24aa; box-shadow:0 2px 10px rgba(142,36,170,.6); }
.promo-ribbon.azul    { background:#1e88e5; box-shadow:0 2px 10px rgba(30,136,229,.6); }
.promo-ribbon.verde   { background:#43a047; box-shadow:0 2px 10px rgba(67,160,71,.6); }
.promo-ribbon.dorado  { background:linear-gradient(90deg,#f9a825,#e65100); box-shadow:0 2px 10px rgba(249,168,37,.6); }

.promo-sparkles { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:hidden; }
.promo-sparkle  { position:absolute; border-radius:50%; background:#fff; opacity:0; animation:sparklePop 3s ease-in-out infinite; }
.promo-sparkle:nth-child(1) { width:4px;height:4px;top:18%;left:12%;  animation-delay:0s;   }
.promo-sparkle:nth-child(2) { width:3px;height:3px;top:28%;right:18%;animation-delay:1s;   }
.promo-sparkle:nth-child(3) { width:5px;height:5px;top:14%;right:40%;animation-delay:2s;   }
.promo-sparkle:nth-child(4) { width:3px;height:3px;top:40%;left:22%; animation-delay:1.5s; }
.promo-sparkle:nth-child(5) { width:4px;height:4px;top:10%;left:55%; animation-delay:0.5s; }
@keyframes sparklePop {
    0%,100% { opacity:0; transform:scale(0) rotate(0deg); }
    50%     { opacity:1; transform:scale(1) rotate(180deg); }
}

.promo-delete-btn, .promo-edit-btn {
    position:absolute; top:9px;
    background:rgba(0,0,0,.65); color:#fff;
    border:none; border-radius:50%; width:28px; height:28px;
    display:none; align-items:center; justify-content:center;
    font-size:.72rem; cursor:pointer; z-index:10; transition:background .2s;
}
.promo-delete-btn { left:9px; }
.promo-edit-btn   { left:44px; }
body.admin-mode .promo-delete-btn, body.helper-mode .promo-delete-btn,
body.admin-mode .promo-edit-btn,   body.helper-mode .promo-edit-btn { display:flex; }
.promo-delete-btn:hover { background:rgba(229,57,53,.92); }
.promo-edit-btn:hover   { background:rgba(33,150,243,.92); }

.promo-content { position:absolute; bottom:0; left:0; right:0; padding:14px; z-index:4; }

.promo-banner-label {
    font-size:.62rem; font-weight:700; letter-spacing:2.5px;
    text-transform:uppercase; margin-bottom:5px;
}
.promo-banner-label.rojo    { color:#ff8a80; }
.promo-banner-label.naranja { color:#ffcc80; }
.promo-banner-label.morado  { color:#ea80fc; }
.promo-banner-label.azul    { color:#82b1ff; }
.promo-banner-label.verde   { color:#b9f6ca; }
.promo-banner-label.dorado  { color:#ffe57f; }

.promo-name {
    font-size:.96rem; font-weight:800; color:#fff; line-height:1.3;
    margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2;
    -webkit-box-orient:vertical; overflow:hidden;
    text-shadow:0 2px 8px rgba(0,0,0,.7);
}

.promo-prices-row { display:flex; align-items:center; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.promo-orig { font-size:.8rem; color:#bbb; text-decoration:line-through; }
.promo-new  { font-size:1.6rem; font-weight:900; line-height:1; text-shadow:0 0 24px currentColor; }
.promo-new.rojo    { color:#ff6b6b; }
.promo-new.naranja { color:#ffb74d; }
.promo-new.morado  { color:#ce93d8; }
.promo-new.azul    { color:#64b5f6; }
.promo-new.verde   { color:#81c784; }
.promo-new.dorado  { color:#ffd54f; }

.promo-pct {
    font-size:.72rem; font-weight:900; padding:3px 9px;
    border-radius:20px; color:#fff; align-self:center; letter-spacing:.5px;
}
.promo-pct.rojo    { background:#e53935; }
.promo-pct.naranja { background:#fb8c00; }
.promo-pct.morado  { background:#8e24aa; }
.promo-pct.azul    { background:#1e88e5; }
.promo-pct.verde   { background:#43a047; }
.promo-pct.dorado  { background:#e65100; }

.promo-countdown { display:flex; align-items:center; gap:5px; margin-bottom:10px; font-size:.67rem; color:#ccc; }
.promo-countdown-timer { display:flex; align-items:center; gap:3px; }
.promo-countdown-block {
    background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(4px); border-radius:5px; padding:2px 5px;
    font-size:.72rem; font-weight:700; color:#fff;
    min-width:24px; text-align:center; font-variant-numeric:tabular-nums;
}
.promo-countdown-sep { font-weight:700; color:#666; }

.promo-cta {
    width:100%; padding:10px 0; border:none; border-radius:12px;
    font-size:.82rem; font-weight:900; cursor:pointer; font-family:inherit;
    color:#fff; text-transform:uppercase; letter-spacing:.8px;
    transition:filter .2s, transform .15s;
    display:flex; align-items:center; justify-content:center; gap:7px;
}
.promo-cta.rojo     { background:linear-gradient(135deg,#f44336,#b71c1c); }
.promo-cta.naranja  { background:linear-gradient(135deg,#ff9800,#e65100); }
.promo-cta.morado   { background:linear-gradient(135deg,#9c27b0,#4a0072); }
.promo-cta.azul     { background:linear-gradient(135deg,#2196f3,#0d47a1); }
.promo-cta.verde    { background:linear-gradient(135deg,#4caf50,#1b5e20); }
.promo-cta.dorado   { background:linear-gradient(135deg,#f9a825,#bf360c); }
.promo-cta.preventa { background:linear-gradient(135deg,#7b1fa2,#1565c0); }
.promo-cta:hover    { filter:brightness(1.2); transform:scale(1.02); }

.promo-add-btn {
    width:100%; height:460px; border-radius:20px;
    border:2px dashed #333; background:transparent; color:#555;
    font-family:inherit; font-size:.8rem; font-weight:600; cursor:pointer;
    display:none; flex-direction:column; align-items:center; justify-content:center;
    gap:10px; transition:all .2s; scroll-snap-align:start; line-height:1.5; text-align:center;
}
body.admin-mode .promo-add-btn, body.helper-mode .promo-add-btn { display:flex; }
.promo-add-btn:hover { border-color:#ff9800; color:#ff9800; background:rgba(255,152,0,.06); }
.promo-add-btn i { font-size:2rem; }

.promo-section::after {
    content:''; display:block; height:1px;
    background:linear-gradient(to right, transparent, #2a2a2a, transparent);
    margin-top:20px;
}

/* ── MODAL AÑADIR PROMOCIÓN ── */
.add-promo-modal-content { max-width:500px; }
.promo-input-dark {
    width:100%; padding:10px 12px; background:#1a1a1a; color:#fff;
    border:1.5px solid #333; border-radius:8px; font-family:inherit;
    font-size:.88rem; box-sizing:border-box; transition:border-color .2s;
}
.promo-input-dark:focus { outline:none; border-color:#ff9800; }
.promo-input-dark option { background:#1a1a1a; }

.promo-preview-box {
    display:flex; gap:12px; align-items:center;
    background:#1a1a1a; border:1px solid #2a2a2a; border-radius:10px;
    padding:10px 12px; margin-bottom:14px;
}
.promo-preview-box img { width:52px; height:52px; object-fit:cover; border-radius:7px; flex-shrink:0; background:#222; }
#promo-preview-nombre { font-size:.86rem; font-weight:700; color:#fff; }
#promo-preview-precio { font-size:.76rem; color:#888; margin-top:2px; }
.promo-descuento-preview-txt { font-size:.78rem; font-weight:700; margin-top:5px; padding:4px 8px; border-radius:6px; display:inline-block; }

.promo-color-options { display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
.promo-color-swatch {
    width:34px; height:34px; border-radius:50%; cursor:pointer;
    border:3px solid transparent; transition:transform .15s, border-color .15s;
    position:relative; flex-shrink:0;
}
.promo-color-swatch.selected { border-color:#fff; transform:scale(1.15); }
.promo-color-swatch.selected::after {
    content:'✓'; position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%); color:#fff; font-size:.82rem; font-weight:900;
    text-shadow:0 1px 2px rgba(0,0,0,.5);
}
.promo-color-swatch:hover { transform:scale(1.1); }

.promo-etiqueta-options { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.promo-etiqueta-chip {
    padding:5px 12px; border-radius:20px; border:1.5px solid #333; background:transparent;
    color:#aaa; font-size:.76rem; font-weight:600; cursor:pointer; font-family:inherit; transition:all .18s;
}
.promo-etiqueta-chip.selected, .promo-etiqueta-chip:hover { border-color:#ff9800; color:#ff9800; background:rgba(255,152,0,.1); }

.promo-save-btn {
    width:100%; padding:13px; background:linear-gradient(135deg,#ff9800,#f44336);
    color:#fff; border:none; border-radius:10px; font-size:.95rem; font-weight:800;
    cursor:pointer; font-family:inherit; margin-top:10px; letter-spacing:.5px;
    display:flex; align-items:center; justify-content:center; gap:8px;
    transition:filter .2s, transform .2s; text-transform:uppercase;
}
.promo-save-btn:hover { filter:brightness(1.1); transform:scale(1.01); }
.promo-save-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

body.admin-mode #promo-section,
body.helper-mode #promo-section { display:block !important; }

/* ── Bloque SEPARACIÓN (preventa) ── */
.promo-separacion-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 8px 10px 6px;
    margin-bottom: 10px;
    backdrop-filter: blur(6px);
    text-align: center;
}
.promo-separacion-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ce93d8;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.promo-separacion-monto {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(206,147,216,0.8), 0 0 40px rgba(206,147,216,0.4);
    animation: sepMonto 2s ease-in-out infinite alternate;
}
@keyframes sepMonto {
    from { transform: scale(1);    text-shadow: 0 0 20px rgba(206,147,216,0.8); }
    to   { transform: scale(1.06); text-shadow: 0 0 30px rgba(206,147,216,1), 0 0 50px rgba(206,147,216,0.5); }
}

/* ── Ribbon PREVENTA ── */
.promo-card.preventa .promo-ribbon { background:linear-gradient(90deg,#7b1fa2,#1565c0); box-shadow:0 2px 10px rgba(123,31,162,.6); }
.promo-card.preventa .promo-cta    { background:linear-gradient(135deg,#7b1fa2,#1565c0); }
.promo-card.preventa               { box-shadow:0 0 0 1.5px rgba(123,31,162,.5), 0 14px 40px rgba(0,0,0,.55); }

/* Selector OFERTA / PREVENTA en el modal */
.promo-tipo-selector {
    display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:4px;
}
.promo-tipo-btn {
    padding:14px 8px; border-radius:12px; border:2px solid #333; background:transparent;
    color:#888; font-family:inherit; font-size:.82rem; font-weight:700; cursor:pointer;
    display:flex; flex-direction:column; align-items:center; gap:6px;
    transition:all .2s; text-transform:uppercase; letter-spacing:.5px;
}
.promo-tipo-btn i { font-size:1.4rem; }
.promo-tipo-btn.selected.oferta  { border-color:#ff9800; color:#ff9800; background:rgba(255,152,0,.1); }
.promo-tipo-btn.selected.preventa{ border-color:#9c27b0; color:#ce93d8; background:rgba(156,39,176,.1); }

