/* 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: #0FA958;
    color: white;
    border-color: #0FA958;
}

.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: #0FA958;
    color: white;
    flex: 2;
}

.checkout-next-btn:hover {
    background: #0B8848;
}

.checkout-complete-btn {
    background: linear-gradient(135deg, #0B0B0C, #26282E);
    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: #0FA958;
    background: #f8f9fa;
}

.shipping-option input[type="radio"]:checked + label {
    border-color: #0FA958;
    background: #e8f5e9;
}

.shipping-option label i {
    font-size: 1.5rem;
    color: #0FA958;
    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: #0B0B0C;
    background: #f0f4ff;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #0B0B0C;
    background: #eef2ff;
    box-shadow: 0 0 0 1px #0B0B0C;
}

.payment-option label i {
    font-size: 1.2rem;
    color: #0B0B0C;
}


.payment-badge-secure {
    margin-left: auto;
    font-size: 0.65rem;
    color: #0FA958;
    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: #0B0B0C;
    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: #0B0B0C;
    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: #0FA958;
}

/* Botón de comprar por la web en el carrito */
.checkout-web-button {
    background: var(--vx-tinta);
    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: #2A2C31;
}

.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(255, 255, 255, .92);
    color: #B3261E;
    border: 1px solid var(--vx-linea);
    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 .15s, border-color .15s, opacity .15s;
    opacity: 0;
}

.card:hover .delete-product-btn {
    opacity: 1;
}

.delete-product-btn:hover {
    background: #FCEFEE;
    border-color: #B3261E;
}

/* 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(255, 255, 255, .92);
    color: var(--vx-texto);
    border: 1px solid var(--vx-linea);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: background .15s, border-color .15s, opacity .15s;
    opacity: 0;
}

.card:hover .edit-product-btn {
    opacity: 1;
}

.edit-product-btn:hover {
    background: #fff;
    border-color: var(--vx-tinta);
}

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: var(--vx-blanco);
    color: var(--vx-texto);
    border: 1px solid #D4D4D1;
    border-radius: var(--vx-radio-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    gap: 6px;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}
body.admin-mode .hide-product-btn,
body.helper-mode .hide-product-btn {
    display: flex;
}
.hide-product-btn:hover {
    background: var(--vx-papel);
    border-color: var(--vx-tinta);
}
.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: var(--vx-tinta);
    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 {
    /* ===== MARCA VICIUS — negro de imprenta + un solo acento ===== */
    --vx-tinta:       #0B0B0C;   /* negro de marca, nunca #000 */
    --vx-tinta-2:     #17181B;   /* superficie oscura */
    --vx-tinta-3:     #26282E;   /* borde sobre oscuro */
    --vx-papel:       #F2F2F0;   /* fondo de pagina */
    --vx-blanco:      #FFFFFF;
    --vx-texto:       #1D1E22;
    --vx-gris:        #6C7078;   /* texto secundario */
    --vx-gris-claro:  #9AA0A8;
    --vx-linea:       #E3E3E1;
    --vx-verde:       #0FA958;   /* UNICO acento: precio, activo, WhatsApp */
    --vx-verde-osc:   #0B8848;
    --vx-verde-luz:   rgba(15, 169, 88, 0.10);

    --vx-sombra:      0 1px 2px rgba(11,11,12,.05), 0 10px 24px -14px rgba(11,11,12,.22);
    --vx-sombra-alta: 0 2px 4px rgba(11,11,12,.06), 0 18px 34px -16px rgba(11,11,12,.28);
    --vx-radio:       14px;
    --vx-radio-sm:    9px;
    --vx-fuente:      'Archivo', 'Helvetica Neue', Arial, sans-serif;

    /* nombres antiguos, mapeados a la marca */
    --color-fondo: var(--vx-papel);
    --color-header-footer: var(--vx-tinta);
    --color-promo: var(--vx-verde);
    --color-mayor: var(--vx-tinta);
    --color-whatsapp: var(--vx-verde);
    --color-sombra: rgba(11, 11, 12, 0.10);
    --color-accent: var(--vx-verde);
    --color-border: var(--vx-linea);
    --color-text: var(--vx-texto);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--vx-fuente);
    font-variation-settings: 'wdth' 100;
    margin: 0;
    padding: 0;
    color: var(--vx-texto);
    background-color: var(--vx-papel);
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

/* Titulos: Archivo ancho, apretado de tracking. La voz del logo. */
h1, h2, h3, .vx-display {
    font-variation-settings: 'wdth' 112;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

:where(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--vx-verde);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enlace de salto para teclado */
.vx-skip {
    position: absolute; left: -9999px; top: 0; z-index: 3000;
    background: var(--vx-tinta); color: #fff; padding: 10px 16px;
    font-size: .8rem; font-weight: 700; border-radius: 0 0 var(--vx-radio-sm) 0;
}
.vx-skip:focus { left: 0; }

/* HEADER */
header {
    background: var(--vx-tinta);
    padding: 7px 12px;
    border-bottom: 1px solid var(--vx-tinta-3);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

/* 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: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.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: transparent;
    color: #fff;
    border: 1px solid var(--vx-tinta-3);
    width: 38px;
    height: 38px;
    border-radius: var(--vx-radio-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.menu-toggle-btn:hover {
    background: var(--vx-tinta-2);
    border-color: #3A3D45;
}
.menu-toggle-btn:active { transform: scale(.95); }

.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: 34px;
    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: 32px;
    }

    .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;
    }
}

/* BUSCADOR - barra sticky debajo del header (es un <form>: sin margen propio) */
.header-search {
    position: sticky;
    top: 52px;
    z-index: 999;
    background: var(--vx-tinta);
    margin: 0;
    padding: 2px 12px 12px;
    display: flex;
    align-items: center;
}

/* Buscador grande en el celular (14-10-2026). Era de 37px con letra de
   13.6px: en el iPhone, con menos de 16px, la pagina se acerca sola al tocar
   el campo y queda descuadrada. Ademas el navegador ponia su propia "x" azul
   junto a la nuestra (dos "x"). Ahora: 48px, 16px y una sola "x". */
.header-search #search-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 50px 0 44px;
    border-radius: 10px;
    border: 1px solid var(--vx-tinta-3);
    background: var(--vx-tinta-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239AA0A8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--vx-fuente);
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, background-color .2s;
}

.header-search #search-input::-webkit-search-cancel-button,
.header-search #search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    display: none;
}

.header-search #search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.header-search #search-input:focus {
    border-color: var(--vx-verde);
    background-color: #1D1F24;
    outline: none;
}

.header-search .search-clear-button {
    position: absolute;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    font-size: 1rem;
    line-height: 40px;
    text-align: center;
}

@media (min-width: 600px) {
    /* El top y el padding de .header-search para 600-1023px de ancho estan
       en la regla de mas abajo, junto a "BUSCADOR PEGADO AL BAJAR", donde
       se calculan contra la altura real de la cabecera en ese ancho (aqui
       quedaban desincronizados y dejaban un hueco). Solo queda el estilo
       del input, que si aplica en todo este rango. */
    /* El campo mide lo mismo que en el telefono (48px y letra de 16px). */
}

/* 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, #0B0B0C 0%, #26282E 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: #0B0B0C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 11, 12, 0.2);
}

.ubicacion-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #0B0B0C;
    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: #0B0B0C;
    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;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slides-carousel.hidden {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

/* Mas bajo: los productos tienen que asomar en la primera pantalla */
.slides-container {
    position: relative;
    width: 100%;
    height: 205px;
    border-radius: 0;
    overflow: hidden;
}

@media (min-width: 600px) {
    .slides-container { height: 285px; }
}

@media (min-width: 1024px) {
    .slides-container { height: 355px; }
}

.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 {
    background: var(--vx-tinta);
    border-top: 1px solid var(--vx-tinta-3);
    border-bottom: 1px solid var(--vx-tinta-3);
    height: 76px;
    overflow: visible;
    clip-path: inset(-220px 0px 0px 0px);
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
}
@media (max-width: 1023px) {
    .brands-scroll-bar::before,
    .brands-scroll-bar::after {
        display: none;
    }
    .brand-scroll-btn {
        height: 50px !important;
        width: 88px !important;
        border-radius: var(--vx-radio-sm);
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transition: opacity .15s !important;
    }
    .brand-scroll-btn:active { opacity: .55; }
}

@media (min-width: 1024px) {
    .brands-scroll-bar { height: 92px; }
    .brand-scroll-btn { width: 124px; height: 64px; }
}

.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 {
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 12px 12px;
    max-width: 1440px;
    margin: 0 auto;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: 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.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--vx-gris);
    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, rgba(242,242,240,0), var(--vx-papel) 70%);
    color: var(--vx-gris-claro);
    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: flex-start; padding: 26px 20px 14px; }
}
.tipo-filter-btn {
    background: var(--vx-blanco);
    color: var(--vx-texto);
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .18s, color .18s, border-color .18s, transform .12s;
    box-shadow: none;
}
.tipo-filter-btn:hover {
    border-color: var(--vx-gris-claro);
    background: #FAFAF8;
}
.tipo-filter-btn:active { transform: scale(.97); }
.tipo-filter-btn.active {
    background: var(--vx-tinta);
    color: #fff;
    border-color: var(--vx-tinta);
}

/* ── Marca filter bar ── */
.marca-filter-bar {
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    padding: 10px 16px 12px;
}
.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: #0FA958; color: #0FA958; }
.marca-filter-btn.active {
    background: #0FA958;
    color: #fff;
    border-color: #0FA958;
}
@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: 104px;
    height: 56px;
    margin: 0 6px;
    border-radius: var(--vx-radio-sm);
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    cursor: pointer;
    font-family: var(--vx-fuente);
    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: contain;
    padding: 6px 10px;
    border-radius: var(--vx-radio-sm);
    /* Los logotipos ajenos en gris: dejan de competir con la marca */
    filter: grayscale(1) contrast(1.02);
    opacity: .78;
    transition: filter .25s ease, opacity .25s ease;
}

.brand-scroll-btn:hover img,
.brand-scroll-btn:focus-visible img { filter: none; 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: #0FA958;
    border-color: #0FA958;
    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: 1440px;
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 600px) {
    main { padding: 0 20px; }
}

/* REJILLA DE PRODUCTOS - 2 columnas en telefono, nunca 3 (se rompian los titulos) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 4px 0 96px;
}

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        padding: 8px 0 96px;
    }
}

@media (min-width: 900px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1280px) {
    .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
}

/* 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 #0B0B0C;
    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: var(--vx-blanco);
    border-radius: var(--vx-radio);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--vx-linea);
    position: relative;
    transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vx-sombra-alta);
    border-color: #D5D6D3;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--vx-blanco);
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid var(--vx-linea);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
}

.card:hover .product-image { transform: scale(1.05); }

/* Chip de ahorro por mayor: el unico sitio donde el verde toca la tarjeta */
.price-save {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: 2px;
    color: var(--vx-verde-osc);
    font-size: .68rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    order: 3;
}

@media (min-width: 600px) {
    .price-save { font-size: .76rem; }
}

.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; }
}

@media (min-width: 600px) {
    .product-image { padding: 16px; }
    .card-img-nav { width: 28px; font-size: 0.7rem; }
}

.product-info {
    padding: 10px 11px 11px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 600px) {
    .product-info { padding: 14px 15px 15px; gap: 3px; }
}

/* Titulo: dos lineas, sin recorte y sin marquesina */
.card h3 {
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.25;
    font-weight: 700;
    font-variation-settings: 'wdth' 108;
    letter-spacing: -0.01em;
    color: var(--vx-texto);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    order: 2;
}

.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.95rem; line-height: 1.28; }
}

/* Marca + tipo pasan a ser antetitulo en versalitas */
.product-brand {
    font-size: 0.54rem;
    color: var(--vx-gris);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0;
    line-height: 1.2;
    order: 1;
}

@media (min-width: 600px) {
    .product-brand { font-size: 0.62rem; }
}

.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: 7px 0 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    order: 3;
}

/* Precio principal: negro, grande, cifras tabulares */
.price-row-normal {
    color: var(--vx-tinta);
    font-weight: 800;
    font-size: 1.02rem;
    font-variation-settings: 'wdth' 105;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    transition: color .3s;
}

/* Precio por mayor: se distingue por jerarquia, no por otro color */
.price-row-live {
    color: var(--vx-gris);
    font-weight: 600;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    transition: color .3s;
}

@media (min-width: 600px) {
    .price-row-normal { font-size: 1.25rem; }
    .price-row-live { font-size: 0.8rem; }
}

.small-price-label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--vx-gris-claro);
    margin-left: 5px;
}

@media (min-width: 600px) {
    .small-price-label { font-size: 0.56rem; }
}

/* Destello al cambiar de precio (lo dispara el JS de promos en vivo) */
.shining-promo {
    color: var(--vx-verde-osc);
    transform: scale(1.04);
}

.shining-mayor {
    color: var(--vx-texto);
    font-weight: 800;
}

/* CONTROLES DEL CARRITO */
.cart-controls {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    align-items: center;
    width: 100%;
    order: 4;
}

@media (min-width: 600px) {
    .cart-controls { gap: 8px; padding-top: 12px; }
}

.qty-selector {
    display: flex;
    background: var(--vx-papel);
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    flex: 1.1;
    height: 32px;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 600px) {
    .qty-selector { height: 38px; }
}

.minus, .plus {
    border: none;
    background: none;
    width: 26px;
    height: 100%;
    color: var(--vx-texto);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background .18s, color .18s;
}

.minus:hover, .plus:hover { background: #E7E7E4; }
.minus:active, .plus:active { background: #DCDCD8; }

@media (min-width: 600px) {
    .minus, .plus { width: 34px; font-size: 1.15rem; }
}

.qty-display {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
    .qty-display { font-size: 0.95rem; }
}

/* Boton anadir: negro de marca. El verde queda para WhatsApp. */
.add-to-cart-btn {
    background: var(--vx-tinta);
    color: #fff;
    border: none;
    border-radius: var(--vx-radio-sm);
    flex: 0.85;
    height: 32px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
    transition: background .18s, transform .12s;
}

.add-to-cart-btn:hover { background: #2A2C31; }
.add-to-cart-btn:active { transform: scale(.96); }

@media (min-width: 600px) {
    .add-to-cart-btn { height: 38px; font-size: 0.9rem; padding: 0 10px; }
}

/* 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 (todas las páginas) — rehecho el 14-10-2026 ─────────────────
   Mismo idioma que el resumen del checkout: lista con línea fina, desglose y
   un solo botón negro. En el celular sube desde abajo; desde 768px es un panel
   a la derecha, a toda altura, para que no parezca otro modal en medio de la
   tienda. Antes había dos capas: la base (con el botón web en azul) y otra
   más abajo que la tapaba con !important. Ahora es una sola. */
.cart-overlay {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(11, 11, 12, .45);
    align-items: flex-end; justify-content: center;
}
.cart-overlay.open { display: flex; }
.cart-sheet {
    position: relative;
    width: 100%; max-width: 520px; max-height: 88dvh;
    background: var(--vx-blanco); color: var(--vx-texto);
    border-radius: 16px 16px 0 0;
    padding: 0 20px;
    overflow-y: auto; overscroll-behavior: contain;
    animation: vxCarritoSube .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes vxCarritoSube { from { transform: translateY(100%); } to { transform: none; } }
@keyframes vxCarritoEntra { from { transform: translateX(100%); } to { transform: none; } }
@media (min-width: 768px) {
    .cart-overlay { justify-content: flex-end; align-items: stretch; }
    .cart-sheet {
        max-width: 420px; max-height: none; height: 100%;
        border-radius: 0; padding: 0 24px;
        box-shadow: -24px 0 48px -32px rgba(11, 11, 12, .5);
        animation-name: vxCarritoEntra;
    }
}

.cart-sheet-header {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 -20px; padding: 18px 20px 14px;
    background: var(--vx-blanco);
    border-bottom: 1px solid var(--vx-linea);
}
@media (min-width: 768px) {
    .cart-sheet-header { margin: 0 -24px; padding: 22px 24px 16px; }
}
.cart-sheet-header h3 {
    margin: 0; font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em;
    font-variation-settings: 'wdth' 100;
}
.cart-sheet-header h3 i { display: none; }  /* producto.html y usuario.html aún traen el ícono */
.cart-sheet-cuenta { color: var(--vx-gris); font-weight: 500; }
.cart-close-btn {
    width: 36px; height: 36px; margin-right: -8px; flex: none;
    display: grid; place-items: center;
    background: none; border: none; border-radius: var(--vx-radio-sm);
    font-size: 1.6rem; line-height: 1; color: var(--vx-texto); cursor: pointer;
    transition: background .15s;
}
.cart-close-btn:hover { background: var(--vx-papel); }

.cart-item {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px; align-items: start;
    padding: 14px 0; border-top: 1px solid #EEEEEC;
}
.cart-item:first-child { border-top: none; }
.cart-item img,
.cart-item-sinfoto {
    width: 56px; height: 56px; display: block;
    object-fit: contain; background: var(--vx-papel);
    border-radius: var(--vx-radio-sm);
}
.cart-item-info { min-width: 0; }
.cart-item-name {
    font-size: .86rem; font-weight: 600; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item-meta {
    margin-top: 3px; font-size: .76rem; color: var(--vx-gris);
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.cart-tag-mayor {
    background: var(--vx-verde-luz); color: var(--vx-verde-osc);
    font-weight: 600; font-size: .68rem; padding: 2px 7px; border-radius: 5px;
}
.cart-item-controles { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cart-stepper {
    display: inline-flex; align-items: center; height: 32px; overflow: hidden;
    background: var(--vx-blanco); border: 1px solid #D4D4D1; border-radius: var(--vx-radio-sm);
}
.cart-stepper button {
    width: 32px; height: 100%; border: none; background: none; cursor: pointer;
    font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--vx-texto);
    transition: background .15s;
}
.cart-stepper button:hover { background: var(--vx-papel); }
.ci-qty {
    min-width: 24px; text-align: center;
    font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-item-remove {
    background: none; border: none; padding: 4px 2px; cursor: pointer;
    font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--vx-gris);
    text-decoration: underline; text-underline-offset: 3px;
}
.cart-item-remove:hover { color: var(--vx-texto); }
.cart-item-empuje { margin: 8px 0 0; font-size: .76rem; line-height: 1.35; font-weight: 600; color: var(--vx-verde-osc); }
.cart-item-price { font-size: .9rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.cart-sheet-actions {
    position: sticky; bottom: 0; z-index: 2;
    display: flex; flex-direction: column;
    margin: 0 -20px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--vx-blanco); border-top: 1px solid var(--vx-linea);
}
@media (min-width: 768px) {
    .cart-sheet-actions { margin: 0 -24px; padding: 16px 24px 24px; }
}
.cart-filas { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cart-fila {
    display: flex; justify-content: space-between; gap: 12px; margin: 0;
    font-size: .86rem; color: var(--vx-gris);
}
.cart-fila > span:last-child { color: var(--vx-texto); text-align: right; font-variant-numeric: tabular-nums; }
.cart-ahorro, .cart-ahorro strong { color: var(--vx-verde-osc); font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-total-row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--vx-linea);
    font-weight: 700;
}
.cart-total-row span:last-child { font-size: 1.35rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
/* producto.html y usuario.html no traen desglose: ahí el total va primero y sin segunda línea */
.cart-sheet-actions > .cart-total-row:first-child { border-top: none; padding-top: 0; }
.csa-web, .csa-wsp {
    width: 100%; height: 50px; padding: 0 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: var(--vx-radio-sm); cursor: pointer;
    font-family: inherit; font-size: .95rem; font-weight: 700; color: #fff;
    transition: background .15s, transform .1s;
}
.csa-web { background: var(--vx-tinta); }
.csa-web:hover { background: #2A2C31; }
.csa-wsp { background: var(--vx-verde); }
.csa-wsp:hover { background: var(--vx-verde-osc); }
.csa-web:active, .csa-wsp:active { transform: translateY(1px); }
.csa-wsp + .csa-web { margin-top: 8px; }
.cart-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 44px 8px; text-align: center; font-size: .86rem; color: var(--vx-gris);
}
.cart-empty strong { font-size: .98rem; color: var(--vx-texto); }
.cart-empty i { display: none; }
/* Con el carrito abierto, el aviso de "Agregado" sobra (el producto ya se ve
   en la lista) y tapaba el botón de pagar. */
body:has(.cart-overlay.open) .toast-notification { display: none; }

/* 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; 
}

/* 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: #0B8848;
}

/* FOOTER FIJO (WhatsApp y Carrito) */
/* Barra fija: cristal oscuro, del color de la marca */
.fixed-footer {
    background: rgba(11, 11, 12, 0.90);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border-top: 1px solid var(--vx-tinta-3);
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -10px 30px -18px rgba(0,0,0,.6);
    z-index: 1000;
}

@media (min-width: 600px) {
    .fixed-footer { padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px)); }
}

.footer-content {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .footer-content { gap: 10px; max-width: 640px; }
}

#whatsapp-button {
    background: var(--vx-verde);
    color: #fff;
    border: none;
    border-radius: var(--vx-radio-sm);
    flex: 1;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: .01em;
    cursor: pointer;
    padding: 10px 8px;
    transition: background .2s, transform .12s;
    height: 46px;
}

@media (min-width: 600px) {
    #whatsapp-button { font-size: 0.92rem; padding: 12px; height: 48px; }
}

#whatsapp-button:hover { background: #12BC62; }
#whatsapp-button:active { transform: scale(.985); }

.cart-toggle-footer {
    background: var(--vx-tinta-2);
    color: #fff;
    border: 1px solid var(--vx-tinta-3);
    border-radius: var(--vx-radio-sm);
    width: 52px;
    height: 46px;
    position: relative;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background .2s, transform .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
}

@media (min-width: 600px) {
    .cart-toggle-footer { width: 56px; height: 48px; font-size: 1.15rem; }
}

.cart-toggle-footer:hover { background: #22242A; }
.cart-toggle-footer:active { transform: scale(.96); }

#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) */
/* ===== PIE: cierra la pagina en el negro de la marca ===== */
.info-footer {
    background: var(--vx-tinta);
    color: #B9BCC2;
    padding: 44px 20px 96px;
    border-top: none;
    margin: 44px 0 0;
}

.info-footer-content {
    max-width: 1440px;
    margin: 0 auto;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

@media (min-width: 760px) {
    .info-footer-content {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 44px 40px;
    }
}

.footer-col-titulo {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--vx-gris-claro);
    margin: 0 0 16px;
}

.footer-logo {
    height: 34px;
    width: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 14px;
}

.footer-lema {
    margin: 0 0 18px;
    font-size: .9rem;
    line-height: 1.55;
    color: #9BA0A8;
    max-width: 34ch;
}

.footer-shipping-info {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.footer-shipping-info p {
    margin: 0 0 14px;
    font-size: .86rem;
    line-height: 1.55;
    color: #9BA0A8;
}

.footer-shipping-info strong { color: #fff; font-weight: 700; }
.footer-horario { font-size: .8rem !important; }

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 11px 18px;
    background: var(--vx-tinta-2);
    border: 1px solid var(--vx-tinta-3);
    border-radius: var(--vx-radio-sm);
    font-variant-numeric: tabular-nums;
    transition: background .2s, border-color .2s;
}

.footer-phone:hover { background: #22242A; border-color: #3A3D45; transform: none; }

.footer-social {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--vx-radio-sm);
    background: var(--vx-tinta-2);
    color: #C9CCD2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid var(--vx-tinta-3);
    transition: background .2s, color .2s, transform .15s;
}

.footer-social a:hover {
    background: var(--vx-verde);
    border-color: var(--vx-verde);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0 0 20px;
}

@media (min-width: 600px) {
    .footer-links { flex-direction: column; justify-content: flex-start; }
}

.footer-links a,
.footer-links span {
    color: #9BA0A8 !important;
    font-size: .86rem;
    text-decoration: none !important;
    transition: color .18s;
    width: fit-content;
}

.footer-links a:hover,
.footer-links span:hover { color: #fff !important; }

.footer-legal {
    border-top: 1px solid var(--vx-tinta-3);
    padding-top: 22px;
}

@media (min-width: 760px) {
    .footer-legal { grid-column: 1 / -1; }
}

.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: var(--vx-tinta);
    color: white;
    border: none;
    border-radius: var(--vx-radio-sm);
    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: #2A2C31;
}

.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: #0B0B0C;
    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: #0FA958;
    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: #0B0B0C;
    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: #0FA958;
}

.venta-check-label {
    font-weight: 600;
    color: #999;
    white-space: nowrap;
}

.venta-check-inline input:checked ~ .venta-check-label {
    color: #0FA958;
}

.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: #0B0B0C;
    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;
}

/* PANEL DE CONTROL (menú admin): una lista con nombre y para qué sirve,
   como los ajustes de un teléfono. Sin emojis, sin íconos de adorno y sin
   botones grises que saltan al pasar el mouse. */
.admin-menu-options { display: flex; flex-direction: column; margin-top: 4px; }

.admin-menu-grupo {
    margin: 22px 0 4px; font-size: .78rem; font-weight: 600; color: var(--vx-gris);
}
.admin-menu-grupo:first-child { margin-top: 10px; }

.admin-menu-btn {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%; padding: 13px 36px 13px 2px;
    background: none; border: none; border-bottom: 1px solid var(--vx-linea);
    font-family: inherit; text-align: left; color: var(--vx-texto); cursor: pointer;
    transition: background .15s;
}
.admin-menu-btn strong { font-size: .95rem; font-weight: 600; }
.admin-menu-btn small { font-size: .8rem; line-height: 1.35; color: var(--vx-gris); }
.admin-menu-btn::after {
    content: "\203A"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-size: 1.35rem; line-height: 1; color: var(--vx-gris-claro);
}
.admin-menu-btn.admin-menu-externo::after { content: "\2197"; font-size: 1rem; }
.admin-menu-btn:hover { background: var(--vx-papel); }
.admin-menu-btn:hover::after { color: var(--vx-texto); }

/* 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: 14px 16px;
    background: var(--vx-papel);
    color: var(--vx-texto);
    border-radius: 10px;
}

.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.8rem;
    color: var(--vx-gris);
    margin-top: 4px;
}

.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: #0B0B0C;
}

.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: #0B0B0C;
}

.user-item.banned {
    background: #ffe6e6;
    border-color: #ffcccc;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B0B0C 0%, #26282E 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: #0FA958;
    color: white;
}

.user-unban-btn:hover {
    background: #0B8848;
}

.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(--vx-tinta);
    color: white;
    border: none;
    border-radius: var(--vx-radio-sm);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.add-slide-btn:hover {
    background: #2A2C31;
}

.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: var(--vx-blanco);
    color: var(--vx-texto);
    border: 1px solid #D4D4D1;
}

.slide-edit-btn:hover {
    background: var(--vx-papel);
}

.slide-delete-btn {
    background: var(--vx-blanco);
    color: #B3261E;
    border: 1px solid #D4D4D1;
}

.slide-delete-btn:hover {
    background: #FCEFEE;
}

/* FORMULARIO DE SLIDE */
.slide-form-content {
    max-width: 550px;
}

.slide-dimensions-info {
    background: linear-gradient(135deg, #0B0B0C 0%, #26282E 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(11, 11, 12, 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: var(--vx-tinta);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--vx-radio-sm);
    box-shadow: 0 12px 28px -14px rgba(11,11,12,.55);
    z-index: 3000;
    font-weight: 600;
    font-size: 0.85rem;
    max-width: calc(100vw - 32px);
    text-align: center;
}

/* 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(--vx-fuente); 
    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 (solo el #cart-modal heredado; la hoja nueva va arriba) */
.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
}

#cart-modal .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-modal .cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

#cart-modal .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-modal .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: #0B0B0C;
}

.auth-tab:hover {
    color: #0B0B0C;
}

.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: var(--vx-verde-osc);
    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: var(--vx-verde-osc);
    background: #fff;
}
#btn-save-profile {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--vx-verde-osc), #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: var(--vx-tinta); 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: #0FA958; 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: #0FA958; 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 var(--vx-verde-osc); }
.notif-leida { background: #f8f9fa; border-left: 3px solid #ddd; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--vx-tinta); 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: var(--vx-tinta);
    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(--vx-fuente);
    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: var(--vx-tinta);
    box-shadow: 0 0 0 3px rgba(11,11,12,.07);
    background: white;
}

.auth-modal-body .save-product-btn {
    width: 100%;
    padding: 13px;
    background: var(--vx-tinta);
    color: white;
    border: none;
    border-radius: var(--vx-radio-sm);
    font-family: var(--vx-fuente);
    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; flex-wrap: wrap; gap: 8px 12px;
    margin-bottom: 14px; padding: 0 0 10px;
    background: none;
    border-bottom: 2px solid var(--vx-tinta);
    border-radius: 0;
}
.promo-section-title {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 1.15rem; font-weight: 800; color: var(--vx-tinta);
    font-variation-settings: 'wdth' 112;
    letter-spacing: -0.01em; text-transform: none;
}
/* La llama se queda como punto de acento, sin brincar */
.promo-flame {
    font-size: .5rem; display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--vx-verde); text-indent: -999px; overflow: hidden;
    align-self: center;
}
.promo-section-sub {
    margin-left: auto;
    font-size: 0.7rem; color: var(--vx-gris); font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
}

.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; }

/* =====================================================================
   TARJETA DE PROMOCIÓN
   La foto se ve entera, sobre el papel de la marca y sin ningún velo
   encima: lo único que se le pone es el chip del descuento. El texto va
   debajo, sobre el negro, que es donde de verdad se lee un precio.
   ===================================================================== */
.promo-card {
    width: 100%;
    height: auto;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    background: var(--vx-tinta);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 18px 44px -22px rgba(11,11,12,.55);
    transition: transform .3s cubic-bezier(.25,.8,.25,1), box-shadow .3s;
    isolation: isolate;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 54px -22px rgba(11,11,12,.62);
}

.promo-foto {
    position: relative;
    flex: 1 1 auto;
    min-height: 140px;
    background: var(--vx-papel);
    overflow: hidden;
}

/* Absoluta a proposito: si la imagen ocupara sitio en el flujo, su alto
   natural estiraria la tarjeta a 600px en vez de repartirse lo que sobra. */
.promo-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.promo-card:hover .promo-foto img { transform: scale(1.05); }

.promo-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--vx-verde);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 16px -6px rgba(11,11,12,.55);
}

.promo-chip.preventa {
    background: var(--vx-tinta);
    padding: 7px 12px;
    font-size: .64rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.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 {
    flex: 0 0 auto;
    padding: 14px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.promo-kicker {
    margin: 0;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8B9099;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-prices-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }

.promo-new {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.promo-orig { font-size: .84rem; color: #8B9099; text-decoration: line-through; }
.promo-nota { font-size: .72rem; color: #8B9099; }

/* El ahorro es de las pocas cosas que van en verde */
.promo-ahorro {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15,169,88,.18);
    color: #3FD383;
    font-size: .72rem;
    font-weight: 700;
}

.promo-countdown { display: flex; align-items: center; gap: 6px; font-size: .68rem; color: #8B9099; }
.promo-countdown-timer { display: flex; align-items: center; gap: 3px; }
.promo-countdown-block {
    background: var(--vx-tinta-2);
    border: 1px solid var(--vx-tinta-3);
    border-radius: 5px;
    padding: 3px 6px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    min-width: 26px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.promo-countdown-sep { font-weight: 700; color: #4A4E57; }
.promo-expirada { font-size: .72rem; font-weight: 700; color: #FF6B6B; }

.promo-cta {
    margin-top: 2px;
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: var(--vx-radio-sm);
    background: var(--vx-verde);
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .18s, transform .12s;
}
.promo-cta:hover  { background: #12BC62; }
.promo-cta:active { transform: scale(.985); }

.promo-add-btn {
    display: none; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    border: 1px dashed var(--vx-gris-claro); background: transparent; color: var(--vx-tinta);
    font-family: inherit; font-size: .74rem; font-weight: 700; line-height: 1;
    white-space: nowrap; cursor: pointer;
    transition: border-color .18s, background .18s;
}
body.admin-mode .promo-add-btn, body.helper-mode .promo-add-btn { display: inline-flex; }
.promo-add-btn:hover { border-color: var(--vx-tinta); background: var(--vx-blanco); }
.promo-add-btn i { font-size: .72rem; }

/* Sin tarjetas (solo lo ve el admin) la tira no ocupa sitio */
.promo-scroll-container:empty { display: none; }

/* Promocion vencida: solo la ve el admin, apagada y sin boton de comprar */
.promo-card.promo-vencida { opacity: .62; filter: grayscale(1); }
.promo-card.promo-vencida:hover { transform: none; }
.promo-card.promo-vencida:hover .promo-foto img { transform: none; }
.promo-chip.vencida { background: var(--vx-gris); }
.promo-card.promo-vencida .promo-cta,
.promo-card.promo-vencida .promo-cta:hover {
    background: var(--vx-tinta-3); color: #8B9099; cursor: default;
}

.promo-section::after {
    content:''; display:block; height:1px;
    background: var(--vx-linea);
    margin-top:20px;
}

/* ── MODAL AÑADIR PROMOCIÓN ── */
.add-promo-modal-content { max-width:500px; }
.promo-input-dark {
    width:100%; height:46px; padding:0 14px; background:var(--vx-blanco); color:var(--vx-texto);
    border:1px solid #D4D4D1; border-radius:var(--vx-radio-sm); font-family:inherit;
    font-size:.92rem; box-sizing:border-box; transition:border-color .15s, box-shadow .15s;
}
.promo-input-dark:focus { outline:none; border-color:var(--vx-tinta); box-shadow:0 0 0 3px rgba(11,11,12,.07); }
.promo-input-dark option { background:var(--vx-blanco); }

.promo-preview-box {
    display:flex; gap:12px; align-items:center;
    background:var(--vx-papel); border:1px solid var(--vx-linea); border-radius:10px;
    padding:10px 12px; margin-bottom:14px;
}
.promo-preview-box img { width:52px; height:52px; object-fit:contain; border-radius:7px; flex-shrink:0; background:var(--vx-blanco); }
#promo-preview-nombre { font-size:.86rem; font-weight:700; color:var(--vx-texto); }
#promo-preview-precio { font-size:.76rem; color:var(--vx-gris); 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:6px 12px; border-radius:var(--vx-radio-sm); border:1px solid var(--vx-linea); background:var(--vx-blanco);
    color:var(--vx-gris); font-size:.8rem; font-weight:600; cursor:pointer; font-family:inherit; transition:border-color .15s, color .15s;
}
.promo-etiqueta-chip:hover { border-color:#BDBDB9; color:var(--vx-texto); }
.promo-etiqueta-chip.selected { border-color:var(--vx-tinta); color:var(--vx-texto); box-shadow:inset 0 0 0 1px var(--vx-tinta); }

.promo-save-btn {
    width:100%; height:50px; padding:0 16px; background:var(--vx-tinta);
    color:#fff; border:none; border-radius:var(--vx-radio-sm); font-size:.95rem; font-weight:700;
    cursor:pointer; font-family:inherit; margin-top:10px;
    display:flex; align-items:center; justify-content:center; gap:8px;
    transition:background .15s, transform .1s;
}
.promo-save-btn:hover { background:#2A2C31; }
.promo-save-btn:active { transform:translateY(1px); }
.promo-save-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }

/* ── Bloque SEPARACIÓN (preventa) ── */
/* Preventa: lo que hay que adelantar para separarlo */
.promo-separacion-block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: var(--vx-tinta-2);
    border: 1px solid var(--vx-tinta-3);
    border-radius: var(--vx-radio-sm);
}
.promo-separacion-label {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8B9099;
}
.promo-separacion-monto {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* 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 10px; border-radius:10px; border:1px solid var(--vx-linea); background:var(--vx-blanco);
    color:var(--vx-gris); font-family:inherit; font-size:.9rem; font-weight:700; cursor:pointer;
    display:flex; flex-direction:column; align-items:center; gap:3px;
    transition:border-color .15s, box-shadow .15s, color .15s;
}
.promo-tipo-btn i { display:none; }
.promo-tipo-btn:hover { border-color:#BDBDB9; }
.promo-tipo-btn.selected { border-color:var(--vx-tinta); box-shadow:inset 0 0 0 1px var(--vx-tinta); color:var(--vx-texto); }

/* =====================================================================
   REDISENO 2026 - piezas nuevas de la portada
   ===================================================================== */

/* Tira legal: una linea, sin romper el pliegue en telefono */
.vx-legal-bar {
    background: var(--vx-tinta);
    border-bottom: 1px solid var(--vx-tinta-3);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    white-space: nowrap;
}

.vx-legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--vx-verde);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.vx-legal-dato {
    color: #8A8F97;
    font-size: .66rem;
    letter-spacing: .01em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vx-legal-dato strong { color: #D7DADF; font-weight: 600; }
.vx-legal-extra { display: none; }

@media (min-width: 900px) {
    .vx-legal-bar { gap: 22px; }
    .vx-legal-extra { display: inline; }
    .vx-legal-dato { font-size: .7rem; }
}

/* Banda de garantias bajo el carrusel */
.vx-beneficios {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--vx-linea);
    border-top: 1px solid var(--vx-linea);
    border-bottom: 1px solid var(--vx-linea);
    margin: 0;
}

@media (min-width: 900px) {
    .vx-beneficios { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.vx-beneficio {
    background: var(--vx-blanco);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px;
}

@media (min-width: 900px) {
    .vx-beneficio { padding: 18px 22px; justify-content: center; }
}

.vx-beneficio i {
    color: var(--vx-tinta);
    font-size: .95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.vx-beneficio div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.vx-beneficio strong {
    font-size: .76rem;
    font-weight: 700;
    color: var(--vx-texto);
    line-height: 1.25;
}

.vx-beneficio span {
    font-size: .68rem;
    color: var(--vx-gris);
    line-height: 1.3;
}

@media (min-width: 900px) {
    .vx-beneficio strong { font-size: .85rem; }
    .vx-beneficio span { font-size: .74rem; }
}

/* Pie: nota de pagos y letra legal */
.footer-payment {
    font-size: .8rem;
    color: #9BA0A8;
    margin: 0;
    line-height: 1.5;
}

.footer-payment strong { color: #D7DADF; font-weight: 600; }

.footer-legal-text {
    font-size: .7rem;
    line-height: 1.65;
    color: #70747B;
    margin: 0 0 14px;
    max-width: 92ch;
}

.footer-credits {
    font-size: .7rem;
    color: #70747B;
    margin: 0;
}

.footer-credits strong { color: #9BA0A8; font-weight: 600; }

/* La rejilla de productos respira antes del pie */
.main-content-area { padding-bottom: 8px; }

/* Esqueleto mientras la foto no ha entrado en pantalla (evita el alt roto) */
.product-image.lazy-img {
    color: transparent;
    font-size: 0;
    background: linear-gradient(100deg, #F2F2F0 30%, #E8E8E5 50%, #F2F2F0 70%);
    background-size: 220% 100%;
    animation: vxEsqueleto 1.5s ease-in-out infinite;
}

@keyframes vxEsqueleto {
    from { background-position: 120% 0; }
    to   { background-position: -120% 0; }
}

/* Quien pida menos movimiento, que no lo tenga */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Carrito sin productos: un hueco blanco no dice nada */
#cart-items-list:empty::after {
    content: "Todavía no has agregado productos. Elige lo que quieras del catálogo y aparecerá aquí.";
    display: block;
    padding: 26px 16px 22px;
    text-align: center;
    color: var(--vx-gris);
    font-size: .86rem;
    line-height: 1.55;
    max-width: 34ch;
    margin: 0 auto;
}


/* =====================================================================
   MECANICAS DE CATALOGO — precio, orden, conteo, sugerencias, compartir
   ===================================================================== */

.vx-controles {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 600px) {
    .vx-controles { padding: 0 20px; gap: 12px; }
}

.vx-controles-label {
    font-family: var(--vx-fuente);
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--vx-gris);
    flex-shrink: 0;
}

/* --- rangos de precio --- */
.vx-precio-fila {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.vx-precio-fila::-webkit-scrollbar { display: none; }

.vx-precio-btns { display: flex; gap: 7px; }

.vx-precio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: transparent;
    color: var(--vx-texto);
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    padding: 7px 12px;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, transform .12s;
}

.vx-precio-btn:hover { background: var(--vx-blanco); border-color: var(--vx-gris-claro); }
.vx-precio-btn:active { transform: scale(.97); }

.vx-precio-conteo {
    font-size: .68rem;
    font-weight: 700;
    color: var(--vx-gris);
    font-variant-numeric: tabular-nums;
}

.vx-precio-btn.active {
    background: var(--vx-tinta);
    border-color: var(--vx-tinta);
    color: #fff;
}

.vx-precio-btn.active .vx-precio-conteo { color: rgba(255,255,255,.6); }

/* --- conteo + orden --- */
.vx-resultados-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--vx-linea);
    padding-top: 11px;
}

.vx-conteo {
    font-family: var(--vx-fuente);
    font-size: .78rem;
    font-weight: 700;
    color: var(--vx-texto);
    font-variant-numeric: tabular-nums;
}

.vx-orden { display: flex; align-items: center; gap: 8px; }

.vx-orden-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    background-image: linear-gradient(45deg, transparent 50%, var(--vx-texto) 50%), linear-gradient(135deg, var(--vx-texto) 50%, transparent 50%);
    background-position: right 13px top 50%, right 8px top 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    color: var(--vx-texto);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 30px 7px 12px;
    cursor: pointer;
    transition: border-color .18s;
}

.vx-orden-select:hover { border-color: var(--vx-gris-claro); }

/* --- chips de filtros aplicados --- */
.vx-chips-activos { display: flex; flex-wrap: wrap; gap: 7px; }

.vx-chip-activo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--vx-tinta);
    color: #fff;
    border: none;
    border-radius: var(--vx-radio-sm);
    padding: 6px 10px;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}

.vx-chip-activo span { font-size: .95rem; line-height: 1; opacity: .65; }
.vx-chip-activo:hover { background: #2A2C31; }
.vx-chip-activo:hover span { opacity: 1; }

.vx-chip-limpiar {
    background: none;
    border: none;
    color: var(--vx-gris);
    font-family: inherit;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 6px 4px;
}

.vx-chip-limpiar:hover { color: var(--vx-texto); }

/* --- sin resultados --- */
.vx-sin-resultados {
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio);
    background: var(--vx-blanco);
    padding: 32px 22px 34px;
    text-align: center;
    margin: 8px 0 96px;
}

.vx-vacio-titulo {
    font-family: var(--vx-fuente);
    font-size: 1.05rem;
    font-weight: 800;
    font-variation-settings: 'wdth' 110;
    letter-spacing: -.015em;
    color: var(--vx-texto);
    margin: 0 0 8px;
}

.vx-vacio-texto {
    font-size: .88rem;
    line-height: 1.55;
    color: var(--vx-gris);
    max-width: 42ch;
    margin: 0 auto 20px;
}

.vx-vacio-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
}

.vx-boton-negro, .vx-boton-verde {
    border: none;
    border-radius: var(--vx-radio-sm);
    padding: 12px 20px;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .18s, transform .12s;
}

.vx-boton-negro { background: var(--vx-tinta); color: #fff; }
.vx-boton-negro:hover { background: #2A2C31; }
.vx-boton-verde { background: var(--vx-verde); color: #fff; }
.vx-boton-verde:hover { background: #12BC62; }
.vx-boton-negro:active, .vx-boton-verde:active { transform: scale(.97); }

/* --- sugerencias del buscador --- */
.vx-sugerencias {
    position: sticky;
    /* = top del buscador (52) + su alto (2 + 48 + 12) - 1 de solape.
       Si el buscador cambia de alto, esto tambien. */
    top: 113px;
    z-index: 998;
    background: var(--vx-tinta);
    border-bottom: 1px solid var(--vx-tinta-3);
    padding: 2px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 600px) {
    .vx-sugerencias { top: 100px; padding: 2px 18px 14px; }
}

.vx-sugerencias-titulo {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--vx-gris-claro);
}

.vx-sugerencias-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.vx-sugerencia {
    background: var(--vx-tinta-2);
    border: 1px solid var(--vx-tinta-3);
    color: #D7DADF;
    border-radius: var(--vx-radio-sm);
    padding: 7px 12px;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.vx-sugerencia:hover { background: #24262B; color: #fff; }

/* --- compartir producto --- */
.vx-share-btn {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 6;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--vx-linea);
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--vx-texto);
    font-size: .74rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s, background .18s;
}

.card:hover .vx-share-btn,
.vx-share-btn:focus-visible { opacity: 1; transform: translateY(0); }

.vx-share-btn:hover { background: #fff; border-color: var(--vx-gris-claro); }
.vx-share-btn:active { transform: scale(.92); }

/* En telefono no hay hover: el boton se queda puesto, mas discreto */
@media (hover: none) {
    .vx-share-btn { opacity: .82; transform: none; }
}

/* --- producto abierto desde un enlace compartido --- */
.card.vx-destacada {
    border-color: var(--vx-verde);
    box-shadow: 0 0 0 2px var(--vx-verde-luz), var(--vx-sombra-alta);
    animation: vxLatido 1.1s ease-out 2;
}

@keyframes vxLatido {
    0%, 100% { box-shadow: 0 0 0 2px var(--vx-verde-luz), var(--vx-sombra-alta); }
    50%      { box-shadow: 0 0 0 7px var(--vx-verde-luz), var(--vx-sombra-alta); }
}


/* =====================================================================
   PANTALLA GRANDE — la web deja de ser un celular estirado
   Todo el contenido se alinea a 1440 px con el truco de padding max(),
   asi los fondos siguen siendo de borde a borde.
   ===================================================================== */

@media (min-width: 1024px) {

    /* Tira legal, cabecera y buscador: alineados con el catalogo */
    .vx-legal-bar,
    header,
    .header-search,
    .vx-sugerencias {
        padding-left:  max(20px, calc((100% - 1440px) / 2));
        padding-right: max(20px, calc((100% - 1440px) / 2));
    }

    header { padding-top: 9px; padding-bottom: 9px; }
    .header-search { padding-bottom: 14px; }

    /* El buscador no tiene que medir metro y medio */
    .header-search #search-input { max-width: 620px; }
    .header-search .search-clear-button { right: auto; margin-left: 588px; }

    /* Banner: caja centrada con esquinas, no una franja estirada */
    .slides-carousel {
        max-width: 1440px;
        margin: 18px auto 0;
        padding: 0 20px;
    }

    .slides-container {
        height: 330px;
        border-radius: var(--vx-radio);
        border: 1px solid var(--vx-linea);
    }

    /* Garantias: alineadas al mismo ancho */
    .vx-beneficios {
        max-width: 1440px;
        margin: 22px auto 0;
        border: 1px solid var(--vx-linea);
        border-radius: var(--vx-radio);
        overflow: hidden;
    }

    /* Promociones dentro del ancho de lectura */
    .promo-scroll-container {
        max-width: 1440px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .promo-section { max-width: 1440px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
}

/* Pantallas muy anchas: el catalogo no se estira mas de la cuenta */
@media (min-width: 1700px) {
    .slides-container { height: 360px; }
}

/* ---------------------------------------------------------------------
   Marcas: cada logo sobre su placa clara. Con fondo negro los logos
   oscuros (Bose, Samsung) desaparecian.
   --------------------------------------------------------------------- */
.brand-scroll-btn {
    background: #F7F7F5 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: var(--vx-radio-sm) !important;
    overflow: hidden;
}

.brand-scroll-btn img {
    filter: grayscale(1) contrast(1.02);
    opacity: .92;
    padding: 5px 9px;
    background: #F7F7F5;
}

.brand-scroll-btn:hover img,
.brand-scroll-btn:focus-visible img { filter: none; opacity: 1; }

.brand-scroll-btn.no-img span,
.brand-scroll-btn span { color: var(--vx-texto); }

.brand-scroll-btn.active {
    outline: 2px solid var(--vx-verde);
    outline-offset: 1px;
}

@media (max-width: 1023px) {
    .brand-scroll-btn {
        background: #F7F7F5 !important;
        border: 1px solid rgba(255,255,255,.10) !important;
    }
}


/* =====================================================================
   CABECERA DE PC — una sola fila: menu, logo, buscador, cuenta
   ===================================================================== */
@media (min-width: 1024px) {

    header { gap: 16px; align-items: center; }

    /* El logo deja de flotar en el centro y se ancla a la izquierda */
    .header-logos {
        position: static;
        transform: none;
        left: auto;
        pointer-events: auto;
        flex-shrink: 0;
    }

    #logo-image.header-logo-wide { max-height: 30px; }
    .header-logo-small { height: 30px; }

    /* El buscador, dentro de la cabecera */
    .header-search.en-cabecera {
        position: static;
        flex: 1 1 auto;
        max-width: 620px;
        margin: 0 auto;
        padding: 0;
        border: none;
        background: none;
        top: auto;
    }

    .header-search.en-cabecera #search-input {
        max-width: none;
        height: 42px;
        padding: 0 46px 0 42px;
        font-size: .92rem;
        background-position: 13px center;
    }

    .header-search.en-cabecera .search-clear-button {
        position: static;
        flex: none;
        margin-left: -42px;
        right: auto;
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    /* Las sugerencias caen como una cinta bajo la cabecera */
    .vx-sugerencias {
        top: 58px;
        padding-top: 12px;
    }

    .auth-controls { flex-shrink: 0; }
}

/* =====================================================================
   BARRA INFERIOR — en PC no ocupa todo el ancho, flota a la derecha
   ===================================================================== */
@media (min-width: 1024px) {
    .fixed-footer {
        left: auto;
        right: 22px;
        bottom: 22px;
        width: auto;
        border-radius: var(--vx-radio);
        border: 1px solid var(--vx-tinta-3);
        padding: 9px;
        box-shadow: 0 20px 40px -22px rgba(0,0,0,.75);
    }

    .footer-content { max-width: none; gap: 9px; }

    #whatsapp-button {
        flex: 0 0 auto;
        padding: 12px 22px;
        height: 46px;
    }

    .product-grid { padding-bottom: 40px; }
}

/* =====================================================================
   PROMOCIONES — tarjetas mas chicas, alineadas a la izquierda
   ===================================================================== */
.promo-scroll-container {
    grid-auto-columns: min(76vw, 288px);
    justify-content: start;
    gap: 12px;
    padding: 2px 0 14px;
}

.promo-card {
    height: auto;
    min-height: 360px;
    border-radius: var(--vx-radio);
    box-shadow: 0 10px 26px -16px rgba(11,11,12,.55);
}

.promo-content { padding: 12px; }
.promo-name { font-size: .92rem; }
.promo-new { font-size: 1.6rem; }
.promo-cta { padding: 11px 0; font-size: .84rem; }

@media (min-width: 1024px) {
    .promo-scroll-container { grid-auto-columns: 300px; gap: 16px; }
    .promo-card { min-height: 396px; }
}


/* =====================================================================
   PRECIO POR MAYOR — al llegar a 3, el precio de abajo sube arriba
   ===================================================================== */
.small-price-label .lbl-b,
.price-save .lbl-b { display: none; }

/* Con el mayoreo activo se invierten los papeles */
.product-prices.mayor-activo .price-row-live { order: 1; }
.product-prices.mayor-activo .price-row-normal { order: 2; }

.product-prices.mayor-activo .price-row-live {
    color: var(--vx-verde-osc);
    font-weight: 800;
    font-size: 1.02rem;
    font-variation-settings: 'wdth' 105;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.product-prices.mayor-activo .price-row-normal {
    color: var(--vx-gris);
    font-weight: 600;
    font-size: .7rem;
    line-height: 1.35;
    text-decoration: line-through;
    text-decoration-color: var(--vx-gris-claro);
}

@media (min-width: 600px) {
    .product-prices.mayor-activo .price-row-live { font-size: 1.25rem; }
    .product-prices.mayor-activo .price-row-normal { font-size: .8rem; }
}

.product-prices.mayor-activo .small-price-label .lbl-a,
.product-prices.mayor-activo .price-save .lbl-a { display: none; }

.product-prices.mayor-activo .small-price-label .lbl-b,
.product-prices.mayor-activo .price-save .lbl-b { display: inline; }

.product-prices.mayor-activo .price-row-live .small-price-label { color: var(--vx-verde-osc); opacity: .75; }

.product-prices.mayor-activo .price-save { color: var(--vx-verde-osc); }

.price-save .lbl-b i { font-size: .78em; margin-right: 3px; }

/* El destello del precio ya no cambia el color: lo hace el estado de arriba */
.shining-promo { color: var(--vx-tinta); }

/* =====================================================================
   AGREGAR AL CARRITO — un solo control: boton, y al usarlo, contador
   ===================================================================== */
.cart-controls .qty-selector { display: none; }

.add-to-cart-btn {
    flex: 1 1 auto;
    gap: 8px;
    letter-spacing: -.005em;
}

.add-label { font-size: .8rem; font-weight: 700; }

@media (min-width: 600px) {
    .add-label { font-size: .88rem; }
}

/* Ya hay unidades: aparece el contador y el boton se hace compacto */
.cart-controls.con-productos .qty-selector {
    display: flex;
    flex: 1 1 auto;
    background: var(--vx-blanco);
    border-color: var(--vx-tinta);
}

.cart-controls.con-productos .add-label { display: none; }

.cart-controls.con-productos .add-to-cart-btn {
    flex: 0 0 auto;
    width: 40px;
    padding: 0;
}

@media (min-width: 600px) {
    .cart-controls.con-productos .add-to-cart-btn { width: 46px; }
}

.qty-selector .minus, .qty-selector .plus { color: var(--vx-tinta); }
.qty-display { color: var(--vx-tinta); }

/* =====================================================================
   PEDIR POR WHATSAPP DESDE LA TARJETA
   Debajo de "Agregar". El verde solo se usa aqui y en el ahorro por
   mayor. Ancho completo para que en el celular se toque comodo sin
   caer encima del contador.
   ===================================================================== */
.card-wsp-btn {
    order: 5;
    width: 100%;
    margin-top: 6px;
    height: 32px;
    border: none;
    border-radius: var(--vx-radio-sm);
    background: var(--vx-verde);
    color: #fff;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: -.005em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    transition: background .18s, transform .12s;
}

/* En el celular la tarjeta mide ~150px: ahi solo cabe "WhatsApp" */
.card-wsp-btn .wsp-largo { display: none; }

.card-wsp-btn i { font-size: 1.05em; }
.card-wsp-btn:hover { background: #12BC62; }
.card-wsp-btn:active { transform: scale(.96); }

@media (min-width: 600px) {
    .card-wsp-btn { height: 38px; font-size: .88rem; margin-top: 8px; gap: 8px; }
}

/* A 3 columnas la tarjeta recien pasa de 180px: antes de eso "Pedir por
   WhatsApp" no entra en una linea y el texto se parte en dos */
@media (min-width: 700px) {
    .card-wsp-btn .wsp-corto { display: none; }
    .card-wsp-btn .wsp-largo { display: inline; }
}


/* hidden manda sobre cualquier display de autor (flex/grid lo estaban ignorando) */
[hidden] { display: none !important; }


/* =====================================================================
   BARRA DE MARCAS — logos grandes, sin cuadro alrededor
   El recorte de cada logo trae su propio fondo; con lighten sobre el negro
   de la barra ese fondo desaparece y solo queda la marca.
   ===================================================================== */
.brands-scroll-bar { height: 88px; }

.brand-scroll-btn,
.brand-scroll-btn.has-img {
    background: var(--vx-tinta) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 132px !important;
    height: 72px !important;
    margin: 0 4px !important;
    overflow: visible;
}

.brand-scroll-btn img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px 10px;
    background: transparent;
    border-radius: 0;
    mix-blend-mode: lighten;
    filter: grayscale(1) brightness(1.12);
    opacity: .9;
    transition: opacity .22s ease, filter .22s ease, transform .22s ease;
}

/* Recorte con fondo claro: se invierte para que quede marca clara sobre negro */
.brand-scroll-btn img.logo-claro {
    filter: grayscale(1) invert(1) brightness(1.06);
}

.brand-scroll-btn:hover img,
.brand-scroll-btn:focus-visible img {
    opacity: 1;
    transform: scale(1.06);
}

.brand-scroll-btn.active {
    outline: none;
}

.brand-scroll-btn.active img {
    opacity: 1;
    filter: grayscale(0) brightness(1.15);
}

.brand-scroll-btn.active.has-img::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    background: var(--vx-verde);
    border-radius: 2px;
}

.brand-scroll-btn.no-img span,
.brand-scroll-btn span {
    color: rgba(255,255,255,.72);
    font-size: .74rem;
    letter-spacing: .1em;
}

@media (max-width: 1023px) {
    .brands-scroll-bar { height: 76px; }
    .brand-scroll-btn,
    .brand-scroll-btn.has-img {
        width: 112px !important;
        height: 62px !important;
        background: var(--vx-tinta) !important;
        border: none !important;
    }
    .brand-scroll-btn:active img { opacity: .55; }
}

@media (min-width: 1024px) {
    .brands-scroll-bar { height: 96px; }
    .brand-scroll-btn,
    .brand-scroll-btn.has-img { width: 150px !important; height: 80px !important; }
}

/* Barra flotante: carrito centrado y de la misma altura que el boton verde */
.footer-content { align-items: center; }

.fixed-footer #whatsapp-button,
.fixed-footer .cart-toggle-footer,
.fixed-footer #auth-icon-button,
.fixed-footer #open-admin-menu-button {
    height: 48px;
    align-self: center;
}

.fixed-footer .cart-toggle-footer,
.fixed-footer #auth-icon-button,
.fixed-footer #open-admin-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .fixed-footer #whatsapp-button { height: 48px; padding: 0 24px; }
    .fixed-footer .cart-toggle-footer { width: 54px; }
}



/* =====================================================================
   BARRA INFERIOR — los iconos son un solo botón, no cinco estilos
   Venían de cuatro reglas sueltas: el carrito con borde, la cuenta en
   #333, el engranaje en gris claro y el de ventas sin estilo ninguno
   (salía con el gris del navegador, esquinas cuadradas y 19px de alto).
   ===================================================================== */
.fixed-footer .cart-toggle-footer,
.fixed-footer #auth-icon-button,
.fixed-footer #open-ventas-footer,
.fixed-footer #open-admin-menu-button {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--vx-tinta-2);
    color: #fff;
    border: 1px solid var(--vx-tinta-3);
    border-radius: var(--vx-radio-sm);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0;
    transition: background .18s, border-color .18s, transform .12s;
}

.fixed-footer .cart-toggle-footer:hover,
.fixed-footer #auth-icon-button:hover,
.fixed-footer #open-ventas-footer:hover,
.fixed-footer #open-admin-menu-button:hover {
    background: #22242A;
    border-color: #3A3D45;
}

.fixed-footer .cart-toggle-footer:active,
.fixed-footer #auth-icon-button:active,
.fixed-footer #open-ventas-footer:active,
.fixed-footer #open-admin-menu-button:active { transform: scale(.95); }

.fixed-footer #whatsapp-button { height: 46px; }

/* Los tres contadores igualitos: mismo tamaño y el aro del negro de la barra */
.fixed-footer #cart-count,
.fixed-footer #mis-pedidos-notif-badge,
.fixed-footer .vx-ventas-badge {
    top: -6px;
    right: -6px;
    width: auto;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 0 2px var(--vx-tinta);
    font-size: .66rem;
    font-weight: 800;
    line-height: 19px;
    font-variant-numeric: tabular-nums;
}

/* El contador del carrito va con el acento de la marca, no con el rojo
   #dc3545 de la primera version (14-10-2026). */
.fixed-footer #cart-count { background: var(--vx-verde); color: #fff; }

@media (min-width: 600px) {
    .fixed-footer .cart-toggle-footer,
    .fixed-footer #auth-icon-button,
    .fixed-footer #open-ventas-footer,
    .fixed-footer #open-admin-menu-button {
        width: 48px;
        height: 48px;
        font-size: 1.12rem;
    }
    .fixed-footer #whatsapp-button { height: 48px; }
}

@media (min-width: 1024px) {
    .fixed-footer .cart-toggle-footer,
    .fixed-footer #auth-icon-button,
    .fixed-footer #open-ventas-footer,
    .fixed-footer #open-admin-menu-button {
        width: 44px;
        height: 44px;
        font-size: 1.02rem;
    }
    .fixed-footer #whatsapp-button { height: 44px; padding: 0 22px; }
}

/* =====================================================================
   ETIQUETA "PAGO POR WEB" Y MODO DE VENTA DEL PRODUCTO
   ===================================================================== */
.vx-etiqueta-web {
    order: 3;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 3px 8px;
    border: 1px solid var(--vx-linea);
    border-radius: 999px;
    background: var(--vx-papel);
    color: var(--vx-tinta);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vx-etiqueta-web i { font-size: .95em; opacity: .7; }

/* Producto que solo se pide por WhatsApp: no lleva la etiqueta de pago web,
   asi que su ficha queda un poco mas corta que la de al lado. Ese sobrante
   se lo lleva la foto, que crece, y no se abre un vacio entre medio. */
.card-solo-wsp .card-image-wrapper { flex: 1 1 auto; }
.card-solo-wsp .product-info { flex: 0 0 auto; }

@media (min-width: 600px) {
    .vx-etiqueta-web { font-size: .66rem; padding: 4px 9px; }
}

/* Formulario del admin: los dos modos, uno al lado del otro */
.vx-modo-venta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vx-modo-op { position: relative; margin: 0; cursor: pointer; }

.vx-modo-op input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vx-modo-op span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px;
    border: 2px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    background: #fff;
    color: var(--vx-gris);
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    transition: border-color .18s, color .18s, background .18s;
}

.vx-modo-op input:checked + span {
    border-color: var(--vx-tinta);
    background: var(--vx-papel);
    color: var(--vx-tinta);
}

.vx-modo-op input:focus-visible + span { outline: 2px solid var(--vx-tinta); outline-offset: 2px; }

.vx-modo-aviso {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    background: var(--vx-papel);
    color: var(--vx-texto);
    font-size: .76rem;
    line-height: 1.4;
}

/* =====================================================================
   FICHA DEL CLIENTE — se abre desde el gestor de usuarios
   ===================================================================== */
.user-ver-btn {
    background: var(--vx-tinta);
    color: #fff;
    border: none;
    border-radius: var(--vx-radio-sm);
    padding: 9px 13px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .18s, transform .12s;
}

.user-ver-btn:hover { background: #2A2C31; }
.user-ver-btn:active { transform: scale(.96); }

.user-item { cursor: pointer; }
.user-item:focus-visible { outline: 2px solid var(--vx-tinta); outline-offset: 2px; }

.user-detail-content {
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
}

.uf-cargando, .uf-vacio {
    text-align: center;
    color: var(--vx-gris);
    font-size: .9rem;
    padding: 34px 10px;
}

.uf-cabecera {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 30px;
}

.uf-avatar { width: 58px; height: 58px; font-size: 1.4rem; }

.uf-identidad { min-width: 0; }

.uf-identidad h2 {
    margin: 0 0 2px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.uf-email {
    margin: 0 0 6px;
    font-size: .86rem;
    color: var(--vx-gris);
    word-break: break-all;
}

.uf-acciones { margin: 16px 0 4px; }

.uf-wsp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px;
    background: var(--vx-verde);
    color: #fff;
    border-radius: var(--vx-radio-sm);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s;
}

.uf-wsp:hover { background: #12BC62; }

.uf-sin-wsp {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px dashed var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    color: var(--vx-gris);
    font-size: .84rem;
}

.uf-resumen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 14px 0 4px;
}

.uf-tarjeta {
    background: var(--vx-papel);
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    padding: 12px 10px;
    text-align: center;
}

.uf-tarjeta strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.uf-tarjeta span {
    display: block;
    margin-top: 3px;
    font-size: .72rem;
    color: var(--vx-gris);
}

.uf-titulo {
    margin: 22px 0 10px;
    font-size: .95rem;
    font-weight: 800;
}

.uf-titulo small {
    font-size: .78rem;
    font-weight: 500;
    color: var(--vx-gris);
}

.uf-datos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 520px) {
    .uf-datos { grid-template-columns: 1fr; }
    .uf-resumen { gap: 7px; }
    .uf-tarjeta strong { font-size: .92rem; }
}

.uf-dato {
    background: var(--vx-papel);
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    padding: 9px 11px;
    min-width: 0;
}

.uf-dato span {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--vx-gris);
}

.uf-dato strong {
    display: block;
    margin-top: 2px;
    font-size: .88rem;
    font-weight: 700;
    word-break: break-word;
}

.uf-dato strong.uf-falta { color: var(--vx-gris); font-weight: 500; }

/* Las tarjetas son las mismas de "Mis pedidos", y alli van sobre el gris
   claro del panel: mismo fondo aqui para que se vean tal cual. */
.uf-pedidos {
    background: #f5f5f5;
    border-radius: var(--vx-radio);
    padding: 14px 14px 1px;
}

.uf-pedidos .pedido-card-panel:last-child { margin-bottom: 14px; }
.uf-pedidos .uf-vacio { padding: 20px 10px; }

/* ---------------------------------------------------------------------
   Marcas: los recortes con fondo gris oscuro no desaparecian con lighten
   (gris es mas claro que el negro de la barra) y quedaban como cuadrados
   que se levantaban al pasar el mouse. El contraste alto lleva ese fondo
   a negro puro y deja solo la marca.
   --------------------------------------------------------------------- */
.brand-scroll-btn img {
    filter: grayscale(1) brightness(1.1) contrast(2.4);
    opacity: 1;
}

.brand-scroll-btn img.logo-claro {
    filter: grayscale(1) invert(1) brightness(1.04) contrast(2.4);
}

.brand-scroll-btn:hover img,
.brand-scroll-btn:focus-visible img {
    filter: grayscale(1) brightness(1.35) contrast(2.4);
}

.brand-scroll-btn:hover img.logo-claro,
.brand-scroll-btn:focus-visible img.logo-claro {
    filter: grayscale(1) invert(1) brightness(1.3) contrast(2.4);
}

.brand-scroll-btn.active img,
.brand-scroll-btn.active img.logo-claro {
    filter: grayscale(1) brightness(1.5) contrast(2.4);
}


/* =====================================================================
   MENU LATERAL — lista, no una pila de tarjetas
   Cada marca lleva su logo y cuantos productos tiene. Fuera el icono de
   etiqueta repetido 17 veces y la flechita que no informaba nada.
   ===================================================================== */
.categories-sidebar .marca-fila {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 10px 4px;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    border-bottom: 1px solid var(--vx-linea);
    transition: background .15s;
}

.categories-sidebar .marca-fila:last-child { border-bottom: none; }

.categories-sidebar .marca-fila:hover { background: var(--vx-papel); }
.categories-sidebar .marca-fila:active { background: #EDEDEA; }

.marca-logo {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--vx-tinta);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.marca-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    mix-blend-mode: lighten;
    filter: grayscale(1) brightness(1.1) contrast(2.4);
}

.marca-logo img.logo-claro {
    filter: grayscale(1) invert(1) brightness(1.04) contrast(2.4);
}

.marca-inicial {
    color: #fff;
    font-family: var(--vx-fuente);
    font-size: .82rem;
    font-weight: 800;
}

.marca-nombre {
    font-family: var(--vx-fuente);
    font-size: .88rem;
    font-weight: 600;
    color: var(--vx-texto);
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marca-cuenta {
    font-size: .74rem;
    font-weight: 700;
    color: var(--vx-gris);
    font-variant-numeric: tabular-nums;
    padding-left: 8px;
}

/* La fila activa se marca con una barra, no con un boton negro gigante */
.categories-sidebar .marca-fila.all-categories {
    border-bottom: 1px solid var(--vx-tinta);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.categories-sidebar .marca-fila.all-categories .marca-nombre { font-weight: 700; }

.categories-sidebar .marca-fila.activa {
    background: var(--vx-papel);
    box-shadow: inset 3px 0 0 var(--vx-verde);
}

/* El acordeon de ubicaciones, al mismo idioma */
.ubicaciones-list .ubicacion-header {
    border-radius: var(--vx-radio-sm);
}

/* La fila activa del menu: barra verde, no un bloque negro */
.categories-sidebar .marca-fila.active,
.categories-sidebar .category-item.all-categories.active {
    background: var(--vx-papel) !important;
    color: var(--vx-texto) !important;
    box-shadow: inset 3px 0 0 var(--vx-verde);
}

.categories-sidebar .marca-fila.active .marca-nombre { color: var(--vx-texto); }
.categories-sidebar .marca-fila.active .marca-cuenta { color: var(--vx-verde-osc); }


/* =====================================================================
   VISTA DE MARCA — al elegir una marca la tienda se enfoca:
   fuera banner, promociones, garantias y barras de filtro.
   Queda la cabecera de la marca, el orden y sus productos.
   ===================================================================== */
body.vx-vista-marca #slides-carousel,
body.vx-vista-marca #promo-section,
body.vx-vista-marca .vx-beneficios,
body.vx-vista-marca .brands-scroll-bar,
body.vx-vista-marca .tipo-filter-wrap,
body.vx-vista-marca #marca-filter-bar {
    display: none !important;
}

.vx-cabecera-marca {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 600px) {
    .vx-cabecera-marca { padding: 22px 20px 6px; }
}

.vx-ver-todo {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    padding: 8px 14px;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    color: var(--vx-texto);
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .12s;
}

.vx-ver-todo:hover { background: var(--vx-blanco); border-color: var(--vx-gris-claro); }
.vx-ver-todo:active { transform: scale(.97); }
.vx-ver-todo i { font-size: .72rem; }

.vx-marca-id {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vx-marca-logo {
    width: 58px;
    height: 58px;
    border-radius: var(--vx-radio-sm);
    background: var(--vx-tinta);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.vx-marca-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    mix-blend-mode: lighten;
    filter: grayscale(1) brightness(1.1) contrast(2.4);
}

.vx-marca-logo img.logo-claro {
    filter: grayscale(1) invert(1) brightness(1.04) contrast(2.4);
}

.vx-marca-inicial {
    color: #fff;
    font-family: var(--vx-fuente);
    font-size: 1.3rem;
    font-weight: 800;
}

.vx-marca-nombre {
    font-family: var(--vx-fuente);
    font-size: 1.5rem;
    font-weight: 800;
    font-variation-settings: 'wdth' 112;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--vx-texto);
    margin: 0;
    text-transform: uppercase;
}

@media (min-width: 600px) {
    .vx-marca-nombre { font-size: 2rem; }
    .vx-marca-logo { width: 68px; height: 68px; }
}

.vx-marca-cuenta {
    margin: 3px 0 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--vx-gris);
    font-variant-numeric: tabular-nums;
}

/* El flotante de volver solo tiene sentido dentro de la vista de marca */
.back-to-all-btn { display: none !important; }

body.vx-vista-marca .back-to-all-btn {
    display: flex !important;
    position: fixed;
    left: 14px;
    bottom: 88px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: var(--vx-radio-sm);
    background: var(--vx-tinta);
    color: #fff;
    border: 1px solid var(--vx-tinta-3);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 26px -14px rgba(0,0,0,.6);
}

@media (min-width: 1024px) {
    body.vx-vista-marca .back-to-all-btn { bottom: 24px; }
}


/* Aviso de catalogo personalizado: se dice, no se esconde */
.vx-aviso-personal {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    font-size: .74rem;
    color: var(--vx-gris);
}

.vx-aviso-personal::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--vx-verde);
    flex-shrink: 0;
}

.vx-aviso-personal button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 600;
    color: var(--vx-texto);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.vx-aviso-personal button:hover { color: var(--vx-verde-osc); }

/* =====================================================================
   BUSCADOR PEGADO AL BAJAR
   html/body tenian overflow-x:hidden, y eso convierte al documento en su
   propio contenedor de scroll: el position:sticky de la cabecera dejaba
   de pegarse y se iba con el scroll. clip corta igual el desborde
   horizontal pero no crea contenedor, asi que sticky vuelve a funcionar.
   ===================================================================== */
html, body { overflow-x: clip; }

header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(11, 11, 12, .94);
    transition: box-shadow .22s ease, padding .22s ease;
}

/* Al despegarse del tope se marca con sombra, para que se lea encima
   de las tarjetas y no parezca que flota sin razon.
   OJO: no achicar el padding aqui - el buscador de abajo esta pegado
   (sticky) a una posicion fija que asume la altura normal del header;
   si el header encoge al hacer scroll, queda un hueco de 1-2px donde
   se ve el fondo claro de la pagina (la "linea blanca" al bajar). */
body.vx-scrolled header {
    box-shadow: 0 10px 26px -18px rgba(0,0,0,.9);
}

body.vx-scrolled .header-search {
    box-shadow: 0 10px 26px -20px rgba(0,0,0,.85);
}

/* En telefono el buscador va debajo de la cabecera, tambien pegado */
@media (max-width: 599px) {
    .header-search {
        position: sticky;
        top: 52px;
        z-index: 999;
    }
}

/* 600-1023px: aqui la cabecera es mas baja que en telefono (boton de 34px +
   3px de relleno = 41px, contra 38px + 7px = 52px en telefono - ver
   @media(min-width:600px) arriba), pero el buscador seguia pegado a
   top:52px igual. El resultado era un hueco de ~11px entre la cabecera y el
   buscador que dejaba ver el fondo claro de la pagina: la "linea blanca" al
   bajar con el scroll. Si el boton o el relleno de la cabecera cambian en
   ese media query, este top hay que recalcularlo tambien. */
@media (min-width: 600px) and (max-width: 1023px) {
    .header-search {
        position: sticky;
        top: 41px;
        padding: 0 18px 12px;
        z-index: 999;
    }
    .header-search .search-clear-button { right: 22px; }
}

/* =====================================================================
   LOGOS DE MARCA A COLOR
   Dos familias de recorte, dos tratamientos:
   · fondo oscuro  -> lighten sobre el negro de la barra, el fondo se va
                      y el logo queda flotando con su color.
   · fondo claro   -> placa blanca y multiply; invertirlos habria dado
                      vuelta tambien los colores (el rojo salia cian).
   ===================================================================== */
.brand-scroll-btn img,
.marca-logo img,
.vx-marca-logo img {
    mix-blend-mode: lighten;
    filter: brightness(1.05) contrast(1.7) saturate(1.12);
    opacity: 1;
}

.brand-scroll-btn img.logo-claro,
.marca-logo img.logo-claro,
.vx-marca-logo img.logo-claro {
    mix-blend-mode: multiply;
    filter: contrast(1.04) saturate(1.08);
}

.brand-scroll-btn.fondo-claro,
.brand-scroll-btn.fondo-claro.has-img {
    background: #fff !important;
    border-radius: 10px !important;
}

.marca-logo.fondo-claro,
.vx-marca-logo.fondo-claro { background: #fff; }

.brand-scroll-btn.fondo-claro img { padding: 6px 11px; }

.brand-scroll-btn:hover img,
.brand-scroll-btn:focus-visible img {
    filter: brightness(1.16) contrast(1.7) saturate(1.25);
}

.brand-scroll-btn:hover img.logo-claro,
.brand-scroll-btn:focus-visible img.logo-claro {
    filter: contrast(1.08) saturate(1.2);
}

.brand-scroll-btn.active img,
.brand-scroll-btn.active img.logo-claro {
    filter: brightness(1.1) contrast(1.7) saturate(1.3);
}

/* ===== PORTADA: banda de envios + galeria desplegable ===== */
.vx-envios-banda {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    flex-wrap: wrap;
    background: var(--vx-tinta);
    color: var(--vx-papel);
    padding: 14px 16px;
    text-align: center;
}
.vx-envios-banda i {
    color: var(--vx-verde);
    font-size: 1.3rem;
}
.vx-envios-banda strong {
    font-family: var(--vx-fuente);
    font-size: clamp(1.15rem, 4.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1.05;
}
.vx-envios-banda span {
    font-size: .72rem;
    color: var(--vx-gris-claro);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
}

.vx-portada-toggle {
    width: 100%;
    background: var(--vx-blanco);
    color: var(--vx-texto);
    border: none;
    border-bottom: 1px solid var(--vx-linea);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--vx-fuente);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    cursor: pointer;
}
.vx-portada-toggle i {
    font-size: .72rem;
    color: var(--vx-verde);
    transition: transform .25s ease;
}
.vx-portada-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.vx-portada-toggle:hover { background: var(--vx-papel); }

.vx-portada-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 4px;
    padding: 4px;
    background: var(--vx-papel);
    border-bottom: 1px solid var(--vx-linea);
}
.vx-portada-galeria[hidden] { display: none; }
.vx-portada-galeria img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    display: block;
    border-radius: var(--vx-radio-sm);
    background: var(--vx-linea);
    cursor: pointer;
}
@media (min-width: 768px) {
    .vx-portada-galeria { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .vx-portada-galeria img { height: 168px; }
}
@media (prefers-reduced-motion: reduce) {
    .vx-portada-toggle i { transition: none; }
}


/* =====================================================================
   OFICINA DE AGENCIA — buscador sobre el listado real de sucursales
   ===================================================================== */
.vx-oficina-picker { margin-top: 14px; position: relative; }

.vx-oficina-picker label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--vx-gris);
    margin-bottom: 7px;
}

#vx-oficina-buscar {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    font-family: inherit;
    font-size: .88rem;
    background: var(--vx-blanco);
    color: var(--vx-texto);
}

#vx-oficina-buscar:focus {
    outline: none;
    border-color: var(--vx-tinta);
}

.vx-oficina-resultados {
    position: absolute;
    left: 0; right: 0;
    z-index: 30;
    margin-top: 5px;
    max-height: 270px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    box-shadow: 0 18px 36px -22px rgba(11,11,12,.5);
}

.vx-oficina-op {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--vx-linea);
    padding: 10px 13px;
    font-family: inherit;
    cursor: pointer;
}

.vx-oficina-op:last-child { border-bottom: none; }
.vx-oficina-op:hover { background: var(--vx-papel); }

.vx-oficina-op strong {
    display: block;
    font-size: .84rem;
    font-weight: 700;
    color: var(--vx-texto);
}

.vx-oficina-op span,
.vx-oficina-elegida span {
    display: block;
    font-size: .74rem;
    color: var(--vx-gris);
    margin-top: 1px;
}

.vx-oficina-dir { font-size: .71rem !important; opacity: .85; }

.vx-oficina-vacio {
    margin: 0;
    padding: 14px 13px;
    font-size: .8rem;
    color: var(--vx-gris);
    line-height: 1.45;
}

.vx-oficina-elegida {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    padding: 11px 13px;
    background: var(--vx-verde-luz);
    border: 1px solid rgba(15,169,88,.28);
    border-radius: var(--vx-radio-sm);
}

.vx-oficina-elegida strong {
    font-size: .84rem;
    font-weight: 700;
    color: var(--vx-verde-osc);
}

.vx-oficina-quitar {
    background: none;
    border: none;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--vx-verde-osc);
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}

.vx-oficina-nota {
    margin: 10px 0 0;
    font-size: .75rem;
    line-height: 1.5;
    color: var(--vx-gris);
    display: flex;
    gap: 7px;
}

.vx-oficina-nota i { color: var(--vx-tinta); margin-top: 2px; }


/* =====================================================================
   VENTAS EN LA BARRA — el pedido que entra se ve sin abrir nada
   ===================================================================== */
.vx-btn-ventas { position: relative; }

.vx-ventas-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--vx-verde);
    color: #fff;
    font-family: var(--vx-fuente);
    font-size: .66rem;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 2px var(--vx-tinta);
}

/* Al entrar un pedido el botón late un momento: si el dueño está mirando la
   pantalla lo ve, y si no, el contador se queda puesto igual. */
.vx-ventas-late { animation: vxLateVentas 1.1s ease-out 4; }

@keyframes vxLateVentas {
    0%, 100% { transform: scale(1); }
    35%      { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .vx-ventas-late { animation: none; }
}


/* =====================================================================
   DOCUMENTO DEL CLIENTE — boleta o factura
   ===================================================================== */
.vx-doc-tipos {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.vx-doc-tipo {
    flex: 1 1 auto;
    background: transparent;
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    padding: 9px 11px;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 600;
    color: var(--vx-texto);
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s;
}

.vx-doc-tipo:hover { background: var(--vx-papel); }

.vx-doc-tipo.active {
    background: var(--vx-tinta);
    border-color: var(--vx-tinta);
    color: #fff;
}

.vx-doc-fila { position: relative; }

#vx-doc-numero {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 40px 11px 13px;
    border: 1px solid var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    font-family: inherit;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    background: var(--vx-blanco);
    color: var(--vx-texto);
}

#vx-doc-numero:focus { outline: none; border-color: var(--vx-tinta); }

.vx-doc-estado {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .74rem;
    font-weight: 700;
    color: var(--vx-gris);
}

.vx-doc-estado.ok { color: var(--vx-verde); font-size: 1rem; }
.vx-doc-estado.buscando { color: var(--vx-gris); }

.vx-doc-nombre {
    margin: 9px 0 0;
    padding: 9px 12px;
    background: var(--vx-verde-luz);
    border: 1px solid rgba(15,169,88,.28);
    border-radius: var(--vx-radio-sm);
    font-size: .84rem;
    font-weight: 700;
    color: var(--vx-verde-osc);
    line-height: 1.35;
}

.vx-doc-nombre.error {
    background: #FDEDED;
    border-color: rgba(200,60,60,.28);
    color: #8C2020;
    font-weight: 600;
}

.vx-doc-ayuda {
    margin: 8px 0 0;
    font-size: .74rem;
    line-height: 1.45;
    color: var(--vx-gris);
}


/* El carrito ya no ofrece pedir por WhatsApp: todo pasa por la web, que es lo
   que deja pedido, seguimiento y comprobante. */
.vx-carrito-nota {
    margin: 9px 0 0;
    text-align: center;
    font-size: .74rem;
    line-height: 1.45;
    color: var(--vx-gris);
}


/* =====================================================================
   PANEL DE VENTAS (ADMIN) EN EL CELULAR
   Era una rejilla de círculos de colores: los nombres salían cortados
   ("GARCIA GOD…"), el importe se partía en dos líneas y el naranja/verde
   no son colores de la marca. Pasa a ser una LISTA: en el teléfono cabe
   el nombre completo, el importe entero y se ve de un vistazo a quién
   falta atender.
   ===================================================================== */
.ventas-usuarios-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    grid-template-columns: none !important;
}

.ventas-usuario-circle {
    display: grid !important;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 4px !important;
    background: none !important;
    border: none !important;
    border-bottom: 1px solid var(--vx-linea);
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer;
    transition: background .16s;
}

.ventas-usuario-circle:last-child { border-bottom: none; }

.ventas-usuario-circle:hover {
    transform: none !important;
    background: var(--vx-papel) !important;
}

.usuario-avatar {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background: var(--vx-tinta) !important;
    color: #fff;
    font-family: var(--vx-fuente);
    font-size: .82rem !important;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Con pedidos por atender: el marco verde y el contador, sin cambiar de color
   el avatar. Lo urgente se lee por el número, no por un naranja de semáforo. */
.usuario-avatar.avatar-pendiente {
    background: var(--vx-tinta) !important;
    box-shadow: inset 0 0 0 2px var(--vx-verde) !important;
}

.usuario-avatar.avatar-ok { background: var(--vx-tinta) !important; }

.avatar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--vx-verde) !important;
    color: #fff;
    font-size: .64rem !important;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.usuario-nombre {
    font-family: var(--vx-fuente);
    font-size: .86rem !important;
    font-weight: 700 !important;
    color: var(--vx-texto) !important;
    text-align: left !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25;
    /* Dos líneas como mucho: un nombre larguísimo no empuja la fila entera */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

.usuario-total {
    grid-column: 2;
    font-size: .74rem !important;
    color: var(--vx-gris) !important;
    text-align: left !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-top: 2px;
}

/* La flecha de "entrar", que antes no existía y hacía dudar si se tocaba */
.ventas-usuario-circle::after {
    content: "›";
    grid-row: 1 / span 2;
    grid-column: 3;
    font-size: 1.3rem;
    color: var(--vx-gris-claro);
    line-height: 1;
    padding-left: 4px;
}

.usuario-avatar { grid-row: 1 / span 2; }

@media (max-width: 767px) {
    .ventas-usuarios-grid { grid-template-columns: none !important; }
    .usuario-avatar { width: 42px !important; height: 42px !important; }
}

/* =====================================================================
   PANEL "MIS PEDIDOS" (CLIENTE) EN EL CELULAR
   ===================================================================== */
.pedido-card-panel {
    border-radius: var(--vx-radio) !important;
    border: 1px solid var(--vx-linea) !important;
    padding: 14px !important;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: var(--vx-sombra-baja, none);
}

.pedido-card-top {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pedido-card-modelos {
    font-family: var(--vx-fuente);
    font-size: .9rem !important;
    font-weight: 700 !important;
    color: var(--vx-texto) !important;
    line-height: 1.3;
    /* En el celular el nombre del producto es lo que el cliente reconoce:
       se deja envolver en vez de cortarlo con puntos suspensivos. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pedido-card-fecha {
    font-size: .74rem !important;
    color: var(--vx-gris) !important;
    margin-top: 3px !important;
}

.pedido-card-monto {
    font-family: var(--vx-fuente);
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    color: var(--vx-texto) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    flex-shrink: 0;
}

/* La línea de tiempo, más aireada y legible en pantalla chica */
.tracking-step { padding: 12px 0 !important; }
.tracking-step:not(:last-child)::after { background: var(--vx-linea) !important; }
.tracking-step-active:not(:last-child)::after { background: var(--vx-verde-luz) !important; }

@media (max-width: 480px) {
    .pedido-card-top { flex-direction: column; gap: 6px; }
    .pedido-card-monto { font-size: 1.15rem !important; }
}

/* ===== Ventas por producto (panel de admin) ===== */
.vx-vp { margin: 4px 0 18px; }
.vx-vp-label {
    display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: #6C7078; margin-bottom: 7px;
}
.vx-vp-input {
    width: 100%; padding: 11px 13px; border: 1px solid #DDDDD8; border-radius: 10px;
    background: #fff; font-family: inherit; font-size: 0.9rem; color: #0B0B0C;
}
.vx-vp-input:focus { outline: none; border-color: #0B0B0C; }
.vx-vp-lista { margin-top: 10px; max-height: 320px; overflow-y: auto; }
.vx-vp-fila {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-bottom: 1px solid #EFEFEB;
}
.vx-vp-fila:last-child { border-bottom: 0; }
.vx-vp-nombre { flex: 1 1 auto; min-width: 0; }
.vx-vp-modelo {
    display: block; font-weight: 700; font-size: 0.87rem; color: #0B0B0C;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vx-vp-marca { display: block; font-size: 0.74rem; color: #8A8D94; margin-top: 2px; }
.vx-vp-cifras { flex: 0 0 auto; text-align: right; }
.vx-vp-unidades { display: block; font-weight: 800; font-size: 0.95rem; color: #0B0B0C; }
.vx-vp-monto { display: block; font-size: 0.76rem; color: #6C7078; margin-top: 2px; }
.vx-vp-vacio { padding: 16px 4px; text-align: center; color: #8A8D94; font-size: 0.84rem; }

/* Comprobante dentro de la tarjeta de venta del admin */
.venta-comprobante-link {
    display: inline-flex; align-items: center; gap: 5px; margin-left: 6px;
    color: #0B0B0C; font-weight: 700; text-decoration: underline;
}
.venta-comprobante-link:hover { color: #0FA958; }
.venta-sin-comprobante { color: #B3261E; }


/* ===== Preguntas frecuentes (texto para buscadores), antes del pie ===== */
.vx-preguntas {
    background: var(--vx-blanco);
    border-top: 1px solid var(--vx-linea);
    margin: 44px 0 0;
    padding: 30px 20px 10px;
}
.vx-preguntas-inner { max-width: 960px; margin: 0 auto; }
.vx-preguntas-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--vx-texto);
    margin: 0 0 8px;
}
.vx-preguntas-intro {
    font-size: .86rem;
    line-height: 1.5;
    color: var(--vx-gris);
    max-width: 720px;
    margin: 0 0 18px;
}
.vx-preguntas-lista { margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .vx-preguntas-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
.vx-pregunta { border-top: 1px solid var(--vx-linea); padding: 14px 0; }
.vx-pregunta dt { font-size: .9rem; font-weight: 700; color: var(--vx-texto); margin: 0 0 4px; }
.vx-pregunta dd { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--vx-gris); }
.vx-pregunta a { color: var(--vx-verde-osc); font-weight: 600; }


/* ── Vender por la web, no por WhatsApp (29-09-2026) ──────────────────────
   Se abrio el pago con tarjeta y el pedido por WhatsApp sale de la compra: el
   cliente agrega al carrito y paga sin irse a otra app a medio camino. Se
   esconden los botones de *pedir*, no el WhatsApp de atencion
   (#whatsapp-button, el del footer y el de los estados vacios), que es por
   donde preguntan antes de comprar y reclaman despues.
   Para volver a vender por WhatsApp: borrar este bloque y poner
   VX_SOLO_WSP = true en config-tienda.js. */
.card-wsp-btn,
.csa-wsp,
#csa-wsp-main,
#csa-wsp,
#btn-wsp,
#checkout-whatsapp-button { display: none !important; }


/* Placa de "Sin foto": la imagen de reemplazo ya trae su propio fondo, asi
   que se muestra entera (contain) y sin recortes ni zoom al pasar el raton. */
img.vx-sin-foto {
    object-fit: contain !important;
    background: var(--vx-papel);
    transform: none !important;
    cursor: default;
}


/* Aviso bajo Tipo y Marca cuando el valor lo dedujo el nombre del producto */
.vx-pista-auto {
    display: block;
    margin-top: 5px;
    font-size: .72rem;
    color: var(--vx-verde-osc);
    font-weight: 600;
}


/* Interruptor de "Subir todos los precios" */
.vx-recargo-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    margin: 4px 0 2px;
}
.vx-recargo-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--vx-verde);
    cursor: pointer;
}


/* Precio real (sin el recargo global): solo lo ve el admin */
.vx-precio-real {
    display: none;
    margin-top: 6px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--vx-gris);
    background: var(--vx-papel);
    border: 1px dashed var(--vx-linea);
    border-radius: var(--vx-radio-sm);
    padding: 4px 8px;
}
.vx-precio-real em { font-style: normal; color: var(--vx-verde-osc); }
body.admin-mode .vx-precio-real,
body.helper-mode .vx-precio-real { display: block; }

/* ── Ventas: pedidos de un cliente dentro de la misma ventana (14-10-2026) ──
   Antes era otro modal y quedaba detras de Ventas. */
.ventas-usuario-titulo { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 2px; }
.ventas-usuario-sub { font-size: .84rem; color: var(--vx-gris); margin: 0 0 16px; }
.venta-wsp-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: .78rem; font-weight: 700; color: var(--vx-verde-osc); text-decoration: none; }
.venta-wsp-link:hover { text-decoration: underline; }
.venta-cod-cargo { display: block; font-family: ui-monospace, Consolas, monospace; font-size: .72rem; color: var(--vx-gris); margin-top: 2px; }



/* =====================================================================
   PORTADA, CABECERA Y PANEL DE CONTROL — al idioma del checkout (14-10-2026)
   El dueño dijo que la página "se veía muy IA". Fuera emojis, íconos de
   adorno, bandas que gritan en mayúsculas y botones de colores sueltos. Lo
   que queda: papel, tinta, línea fina, títulos en minúscula normal y el
   verde solo para WhatsApp y el ahorro por mayor.
   ===================================================================== */

/* ── Cabecera: Ingresar y Salir son botones de línea (antes verde y rojo,
      con el estilo escrito dentro del HTML) ── */
.vx-cab-btn,
#logout-button.vx-cab-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 14px;
    background: transparent; color: #fff;
    border: 1px solid #3A3D45; border-radius: var(--vx-radio-sm);
    font-family: inherit; font-size: .8rem; font-weight: 600; line-height: 1;
    cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.vx-cab-btn:hover,
#logout-button.vx-cab-btn:hover { background: var(--vx-tinta-2); border-color: #5A5E66; }
.vx-cab-btn:active { transform: translateY(1px); }
.vx-cab-rol {
    font-size: .68rem; font-weight: 600; color: var(--vx-gris-claro);
    border: 1px solid var(--vx-tinta-3); border-radius: 5px; padding: 3px 7px;
}

/* ── Tira legal: el dato, sin chip verde ni escudo ── */
.vx-legal-chip {
    color: var(--vx-gris-claro);
    font-size: .66rem; font-weight: 600;
    text-transform: none; letter-spacing: 0;
}

/* ── Envíos: sigue siendo lo primero que se lee, pero dicho, no gritado.
      Antes: banda negra, camión verde y mayúsculas de 30px. ── */
.vx-envios-banda {
    flex-direction: column; gap: 2px;
    background: var(--vx-blanco); color: var(--vx-texto);
    border-bottom: 1px solid var(--vx-linea);
    padding: 16px 16px 15px;
}
.vx-envios-banda strong {
    font-size: clamp(1.08rem, 3.8vw, 1.3rem);
    font-weight: 700;
    font-variation-settings: 'wdth' 108;
    letter-spacing: -.015em;
    text-transform: none;
}
.vx-envios-banda span {
    font-size: .8rem; font-weight: 500; color: var(--vx-gris);
    text-transform: none; letter-spacing: 0;
}
@media (min-width: 900px) {
    .vx-envios-banda { flex-direction: row; align-items: baseline; gap: 12px; padding: 18px 20px; }
}
/* En la computadora, banda y garantías forman una sola franja blanca bajo el
   banner (antes la garantía era otra caja con esquinas, separada por papel) */
@media (min-width: 1024px) {
    .vx-envios-banda { margin-top: 18px; border-top: 1px solid var(--vx-linea); }
    .vx-beneficios { max-width: none; margin: 0; border: none; border-bottom: 1px solid var(--vx-linea); border-radius: 0; }
}

/* ── Garantías: texto, sin un ícono por cada una ── */
.vx-beneficio { padding: 13px 16px; }
.vx-beneficio strong { font-size: .8rem; font-weight: 600; }
.vx-beneficio span { font-size: .72rem; }
@media (min-width: 900px) {
    .vx-beneficio { padding: 16px 22px; justify-content: flex-start; }
    .vx-beneficio strong { font-size: .86rem; }
    .vx-beneficio span { font-size: .76rem; }
}

/* ── Promociones: el título es un h2 normal ── */
h2.promo-section-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.promo-section-sub { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 500; }

/* ── Tarjeta: compartir, más discreto en el celular ── */
@media (hover: none) {
    .vx-share-btn {
        opacity: 1; width: 28px; height: 28px; border: none; border-radius: 50%;
        background: rgba(255, 255, 255, .8); color: var(--vx-gris); font-size: .7rem;
    }
}

/* ── Barra fija: WhatsApp con su logo y en minúscula normal ── */
#whatsapp-button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
#whatsapp-button i { font-size: 1.15em; }

/* ── Velo de los modales: el negro de marca, no negro puro al 85% ── */
.modal { background: rgba(11, 11, 12, .6); }

/* =====================================================================
   PANEL DE CONTROL — todas las herramientas del admin en el mismo panel
   A la derecha en la computadora, a pantalla completa en el celular. Cada
   herramienta trae arriba "Panel de control" para volver; antes cada opción
   abría otra caja centrada y para volver había que cerrar y tocar el
   engranaje otra vez. También van aquí los formularios de producto y de
   promoción, que saltaban en medio de la tienda.
   ===================================================================== */
.modal.vx-panel { background: rgba(11, 11, 12, .45); overflow: hidden; }
.modal.vx-panel > .modal-content {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 640px; height: 100%; max-height: none;
    margin: 0; padding: 18px 18px 48px;
    background: var(--vx-blanco);
    border-radius: 0;
    box-shadow: -24px 0 48px -32px rgba(11, 11, 12, .5);
    overflow-y: auto; overscroll-behavior: contain;
    animation: vxPanelEntra .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes vxPanelEntra { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
    .modal.vx-panel > .modal-content { padding: 26px 32px 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .modal.vx-panel > .modal-content,
    .cart-sheet { animation: none; }
}

.modal.vx-panel h2 {
    margin: 0 52px 12px 0;
    font-size: 1.4rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2;
    color: var(--vx-texto);
}
.modal.vx-panel h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.modal.vx-panel .modal-header { margin: 0; padding: 0; border: none; }

/* La X queda siempre a mano aunque la lista sea larga */
.modal.vx-panel .close-button {
    position: fixed; top: 14px; right: 16px;
    width: 36px; height: 36px; font-size: 26px; line-height: 1;
    color: var(--vx-texto); background: var(--vx-blanco);
    border: 1px solid var(--vx-linea); border-radius: 50%;
}
.modal.vx-panel .close-button:hover { background: var(--vx-papel); }
@media (min-width: 768px) {
    .modal.vx-panel .close-button { top: 20px; right: 28px; }
}

.vx-panel-intro {
    margin: 0 0 18px; max-width: 56ch;
    font-size: .88rem; line-height: 1.5; color: var(--vx-gris);
}

/* "← Panel de control", "← Todas las ventas": enlaces, no botones grises */
.vx-volver-panel,
.vx-panel .back-btn-inline {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0 0 10px; padding: 6px 0;
    background: none; border: none; border-radius: 0;
    font-family: inherit; font-size: .84rem; font-weight: 600; color: var(--vx-gris);
    cursor: pointer;
}
.vx-volver-panel::before,
.vx-panel .back-btn-inline::before { content: "\2190"; font-size: 1rem; line-height: 1; }
.vx-volver-panel:hover,
.vx-panel .back-btn-inline:hover { background: none; color: var(--vx-texto); }
.vx-panel .ventas-usuario-header { margin-bottom: 4px; }

/* =====================================================================
   COMPRAR DESDE LA TARJETA (14-10-2026)
   Aparece apenas el producto entra al carrito y lleva directo al
   checkout. Grande y en el verde de la marca: es la accion principal
   una vez que el cliente ya eligio.
   ===================================================================== */
.card-comprar-btn {
    order: 5;
    width: 100%;
    margin-top: 8px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--vx-radio-sm);
    background: var(--vx-verde);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: background .18s, transform .12s;
}
.card-comprar-btn[hidden] { display: none; }
.card-comprar-btn i { font-size: .85em; transition: transform .18s; }
.card-comprar-btn:hover { background: var(--vx-verde-osc); }
.card-comprar-btn:hover i { transform: translateX(3px); }
.card-comprar-btn:active { transform: scale(.97); }
.card-comprar-btn:focus-visible { outline: 2px solid var(--vx-tinta); outline-offset: 2px; }
@media (min-width: 600px) {
    .card-comprar-btn { height: 48px; font-size: 1.02rem; }
}
.card-comprar-entra { animation: vxComprarEntra .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes vxComprarEntra {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .card-comprar-entra { animation: none; }
    .card-comprar-btn, .card-comprar-btn i { transition: none; }
}

/* =====================================================================
   FORMULARIO DE PRODUCTO: fotos ordenables, variantes, precios
   secretos y precio externo (14-10-2026)
   ===================================================================== */
.vx-form-sub { font-weight: 400; color: var(--vx-gris); }
.vx-form-guia { display: block; margin: 6px 0 0; font-size: .76rem; line-height: 1.45; color: var(--vx-gris); }
#producto-modelo::placeholder { color: #A9ADB3; font-style: italic; }

.vx-fotos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.vx-fotos-grid:empty { display: none; }
.vx-foto {
    position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--vx-linea); border-radius: 6px;
    overflow: hidden; background: var(--vx-papel); cursor: grab; user-select: none;
}
.vx-foto img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.vx-foto.es-portada { border: 2px solid var(--vx-tinta); }
.vx-foto.arrastrando { opacity: .4; }
.vx-foto.soltar-aqui { outline: 2px dashed var(--vx-verde); outline-offset: 2px; }
.vx-foto-portada, .vx-foto-num {
    position: absolute; top: 4px; left: 4px; padding: 2px 6px; border-radius: 4px;
    font-size: .64rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(11,11,12,.78);
}
.vx-foto-portada { background: var(--vx-tinta); }
.vx-foto-acciones {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 2px;
    padding: 4px; background: linear-gradient(transparent, rgba(11,11,12,.7));
}
.vx-foto-acciones button {
    width: 24px; height: 24px; border: none; border-radius: 4px; background: rgba(255,255,255,.92);
    color: var(--vx-tinta); font-size: .8rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
}
.vx-foto-acciones button:hover { background: #fff; }
.vx-foto-acciones .vx-foto-quitar { color: #B3261E; }

.vx-variante { border: 1px solid var(--vx-linea); border-radius: 8px; padding: 10px; margin-top: 10px; background: #FAFAF9; }
.vx-variante-fila { display: flex; gap: 8px; align-items: center; }
.vx-variante-tipo { flex: 0 0 auto; height: 40px; border: 1px solid var(--vx-linea); border-radius: 6px; padding: 0 8px; font: inherit; font-size: .85rem; background: #fff; }
.vx-variante-color { flex: 0 0 40px; width: 40px; height: 40px; padding: 2px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff; cursor: pointer; }
.vx-variante-nombre { flex: 1 1 auto; min-width: 0; height: 40px; border: 1px solid var(--vx-linea); border-radius: 6px; padding: 0 10px; font: inherit; font-size: .9rem; }
.vx-variante-quitar { flex: 0 0 40px; height: 40px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff; color: #B3261E; cursor: pointer; }
.vx-variante-subir {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 12px; border: 1px dashed #C9CBCF;
    border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--vx-texto); cursor: pointer; background: #fff;
}
.vx-variante-subir small { color: var(--vx-gris); font-weight: 500; }
.vx-variante-agregar {
    margin-top: 10px; width: 100%; height: 42px; border: 1px solid var(--vx-tinta); border-radius: 6px;
    background: #fff; color: var(--vx-tinta); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
}
.vx-variante-agregar:hover { background: var(--vx-papel); }
.vx-variante-agregar[hidden] { display: none; }

/* Precios secretos: verdes, solo admin */
.vx-secretos label { color: var(--vx-verde-osc); }
.vx-secretos input { border-color: rgba(15,169,88,.45) !important; background: var(--vx-verde-luz) !important; color: var(--vx-verde-osc); font-weight: 700; }
body.admin-mode .vx-secretos.admin-only { display: flex; }
.vx-precio-secreto {
    order: 3; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 7px; border-radius: 4px;
    background: var(--vx-verde-luz); color: var(--vx-verde-osc); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Precio externo tachado con % OFF, como en una tienda en línea */
.price-externo { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--vx-gris); margin-bottom: 1px; }
.price-externo s { text-decoration-thickness: 1px; }
.price-off { color: var(--vx-verde-osc); font-weight: 800; font-size: .74rem; letter-spacing: .01em; }

.vx-precio-secreto { width: fit-content; }
/* El formulario pone width:100% a todo select/input: aquí cada pieza mide lo suyo */
.vx-variante .vx-variante-fila > .vx-variante-tipo { width: 108px !important; flex: 0 0 108px; margin: 0; }
.vx-variante .vx-variante-fila > .vx-variante-color { width: 40px !important; flex: 0 0 40px; margin: 0; }
.vx-variante .vx-variante-fila > .vx-variante-nombre { width: auto !important; flex: 1 1 auto; margin: 0; }
.vx-variante .vx-variante-fila > .vx-variante-quitar { width: 40px; flex: 0 0 40px; }
.vx-variante .vx-variante-subir { display: inline-flex !important; width: auto !important; margin-bottom: 0; }

/* Margen real después de Culqi (solo admin) */
.vx-margen { padding: 1px 6px; border-radius: 4px; font-weight: 800; white-space: nowrap; }
.vx-margen-pos { background: var(--vx-verde-luz); color: var(--vx-verde-osc); }
.vx-margen-neg { background: #FCEFEE; color: #B3261E; }

/* =====================================================================
   CUADRO "LO QUE TE QUEDA DE CADA VENTA" (formulario admin, 14-10-2026)
   ===================================================================== */
.vx-ganancia { margin: 10px 0 12px; padding: 14px; border: 1px solid var(--vx-linea); border-radius: 8px; background: #FAFAF9; }
.vx-ganancia[hidden] { display: none; }
.vx-g-titulo { font-size: .86rem; font-weight: 800; color: var(--vx-texto); margin: 0 0 10px; }
.vx-g-tabla { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.vx-g-fila { display: grid; grid-template-columns: minmax(110px, 1.1fr) repeat(var(--cols, 2), minmax(0, 1fr)); align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid #ECECEA; font-size: .86rem; color: var(--vx-texto); }
.vx-g-fila > span:not(.vx-g-etq) { text-align: right; }
.vx-g-cabecera { border-top: none; padding-top: 0; }
.vx-g-cab { font-weight: 800; font-size: .84rem; line-height: 1.15; }
.vx-g-cab small { display: block; font-weight: 500; font-size: .7rem; color: var(--vx-gris); }
.vx-g-etq { color: var(--vx-gris); font-size: .82rem; }
.vx-g-menos { color: #B3261E; }
.vx-g-subtotal { font-weight: 700; }
.vx-g-llega { font-weight: 800; }
.vx-g-final { border-top: 2px solid var(--vx-tinta); padding-top: 9px; }
.vx-g-final .vx-g-etq { color: var(--vx-texto); font-weight: 800; font-size: .9rem; }
.vx-g-ganas { font-size: 1.08rem; font-weight: 900; }
.vx-g-ganas small { display: block; font-size: .72rem; font-weight: 700; }
.vx-g-ganas.pos { color: var(--vx-verde-osc); }
.vx-g-ganas.neg { color: #B3261E; }
.vx-g-nada { color: var(--vx-gris); font-size: .78rem; font-style: italic; }
.vx-g-nota { margin: 10px 0 0; font-size: .72rem; color: var(--vx-gris); line-height: 1.4; }

.vx-g-pct { display: block; font-size: .7rem; font-weight: 600; color: var(--vx-gris); }

/* =====================================================================
   CABECERA ESTILO TIENDA EN LÍNEA (14-10-2026)
   Dos filas sobre negro de marca. Reemplaza a la barra fija de abajo.
   ===================================================================== */
header.vx-cab {
    display: block; position: sticky; top: 0; z-index: 1000; padding: 0; gap: 0;
    background: var(--vx-tinta); border-bottom: 1px solid var(--vx-tinta-3);
}
.vx-cab-fila1, .vx-cab-fila2 { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; }
.vx-cab-fila1 { gap: 16px; padding: 10px 20px 6px; }
.vx-cab-fila2 { gap: 20px; padding: 2px 20px 8px; min-height: 40px; }
.vx-cab .menu-toggle-btn { flex: none; }
.vx-cab-logo { display: flex; align-items: center; flex: none; text-decoration: none; }
header.vx-cab .header-logos, body.logged-in header.vx-cab .header-logos, body.admin-mode header.vx-cab .header-logos {
    position: static; transform: none; left: auto; pointer-events: auto;
}
header.vx-cab .header-search {
    position: relative; top: auto; z-index: auto; flex: 1 1 auto; max-width: 660px;
    padding: 0; margin: 0; background: transparent;
}
header.vx-cab .header-search #search-input { height: 42px; border-radius: 6px; background-color: #fff; color: var(--vx-texto); border-color: #fff; font-size: 15px; }
header.vx-cab .header-search #search-input::placeholder { color: #8B8F96; }
header.vx-cab .header-search #search-input:focus { background-color: #fff; border-color: var(--vx-verde); box-shadow: 0 0 0 3px rgba(15,169,88,.25); }
header.vx-cab .header-search .search-clear-button { right: 4px; color: var(--vx-gris); }
.vx-cab-wsp {
    flex: none; margin-left: auto; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
    border: none; border-radius: 6px; background: var(--vx-verde); color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.vx-cab-wsp:hover { background: var(--vx-verde-osc); }
.vx-cab-wsp i { font-size: 1.1rem; }

.vx-enviar {
    flex: none; display: flex; align-items: center; gap: 8px; max-width: 250px; padding: 4px 8px 4px 4px; margin-left: -4px;
    background: none; border: 1px solid transparent; border-radius: 4px; color: #fff; text-align: left; cursor: pointer; font: inherit;
}
.vx-enviar:hover, .vx-enviar[aria-expanded="true"] { border-color: #3A3D45; }
.vx-enviar i { font-size: 1.05rem; color: #C9CBCF; }
.vx-enviar-txt { min-width: 0; line-height: 1.15; }
.vx-enviar-txt small { display: block; font-size: .7rem; color: #B5B8BD; }
.vx-enviar-txt b { display: block; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 205px; }

.vx-cats { display: flex; gap: 18px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.vx-cats button {
    flex: none; padding: 6px 0; background: none; border: none; border-bottom: 2px solid transparent;
    color: #D6D7DA; font: inherit; font-size: .87rem; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s;
}
.vx-cats button:hover { color: #fff; }
.vx-cats button.sel { color: #fff; border-bottom-color: var(--vx-verde); }

.vx-cab-derecha { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: none; }
header.vx-cab .auth-controls { margin-left: 0; gap: 12px; }
header.vx-cab .user-greeting { color: #fff; font-size: .86rem; font-weight: 600; }
.vx-cab-link {
    position: relative; padding: 6px 0; background: none; border: none; color: #D6D7DA;
    font: inherit; font-size: .87rem; cursor: pointer; white-space: nowrap; transition: color .15s;
}
.vx-cab-link:hover { color: #fff; }
#login-header-btn.vx-cab-link { color: #fff; font-weight: 700; }
.vx-cab-icono { background: none; border: none; color: #D6D7DA; font-size: 1.05rem; cursor: pointer; padding: 6px 2px; }
.vx-cab-icono:hover { color: #fff; }
#mis-pedidos-notif-badge:not(:empty), .vx-cab .vx-ventas-badge:not([hidden]) {
    display: inline-flex !important; align-items: center; justify-content: center; margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--vx-verde); color: #fff; font-size: .68rem; font-weight: 800; vertical-align: 1px;
}
.vx-cab-carrito { position: relative; flex: none; padding: 6px 8px 4px 4px; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.vx-cab-carrito #cart-count {
    position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--vx-verde); color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; display: none;
}
.vx-cab-carrito #cart-count.active { display: block; }

/* Panel "Enviar a": se abre dentro de la cabecera, empuja la página */
.vx-enviar-panel { background: #fff; border-top: 1px solid var(--vx-tinta-3); box-shadow: 0 14px 28px -20px rgba(11,11,12,.55); }
.vx-enviar-panel[hidden] { display: none; }
.vx-ep { max-width: 760px; margin: 0 auto; padding: 16px 20px 18px; color: var(--vx-texto); }
.vx-ep-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vx-ep-cab strong { font-size: 1rem; font-weight: 800; }
.vx-ep-cerrar { width: 34px; height: 34px; border: none; border-radius: 6px; background: var(--vx-papel); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--vx-texto); }
.vx-ep-tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--vx-papel); border-radius: 8px; margin-bottom: 12px; }
.vx-ep-tipos button { padding: 9px 6px; border: none; border-radius: 6px; background: transparent; font: inherit; font-size: .85rem; font-weight: 600; color: var(--vx-gris); cursor: pointer; }
.vx-ep-tipos button.sel { background: #fff; color: var(--vx-texto); box-shadow: 0 1px 2px rgba(11,11,12,.12); }
.vx-ep-campos { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; }
.vx-ep-campos[hidden], .vx-ep-info[hidden] { display: none; }
.vx-ep-campos select, .vx-ep-campos input {
    width: 100%; height: 44px; padding: 0 12px; border: 1px solid #D4D4D1; border-radius: 6px; background: #fff;
    font: inherit; font-size: .92rem; color: var(--vx-texto);
}
.vx-ep-campos select:focus, .vx-ep-campos input:focus { outline: none; border-color: var(--vx-tinta); box-shadow: 0 0 0 3px rgba(11,11,12,.07); }
.vx-ep-ancho { grid-column: 1 / -1; }
.vx-ep-suc { position: relative; }
.vx-ep-lista { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--vx-linea); border-radius: 8px; box-shadow: 0 18px 36px -22px rgba(11,11,12,.5); }
.vx-ep-lista[hidden] { display: none; }
.vx-ep-lista button { display: block; width: 100%; padding: 9px 12px; border: none; border-bottom: 1px solid #F0F0EE; background: none; text-align: left; font: inherit; cursor: pointer; }
.vx-ep-lista button:hover { background: #F7F7F5; }
.vx-ep-lista strong { display: block; font-size: .84rem; }
.vx-ep-lista span { display: block; font-size: .74rem; color: var(--vx-gris); }
.vx-ep-lista .vx-ep-dir { font-size: .71rem; opacity: .85; }
.vx-ep-vacio { margin: 0; padding: 12px; font-size: .8rem; color: var(--vx-gris); }
.vx-ep-info { margin: 0; padding: 12px 14px; background: var(--vx-papel); border-radius: 6px; font-size: .86rem; line-height: 1.5; }
.vx-ep-error { margin: 10px 0 0; color: #B3261E; font-size: .82rem; }
.vx-ep-acciones { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.vx-ep-guardar { height: 44px; padding: 0 26px; border: none; border-radius: 6px; background: var(--vx-tinta); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vx-ep-guardar:hover { background: #2A2C31; }
.vx-ep-quitar { background: none; border: none; padding: 4px; font: inherit; font-size: .84rem; color: var(--vx-gris); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Sin la barra fija de abajo no hace falta el espacio que se le dejaba */
body:has(header.vx-cab) { padding-bottom: 0; }

@media (max-width: 899px) {
    .vx-cab-fila1 { flex-wrap: wrap; gap: 10px; padding: 8px 12px 6px; }
    header.vx-cab .header-search { order: 5; flex-basis: 100%; max-width: none; }
    .vx-cab-wsp span { display: none; }
    .vx-cab-wsp { width: 38px; padding: 0; justify-content: center; }
    .vx-cab-fila2 { gap: 10px; padding: 0 12px 6px; }
    .vx-cats { display: none; }
    .vx-enviar { flex: 1 1 auto; max-width: none; }
    .vx-enviar-txt b { max-width: 52vw; }
    header.vx-cab .user-greeting, #auth-icon-button.vx-cab-link { display: none !important; }
    .vx-cab-derecha { gap: 12px; }
    .vx-ep { padding: 14px 12px 16px; }
    .vx-ep-campos { grid-template-columns: 1fr; }
    .vx-ep-tipos button { font-size: .78rem; }
}

/* El boton de WhatsApp heredaba el ancho de la barra de abajo */
header.vx-cab #whatsapp-button.vx-cab-wsp { flex: none; width: auto; min-width: 0; }
@media (max-width: 899px) { header.vx-cab #whatsapp-button.vx-cab-wsp { width: 40px; } }

/* =====================================================================
   INICIO POR SECCIONES, COMO TIENDA EN LÍNEA (14-10-2026)
   Filas por categoría que se deslizan de lado. En modo inicio se esconden
   la grilla completa y sus filtros; el admin siempre ve la grilla.
   ===================================================================== */
.vx-inicio { display: none; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
body.vx-modo-inicio .vx-inicio { display: block; }
body.vx-modo-inicio .tipo-filter-wrap,
body.vx-modo-inicio #marca-filter-bar,
body.vx-modo-inicio #vx-cabecera-marca,
body.vx-modo-inicio #vx-controles,
body.vx-modo-inicio #product-grid,
body.vx-modo-inicio #vx-sin-resultados { display: none !important; }

.vx-ini-sec { background: #fff; border: 1px solid var(--vx-linea); border-radius: 6px; margin: 16px 0; padding: 16px 0 6px; }
.vx-ini-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 18px 10px; }
.vx-ini-cab h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; color: var(--vx-texto); font-variation-settings: 'wdth' 100; margin: 0; }
.vx-ini-vertodo { background: none; border: none; padding: 4px 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--vx-verde-osc); cursor: pointer; white-space: nowrap; }
.vx-ini-vertodo:hover { text-decoration: underline; text-underline-offset: 3px; }

.vx-ini-carril { position: relative; }
.vx-ini-fila {
    display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 0;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 6px;
}
.vx-ini-fila::-webkit-scrollbar { display: none; }
.vx-ini-prod {
    scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px;
    text-decoration: none; color: inherit; border-radius: 4px; transition: background .15s;
}
.vx-ini-prod:hover { background: #F7F7F5; }
.vx-ini-foto { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; margin-bottom: 8px; }
.vx-ini-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.vx-ini-nombre { font-size: .86rem; line-height: 1.32; color: var(--vx-texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.64em; }
.vx-ini-ext { font-size: .74rem; color: var(--vx-gris); text-decoration: line-through; min-height: 1.1em; margin-top: 2px; }
.vx-ini-precio { font-size: 1.32rem; font-weight: 500; color: var(--vx-texto); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.vx-ini-precio em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--vx-verde-osc); margin-left: 6px; }
.vx-ini-mayor, .vx-ini-envio { font-size: .78rem; font-weight: 600; color: var(--vx-verde-osc); }

.vx-ini-flecha {
    position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: none; box-shadow: 0 2px 10px rgba(11,11,12,.18); color: var(--vx-texto); cursor: pointer;
}
.vx-ini-flecha[hidden] { display: none; }
.vx-ini-flecha.izq { left: -14px; }
.vx-ini-flecha.der { right: -14px; }
.vx-ini-flecha:hover { color: var(--vx-verde-osc); }

.vx-ini-todo { text-align: center; margin: 22px 0 30px; }
.vx-ini-todo-btn {
    height: 48px; padding: 0 28px; border: 1px solid var(--vx-tinta); border-radius: 6px; background: #fff;
    font: inherit; font-size: .95rem; font-weight: 700; color: var(--vx-tinta); cursor: pointer;
}
.vx-ini-todo-btn:hover { background: var(--vx-tinta); color: #fff; }

@media (max-width: 699px) {
    .vx-inicio { padding: 0; }
    .vx-ini-sec { border-radius: 0; border-left: none; border-right: none; margin: 10px 0; padding-top: 14px; }
    .vx-ini-cab { padding: 0 14px 8px; }
    .vx-ini-cab h2 { font-size: 1.05rem; }
    .vx-ini-fila { grid-auto-columns: 148px; padding: 0 4px; }
    .vx-ini-prod { padding: 8px 8px 10px; }
    .vx-ini-precio { font-size: 1.15rem; }
    .vx-ini-flecha { display: none !important; }
}

/* =====================================================================
   FILTROS COMPACTOS (14-10-2026)
   Una línea: "248 productos · Filtrar · Ordenar". Categoría, marca y
   precio quedan dentro de Filtrar y se despliegan ahí mismo.
   ===================================================================== */
.vx-controles { gap: 8px; margin-top: 14px; }
.vx-resultados-fila { border-top: none; padding-top: 0; gap: 8px; }
.vx-resultados-fila .vx-conteo { flex: 1; min-width: 0; }
.vx-filtrar-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
    background: var(--vx-blanco); color: var(--vx-texto); border: 1px solid var(--vx-linea); border-radius: var(--vx-radio-sm);
    font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: border-color .18s;
}
.vx-filtrar-btn:hover { border-color: var(--vx-gris-claro); }
.vx-filtrar-btn[aria-expanded="true"] { border-color: var(--vx-tinta); }
.vx-filtrar-n {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center;
    background: var(--vx-verde-osc); color: #fff; font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.vx-filtrar-n[hidden] { display: none; }
.vx-orden-select { height: 34px; padding-top: 0; padding-bottom: 0; background-color: var(--vx-blanco); }

.vx-panel-filtros {
    background: var(--vx-blanco); border: 1px solid var(--vx-linea); border-radius: 6px; overflow: hidden;
}
.vx-panel-filtros[hidden] { display: none; }
.vx-panel-filtros .tipo-filter-bar { padding: 10px 12px; max-width: none; }
.vx-panel-filtros .tipo-scroll-hint { background: linear-gradient(to right, rgba(255,255,255,0), #fff 70%); }
.vx-panel-filtros .marca-filter-bar {
    background: none; border: none; border-top: 1px solid var(--vx-linea); padding: 10px 12px;
}
.vx-panel-filtros .marca-filter-label {
    display: inline; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--vx-gris);
}
.vx-panel-filtros .marca-filter-btns { margin-top: 8px; gap: 7px; }
.vx-panel-filtros .marca-filter-btn {
    border-radius: var(--vx-radio-sm); border: 1px solid var(--vx-linea); box-shadow: none; padding: 7px 12px; color: var(--vx-texto);
}
.vx-panel-filtros .marca-filter-btn.active { background: var(--vx-tinta); border-color: var(--vx-tinta); color: #fff; }
.vx-panel-filtros .vx-precio-fila { padding: 10px 12px; border-top: 1px solid var(--vx-linea); }
.vx-panel-filtros .tipo-filter-btn { padding: 7px 12px; font-size: .78rem; }

@media (max-width: 599px) {
    .vx-orden .vx-controles-label { display: none; }
    .vx-resultados-fila .vx-conteo { font-size: .74rem; }
}

/* ── Banner más bajito en el celular (como una tienda en línea) ── */
@media (max-width: 599px) {
    .slides-carousel { padding: 8px 10px 0; }
    .slides-container { height: 124px; border-radius: 6px; }
    .slides-carousel .carousel-nav { display: none; }
}

/* ── Círculos de categorías (solo celular) ── */
.vx-ini-accesos { display: none; }
@media (max-width: 699px) {
    .vx-ini-accesos {
        display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 4px;
        overflow-x: auto; scrollbar-width: none; padding: 14px 10px 4px; scroll-snap-type: x proximity;
    }
    .vx-ini-accesos::-webkit-scrollbar { display: none; }
    .vx-ini-acceso {
        display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start;
        background: none; border: none; padding: 0; font: inherit; color: var(--vx-texto); cursor: pointer;
    }
    .vx-ini-circulo {
        width: 60px; height: 60px; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center;
        box-shadow: 0 1px 3px rgba(11,11,12,.12); transition: transform .12s;
    }
    .vx-ini-circulo img { width: 76%; height: 76%; object-fit: contain; }
    .vx-ini-acceso:active .vx-ini-circulo { transform: scale(.95); }
    .vx-ini-acceso-txt { font-size: .72rem; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Las filas arrancan pegadas al borde, sin que el primer producto se corte */
.vx-ini-fila { scroll-padding-inline: 6px; }
@media (max-width: 699px) { .vx-ini-fila { scroll-padding-inline: 4px; } }

/* ── Celular: envíos y garantías en una franja corta (como "Envío gratis" de ML) ── */
@media (max-width: 599px) {
    .vx-envios-banda {
        flex-direction: row; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 6px;
        margin: 8px 10px 0; padding: 9px 12px; background: #fff; border: none; border-radius: 6px; text-align: center;
    }
    .vx-envios-banda strong { font-size: .86rem; color: var(--vx-verde-osc); }
    .vx-envios-banda span { font-size: .78rem; }
    .vx-beneficios {
        display: flex; overflow-x: auto; scrollbar-width: none; gap: 0;
        margin: 8px 0 0; border: none; background: none;
    }
    .vx-beneficios::-webkit-scrollbar { display: none; }
    .vx-beneficio { flex: 0 0 auto; padding: 4px 12px; border: none !important; background: none; }
    .vx-beneficio + .vx-beneficio { border-left: 1px solid var(--vx-linea) !important; }
    .vx-beneficio strong { font-size: .74rem; white-space: nowrap; }
    .vx-beneficio span { display: none; }
    .brands-scroll-bar { height: 60px; margin-top: 8px; }
}

/* ── Cabecera con sesión iniciada (14-10-2026) ──
   #logout-button y #auth-icon-button arrastraban los estilos de la barra de
   abajo (cajas grises de 55 px): "Salir" salía enorme y "Mi cuenta" se montaba
   sobre "Mis compras". Ahora son enlaces como los demás, en este orden:
   Mi cuenta · Mis compras · Salir · carrito. El "Hola, Nombre" ya va en
   "Enviar a Nombre", así que aquí no se repite. */
header.vx-cab .auth-controls { display: contents; }
header.vx-cab .user-greeting { display: none !important; }
header.vx-cab #logout-button.vx-cab-link,
header.vx-cab #auth-icon-button.vx-cab-link,
header.vx-cab #mis-pedidos-btn.vx-cab-link {
    width: auto; height: auto; min-width: 0; padding: 6px 0; background: none; border: none; border-radius: 0;
    font: inherit; font-size: .87rem; color: #D6D7DA; align-items: center; flex-shrink: 0;
}
header.vx-cab #logout-button.vx-cab-link { color: #9AA0A8; }
header.vx-cab #logout-button.vx-cab-link:hover,
header.vx-cab #auth-icon-button.vx-cab-link:hover,
header.vx-cab #mis-pedidos-btn.vx-cab-link:hover { color: #fff; background: none; }
header.vx-cab #login-header-btn, header.vx-cab #auth-icon-button { order: 1; }
header.vx-cab #helper-star { order: 1; }
header.vx-cab #mis-pedidos-btn { order: 2; }
header.vx-cab #logout-button { order: 3; }
header.vx-cab #open-ventas-footer, header.vx-cab #open-admin-menu-button { order: 4; }
header.vx-cab #open-cart-button { order: 5; }

/* ── Botón de envío con identidad propia (14-10-2026) ──
   Camioncito en un recuadro verde de la marca, no el pin de siempre.
   Mientras no hay destino guardado, el recuadro late suave para invitar a
   elegir la agencia; la flecha gira al abrir el panel. */
.vx-enviar {
    gap: 10px; max-width: 300px; padding: 4px 12px 4px 4px; margin-left: 0;
    background: #17181C; border: 1px solid #2A2C32; border-radius: 8px;
    transition: border-color .15s, background .15s;
}
.vx-enviar:hover, .vx-enviar[aria-expanded="true"] { border-color: var(--vx-verde); background: #1B1D21; }
.vx-enviar-ico {
    position: relative; flex: none; width: 32px; height: 32px; border-radius: 6px;
    display: grid; place-items: center; background: var(--vx-verde);
}
.vx-enviar .vx-enviar-ico i { color: #fff; font-size: .88rem; }
.vx-enviar.vx-sin-destino .vx-enviar-ico::after {
    content: ''; position: absolute; inset: -4px; border-radius: 9px; border: 2px solid var(--vx-verde);
    animation: vxLatido 1.9s ease-out infinite; pointer-events: none;
}
@keyframes vxLatido { 0% { opacity: .85; transform: scale(.88); } 70%, 100% { opacity: 0; transform: scale(1.22); } }
.vx-enviar .vx-enviar-txt small { color: #9AA0A8; }
.vx-enviar .vx-enviar-txt b { color: #fff; }
.vx-enviar.vx-sin-destino .vx-enviar-txt b { color: #7FE0AE; }
.vx-enviar .vx-enviar-flecha { font-size: .66rem; color: #9AA0A8; margin-left: 2px; transition: transform .2s; }
.vx-enviar[aria-expanded="true"] .vx-enviar-flecha { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
    .vx-enviar.vx-sin-destino .vx-enviar-ico::after { animation: none; opacity: .5; }
}
@media (max-width: 699px) {
    .vx-enviar { margin: 2px 0; }
    .vx-enviar-ico { width: 30px; height: 30px; }
}
@media (max-width: 699px) {
    /* El botón de envío cede espacio: "Ingresa" y el carrito siempre caben */
    .vx-enviar { min-width: 0; flex: 1 1 auto; }
    .vx-enviar-txt { min-width: 0; }
    .vx-enviar .vx-enviar-txt b { max-width: none; }
    .vx-cab-derecha { flex: none; }
}

/* =====================================================================
   GRILLA AL BUSCAR O FILTRAR, COMO LOS RESULTADOS DE UNA TIENDA EN LÍNEA (15-10-2026)
   Un solo panel blanco con los productos pegados y separados por una línea
   fina, igual que las filas del inicio. Antes eran tarjetas sueltas con aire
   entre ellas. El admin conserva la grilla de siempre (arrastra para ordenar).
   ===================================================================== */
body .product-grid {
    gap: 0; padding: 0; margin: 4px 0 32px; background: #fff;
    border: 1px solid var(--vx-linea); border-radius: 6px; overflow: hidden;
}
body .product-grid .card {
    border: none; border-radius: 0;
    box-shadow: 1px 0 0 var(--vx-linea), 0 1px 0 var(--vx-linea);
    transition: box-shadow .18s ease;
}
body .product-grid .card:hover {
    transform: none; z-index: 1;
    box-shadow: 1px 0 0 var(--vx-linea), 0 1px 0 var(--vx-linea), 0 8px 22px -8px rgba(11,11,12,.25);
}
body .product-grid .card-image-wrapper { border-bottom: none; }
body .product-grid .card:hover .product-image { transform: none; }
@media (max-width: 599px) {
    body .product-grid {
        border-radius: 0; border-left: none; border-right: none; margin-left: -12px; margin-right: -12px;
    }
}
/* Buscando, la franja de envíos sobra: los resultados suben */
body.vx-buscando .vx-envios-banda { display: none; }

/* ── Ocultar un producto desde "Productos ocultos" (admin, 15-10-2026) ── */
.vx-ocultar-buscar { margin: 4px 0 22px; }
.vx-ocultar-buscar label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--vx-gris); margin-bottom: 8px; }
.vx-ocultar-campo { position: relative; }
.vx-ocultar-campo i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--vx-gris-claro); font-size: .9rem; pointer-events: none; }
.vx-ocultar-campo input {
    width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--vx-linea); border-radius: 6px;
    font: inherit; font-size: .92rem; color: var(--vx-texto); background: #fff;
}
.vx-ocultar-campo input:focus { outline: none; border-color: var(--vx-tinta); box-shadow: 0 0 0 3px rgba(11,11,12,.08); }
#ocultar-resultados { margin-top: 10px; }
#ocultar-resultados .oculto-item { background: #fff; border-color: var(--vx-linea); }
#ocultar-resultados .oculto-item-info strong { color: var(--vx-texto); }
#ocultar-resultados .oculto-item-info span { color: var(--vx-gris); }
.btn-ocultar-producto {
    padding: 8px 14px; background: #fff; color: #B3261E; border: 1px solid #E8C4C1; border-radius: 6px;
    font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; flex: none; transition: background .15s;
}
.btn-ocultar-producto:hover { background: #FBEDEC; }
.btn-ocultar-producto:disabled { opacity: .6; cursor: default; }
.vx-ocultar-nada { font-size: .86rem; color: var(--vx-gris); padding: 8px 2px; }
.vx-ocultos-sub { font-size: .95rem; font-weight: 600; color: var(--vx-texto); margin: 0 0 10px; }
.vx-ocultos-sub span { color: var(--vx-gris); font-weight: 500; }

/* ── Cabecera más baja (15-10-2026): menos alto en cada fila ── */
.vx-legal-bar { padding: 4px 14px; }
.vx-cab-fila1 { padding: 7px 20px 4px; gap: 14px; }
.vx-cab-fila2 { padding: 0 20px 6px; min-height: 34px; gap: 18px; }
header.vx-cab .menu-toggle-btn { width: 34px; height: 34px; }
header.vx-cab .header-logo-small { height: 30px; }
header.vx-cab #logo-image.header-logo-wide { max-height: 30px; }
header.vx-cab .header-search #search-input { height: 36px; font-size: 14px; }
.vx-cab-wsp { height: 34px; }
.vx-enviar { padding: 2px 10px 2px 2px; }
.vx-enviar-ico { width: 28px; height: 28px; border-radius: 5px; }
.vx-enviar.vx-sin-destino .vx-enviar-ico::after { border-radius: 8px; }
.vx-enviar .vx-enviar-txt small { font-size: .66rem; }
.vx-enviar .vx-enviar-txt b { font-size: .8rem; }
header.vx-cab #whatsapp-button.vx-cab-wsp { height: 34px; padding: 0 14px; font-size: .84rem; }
@media (max-width: 899px) { header.vx-cab #whatsapp-button.vx-cab-wsp { width: 36px; height: 34px; padding: 0; } }

/* =====================================================================
   PORTADA MÁS COMPACTA (15-10-2026)
   Banner más bajo, envíos y garantías en dos franjas finas, y la barra de
   marcas mucho más angosta: los productos suben a la primera pantalla.
   ===================================================================== */
/* Banner: más bajo y del ancho del contenido */
@media (min-width: 600px) {
    .slides-carousel { max-width: 1240px; margin: 12px auto 0; padding: 0 20px; }
    .slides-container { height: 210px; border-radius: 6px; background: #fff; }
}
@media (min-width: 1024px) {
    .slides-container { height: 230px; }
}
/* Una imagen cuadrada (el logo) no se recorta en un banner ancho: se ve
   entera sobre blanco. Los banners anchos (ej. 1600×400) llenan todo. */
@media (min-width: 600px) {
    /* El logo ocupa la franja central de la foto: se agranda al doble y el
       marco recorta solo el blanco de arriba y abajo. */
    .slide-item img.vx-slide-cuadrada { object-fit: contain; background: #fff; transform: scale(3); }
}

/* Envíos y garantías: dos franjas finas, solo los títulos */
@media (min-width: 600px) {
    .vx-envios-banda { padding: 8px 20px; gap: 10px; }
    .vx-envios-banda strong { font-size: .95rem; }
    .vx-envios-banda span { font-size: .8rem; }
    .vx-beneficio { padding: 7px 16px; }
    .vx-beneficio span { display: none; }
    .vx-beneficio strong { font-size: .8rem; }
}
@media (min-width: 1024px) {
    .vx-envios-banda { margin-top: 12px; }
}

/* Marcas: barra angosta con placas chicas */
.brands-scroll-bar { height: 50px !important; }
.brand-scroll-btn { width: 84px !important; height: 34px !important; margin: 0 4px !important; padding: 4px !important; }
.brand-scroll-btn img { padding: 3px 7px !important; }
.brand-scroll-btn span { font-size: .66rem !important; }
@media (max-width: 599px) {
    .brands-scroll-bar { height: 44px !important; }
    .brand-scroll-btn { width: 70px !important; height: 30px !important; }
}

/* ── Cuenta con foto, como en una tienda en línea (15-10-2026) ──
   Con sesión, "Mi cuenta" y "Salir" sueltos se reemplazan por la foto y el
   nombre; el menú baja al pasar el mouse o al tocar (cabecera.js). */
body.vx-con-cuenta header.vx-cab #auth-icon-button,
body.vx-con-cuenta header.vx-cab #logout-button,
body.vx-con-cuenta header.vx-cab #login-header-btn,
body.vx-con-cuenta header.vx-cab #open-user-button { display: none !important; }
.vx-cuenta { position: relative; order: 1; }
.vx-cuenta-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; background: none; border: none;
    color: #fff; font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.vx-cuenta-btn .fa-chevron-down { font-size: .6rem; color: #9AA0A8; transition: transform .2s; }
.vx-cuenta-foto, .vx-cuenta-foto-grande { border-radius: 50%; object-fit: cover; flex: none; background: #2A2C32; }
.vx-cuenta-foto { width: 26px; height: 26px; }
.vx-cuenta-foto-grande { width: 46px; height: 46px; }
.vx-cuenta-inicial { display: inline-grid; place-items: center; background: var(--vx-verde); color: #fff; font-weight: 700; }
.vx-cuenta-foto.vx-cuenta-inicial { font-size: .8rem; }
.vx-cuenta-foto-grande.vx-cuenta-inicial { font-size: 1.2rem; }
.vx-cuenta-nombre { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

.vx-cuenta-menu {
    position: absolute; top: calc(100% + 8px); right: -12px; z-index: 1200; width: 290px;
    background: #fff; border-radius: 6px; box-shadow: 0 6px 28px rgba(11,11,12,.22); padding: 6px 0;
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .16s, visibility .16s;
}
/* Puente invisible para que el menú no se cierre al bajar el mouse */
.vx-cuenta-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.vx-cuenta:hover .vx-cuenta-menu, .vx-cuenta.abierta .vx-cuenta-menu, .vx-cuenta:focus-within .vx-cuenta-menu {
    opacity: 1; visibility: visible; transform: none;
}
.vx-cuenta:hover .vx-cuenta-btn .fa-chevron-down, .vx-cuenta.abierta .vx-cuenta-btn .fa-chevron-down { transform: rotate(180deg); }
.vx-cuenta-quien { display: flex; align-items: center; gap: 12px; padding: 12px 18px 14px; border-bottom: 1px solid var(--vx-linea); margin-bottom: 4px; }
.vx-cuenta-quien div { min-width: 0; }
.vx-cuenta-quien strong { display: block; font-size: .95rem; color: var(--vx-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-cuenta-quien small { display: block; font-size: .78rem; color: var(--vx-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-cuenta-menu > a, .vx-cuenta-menu > button {
    display: block; width: 100%; padding: 10px 18px; background: none; border: none; text-align: left;
    font: inherit; font-size: .9rem; color: var(--vx-texto); text-decoration: none; cursor: pointer;
}
.vx-cuenta-menu > a:hover, .vx-cuenta-menu > button:hover { background: #F5F5F3; }
.vx-cuenta-salir { border-top: 1px solid var(--vx-linea) !important; margin-top: 4px; color: var(--vx-gris) !important; }
@media (max-width: 699px) {
    .vx-cuenta-nombre, .vx-cuenta-btn .fa-chevron-down { display: none; }
    .vx-cuenta-menu { right: -60px; width: min(290px, 92vw); }
}

/* =====================================================================
   PORTADA COMO TIENDA EN LÍNEA (15-10-2026)
   Sin la barra de marcas ni las franjas de envíos y garantías: el envío va
   como texto en la tira de arriba. Bajo el banner, tarjetas con un producto
   cada una y su motivo (lo que viste, lo que buscaste, lo nuevo…).
   ===================================================================== */
#brands-scroll-bar, .vx-envios-banda, .vx-beneficios { display: none !important; }
.vx-legal-envio { color: #fff; font-size: .72rem; white-space: nowrap; }
.vx-legal-envio strong { color: #7FE0AE; font-weight: 700; }
.vx-legal-envio i { color: #7FE0AE; margin-right: 2px; }
@media (max-width: 599px) {
    .vx-legal-bar .vx-legal-chip, .vx-legal-bar .vx-legal-dato { display: none; }
}

.vx-ini-destacados {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 16px 0 6px;
}
.vx-dest {
    display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 14px; min-width: 0;
    background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(11,11,12,.08); text-decoration: none; color: inherit;
    transition: box-shadow .18s;
}
.vx-dest:hover { box-shadow: 0 6px 20px -6px rgba(11,11,12,.25); }
.vx-dest-tit { font-size: .98rem; font-weight: 600; color: var(--vx-texto); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-dest-tit em { font-style: normal; font-weight: 500; color: var(--vx-gris); }
.vx-dest-foto { display: block; position: relative; aspect-ratio: 1 / 1; margin: 0 6px 10px; }
.vx-dest-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vx-dest-nombre { font-size: .84rem; line-height: 1.3; color: var(--vx-texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.vx-dest-ext { font-size: .74rem; color: var(--vx-gris); text-decoration: line-through; margin-top: 4px; }
.vx-dest-precio { font-size: 1.25rem; font-weight: 500; color: var(--vx-texto); font-variant-numeric: tabular-nums; margin-top: 2px; }
.vx-dest-precio em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--vx-verde-osc); margin-left: 6px; }
.vx-dest-verde { font-size: .78rem; font-weight: 600; color: var(--vx-verde-osc); }
.vx-dest-btn {
    display: block; margin-top: auto; padding: 8px 10px; text-align: center; border-radius: 6px;
    background: var(--vx-verde-luz); color: var(--vx-verde-osc); font-size: .82rem; font-weight: 700;
}
@media (max-width: 1100px) {
    .vx-ini-destacados { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 190px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .vx-ini-destacados::-webkit-scrollbar { display: none; }
}
@media (max-width: 699px) {
    .vx-ini-destacados { grid-auto-columns: 158px; gap: 10px; margin: 12px 0 4px; padding: 0 10px 4px; }
    .vx-dest { padding: 12px 12px 12px; }
    .vx-dest-tit { font-size: .86rem; }
    .vx-dest-precio { font-size: 1.1rem; }
}

/* ── Panel → Productos: filas para editar, ocultar o ver (admin, 15-10-2026) ── */
.vx-pa-barra { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; }
.vx-pa-barra .vx-ocultar-campo { flex: 1; }
.vx-pa-agregar {
    flex: none; height: 44px; padding: 0 16px; border: none; border-radius: 6px; background: var(--vx-verde); color: #fff;
    font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.vx-pa-agregar:hover { background: var(--vx-verde-osc); }
.vx-pa-cuenta { font-size: .8rem; color: var(--vx-gris); margin: 0 0 8px; }
#pa-lista { border: 1px solid var(--vx-linea); border-radius: 6px; overflow: hidden; background: #fff; }
.vx-pa-fila { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--vx-linea); }
.vx-pa-fila:last-child { border-bottom: none; }
.vx-pa-fila:hover { background: #FAFAF8; }
.vx-pa-fila img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff; flex: none; }
.vx-pa-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vx-pa-info strong { font-size: .88rem; color: var(--vx-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-pa-info span { font-size: .74rem; color: var(--vx-gris); }
.vx-pa-info .vx-pa-precios { color: var(--vx-texto); font-weight: 600; font-variant-numeric: tabular-nums; }
.vx-pa-acciones { display: flex; gap: 6px; flex: none; }
.vx-pa-acciones button, .vx-pa-acciones a {
    height: 32px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid var(--vx-linea); border-radius: 6px;
    background: #fff; font: inherit; font-size: .78rem; font-weight: 600; color: var(--vx-texto); text-decoration: none; cursor: pointer;
}
.vx-pa-acciones button[data-pa="editar"] { background: var(--vx-tinta); border-color: var(--vx-tinta); color: #fff; }
.vx-pa-acciones button[data-pa="ocultar"] { color: #B3261E; border-color: #E8C4C1; }
.vx-pa-acciones button:hover, .vx-pa-acciones a:hover { filter: brightness(.96); }
@media (max-width: 599px) {
    .vx-pa-barra { flex-direction: column; align-items: stretch; }
    .vx-pa-fila { flex-wrap: wrap; }
    .vx-pa-acciones { width: 100%; padding-left: 64px; }
}

/* =====================================================================
   GRILLA = LOS CUADRADITOS DEL INICIO (15-10-2026)
   Al buscar, filtrar, elegir una marca o en "Ver todos" (también el admin)
   cada producto se ve como en las filas de la portada: cuadro chico, foto
   con aire, nombre en letra normal, precio grande y la línea verde del
   precio por mayor. Sin la etiqueta de tipo ni el "Ahorras".
   ===================================================================== */
body .product-grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)) !important; }
@media (max-width: 599px) { body .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
body .product-grid .card-image-wrapper { padding: 10px 12px 0; background: #fff; }
body .product-grid .product-image { padding: 0; }
body .product-grid .product-info { padding: 8px 12px 12px; gap: 3px; }
body .product-grid .product-brand,
body .product-grid .price-save { display: none !important; }
body .product-grid .card h3 {
    font-size: .86rem; font-weight: 400; line-height: 1.32; letter-spacing: 0; font-variation-settings: 'wdth' 100;
    text-transform: none; min-height: 2.64em;
}
body .product-grid .price-externo { font-size: .74rem; }
body .product-grid .price-row-normal { font-size: 1.32rem; font-weight: 500; letter-spacing: -.01em; font-variation-settings: 'wdth' 100; }
body .product-grid .price-row-normal .small-price-label { display: none; }
body .product-grid .price-row-live { color: var(--vx-verde-osc); font-size: .78rem; font-weight: 600; }
body .product-grid .price-row-live .small-price-label {
    font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; margin-left: 2px;
}
body .product-grid .price-row-live .small-price-label .lbl-a::before { content: 'c/u '; }
/* Botones más bajos y discretos */
body .product-grid .cart-controls { margin-top: 8px; }
body .product-grid .add-to-cart-btn { height: 34px; min-height: 0; border-radius: 6px; }
body .product-grid .add-label { font-size: .8rem; }
body .product-grid .qty-selector { height: 34px; min-height: 0; border-radius: 6px; }
body .product-grid .card-comprar-btn { height: 36px; min-height: 0; border-radius: 6px; font-size: .84rem; }
body.admin-mode .product-grid .hide-product-btn,
body.helper-mode .product-grid .hide-product-btn {
    order: 30; margin-top: 6px; padding: 5px 0; border: none; background: none; color: #B3261E; font-size: .74rem; justify-content: flex-start;
}
body .product-grid .edit-product-btn, body .product-grid .delete-product-btn { transform: scale(.85); }
body .product-grid .add-to-cart-btn { background: #fff; color: var(--vx-texto); border: 1px solid var(--vx-linea); box-shadow: none; }
body .product-grid .add-to-cart-btn:hover { background: #fff; border-color: var(--vx-tinta); }
body .product-grid .add-to-cart-btn i { color: var(--vx-verde-osc); }

/* ── Grilla idéntica a las filas del inicio (15-10-2026) ──
   Mismo recuadro blanco, cuadraditos sin líneas entre ellos y sin botones:
   se toca el producto y se abre su ficha (ahí se elige cantidad y se compra).
   El admin conserva lápiz, tacho y "Ocultar". */
body .product-grid { padding: 10px 6px; }
body .product-grid .card { box-shadow: none !important; border-radius: 4px; transition: background .15s; cursor: pointer; }
body .product-grid .card:hover { background: #F7F7F5; box-shadow: none !important; }
body .product-grid .card-image-wrapper { background: transparent; }
body .product-grid .cart-controls,
body .product-grid .card-comprar-btn,
body .product-grid .card-wsp-btn { display: none !important; }
body .product-grid .price-row-live .small-price-label { display: none; }
body .product-grid .price-row-live::after { content: ' c/u llevando 3'; }
body .product-grid .card-sin-mayor .price-row-live { display: none; }
body .product-grid .card-sin-mayor .product-prices::after {
    content: 'Envío a todo el Perú'; display: block; font-size: .78rem; font-weight: 600; color: var(--vx-verde-osc);
}

/* Búsqueda y filtros con el mismo ancho que las filas del inicio
   (1240 px menos sus márgenes) y 6 columnas en la computadora. */
body .product-grid, body .vx-controles, body #vx-sin-resultados { max-width: 1208px; margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) { body .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }
@media (min-width: 900px) and (max-width: 1099px) { body .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
@media (min-width: 700px) and (max-width: 899px) { body .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 600px) and (max-width: 699px) { body .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
body .product-grid .card-image-wrapper { padding: 12px 16px 0; }
body .product-grid .product-info { padding: 10px 16px 14px; }

/* ── Admin: "Agregar producto" en la cabecera; el cuadro "+" de la grilla se va ── */
#add-product-button { display: none !important; }
.vx-cab-agregar {
    display: none; align-items: center; gap: 7px; height: 32px; padding: 0 12px; order: 4;
    border: none; border-radius: 6px; background: var(--vx-verde); color: #fff;
    font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.vx-cab-agregar:hover { background: var(--vx-verde-osc); }
body.admin-mode .vx-cab-agregar, body.helper-mode .vx-cab-agregar { display: inline-flex; }
@media (max-width: 699px) {
    body.admin-mode .vx-cab-agregar, body.helper-mode .vx-cab-agregar { padding: 0 10px; font-size: 0; gap: 0; }
    .vx-cab-agregar i { font-size: .9rem; }
}

/* =====================================================================
   PROMOCIONES CON EL DISEÑO NUEVO (15-10-2026)
   Antes eran tarjetas negras grandes. Ahora son un recuadro blanco con
   cuadraditos, igual que las filas del inicio. Al tocar una se abre la
   ficha, que ya cobra el precio de la promoción.
   ===================================================================== */
.promo-section { max-width: 1208px !important; margin: 16px auto 0 !important; padding: 16px 0 6px !important; background: #fff; border: 1px solid var(--vx-linea); border-radius: 6px; }
.promo-section-header { padding: 0 18px 10px !important; margin: 0 !important; }
h2.promo-section-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.promo-scroll-container { grid-auto-columns: 196px !important; gap: 0 !important; padding: 0 6px 6px !important; margin: 0 !important; max-width: none !important; }
.promo-card {
    min-height: 0 !important; background: #fff !important; border-radius: 4px !important; box-shadow: none !important;
    transform: none !important; filter: none; transition: background .15s;
}
.promo-card:hover { background: #F7F7F5 !important; }
.promo-foto { flex: none !important; aspect-ratio: 1 / 1; min-height: 0 !important; margin: 10px 12px 0; background: transparent !important; }
.promo-foto img { object-fit: contain !important; }
.promo-card:hover .promo-foto img { transform: none !important; }
.promo-chip { top: 4px; right: 4px; padding: 4px 8px; border-radius: 4px; font-size: .7rem; box-shadow: none; }
.promo-content { padding: 8px 12px 12px !important; gap: 3px !important; }
.promo-kicker { color: var(--vx-verde-osc) !important; font-size: .66rem !important; letter-spacing: .06em !important; }
.promo-name { color: var(--vx-texto) !important; font-size: .86rem !important; font-weight: 400 !important; line-height: 1.32; min-height: 2.64em; }
.promo-new { color: var(--vx-texto) !important; font-size: 1.32rem !important; font-weight: 500 !important; letter-spacing: -.01em !important; }
.promo-orig, .promo-nota { color: var(--vx-gris) !important; font-size: .74rem !important; }
.promo-ahorro { background: none !important; padding: 0 !important; color: var(--vx-verde-osc) !important; font-size: .78rem !important; font-weight: 600; }
.promo-countdown { color: var(--vx-gris) !important; }
.promo-countdown-block { background: #F2F2F0 !important; border-color: var(--vx-linea) !important; color: var(--vx-texto) !important; padding: 2px 5px !important; }
.promo-countdown-sep { color: var(--vx-gris-claro) !important; }
.promo-separacion-block { background: #F7F7F5 !important; border-color: var(--vx-linea) !important; padding: 6px 10px !important; }
.promo-separacion-monto { color: var(--vx-texto) !important; font-size: 1rem !important; }
.promo-cta { display: none !important; }
.promo-card.promo-vencida { opacity: .55; filter: grayscale(1); }
@media (max-width: 599px) {
    .promo-section { border-radius: 0; border-left: none; border-right: none; margin: 10px 0 0 !important; }
    .promo-scroll-container { grid-auto-columns: 148px !important; }
}

/* ── "Tu envío" flota debajo del botón y no empuja la página (15-10-2026) ──
   Antes se abría dentro de la cabecera y bajaba todo lo de abajo. */
header.vx-cab .vx-enviar-panel {
    position: absolute; top: calc(100% + 6px); z-index: 1100;
    left: max(12px, calc((100% - 1240px) / 2 + 20px)); width: min(560px, calc(100% - 24px));
    border: 1px solid var(--vx-linea); border-radius: 8px; box-shadow: 0 12px 34px rgba(11,11,12,.25);
    animation: vxEpBaja .16s ease-out;
}
header.vx-cab .vx-enviar-panel .vx-ep { max-width: none; padding: 16px 18px 18px; }
@keyframes vxEpBaja { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { header.vx-cab .vx-enviar-panel { animation: none; } }
.promo-section-header { border-bottom: none !important; }

/* Los numeritos de "Ventas" y "Mis compras" van al lado del texto, no encima */
header.vx-cab .vx-ventas-badge,
header.vx-cab #mis-pedidos-notif-badge {
    position: static !important; top: auto !important; right: auto !important; transform: none !important;
    margin-left: 6px; border: none !important; vertical-align: 1px;
}
body.admin-mode header.vx-cab #open-ventas-footer, body.helper-mode header.vx-cab #open-ventas-footer { display: inline-flex; align-items: center; }
header.vx-cab #mis-pedidos-btn { align-items: center; }
header.vx-cab #mis-pedidos-btn[style*="display: none"], header.vx-cab #mis-pedidos-btn[style*="display:none"] { display: none !important; }

/* =====================================================================
   PANEL DE INGRESO CON EL DISEÑO NUEVO (15-10-2026)
   Cabecera compacta, pestañas con raya verde (como el carrito), campos y
   botones cuadrados de 6 px y el botón verde de la marca. Sin el degradado
   azul al pasar el mouse.
   ===================================================================== */
.auth-modal-content { max-width: 400px !important; border-radius: 10px !important; }
.auth-modal-header { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 52px 16px 20px; text-align: left; }
.auth-modal-header .auth-logo { width: 40px; height: 40px; border-radius: 8px; margin: 0; flex: none; }
.auth-modal-header h2 { font-size: 1.05rem !important; }
.auth-modal-header p { margin: 1px 0 0; font-size: .76rem; }
.auth-modal-header .close-button { top: 50% !important; right: 14px !important; transform: translateY(-50%); color: #fff; opacity: .8; }
.auth-modal-body { padding: 4px 22px 24px; }
.auth-tabs {
    background: none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 -22px 18px !important;
    border-bottom: 1px solid var(--vx-linea) !important; gap: 0 !important;
}
.auth-tab {
    position: relative; flex: 1; padding: 14px 8px 12px !important; border-radius: 0 !important; box-shadow: none !important;
    background: none !important; font-size: .92rem; color: var(--vx-gris) !important;
}
.auth-tab.active { color: var(--vx-texto) !important; background: none !important; box-shadow: none !important; }
.auth-tab.active::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; background: var(--vx-verde); }
.auth-modal-body .form-group { margin-bottom: 12px; }
.auth-modal-body .form-group label { font-size: .8rem; font-weight: 600; color: var(--vx-texto); margin-bottom: 5px; }
.auth-modal-body .form-group input {
    height: 44px; padding: 0 12px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff; font-size: .92rem;
}
.auth-modal-body .form-group input:focus { border-color: var(--vx-tinta); box-shadow: 0 0 0 3px rgba(11,11,12,.07); }
.auth-modal-body .password-wrapper input { padding-right: 42px; }
.auth-modal-body .save-product-btn {
    height: 46px; padding: 0; border-radius: 6px; background: var(--vx-verde); font-size: .95rem; letter-spacing: 0; margin-top: 4px;
}
.auth-modal-body .save-product-btn:hover { background: var(--vx-verde-osc); transform: none; box-shadow: none; }
.auth-ayuda { display: block; margin-top: 5px; font-size: .74rem; line-height: 1.4; color: var(--vx-gris); }
.auth-modal-body .auth-error { font-size: .8rem; color: #B3261E; margin-top: 8px; min-height: 0; }
#auth-modal .vx-btn-google {
    width: 100%; height: 44px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff;
    font-size: .92rem; font-weight: 600; box-shadow: none;
}
#auth-modal .vx-btn-google:hover { border-color: var(--vx-tinta); background: #fff; }
#auth-modal .vx-sep-o { margin: 14px 0 12px; font-size: .76rem; color: var(--vx-gris); text-transform: none; letter-spacing: 0; }

/* =====================================================================
   VENTAS COMO TIENDA EN LÍNEA (15-10-2026)
   Lista: una fila por venta (foto, producto, cliente, estado, total) con
   pestañas por estado y buscador. Detalle: estado con el siguiente paso,
   pasos tocables, producto, comprador, boleta y avisos al cliente.
   ===================================================================== */
.vt-filtros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 10px; }
.vt-filtros::-webkit-scrollbar { display: none; }
.vt-filtros button {
    flex: none; height: 34px; padding: 0 12px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff;
    font: inherit; font-size: .82rem; font-weight: 600; color: var(--vx-texto); cursor: pointer;
}
.vt-filtros button span { color: var(--vx-gris); font-weight: 500; margin-left: 2px; }
.vt-filtros button[aria-selected="true"] { background: var(--vx-tinta); border-color: var(--vx-tinta); color: #fff; }
.vt-filtros button[aria-selected="true"] span { color: rgba(255,255,255,.7); }
.vt-buscar { margin-bottom: 12px; }
.vt-buscar input { width: 100%; height: 42px; padding: 0 12px 0 40px; border: 1px solid var(--vx-linea); border-radius: 6px; font: inherit; font-size: .9rem; }
#ventas-list { border: 1px solid var(--vx-linea); border-radius: 6px; overflow: hidden; background: #fff; }
.vt-fila {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: #fff; border: none;
    border-bottom: 1px solid var(--vx-linea); font: inherit; text-align: left; color: var(--vx-texto); cursor: pointer; transition: background .12s;
}
.vt-fila:last-child { border-bottom: none; }
.vt-fila:hover { background: #FAFAF8; }
.vt-foto { flex: none; width: 52px; height: 52px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--vx-gris-claro); }
.vt-foto img { width: 100%; height: 100%; object-fit: contain; }
.vt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vt-info strong { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-info span { font-size: .78rem; color: var(--vx-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-info span i { font-size: .7rem; margin-right: 2px; }
.vt-estado { flex: none; padding: 4px 9px; border-radius: 4px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.vt-estado.gris, .vd-estado.gris { background: #EFEFED; color: #55585F; }
.vt-estado.ambar, .vd-estado.ambar { background: #FFF3D6; color: #8A5A00; }
.vt-estado.azul, .vd-estado.azul { background: #E3EEFF; color: #1F4FA8; }
.vt-estado.verde, .vd-estado.verde { background: var(--vx-verde-luz); color: var(--vx-verde-osc); }
.vt-total { flex: none; min-width: 74px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.vt-ir { flex: none; font-size: .7rem; color: var(--vx-gris-claro); }
.vt-chat { flex: none; padding: 3px 7px; border-radius: 4px; background: var(--vx-verde); color: #fff; font-size: .72rem; font-weight: 700; }
.vt-vacio { padding: 26px 16px; text-align: center; color: var(--vx-gris); font-size: .88rem; }
.vt-por-producto { margin-top: 16px; }
.vt-por-producto summary { cursor: pointer; padding: 8px 0; }

.vd-estado { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 6px; margin: 4px 0 12px; }
.vd-estado strong { display: block; font-size: 1.05rem; }
.vd-estado span { display: block; font-size: .82rem; margin-top: 2px; opacity: .85; }
.vd-siguiente { flex: none; height: 38px; padding: 0 14px; border: none; border-radius: 6px; background: var(--vx-tinta); color: #fff; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.vd-siguiente:hover { background: #2A2C31; }
.vd-pasos { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 14px; padding: 0; }
.vd-pasos button { width: 100%; padding: 0; border: none; background: none; font: inherit; font-size: .72rem; color: var(--vx-gris); cursor: pointer; text-align: left; }
.vd-pasos button span { display: block; height: 4px; border-radius: 2px; background: #E3E3E1; margin-bottom: 6px; }
.vd-pasos li.hecho button span { background: var(--vx-verde); }
.vd-pasos li.actual button { color: var(--vx-texto); font-weight: 700; }
.vd-pasos li.actual button span { background: var(--vx-verde); box-shadow: 0 0 0 2px rgba(15,169,88,.25); }
.vd-caja { border: 1px solid var(--vx-linea); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.vd-caja h3 { font-size: .95rem; font-weight: 700; margin: 0 0 10px; color: var(--vx-texto); }
.vd-prod { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F0F0EE; }
.vd-prod:last-of-type { border-bottom: none; }
.vd-prod div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-prod strong { font-size: .88rem; font-weight: 600; }
.vd-prod span { font-size: .78rem; color: var(--vx-gris); }
.vd-total { display: flex; justify-content: space-between; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--vx-linea); font-size: .95rem; }
.vd-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vd-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--vx-linea); border-radius: 6px;
    background: #fff; font: inherit; font-size: .84rem; font-weight: 600; color: var(--vx-texto); text-decoration: none; cursor: pointer;
}
.vd-btn:hover { border-color: var(--vx-tinta); }
.vd-chat { background: var(--vx-verde); border-color: var(--vx-verde); color: #fff; }
.vd-chat:hover { background: var(--vx-verde-osc); border-color: var(--vx-verde-osc); }
.vd-boleta { background: var(--vx-tinta); border-color: var(--vx-tinta); color: #fff; }
.vd-primario { background: var(--vx-verde); border-color: var(--vx-verde); color: #fff; }
.vd-boleta-txt { font-size: .88rem; margin: 0 0 10px; }
.vd-boleta-txt.sin { color: #B3261E; margin: 0; }
.vd-otras-lista { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.vd-otras-lista[hidden] { display: none; }
.vd-otras-lista button { text-align: left; padding: 8px 10px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #FAFAF8; font: inherit; font-size: .8rem; cursor: pointer; }
.vd-nota { font-size: .78rem; color: var(--vx-gris); margin: -4px 0 10px; }
.vd-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--vx-linea); border-radius: 6px; font: inherit; font-size: .88rem; }
.vd-historial { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--vx-linea); display: flex; flex-direction: column; gap: 10px; }
.vd-historial li { font-size: .82rem; }
.vd-historial li span { color: var(--vx-gris); margin-left: 4px; font-size: .76rem; }
.vd-historial li p { margin: 2px 0 0; color: var(--vx-texto); }
.vd-historial li img { max-width: 120px; border-radius: 6px; margin-top: 6px; cursor: pointer; }
.vd-eliminar { width: 100%; margin-top: 4px; }
@media (max-width: 599px) {
    .vt-fila { flex-wrap: wrap; }
    .vt-info { flex-basis: calc(100% - 70px); }
    .vt-estado { margin-left: 64px; }
    .vt-total { margin-left: auto; }
    .vt-ir { display: none; }
    .vd-estado { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   CHAT EN VIVO (15-10-2026) — chat.js
   Pestaña abajo a la derecha. Minimizada solo se ve la barra; desplegada,
   la conversación. Mensajes propios a la derecha en verde.
   ===================================================================== */
.vx-chat {
    position: fixed; right: 16px; bottom: 0; z-index: 1500; width: 340px; max-width: calc(100vw - 24px);
    background: #fff; border: 1px solid var(--vx-linea); border-bottom: none; border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 24px rgba(11,11,12,.18); display: flex; flex-direction: column; overflow: hidden;
}
.vx-chat[hidden] { display: none; }
.vx-chat-cab {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: none; cursor: pointer;
    background: var(--vx-tinta); color: #fff; font: inherit; text-align: left;
}
.vx-chat-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--vx-verde); font-weight: 800; font-size: .85rem; }
.vx-chat-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.vx-chat-tit strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-chat-tit small { font-size: .72rem; color: #B5B8BD; }
.vx-chat-n { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--vx-verde); font-size: .72rem; font-weight: 800; }
.vx-chat-n[hidden] { display: none; }
.vx-chat-flecha { flex: none; font-size: .7rem; color: #B5B8BD; transition: transform .2s; }
.vx-chat.abierto .vx-chat-flecha { transform: rotate(180deg); }
.vx-chat-cuerpo { display: none; flex-direction: column; height: min(420px, 60vh); }
.vx-chat.abierto .vx-chat-cuerpo { display: flex; animation: vxChatSube .18s ease-out; }
@keyframes vxChatSube { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vx-chat-volver { flex: none; padding: 8px 14px; border: none; border-bottom: 1px solid var(--vx-linea); background: #FAFAF8; font: inherit; font-size: .8rem; font-weight: 600; text-align: left; cursor: pointer; color: var(--vx-texto); }
.vx-chat-volver[hidden], .vx-chat-lista[hidden], .vx-chat-msgs[hidden], .vx-chat-form[hidden] { display: none; }
.vx-chat-lista { flex: 1; overflow-y: auto; }
.vx-chat-lista button {
    position: relative; display: block; width: 100%; padding: 11px 44px 11px 14px; border: none; border-bottom: 1px solid var(--vx-linea);
    background: #fff; font: inherit; text-align: left; cursor: pointer;
}
.vx-chat-lista button:hover { background: #FAFAF8; }
.vx-chat-lista strong { display: block; font-size: .86rem; color: var(--vx-texto); }
.vx-chat-lista span { display: block; font-size: .76rem; color: var(--vx-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-chat-lista em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--vx-verde); color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; }
.vx-chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #F5F5F3; }
.vx-chat-m { max-width: 82%; display: flex; flex-direction: column; }
.vx-chat-m p { margin: 0; padding: 8px 11px; border-radius: 10px; font-size: .86rem; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.vx-chat-m span { font-size: .66rem; color: var(--vx-gris); margin-top: 2px; }
.vx-chat-m.suyo { align-self: flex-start; }
.vx-chat-m.suyo p { background: #fff; color: var(--vx-texto); border: 1px solid var(--vx-linea); border-bottom-left-radius: 3px; }
.vx-chat-m.mio { align-self: flex-end; align-items: flex-end; }
.vx-chat-m.mio p { background: var(--vx-verde); color: #fff; border-bottom-right-radius: 3px; }
.vx-chat-vacio { margin: auto; padding: 16px; text-align: center; font-size: .8rem; color: var(--vx-gris); }
.vx-chat-form { flex: none; display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--vx-linea); background: #fff; }
.vx-chat-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--vx-linea); border-radius: 6px; font: inherit; font-size: .88rem; }
.vx-chat-form input:focus { outline: none; border-color: var(--vx-tinta); }
.vx-chat-form button { flex: none; width: 40px; height: 40px; border: none; border-radius: 6px; background: var(--vx-verde); color: #fff; cursor: pointer; }
.vx-chat-form button:hover { background: var(--vx-verde-osc); }
@media (max-width: 599px) {
    .vx-chat { right: 8px; width: calc(100vw - 16px); }
    .vx-chat-cuerpo { height: min(460px, 70vh); }
}
@media (prefers-reduced-motion: reduce) { .vx-chat.abierto .vx-chat-cuerpo { animation: none; } }

/* El chat va por encima de los paneles (Ventas, etc.): se abre desde ahí */
.vx-chat { z-index: 9000; }

/* ── Chat: barra de la conversación (tienda) y adjuntos (15-10-2026) ── */
.vx-chat-barra { flex: none; display: flex; justify-content: space-between; border-bottom: 1px solid var(--vx-linea); background: #FAFAF8; }
.vx-chat-barra[hidden] { display: none; }
.vx-chat-barra .vx-chat-volver { border-bottom: none; background: none; }
.vx-chat-ficha { padding: 8px 14px; border: none; background: none; font: inherit; font-size: .8rem; font-weight: 700; color: var(--vx-verde-osc); cursor: pointer; }
.vx-chat-ficha:hover { text-decoration: underline; text-underline-offset: 3px; }
.vx-chat-adjuntar { flex: none; width: 40px; height: 40px; border: 1px solid var(--vx-linea); border-radius: 6px; display: grid; place-items: center; color: var(--vx-gris); cursor: pointer; }
.vx-chat-adjuntar:hover { border-color: var(--vx-tinta); color: var(--vx-texto); }
.vx-chat-pendiente { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--vx-linea); background: #FAFAF8; font-size: .8rem; color: var(--vx-texto); }
.vx-chat-pendiente[hidden] { display: none; }
.vx-chat-pendiente span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-chat-pendiente button { flex: none; border: none; background: none; font-size: 1.1rem; line-height: 1; color: var(--vx-gris); cursor: pointer; }
.vx-chat-err { color: #B3261E; white-space: normal !important; }
.vx-chat-img { display: block; margin-bottom: 4px; }
.vx-chat-img img { display: block; max-width: 210px; max-height: 220px; min-width: 80px; min-height: 60px; border-radius: 10px; object-fit: cover; background: #E7E7E4; }
.vx-chat-arch {
    display: flex; align-items: center; gap: 8px; max-width: 230px; margin-bottom: 4px; padding: 9px 11px; border-radius: 10px;
    background: #fff; border: 1px solid var(--vx-linea); color: var(--vx-texto); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.vx-chat-arch i { color: var(--vx-verde-osc); font-size: 1rem; }
.vx-chat-arch span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-chat-arch:hover { border-color: var(--vx-tinta); }

/* Nombre del cliente y, debajo, su correo o ID (ventas y conversaciones) */
.vt-info .vt-cliente { color: var(--vx-texto); font-weight: 600; }
.vx-chat-lista small { display: block; font-size: .72rem; color: var(--vx-gris); margin: 1px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cambio de foto en las tarjetas sin saltos: la foto que entra tiene el mismo
   margen y el mismo encuadre que la que sale (antes entraba recortada). */
body .product-grid .card-image-wrapper { padding: 0 !important; }
body .product-grid .product-image,
body .product-grid .card-img-incoming { box-sizing: border-box; padding: 12px 16px 0 !important; object-fit: contain !important; background: transparent; }

.vd-cuenta { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: #F5F5F3; font-size: .82rem; color: var(--vx-texto); }
.vd-cuenta[hidden] { display: none; }
.vd-cuenta i { color: var(--vx-gris); margin-right: 4px; }
.vd-cuenta span { display: block; margin-top: 3px; font-size: .76rem; color: #8A5A00; }
.vd-cuenta.distinta { background: #FFF3D6; }

/* Formulario de producto: etiquetas y variantes ocultables (15-10-2026) */
.vx-ayuda-campo { display: block; margin-top: 5px; font-size: .76rem; line-height: 1.4; color: var(--vx-gris); }
.vx-opcional { font-weight: 500; color: var(--vx-gris); }
.vx-variante-ver { flex: none; height: 40px; padding: 0 10px; border: 1px solid var(--vx-linea); border-radius: 6px; background: #fff; font: inherit; font-size: .78rem; font-weight: 700; color: var(--vx-verde-osc); cursor: pointer; white-space: nowrap; }
.vx-variante-ver[aria-pressed="false"] { color: var(--vx-gris); background: #F2F2F0; }
.vx-variante.oculta { opacity: .6; }
.vx-variante.oculta .vx-variante-ver { opacity: 1; }

/* Las fotos del chat reservan su alto mientras cargan: así no empujan la conversación */
.vx-chat-img img { width: 210px; height: 220px; object-fit: contain; background: #fff; border: 1px solid var(--vx-linea); }

/* Ficha del cliente: acceso rápido a la venta para actualizar el seguimiento */
.pedido-gestionar { display: none; width: 100%; height: 38px; margin: 10px 0 0; border: 1px solid var(--vx-verde); border-radius: 6px; background: var(--vx-verde-luz); color: var(--vx-verde-osc); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; align-items: center; justify-content: center; gap: 7px; }
body.admin-mode .pedido-gestionar, body.helper-mode .pedido-gestionar { display: flex; }
.pedido-gestionar:hover { background: var(--vx-verde); color: #fff; }

/* =====================================================================
   FILAS SIN PRODUCTOS CORTADOS (15-10-2026)
   Cada fila muestra solo productos completos: entran justos N (6 en la
   computadora, 2 en el celular) y al deslizar se detiene en el borde de
   un producto. Las flechas van DENTRO del recuadro y se ven siempre.
   ===================================================================== */
.vx-ini-fila {
    --n: 6;
    grid-auto-columns: calc(100% / var(--n));
    scroll-snap-type: x mandatory;
    padding: 0 6px;
    scroll-padding-inline: 6px;
}
@media (max-width: 1099px) { .vx-ini-fila { --n: 5; } }
@media (max-width: 899px)  { .vx-ini-fila { --n: 4; } }
@media (max-width: 699px)  { .vx-ini-fila { --n: 2; padding: 0 4px; scroll-padding-inline: 4px; } }
.vx-ini-prod { scroll-snap-align: start; min-width: 0; }

.vx-ini-flecha { width: 38px; height: 38px; }
.vx-ini-flecha.izq { left: 6px; }
.vx-ini-flecha.der { right: 6px; }
@media (max-width: 699px) {
    .vx-ini-flecha { display: grid !important; width: 34px; height: 34px; top: 30%; }
    .vx-ini-flecha[hidden] { display: none !important; }
    .vx-ini-flecha.izq { left: 4px; }
    .vx-ini-flecha.der { right: 4px; }
}

/* Tarjetas destacadas: en pantallas medianas, en dos filas de 3 (nada cortado) */
@media (min-width: 700px) and (max-width: 1100px) {
    .vx-ini-destacados { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
}
/* En el celular se deslizan de a dos tarjetas completas */
@media (max-width: 699px) {
    .vx-ini-destacados { grid-auto-columns: calc((100% - 10px) / 2); scroll-snap-type: x mandatory; scroll-padding-inline: 10px; }
    .vx-dest { scroll-snap-align: start; }
}

/* El margen va en la caja de afuera: dentro de la fila no asoma nada del siguiente producto */
.vx-ini-carril { padding: 0 6px; }
.vx-ini-fila { padding: 0 !important; scroll-padding-inline: 0 !important; }
@media (max-width: 699px) { .vx-ini-carril { padding: 0 4px; } }

/* =====================================================================
   CHAT CON DISEÑO DE TIENDA EN LÍNEA (15-10-2026)
   Cabecera blanca con la carita de Vicius, fondo gris claro, burbujas
   sobrias con la hora adentro, barra de escribir limpia. Reemplaza el
   estilo anterior (cabecera negra y círculo verde).
   ===================================================================== */
.vx-chat {
    width: 360px; border: 1px solid #D9D9D9; border-bottom: none; border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 18px rgba(0,0,0,.14); background: #fff;
}
.vx-chat-cab { background: #fff; color: var(--vx-texto); padding: 10px 12px; gap: 10px; border-bottom: 1px solid #E6E6E6; }
.vx-chat-cab:hover { background: #FAFAFA; }
.vx-chat-ava { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: #fff; display: block; flex: none; }
.vx-chat-tit strong { font-size: .92rem; font-weight: 700; color: var(--vx-texto); }
.vx-chat-tit small { font-size: .74rem; color: var(--vx-gris); }
.vx-chat-n { background: #E53935; color: #fff; }
.vx-chat-flecha { color: var(--vx-gris); }
.vx-chat-barra { background: #fff; }
.vx-chat-msgs { background: #EDEDED; padding: 12px 10px; gap: 6px; }
.vx-chat-m { max-width: 80%; }
.vx-chat-burbuja {
    position: relative; padding: 7px 9px 5px; border-radius: 6px; background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 4px;
}
.vx-chat-m.mio .vx-chat-burbuja { background: #E3F4EA; }
.vx-chat-m p, .vx-chat-m.mio p, .vx-chat-m.suyo p {
    margin: 0; padding: 0; border: none; border-radius: 0; background: none !important; color: var(--vx-texto);
    font-size: .88rem; line-height: 1.4;
}
.vx-chat-hora { align-self: flex-end; font-size: .64rem; color: #8A8D93; line-height: 1; margin-top: 1px; }
.vx-chat-m > span:not(.vx-chat-hora) { display: none; }
.vx-chat-img, .vx-chat-arch { border: none; background: none; padding: 0; font: inherit; cursor: zoom-in; text-align: left; }
.vx-chat-img img { width: 200px; height: 200px; border-radius: 4px; border: none; background: #F5F5F5; object-fit: cover; }
.vx-chat-arch {
    display: flex; align-items: center; gap: 8px; max-width: 230px; padding: 8px 10px; border-radius: 4px;
    background: rgba(0,0,0,.04); color: var(--vx-texto); font-size: .82rem; font-weight: 600; cursor: pointer;
}
.vx-chat-arch .fa-file-pdf { color: #D93025; }
.vx-chat-form { padding: 8px 10px; gap: 6px; border-top: 1px solid #E6E6E6; align-items: center; }
.vx-chat-form input { height: 38px; border: 1px solid #D9D9D9; border-radius: 20px; padding: 0 14px; background: #fff; }
.vx-chat-form input:focus { border-color: var(--vx-verde); }
.vx-chat-adjuntar { width: 34px; height: 34px; border: none; border-radius: 50%; color: var(--vx-gris); }
.vx-chat-adjuntar:hover { background: #F2F2F2; color: var(--vx-texto); }
.vx-chat-form button[type="submit"] { width: 34px; height: 34px; border-radius: 50%; background: none; color: var(--vx-verde-osc); font-size: 1rem; }
.vx-chat-form button[type="submit"]:hover { background: var(--vx-verde-luz); }
.vx-chat-lista button { padding: 10px 40px 10px 12px; }

/* ── Visor de archivos del chat: en grande, dentro de la misma página ── */
.vx-visor { position: fixed; inset: 0; z-index: 9500; display: flex; flex-direction: column; background: rgba(15,15,17,.92); }
.vx-visor[hidden] { display: none; }
.vx-visor-barra { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #fff; }
.vx-visor-nombre { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-visor-bajar { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 6px; background: #fff; color: var(--vx-texto); font-size: .84rem; font-weight: 700; text-decoration: none; }
.vx-visor-cerrar { flex: none; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.vx-visor-cerrar:hover { background: rgba(255,255,255,.24); }
.vx-visor-cuerpo { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 14px 14px; }
.vx-visor-cuerpo img, .vx-visor-cuerpo video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.vx-visor-cuerpo iframe { width: min(900px, 100%); height: 100%; border: none; border-radius: 4px; background: #fff; }
.vx-visor-cuerpo audio { width: min(480px, 100%); }
.vx-visor-cargando, .vx-visor-otro { color: #fff; text-align: center; font-size: .9rem; }
.vx-visor-otro { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vx-visor-otro i { font-size: 3rem; opacity: .8; }
.vx-visor-otro span { color: rgba(255,255,255,.7); font-size: .84rem; }
@media (max-width: 599px) {
    .vx-chat { width: calc(100vw - 16px); }
    .vx-visor-cuerpo { padding: 0 6px 8px; }
}

/* =====================================================================
   ENCABEZADO MÁS SOBRIO (15-10-2026)
   Buscador plano con esquinas casi rectas y botón de lupa a la derecha
   (separado por una línea), sin la lupa dibujada a la izquierda. WhatsApp
   y "Tu envío" sin bloques verdes rellenos: menos ruido junto al buscador.
   ===================================================================== */
header.vx-cab .header-search { position: relative; max-width: 640px; }
header.vx-cab .header-search #search-input {
    height: 40px; padding: 0 92px 0 14px; border: none; border-radius: 3px;
    background: #fff none; color: var(--vx-texto); font-size: 15px; font-weight: 400;
    box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
header.vx-cab .header-search #search-input::placeholder { color: #9A9DA3; }
header.vx-cab .header-search #search-input:focus { box-shadow: 0 0 0 2px var(--vx-verde); border: none; }
.vx-buscar-ir {
    position: absolute; top: 0; right: 0; width: 46px; height: 40px; padding: 0; border: none; border-radius: 0 3px 3px 0;
    background: none; color: #6C7078; font-size: .95rem; cursor: pointer; display: grid; place-items: center;
}
.vx-buscar-ir::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: #E2E2E2; }
.vx-buscar-ir:hover { color: var(--vx-texto); background: #F5F5F5; }
header.vx-cab .header-search .search-clear-button {
    top: 0; right: 48px; left: auto; width: 34px; height: 40px; margin: 0; color: #9A9DA3; background: none;
}
header.vx-cab .header-search .search-clear-button:hover { color: var(--vx-texto); }

/* WhatsApp: borde fino y el ícono verde, sin el bloque verde lleno */
header.vx-cab #whatsapp-button.vx-cab-wsp {
    background: transparent; color: #fff; border: 1px solid #3A3D45; border-radius: 4px; font-weight: 600;
}
header.vx-cab #whatsapp-button.vx-cab-wsp i { color: #25D366; }
header.vx-cab #whatsapp-button.vx-cab-wsp:hover { border-color: #25D366; background: rgba(37,211,102,.08); }

/* "Tu envío": el camioncito sin caja verde rellena, sin recuadro alrededor */
.vx-enviar { background: transparent; border-color: transparent; padding: 2px 8px 2px 2px; }
.vx-enviar:hover, .vx-enviar[aria-expanded="true"] { background: rgba(255,255,255,.06); border-color: #3A3D45; }
.vx-enviar-ico { background: none; width: 26px; height: 26px; }
.vx-enviar .vx-enviar-ico i { color: #7FE0AE; font-size: 1.05rem; }
.vx-enviar.vx-sin-destino .vx-enviar-ico::after { border-radius: 50%; inset: -2px; border-width: 1.5px; }
.vx-enviar.vx-sin-destino .vx-enviar-txt b { color: #fff; }

/* =====================================================================
   CÍRCULOS DE CATEGORÍAS MÁS GRANDES Y JUNTOS (15-10-2026)
   En el celular se veían chicos y muy separados: círculo más grande, la
   foto casi llena el círculo y entre uno y otro solo queda un respiro.
   ===================================================================== */
@media (max-width: 699px) {
    .vx-ini-accesos { grid-auto-columns: 76px; gap: 0; padding: 12px 6px 2px; scroll-padding-inline: 6px; }
    .vx-ini-acceso { gap: 5px; }
    .vx-ini-circulo { width: 70px; height: 70px; }
    .vx-ini-circulo img { width: 88%; height: 88%; }
    .vx-ini-acceso-txt { font-size: .74rem; max-width: 74px; }
}
