/* ============================================================================
   INDEX_STYLE.CSS — ÍNDICE DE NAVEGACIÓN
   ============================================================================
   Buscar [SXX] para saltar a cada sección. Ejemplo: Ctrl+F → [S07]

   [S01] VARIABLES & DARK MODE ................... :root, prefers-color-scheme
   [S02] CONTORNOS & ADICIONALES ................. pills, grids de opciones
   [S03] BASE STYLES ............................. html, body, container resets
   [S04] HERO BANNER & NAVIGATION ............... .hero-banner, .glass-btn, dropdown, CTA
   [S05] OVERLAY PUBLICITARIO .................... #overlay-publicitario, .overlay-*
   [S06] SEARCH WRAPPER & IA ..................... .search-wrapper, #buscador, IA glow
   [S07] CATEGORIES .............................. #seccion-categorias, .cat-item, arrows
   [S08] SECTION HEADERS ......................... .section-title, .fire-emoji
   [S09] OFFERS & FLASH SALES ................... #seccion-ofertas, .offer-card, timers
   [S10] PRODUCT GRID & CARDS ................... .card, .card-image-wrapper, badges
   [S11] DELIVERY & ANIMATIONS .................. .moto-delivery, .fly-item, .badge-status
   [S12] STORE DRAWER PRODUCTS .................. .productos-tienda-grid, .producto-tienda-mini
   [S13] FAVORITES & CATEGORY PILLS ............. .btn-fav, .cat-pill
   [S14] DEPRECATED (LEGACY) ..................... .card-badges-top, .status-dot-breathe
   [S15] FOOTER .................................. .main-footer, .footer-links
   [S16] → MOVED to modals.css [M01] ........... .modal, .modal-content, slideUp
   [S17] SIDE DRAWER (CART) ..................... .side-drawer, #side-drawer, drawer layout
   [S18] STORE MODE HEADER ...................... #seccion-header-tienda, store banner
   [S19] DRAWER DETAILS & CART ITEMS ............ .drawer-header, .cart-item-drawer, options
   [S20] PREMIUM CHECKBOXES ..................... .premium-checkbox-item
   [S21] → MOVED to modals.css [M02] ........... .login-otp-modal, #registro-cliente-modal
   [S22] → MOVED to modals.css [M03] ........... .modal-screen, slide-in/out
   [S23] → MOVED to modals.css [M04] ........... .form-input, .phone-input-*, .phone-country-*
   [S24] → MOVED to modals.css [M05] ........... .otp-input, .otp-display, .otp-segmented
   [S25] → MOVED to modals.css [M06] ........... .btn-submit, .app-notification
   [S26] → MOVED to modals.css [M07] ........... .login-otp-overlay, .phantom-*
   [S27] SKELETON CARDS .......................... .skeleton-card, shimmer, shiny
   [S28] → MOVED to modals.css [M08] ........... .active states, default hidden
   [S29] CONSOLIDATED MEDIA QUERIES ............. 768px, 480px
   ============================================================================ */

/* ==========================================================================
   SEGURIDAD NEGATIVA: Admin y Vendedor ocultos por defecto
   Solo se muestran cuando el body tiene .donde-auth-admin o .donde-auth-vendor
   (añadidos por JS tras validar con /api/user/status; no confiar en HTML cacheado).
   ========================================================================== */
.donde-admin-only,
.donde-vendor-only,
.admin-only,
.vendor-only,
[data-donde-role="admin"],
[data-donde-role="vendedor"] {
    display: none !important;
}
body.donde-auth-admin .donde-admin-only,
body.donde-auth-admin .admin-only,
body.donde-auth-admin [data-donde-role="admin"] {
    display: revert !important;
}
body.donde-auth-vendor .donde-vendor-only,
body.donde-auth-vendor .vendor-only,
body.donde-auth-vendor [data-donde-role="vendedor"] {
    display: revert !important;
}

/* ==========================================================================
   [S01] VARIABLES & DARK MODE
   ========================================================================== */
:root {
    --primary-color: #ce2029;
    --primary-dark: #b71c1c;
    --primary-light: rgba(206, 32, 41, 0.08);
    --bg-color: #f5f5f0;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #222222;
    --text-muted: #999999;
    --border-color: #e0e0e0;
}

/* Dark Mode Support - Solo para componentes específicos (cards, contornos), NO para el fondo del body */
@media (prefers-color-scheme: dark) {
    :root {
        /* NO cambiar --bg-color para mantener el fondo original del body (#f5f5f0) */
        --bg-light: #2a2a2a;
        --white: #ffffff;
        --text-dark: #f0f0f0;
        --text-muted: #999999;
        --border-color: #404040;
        --primary-light: rgba(206, 32, 41, 0.15);
    }
}

/* ==========================================================================
   [S02] CONTORNOS & ADICIONALES
   ========================================================================== */
.contornos-grid-container,
.adicionales-grid-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #ce2029) #f9f9f9;
}

.contornos-grid-container::-webkit-scrollbar,
.adicionales-grid-container::-webkit-scrollbar {
    width: 6px;
}

.contornos-grid-container::-webkit-scrollbar-track,
.adicionales-grid-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 10px;
}

.contornos-grid-container::-webkit-scrollbar-thumb,
.adicionales-grid-container::-webkit-scrollbar-thumb {
    background: var(--primary-color, #ce2029);
    border-radius: 10px;
}

.contornos-grid-container::-webkit-scrollbar-thumb:hover,
.adicionales-grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #b71c1c);
}

.contorno-pill,
.adicional-pill {
    position: relative;
}

.contorno-pill input[type="checkbox"],
.adicional-pill input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
    top: 0;
    left: 0;
}

.contorno-pill:hover:not([style*="opacity: 0.5"]),
.adicional-pill:hover:not([style*="opacity: 0.5"]) {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Botón Ver Tienda Compacto */
.btn-ver-tienda-compact {
    transition: background 0.2s ease;
}

.btn-ver-tienda-compact:hover {
    background: #b71c1c;
}

/* Asegurar que el contenedor de opciones no empuje el botón fuera de vista */
.product-options-section {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================================================
   [S03] BASE STYLES
   ========================================================================== */
html {
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
    position: relative;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
}

/* Ensure containers don't overflow */
.container,
.wrapper,
.content {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ==========================================================================
   [S04] HERO BANNER & NAVIGATION
   ========================================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 120px;
    max-height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(206, 32, 41, 0.3);
    display: block !important;
    padding: 20px 0 0 0;
    box-sizing: border-box;
    overflow: visible;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.banner-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 200px;
    max-width: calc(100% - 200px);
    box-sizing: border-box;
}

.hero-banner .glass-btn {
    pointer-events: auto;
}

.hero-banner .top-right-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Ocultar botones extra en el hero (se usan en menú hamburguesa) */
#btn-favoritos,
#btn-perfil {
    display: none;
}

.hero-banner .top-left-home {
    pointer-events: auto;
    position: absolute;
    top: 10px;
    left: 10px;
}

#btn-menu-hamburguesa {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

#menu-hamburguesa a,
#menu-hamburguesa button:not(.btn-cerrar-menu-moderno) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    width: 100%;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

#menu-hamburguesa a:hover,
#menu-hamburguesa button:not(.btn-cerrar-menu-moderno):hover {
    background: #f0f0f0 !important;
    transform: translateX(5px);
}

.banner-logo {
    height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.hero-tagline {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow:
        0px 2px 4px rgba(0, 0, 0, 0.5),
        0px 4px 8px rgba(0, 0, 0, 0.3),
        0px 0px 12px rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    opacity: 1;
    white-space: nowrap;
    text-transform: uppercase;
    animation: subtleGlow 3s ease-in-out infinite alternate;
    position: relative;
}

@keyframes subtleGlow {
    0% {
        text-shadow:
            0px 2px 4px rgba(0, 0, 0, 0.5),
            0px 4px 8px rgba(0, 0, 0, 0.3),
            0px 0px 12px rgba(255, 255, 255, 0.2);
    }

    100% {
        text-shadow:
            0px 2px 4px rgba(0, 0, 0, 0.5),
            0px 4px 8px rgba(0, 0, 0, 0.3),
            0px 0px 20px rgba(255, 255, 255, 0.4),
            0px 0px 30px rgba(255, 255, 255, 0.2);
    }
}

.hero-banner.hidden {
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    height: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    display: none !important;
}

.hero-banner.hidden .banner-text {
    display: none;
}

/* Banner de publicidad - estructura de bloque (no colapsa) */
.ad-container {
    display: block !important;
    width: 100% !important;
    margin: 20px auto !important;
    padding: 10px 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.ad-space {
    display: inline-block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.ad-img {
    display: block !important;
    margin: 0 auto !important;
}

.top-right-menu {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.top-left-home {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 1000 !important;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    text-decoration: none;
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
}

.glass-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1002 !important;
    animation: fadeIn 0.2s ease;
}

.dropdown-content.show-menu {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 15px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #fff0f0;
    color: var(--primary-color);
}

.show-menu {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   [S05] OVERLAY PUBLICITARIO
   ========================================================================== */
#overlay-publicitario {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.3s ease;
}

body.overlay-active {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.overlay-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.overlay-close:hover {
    background: rgba(206, 32, 41, 0.9);
    transform: scale(1.1);
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.cta-business {
    position: absolute;
    bottom: 10px;
    right: 5px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 18px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 90;
    letter-spacing: 0.4px;
    border: 2px solid white;
    white-space: nowrap;
    max-width: calc(100% - 60px);
    pointer-events: auto;
    margin-top: 10px;
}

.cta-business:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.cta-business::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 30%,
            rgba(255, 215, 0, 0.4) 50%,
            rgba(255, 255, 255, 0.6) 70%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -150%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    40% {
        left: 150%;
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

/* ==========================================================================
   [S06] SEARCH WRAPPER & IA
   ========================================================================== */
.search-wrapper {
    position: relative;
    padding: 0 20px;
    padding-bottom: 8px;
    margin-top: 20px;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    border-radius: 50px;
    overflow: visible !important;
}

.search-wrapper input {
    flex: 1;
}

.ia-neon-glow {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    clip-path: inset(0 round 999px);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 5px rgba(206, 32, 41, 0.07);
}

.ia-neon-glow.active {
    opacity: 1;
    animation: neonBreathingRedViolet 2s ease-in-out infinite;
}

@keyframes neonBreathingRedViolet {

    0%,
    100% {
        box-shadow:
            0 0 8px rgba(206, 32, 41, 0.21),
            0 0 10px rgba(170, 102, 255, 0.02),
            0 0 12px rgba(206, 32, 41, 0.14),
            0 0 14px rgba(170, 102, 255, 0.015),
            0 0 16px rgba(206, 32, 41, 0.105);
    }

    50% {
        box-shadow:
            0 0 20px rgba(206, 32, 41, 0.35),
            0 0 24px rgba(170, 102, 255, 0.035),
            0 0 30px rgba(206, 32, 41, 0.28),
            0 0 36px rgba(170, 102, 255, 0.025),
            0 0 40px rgba(206, 32, 41, 0.21),
            0 0 50px rgba(170, 102, 255, 0.015);
    }
}

.search-wrapper.processing-ia input {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

#buscador-wrapper-tienda {
    position: relative;
    z-index: 100;
    padding: 10px 20px 23px 20px;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    display: none;
    flex-direction: row;
}

#buscador-wrapper-tienda .ia-neon-glow {
    border-radius: 25px;
}

#buscador-tienda {
    flex: 1;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    background: white;
    font-size: 16px;
    outline: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    transition: box-shadow 0.3s;
    color: #333;
    -webkit-text-fill-color: #333;
}

#buscador-tienda:focus {
    box-shadow: 0 10px 30px rgba(206, 32, 41, 0.3);
}

#buscador-tienda::placeholder {
    color: #999;
    opacity: 1;
    -webkit-text-fill-color: #999;
}

#buscador {
    flex: 1;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    background: white;
    font-size: 16px;
    outline: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: box-shadow 0.3s;
    color: #333;
    -webkit-text-fill-color: #333;
}

#buscador::placeholder {
    color: #999;
    opacity: 1;
    -webkit-text-fill-color: #999;
}

#buscador:focus {
    box-shadow: 0 10px 30px rgba(206, 32, 41, 0.2);
}

.search-wrapper.focused .ia-neon-glow {
    opacity: 0.21;
    box-shadow:
        0 0 5px rgba(206, 32, 41, 0.14),
        0 0 6px rgba(170, 102, 255, 0.014);
}

.btn-home-search {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(206, 32, 41, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-home-search:active {
    transform: scale(0.95);
    background: var(--primary-dark);
}

.btn-home-search.modo-tienda {
    display: flex;
}

/* ==========================================================================
   [S07] CATEGORIES
   ========================================================================== */
#seccion-categorias {
    position: relative;
    overflow: visible;
    z-index: 100;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cat-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 45px 50px 20px 50px;
    margin-top: 0;
    scrollbar-width: none;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    touch-action: pan-x !important;
    scroll-behavior: smooth;
    position: relative;
    z-index: 100;
    will-change: scroll-position;
}

.cat-scroll::-webkit-scrollbar {
    display: none;
}

.cat-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 101;
    transition: all 0.3s;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

.cat-nav-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(206, 32, 41, 0.4);
}

.cat-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.cat-nav-left {
    left: 5px;
}

.cat-nav-right {
    right: 5px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 75px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    touch-action: pan-x;
}

.cat-icon {
    width: 65px;
    height: 65px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    font-size: 28px;
    transition: all 0.2s;
    color: #555;
    position: relative;
    z-index: 200;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.cat-item:hover .cat-icon,
.cat-item.active .cat-icon {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(206, 32, 41, 0.3);
    z-index: 300;
}

/* ==========================================================================
   [S08] SECTION HEADERS
   ========================================================================== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto 15px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.fire-emoji {
    display: inline-block;
    animation: fireAnimation 1.5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes fireAnimation {

    0%,
    100% {
        transform: scale(1) rotate(0deg) translateY(0);
        filter: hue-rotate(0deg) brightness(1);
    }

    25% {
        transform: scale(1.1) rotate(-5deg) translateY(-2px);
        filter: hue-rotate(10deg) brightness(1.2);
    }

    50% {
        transform: scale(1.15) rotate(0deg) translateY(-3px);
        filter: hue-rotate(20deg) brightness(1.3);
    }

    75% {
        transform: scale(1.1) rotate(5deg) translateY(-2px);
        filter: hue-rotate(10deg) brightness(1.2);
    }
}

/* ==========================================================================
   [S09] OFFERS & FLASH SALES
   ========================================================================== */
#seccion-ofertas {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    touch-action: pan-x pan-y;
}

.offers-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 10px 50px 20px 50px;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    will-change: scroll-position;
    scroll-snap-type: none;
}

.offers-scroll::-webkit-scrollbar {
    display: none;
}

.offer-card {
    min-width: 180px;
    max-width: 200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
    flex-shrink: 0;
    touch-action: pan-x pan-y;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.offer-card-image-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
}

.offer-card-image-container img,
.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.offer-card .offer-details {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

/* Línea Superior: Tienda y Reloj */
.offer-store-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.offer-store-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.offer-store-logo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.offer-store-logo[src*="placeholder"] {
    display: none;
}

.offer-store-name {
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Reloj countdown en esquina inferior izquierda de la imagen */
.offer-timer {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 70px;
    text-align: center;
}

/* Bloque de Nombre */
.offer-product-name {
    margin: 0;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fila de Precios y Badge */
.offer-prices-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.offer-card .offer-prices {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.offer-card .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 11px;
    margin: 0;
}

.offer-card .new-price {
    color: #ce2029;
    font-weight: 800;
    font-size: 15px;
    margin: 0;
}

.offer-card .offer-badge {
    display: inline-block;
    background: #ce2029;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(206, 32, 41, 0.3);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.offer-type-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.offer-sponsored-badge-floating {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px;
    margin: 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 14px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 165, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #1a1a1a;
    font-weight: 900;
    font-size: 9px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 16px);
    text-overflow: ellipsis;
}

/* Efecto Shiny para badge flotante en ofertas */
.offer-sponsored-badge-floating::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.5) 50%,
            transparent 70%);
    animation: shineEffect 3s infinite;
    pointer-events: none;
    z-index: 1;
}

/* Asegurar que el badge funcione también en card-image-wrapper */
.card-image-wrapper .offer-sponsored-badge-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    margin: 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 16px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 165, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #1a1a1a;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 16px);
    text-overflow: ellipsis;
}

.offer-sponsored-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px;
    margin: 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 14px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 165, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #1a1a1a;
    font-weight: 900;
    font-size: 9px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 16px);
    text-overflow: ellipsis;
}

.product-sponsored-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 100 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%) !important;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 20px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 165, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #1a1a1a !important;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
}

.offer-sponsored-badge::before,
.product-sponsored-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.5) 50%,
            transparent 70%);
    animation: shineEffect 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shineEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}


.offer-discount-badge {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 3px;
    display: block;
    line-height: 1;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 6px;
}

.price-new {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 16px;
}

.offer-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

/* ==========================================================================
   [S10] PRODUCT GRID & CARDS
   ========================================================================== */
.grid-container,
#grid-exclusivo-20,
#contenedor-productos {
    display: grid !important;
    gap: 12px;
    /* Espacio reducido para móviles */
    padding: 10px;
    grid-template-columns: repeat(2, 1fr) !important;
    /* Forzar 2 columnas en móvil */
}

@media (min-width: 768px) {

    .grid-container,
    #grid-exclusivo-20,
    #contenedor-productos {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
}

/* Tarjeta Estilo UberEats Premium */
.card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-align: center;
    /* Texto centrado */
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Imagen con Aspect Ratio Fijo */
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Cuadradas como en la referencia */
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge Patrocinado (Diamante + Shiny) - Más Grande */
.badge-patrocinado {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(to right, #ffb300, #ff6d00);
    padding: 6px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    overflow: hidden;
}

/* Icono de Diamante Negro */
.badge-patrocinado::before {
    content: '💎';
    font-size: 12px;
    filter: brightness(0);
}

.badge-patrocinado span {
    color: #000;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* Efecto Shiny (Brillo blanco pasando) */
.badge-patrocinado::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(25deg);
    animation: shine-pill 4s infinite;
}

@keyframes shine-pill {
    0% {
        left: -100%;
    }

    15% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* Punto Verde de Abierto */
.status-dot-open {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
}

/* Contenido Alineado a la Izquierda y Compacto */
.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    flex-grow: 1;
}

.store-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Badge de Tiempo sobre la imagen (pegado) */
.badge-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-logo-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.store-name-mini {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

/* ==========================================================================
   [S11] DELIVERY & ANIMATIONS
   ========================================================================== */
.moto-delivery {
    font-size: 20px;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.5;
    line-height: 1;
}

.moto-delivery.moto-open {
    color: #e74c3c;
    filter: none;
    opacity: 1;
    animation: drive 2s infinite linear;
}

.moto-closed {
    color: #bdc3c7;
    filter: grayscale(1);
    opacity: 0.5;
}

@keyframes drive {
    0% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(-2px);
    }
}

/* Animación Fly to Cart */
.fly-item {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   [S12] STORE DRAWER PRODUCTS
   ========================================================================== */
.productos-tienda-grid-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox: ocultar scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge: ocultar scrollbar */
    margin-bottom: 15px;
    /* Permitir scroll con mouse y touch */
    cursor: grab;
}

.productos-tienda-grid-wrapper:active {
    cursor: grabbing;
}

/* Ocultar scrollbar en WebKit (Chrome, Safari, Edge) */
.productos-tienda-grid-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge: ocultar scrollbar */
}

.productos-tienda-grid {
    display: flex;
    gap: 12px;
    padding-bottom: 5px;
}

.producto-tienda-mini {
    flex-shrink: 0;
    width: 140px;
    min-width: 140px;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 8px 0 0 0;
    padding: 0;
    line-height: 1.3;
    min-height: 2.6em;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: #ce2029;
    margin: 0;
    padding: 0;
}

/* Badge de Abierto (Estilo Pill) */
.badge-status {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Badge Moto en zona blanca */
.badge-moto-inline {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #ce2029;
    font-weight: 600;
}

.badge-moto-inline i {
    font-size: 11px;
}

/* Badge Abierto Premium */
.badge-open-premium {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    width: fit-content;
    clear: both;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ==========================================================================
   [S13] FAVORITES & CATEGORY PILLS
   ========================================================================== */
.btn-fav {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    padding: 0;
}

.btn-fav:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.btn-fav i {
    color: #999;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-fav.active i {
    color: #ce2029;
}

/* Categorías Pills para Tienda */
.categories-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    margin-bottom: 10px;
}

.cat-pill {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-pill:hover {
    background: #ce2029;
    color: white;
    border-color: #ce2029;
}

/* ==========================================================================
   [S14] DEPRECATED (LEGACY)
   ========================================================================== */
.card-badges-top {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot-breathe {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: breathe 2s ease-in-out infinite;
    z-index: 15;
    pointer-events: none;
}

@keyframes breathe {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
        transform: scale(1.1);
    }
}

.delivery-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.delivery-icon.inactive {
    opacity: 0.5;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #222222;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0;
    line-height: 1.4;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.price {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
}

/* ==========================================================================
   [S15] FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
    border-top: 5px solid var(--primary-dark);
}

.main-footer .footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.main-footer .footer-logo i {
    font-size: 1.5rem;
}

.main-footer .footer-tagline {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.main-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.main-footer .footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.main-footer .footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.main-footer .footer-copy {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.5;
}

.main-footer.modo-tienda {
    padding: 20px 20px;
    margin-top: 40px;
    border-top: 2px solid var(--primary-dark);
}

/* ==========================================================================
   [S17] SIDE DRAWER (CART)
   ========================================================================== */
.side-drawer {
    overflow-x: hidden !important;
    overflow-y: auto;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--white);
    z-index: 11000 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    flex-direction: column;
    visibility: visible !important;
    box-sizing: border-box;
}

/* Drawer Premium - Estilo Directo */
#side-drawer {
    background: #ffffff;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Drawer Content - Responsive */
.drawer-content,
.drawer-header,
.drawer-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Tratamiento de Imagen Estilo Landing */
.drawer-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 160px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.drawer-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Transición elegante al cargar */
    transition: opacity 0.3s ease-in-out;
}

/* Botones Premium */
.btn-checkout-main {
    background: #ce2029;
    /* Rojo Brand de la landing */
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(206, 32, 41, 0.3);
    cursor: pointer;
    width: 100%;
}

.btn-add-more {
    background: #f1f1f1;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    width: 100%;
}

.side-drawer.open {
    transform: translateX(0);
    display: flex;
    pointer-events: auto;
}

#side-drawer.open {
    display: flex;
}

.side-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(3px);
}

.side-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pantalla 2 checkout: cortina delivery/retiro */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}
.drawer-cortina-resumen {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}
.drawer-cortina-resumen-texto { font-weight: 700; font-size: 16px; }
.drawer-cortina-pedido-id { margin-top: 8px; font-size: 14px; color: #666; }
.drawer-cortina-header {
    margin-bottom: 20px;
    text-align: center;
}
.drawer-cortina-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(206, 32, 41, 0.1);
    color: #ce2029;
    font-size: 22px;
    margin-bottom: 10px;
}
.drawer-cortina-title {
    margin: 0 0 6px 0;
    color: #222;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.drawer-cortina-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
}
.drawer-cortina-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.card-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #e8e8e8;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.card-option:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.card-option:active {
    transform: scale(0.98);
}
.card-option.selected {
    border-color: #ce2029;
    box-shadow: 0 4px 14px rgba(206, 32, 41, 0.15);
    transform: scale(1);
}
.card-option.selected .card-option-check {
    opacity: 1;
    transform: scale(1);
}
.card-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 18px;
    flex-shrink: 0;
}
.card-option.selected .card-option-icon {
    background: rgba(206, 32, 41, 0.12);
    color: #ce2029;
}
.card-option-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.card-option-title {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}
.card-option-extra {
    font-size: 14px;
    color: #666;
}
.card-option-extra.card-option-free {
    color: #0a7c42;
    font-weight: 600;
}
.card-option-meta {
    font-size: 13px;
    color: #888;
}
.card-option-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ce2029;
    font-size: 22px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.drawer-cortina-total {
    margin: 20px 0;
    font-size: 18px;
    font-weight: 800;
}
.drawer-cortina-total-amount { color: #ce2029; }
.drawer-cortina-cta-wrap {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 0 8px;
    margin: 0 -20px 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}
.btn-cerrar-cortina {
    margin-top: 12px;
    background: #6c757d;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* ==========================================================================
   [S18] STORE MODE HEADER
   ========================================================================== */
#seccion-header-tienda {
    margin-bottom: 0;
    margin-top: 0;
    background: linear-gradient(135deg, #ce2029 0%, #a01a20 100%);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(206, 32, 41, 0.3);
    position: relative;
    overflow: hidden;
}

#seccion-header-tienda .store-banner-container {
    margin-bottom: 0;
}

#seccion-header-tienda::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#header-tienda-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#header-tienda-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

#header-tienda-nombre {
    font-size: 2.8rem;
    font-weight: 9400;
    /* Abhaya Libre 800 weight used via global font */
    margin: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
}

/* Modo Tienda (detalle_tienda): banner responsive, logo circular, z-index sin conflictos */
#seccion-header-tienda .store-banner-container {
    min-height: 200px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    box-sizing: border-box;
}
#seccion-header-tienda .store-banner-container.store-hero-fallback {
    background: linear-gradient(135deg, #ce2029 0%, #a01a20 100%) !important;
}
#seccion-header-tienda .store-header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}
#seccion-header-tienda .store-identity-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
#seccion-header-tienda .store-name-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
#seccion-header-tienda .store-tagline {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
}
#seccion-categorias-tienda {
    position: relative;
    z-index: 100;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 16px;
}
#contenedor-productos {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 24px;
}
.store-banner-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================================================
   [S19] DRAWER DETAILS & CART ITEMS
   ========================================================================== */
.drawer-header {
    padding: 8px 20px;
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.drawer-header .close-drawer {
    margin: 0 auto 0 0;
}

.close-drawer {
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-drawer:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    position: relative;
}

.drawer-section {
    margin-bottom: 22px;
}

.drawer-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 15px;
}

/* Cart item cards */
.drawer-content .cart-item-drawer {
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: #fff;
}

.cart-item-drawer .cart-item-name {
    font-size: 0.9rem;
    margin-bottom: 2px;
    margin-top: 0;
    font-weight: 700;
    color: #333;
}

.cart-item-drawer .cart-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color, #ce2029);
}

.cart-item-drawer .cart-item-qty-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2px 4px;
}

.cart-item-drawer .qty-btn {
    width: 19px;
    min-width: 19px;
    height: 19px;
    padding: 0;
    font-size: 16px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Options collapse + toggle link */
.options-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.options-collapse.is-open {
    max-height: 600px;
    overflow-y: auto;
}

.options-toggle-link {
    background: none;
    border: none;
    color: var(--primary-color, #ce2029);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    margin-top: 6px;
}

.options-toggle-link:hover {
    color: var(--primary-dark, #b71c1c);
}

#order-instructions {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

#order-instructions:focus {
    border-color: var(--primary-color);
}

.phantom-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.phantom-input:focus {
    border-color: var(--primary-color);
}

.drawer-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    padding: 25px;
    padding-bottom: max(25px, env(safe-area-inset-bottom, 0));
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1) !important;
}

.total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-container span:first-child {
    font-weight: 700;
    color: #555;
}

#drawer-total-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(206, 32, 41, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #e51e28;
    box-shadow: 0 15px 35px rgba(206, 32, 41, 0.4);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    pointer-events: none;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   [S20] PREMIUM CHECKBOXES
   ========================================================================== */
.premium-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fcfcfc;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-checkbox-item.checked {
    border-color: var(--primary-color);
    background: #fffcfc;
}

.premium-checkbox-item input {
    cursor: pointer;
}

.premium-extra-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.premium-extra-price {
    font-weight: 800;
    color: var(--primary-color);
}

/* ==========================================================================
   [S27] SKELETON CARDS
   ========================================================================== */
.skeleton-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Imagen Skeleton */
.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    position: relative;
}

/* Contenido Skeleton */
.skeleton-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    position: relative;
}

.skeleton-line-short {
    width: 60%;
}

.skeleton-line-medium {
    width: 80%;
}

.skeleton-line-long {
    width: 100%;
}

/* Animación Shimmer mejorada con efecto shiny */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Efecto Shiny mejorado para skeleton */
@keyframes shiny {
    0% {
        background-position: -200% 0;
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0.8;
    }
}

/* Skeleton Cards mejoradas - Estructura similar a cards reales */
.skeleton-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.skeleton-image.skeleton-shiny {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        #f0f0f0 0%, 
        #e8e8e8 25%, 
        #f5f5f5 50%, 
        #e8e8e8 75%, 
        #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shiny 2s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

.skeleton-image.skeleton-shiny::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    animation: shinySweep 2s infinite;
}

@keyframes shinySweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skeleton-badge-fav {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    background-size: 200% 100%;
    animation: shiny 2s infinite ease-in-out;
}

.skeleton-badge-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    background-size: 200% 100%;
    animation: shiny 2s infinite ease-in-out;
}

.skeleton-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-store-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.skeleton-store-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.skeleton-logo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shiny 2s infinite ease-in-out;
    flex-shrink: 0;
}

.skeleton-line-store {
    width: 80px;
    height: 10px;
}

.skeleton-moto {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shiny 2s infinite ease-in-out;
    flex-shrink: 0;
}

.skeleton-line-title {
    width: 100%;
    height: 16px;
    margin-bottom: 4px;
}

.skeleton-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.skeleton-line-price {
    width: 70px;
    height: 18px;
}

/* Variación de delay para efecto más natural en nuevas cards */
.skeleton-card:nth-child(1) .skeleton-image,
.skeleton-card:nth-child(1) .skeleton-line,
.skeleton-card:nth-child(1) .skeleton-badge-fav,
.skeleton-card:nth-child(1) .skeleton-badge-time {
    animation-delay: 0s;
}

.skeleton-card:nth-child(2) .skeleton-image,
.skeleton-card:nth-child(2) .skeleton-line,
.skeleton-card:nth-child(2) .skeleton-badge-fav,
.skeleton-card:nth-child(2) .skeleton-badge-time {
    animation-delay: 0.15s;
}

.skeleton-card:nth-child(3) .skeleton-image,
.skeleton-card:nth-child(3) .skeleton-line,
.skeleton-card:nth-child(3) .skeleton-badge-fav,
.skeleton-card:nth-child(3) .skeleton-badge-time {
    animation-delay: 0.3s;
}

.skeleton-card:nth-child(4) .skeleton-image,
.skeleton-card:nth-child(4) .skeleton-line,
.skeleton-card:nth-child(4) .skeleton-badge-fav,
.skeleton-card:nth-child(4) .skeleton-badge-time {
    animation-delay: 0.45s;
}

.skeleton-card:nth-child(5) .skeleton-image,
.skeleton-card:nth-child(5) .skeleton-line,
.skeleton-card:nth-child(5) .skeleton-badge-fav,
.skeleton-card:nth-child(5) .skeleton-badge-time {
    animation-delay: 0.6s;
}

.skeleton-card:nth-child(6) .skeleton-image,
.skeleton-card:nth-child(6) .skeleton-line,
.skeleton-card:nth-child(6) .skeleton-badge-fav,
.skeleton-card:nth-child(6) .skeleton-badge-time {
    animation-delay: 0.75s;
}

/* Prevenir que cualquier spinner se muestre basado en productsLoading */
.products-loading .spinner,
.products-loading .loader,
body[data-products-loading="true"] .spinner,
body[data-products-loading="true"] .loader,
.products-loading #loading-overlay,
body[data-products-loading="true"] #loading-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ============================================
   FUERZA BRUTA: Eliminar TODOS los spinners
   ============================================ */
.spinner, .loader, #loading-overlay, #skeleton-loader {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
#grid-exclusivo-20 {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================================================
   [S29] CONSOLIDATED MEDIA QUERIES
   All responsive rules in one place, ordered largest-first
   ========================================================================== */

/* --- Tablet and below (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Hero banner */
    .hero-banner {
        min-height: 130px;
        max-height: 180px;
        padding: 15px 20px 50px 20px;
    }
    .banner-logo {
        height: 70px;
    }
    .hero-tagline {
        font-size: 12px;
    }
    .banner-text {
        gap: 6px;
        max-width: calc(100% - 120px);
        top: 40% !important;
        z-index: 95;
    }

    /* Navigation */
    #btn-menu-hamburguesa {
        right: 10px !important;
    }
    .top-right-menu {
        display: none !important;
    }
    .top-left-home {
        top: 8px !important;
        left: 8px !important;
        z-index: 1000 !important;
        position: absolute !important;
    }
    .glass-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* CTA business button */
    .cta-business {
        padding: 8px 16px !important;
        font-size: 9px !important;
        bottom: 10px !important;
        right: 10px !important;
        max-width: calc(100% - 60px) !important;
        line-height: 1.2;
        z-index: 90;
    }

    /* Ad banner */
    .ad-container {
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 10px 20px !important;
        text-align: center !important;
    }
    .ad-space {
        display: inline-block !important;
        width: 100% !important;
        max-width: 1200px !important;
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        overflow: hidden;
        margin: 0 auto !important;
        border-radius: 14px;
    }
    .ad-img {
        width: 360px !important;
        max-width: 100% !important;
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
        object-fit: cover !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }

    /* Search bar */
    #buscador,
    #buscador-tienda {
        font-size: 14px;
        padding: 16px 20px;
        color: #333 !important;
        -webkit-text-fill-color: #333 !important;
    }
    #buscador::placeholder,
    #buscador-tienda::placeholder {
        color: #999 !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #999 !important;
    }

    /* Side drawer fullscreen en mobile (100dvh por barra dinámica iOS) */
    .side-drawer,
    #side-drawer {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    #side-drawer .drawer-content,
    .side-drawer .drawer-content {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    #side-drawer .drawer-footer,
    .side-drawer .drawer-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
    }
    body.drawer-open-fullscreen {
        overflow: hidden !important;
    }
}

/* --- Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
    /* Hero banner */
    .banner-text {
        top: 35%;
    }

    /* CTA business button */
    .cta-business {
        bottom: 10px !important;
        right: 8px !important;
        max-width: calc(100% - 50px) !important;
    }

    /* Search bar */
    #buscador,
    #buscador-tienda {
        font-size: 13px;
        padding: 14px 18px;
        color: #333 !important;
        -webkit-text-fill-color: #333 !important;
    }
    #buscador::placeholder,
    #buscador-tienda::placeholder {
        color: #999 !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #999 !important;
    }

    /* Side drawer ya fullscreen desde 768px */
}