        /* ============================================
           DESIGN TOKENS
           ============================================ */
        :root {
            --primary: #F57C00;
            /* Naranja de marca cuando se usa como TEXTO: en claro se oscurece para pasar AA */
            --primary-text: #F57C00;
            --secondary: #D84315;
            --tertiary: #FFB300;
            /* Coral de acciones: oscurecido porque el blanco encima de #FF6F61 daba 2.73:1 */
            --action-primary: #E24B3D;
            /* Verde de acción para botones con texto blanco (5.5:1). --whatsapp queda para la marca del canal */
            --cta-action: #0F766E;
            --overlay-bg: rgba(18, 18, 18, 0.97);
            --cart-badge-text: #00695C;
            --bg: #121212;
            --surface: #1E1E1E;
            --surface-hover: #2a2a2a;
            --text: #FFFFFF;
            --text-muted: #B0BEC5;
            --whatsapp: #25D366;
            /* Rojo más claro: sobre la píldora roja del badge daba 4.28:1 (AA pide 4.5) */
            --danger: #F87171;
            --warning: #f59e0b;
            --success: #22c55e;
            --radius: 20px;
            --radius-sm: 12px;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        /* Light Mode */
        [data-theme="light"] {
            --bg: #F5F5F5;
            --surface: #FFFFFF;
            --surface-hover: #f0f0f0;
            --text: #1a1a1a;
            /* #6B7280 daba 4.43:1 sobre #F5F5F5 (debajo de AA): ahora 6.9:1 */
            --text-muted: #4B5563;
            /* Naranja de marca como texto en claro: 5.1:1 sobre #F5F5F5 y 4.6:1 sobre las
               píldoras naranjas (antes 2.48:1) */
            --primary-text: #B4440A;
            /* El dorado de precios aclarado sobre fondo claro daba 1.65:1: acá va oscurecido */
            --tertiary: #8A5300;
            /* Rojos y verdes de texto/badge sobre claro: el tono original quedaba
               entre 1.8:1 y 3.45:1 sobre las píldoras del badge */
            --danger: #A11616;
            --success: #166534;
            --overlay-bg: rgba(245, 245, 245, 0.97);
            --cart-badge-text: #00796B;
        }

        [data-theme="light"] .hero-bg {
            opacity: 0.8;
            filter: brightness(0.8) contrast(1.05);
        }

        [data-theme="light"] nav {
            background: rgba(245, 245, 245, 0.9);
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .nav-links a {
            color: var(--text);
        }

        [data-theme="light"] .ig-link {
            background: rgba(0, 0, 0, 0.06);
        }

        [data-theme="light"] .weight-badge {
            background: #FFFFFF;
        }

        [data-theme="light"] .cart-item {
            background: rgba(0, 0, 0, 0.03);
            border-color: rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .cart-footer {
            background: rgba(0, 0, 0, 0.03);
        }

        [data-theme="light"] .form-group input,
        [data-theme="light"] .form-group select,
        [data-theme="light"] .form-group textarea {
            background: rgba(0, 0, 0, 0.04);
            border-color: rgba(0, 0, 0, 0.12);
            color: var(--text);
        }

        [data-theme="light"] ::-webkit-scrollbar-track {
            background: var(--bg);
        }

        [data-theme="light"] ::-webkit-scrollbar-thumb {
            background: #ccc;
        }

        [data-theme="light"] .seo-block {
            background: rgba(0, 0, 0, 0.03);
        }

        [data-theme="light"] .skeleton {
            background: #e0e0e0;
        }

        [data-theme="light"] .skeleton::after {
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        }

        /* ============================================
           RESET & BASE
           ============================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Anillo de foco único para todo el sitio (teclado / switch) */
        :focus-visible {
            outline: 3px solid var(--primary-text);
            outline-offset: 2px;
        }

        html {
            /* Sin scroll-behavior global en táctil: en móvil, el "smooth" global
               pelea con el gesto rápido y produce scroll trabado. Se restaura solo
               en dispositivos con puntero fino (desktop), donde las anclas se
               desplazan suaves sin conflicto con el gesto táctil. */
            scroll-padding-top: 140px;
        }

        @media (hover: hover) {
            html {
                scroll-behavior: smooth;
            }
        }

        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg);
        }

        ::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            overflow-x: hidden;
            overflow-x: clip; /* clip NO crea scroll container (evita conflictos sticky/scroll en móvil) */
            transition: background-color 0.4s, color 0.4s;
        }

        h1,
        h2,
        h3,
        .nav-logo {
            font-family: 'Anton', sans-serif;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        *:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* ============================================
           NAV
           ============================================ */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            background: rgba(18, 18, 18, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 15px;
            /* El logo se encoge antes que los controles: el menú y el toggle
               tienen que quedar siempre alcanzables en pantallas angostas */
            min-width: 0;
            flex: 1 1 auto;
        }

        .nav-logo {
            font-size: 24px;
            color: var(--primary-text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            text-shadow: 0 0 15px rgba(245, 124, 0, 0.4);
            min-width: 0;
            min-height: 44px;
        }

        .nav-logo-text {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .nav-logo img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary);
        }

        .nav-logo span {
            color: var(--text);
        }

        /* Horario badge */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-family: 'Inter', sans-serif;
            animation: statusPulse 2s ease-in-out infinite;
        }

        .status-badge.abierto {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .status-badge.cerrado {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.3);
            animation: none;
        }

        .status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
        }

        .status-badge.abierto .status-dot {
            background: var(--success);
        }

        .status-badge.cerrado .status-dot {
            background: var(--danger);
        }

        @keyframes statusPulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-shrink: 0;
        }

        .nav-links {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .nav-links a {
            color: var(--text);
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            text-transform: uppercase;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--primary-text);
        }

        .ig-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 15px;
            border-radius: 20px;
            transition: background 0.3s !important;
        }

        .ig-link:hover {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            color: white !important;
        }

        /* Theme toggle */
        .theme-toggle {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            color: var(--text);
            font-size: 18px;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(20deg);
        }

        /* Hamburger */
        .hamburger {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            /* 44x44: área táctil mínima recomendada (antes 30x24) */
            width: 44px;
            height: 44px;
            position: relative;
            z-index: 1001;
            flex-shrink: 0;
        }

        .hamburger span {
            display: block;
            width: 24px;
            height: 3px;
            background: var(--text);
            border-radius: 3px;
            transition: all 0.3s;
            position: absolute;
            left: 10px;
        }

        .hamburger span:nth-child(1) {
            top: 10px;
        }

        .hamburger span:nth-child(2) {
            top: 20px;
        }

        .hamburger span:nth-child(3) {
            top: 30px;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg);
            top: 20px;
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg);
            top: 20px;
        }

        /* Mobile Menu */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            background: var(--overlay-bg);
            backdrop-filter: blur(20px);
            z-index: 999;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 30px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .mobile-menu.open {
            opacity: 1;
            pointer-events: all;
        }

        .mobile-menu a {
            color: var(--text);
            text-decoration: none;
            font-family: 'Anton', sans-serif;
            font-size: 2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: color 0.3s;
        }

        .mobile-menu a:hover {
            color: var(--primary-text);
        }

        /* ============================================
           HERO
           ============================================ */
        .hero {
            /* Tamaño del contenido (no pantalla completa): el comensal llega al menú sin scroll largo */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            padding: 96px 20px 110px;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('./assets/background.jpeg');
            background-size: cover;
            background-position: center;
            opacity: 0.6;
            z-index: -1;
            transform: scale(1.1);
            filter: brightness(0.7) contrast(1.1);
            will-change: transform; /* GPU-accelerated parallax sin repaint en scroll */
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 160px;
            background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
            z-index: -1;
        }

        .hero h1 {
            font-size: clamp(3.5rem, 10vw, 8rem);
            line-height: 1.1;
            margin-bottom: 20px;
            color: var(--text);
            text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.9);
        }

        .hero h1 span {
            /* Sobre la imagen del hero el naranja vivo se lee mejor: no usa el token de texto */
            color: var(--primary);
        }

        .hero p {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            max-width: 700px;
            margin-bottom: 40px;
            color: #E0E0E0;
            text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.9);
        }

        .weight-badge {
            display: inline-block;
            /* Fondo sólido: el texto va sobre la imagen del hero y con un velo
               translúcido el contraste quedaba a merced de la foto (4.17:1) */
            background: #121212;
            border: 1px solid var(--primary);
            color: var(--primary-text);
            padding: 8px 20px;
            border-radius: 50px;
            font-weight: 800;
            font-size: 1.1rem;
            margin-bottom: 30px;
            backdrop-filter: blur(5px);
            z-index: 10;
        }

        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            color: #FFF;
            padding: 16px 45px;
            font-size: 20px;
            font-family: 'Anton', sans-serif;
            text-decoration: none;
            letter-spacing: 1px;
            border-radius: 50px;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 10px 30px rgba(245, 124, 0, 0.4);
        }

        .cta-btn:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 15px 40px rgba(245, 124, 0, 0.6);
        }

        /* Closed overlay on hero CTA */
        .cta-btn.cerrado {
            background: linear-gradient(45deg, #555, #333);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            pointer-events: none;
            opacity: 0.8;
        }

        /* CTA variante pequeño (sección contacto) */
        .cta-btn-sm {
            padding: 12px 30px;
            font-size: 16px;
            margin-top: 10px;
        }

        /* Título del bloque SEO */
        .seo-title {
            color: var(--text);
            font-size: 1.1rem;
            margin-bottom: 10px;
        }

        /* Título del formulario de checkout */
        .checkout-title {
            color: var(--primary-text);
            margin: 10px 0 5px;
        }

        /* ============================================
           PROMO BANNER
           ============================================ */
        .promo-banner {
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            padding: 14px 5%;
            text-align: center;
            position: relative;
            overflow: hidden;
            display: none;
            /* Hidden until promos load */
        }

        .promo-banner.visible {
            display: block;
        }

        .promo-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            max-width: 1200px;
            margin: 0 auto;
        }

        .promo-content .promo-icon {
            font-size: 1.4rem;
        }

        .promo-content .promo-text {
            font-weight: 700;
            font-size: 1rem;
            color: white;
        }

        .promo-content .promo-desc {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.85);
        }

        .promo-close {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            font-size: 1.2rem;
            transition: color 0.3s;
        }

        .promo-close:hover {
            color: white;
        }

        /* ============================================
           SECTIONS
           ============================================ */
        section {
            padding: 100px 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 3.5rem;
            margin-bottom: 15px;
            color: var(--text);
            text-align: center;
        }

        .section-title span {
            color: var(--primary-text);
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-muted);
            margin-bottom: 40px;
            font-size: 1.1rem;
        }


        /* ============================================
           SKELETON LOADERS
           ============================================ */
        .skeleton {
            background: #2a2a2a;
            border-radius: var(--radius);
            position: relative;
            overflow: hidden;
        }

        .skeleton::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
            animation: shimmer 1.5s infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* ============================================
           CARTA ONE-PAGE (chips sticky + scroll-spy)
           Estándar de la industria (PedidosYa/Rappi/Uber Eats):
           todo el menú visible, barra de categorías fija.
           ============================================ */
        .carta-chips {
            position: sticky;
            top: var(--nav-height, 80px); /* Dynamically set by JS based on actual navbar height */
            z-index: 900;
            background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            padding: 8px 10px;
            margin: 0 -5% 40px;
            border-bottom: 2px solid var(--primary);
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            transition: background 0.4s;
            display: flex;
            align-items: center;
        }

        [data-theme="light"] .carta-chips {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.9) 100%);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .nav-arrow {
            background: var(--surface);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--primary-text);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0,0,0,0.5);
            transition: all 0.2s;
            font-size: 14px;
        }

        .nav-arrow:hover {
            background: var(--primary);
            color: #000;
            transform: scale(1.1);
        }

        .nav-arrow.hidden {
            opacity: 0;
            pointer-events: none;
            width: 0;
            margin: 0;
            border: none;
        }

        /* En táctil el swipe es la vía natural: las flechas sólo le robaban
           88px de ancho a los chips (se veían 2 de 6 categorías). */
        @media (hover: none), (pointer: coarse) {
            .nav-arrow {
                display: none;
            }
        }

        .carta-chips-scroll {
            flex: 1;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 4px 5px;
            scrollbar-width: none;
            scroll-snap-type: x mandatory;
            scroll-padding-left: 5px;
            scroll-behavior: smooth;
        }

        .carta-chips-scroll::-webkit-scrollbar {
            display: none;
        }

        /* Evita que el scroll-anchoring de Chrome "ancle" la vista durante la
           carga/fallo de imágenes y bloquee el scroll rápido en móviles */
        #carta-container {
            overflow-anchor: none;
        }

        .carta-chip {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 12px 20px;
            min-height: 44px; /* A11y */
            border-radius: 50px;
            background: var(--surface);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            scroll-snap-align: start;
        }

        .carta-chip:hover {
            color: var(--text);
            background: var(--surface-hover);
            border-color: rgba(245, 124, 0, 0.4);
            transform: translateY(-2px);
        }

        .carta-chip:active {
            transform: scale(0.95);
        }

        .carta-chip.active {
            background: var(--primary);
            color: #000;
            border-color: var(--primary-text);
            font-weight: 800;
            box-shadow: 0 6px 16px rgba(245, 124, 0, 0.4);
            transform: none;
        }

        /* Mejoras táctiles móviles: sin flash de tap, sin zoom por doble tap, sin selección de texto */
        .carta-chip,
        .producto-fila-add {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
        }

        .carta {
            display: flex;
            flex-direction: column;
            gap: 48px;
        }

        .carta-section {
            scroll-margin-top: 140px;
            /* Neutraliza la regla global 'section { padding/max-width/margin: 0 auto }'
               que centraba cada categoría (efecto Word) y le daba 100px de padding */
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 0;
        }

        /* Entrada suave al mostrar una categoría filtrada (fade + desliz sutil) */
        .carta-section.filtro-in {
            animation: filtro-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes filtro-in {
            from {
                opacity: 0;
                transform: translateY(14px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Accesibilidad: sin animación si el usuario la desactiva en el sistema */
        @media (prefers-reduced-motion: reduce) {
            .carta-section.filtro-in {
                animation: none;
            }
        }

        .carta-section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 6px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(245, 124, 0, 0.25);
        }

        .carta-section-icon {
            font-size: 1.35rem;
            width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(245, 124, 0, 0.12);
            border: 1px solid rgba(245, 124, 0, 0.25);
            border-radius: 12px;
            flex-shrink: 0;
        }

        .carta-section-title {
            font-family: 'Anton', sans-serif;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-size: 1.7rem;
            margin: 0;
            color: var(--text);
            line-height: 1.1;
            min-width: 0;
        }

        .carta-section-count {
            margin-left: auto;
            font-size: 0.72rem;
            font-weight: 800;
            color: var(--primary-text);
            background: rgba(245, 124, 0, 0.1);
            border: 1px solid rgba(245, 124, 0, 0.2);
            padding: 4px 12px;
            border-radius: 50px;
            white-space: nowrap;
        }

        /* ============================================
           CATEGORÍA DE CAMPAÑA (promocional / temporal)
           ============================================ */

        /* En la barra de chips también se nota cuál es la de campaña */
        .carta-chip-promo {
            border-color: rgba(245, 124, 0, 0.55);
            background: linear-gradient(135deg, rgba(245, 124, 0, 0.16), rgba(216, 67, 21, 0.16));
            color: var(--text);
        }

        /* La sección promocional se despega del resto del menú */
        .carta-section-promo {
            padding: 18px;
            border-radius: 20px;
            border: 1px solid rgba(245, 124, 0, 0.45);
            background:
                radial-gradient(120% 140% at 0% 0%, rgba(245, 124, 0, 0.16), transparent 62%),
                linear-gradient(180deg, rgba(216, 67, 21, 0.1), rgba(255, 255, 255, 0.02));
            box-shadow: 0 12px 36px rgba(245, 124, 0, 0.14);
        }

        .carta-section-promo .carta-section-header {
            border-bottom-color: rgba(245, 124, 0, 0.5);
        }

        .carta-promo-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 11px;
            border-radius: 50px;
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            color: #fff;
            font-weight: 800;
            font-size: 0.68rem;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            white-space: nowrap;
            box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
        }

        /* Cronómetro: lo que falta para que la categoría se oculte sola */
        .carta-countdown {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 11px;
            border-radius: 50px;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(245, 124, 0, 0.35);
            color: var(--primary-text);
            font-size: 0.72rem;
            font-weight: 700;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }

        .carta-countdown .cd-valor {
            color: #fff;
        }

        /* Última hora: el reloj pide atención */
        .carta-countdown.por-vencer {
            background: rgba(239, 68, 68, 0.18);
            border-color: rgba(239, 68, 68, 0.6);
            animation: cd-pulso 1.3s ease-in-out infinite;
        }

        @keyframes cd-pulso {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.62; }
        }

        @media (prefers-reduced-motion: reduce) {
            .carta-countdown.por-vencer { animation: none; }
        }

        /* En pantalla chica el encabezado con badge + cronómetro necesita aire */
        @media (max-width: 560px) {
            .carta-section-promo { padding: 14px; }
            .carta-section-promo .carta-section-header { flex-wrap: wrap; row-gap: 8px; }
            .carta-section-promo .carta-section-count { margin-left: 0; }
        }

        .carta-productos {
            padding-top: 8px;
        }

        /* Fila compacta de producto (estilo PedidosYa/Rappi) */
        .producto-fila {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 2px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            transition: background 0.2s;
        }

        [data-theme="light"] .producto-fila {
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }

        .producto-fila:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .producto-fila:last-child {
            border-bottom: none;
        }

        .producto-fila-img {
            width: 110px;
            height: 110px;
            border-radius: 14px;
            object-fit: cover;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: transform 0.3s;
        }

        /* Si la imagen falla (ej. límite de tasa de R2), NO colapsa el contenedor:
           mantiene el espacio reservado para no desplazar el layout ni bloquear
           el scroll (scroll-anchoring) en móviles */
        .producto-fila-img.img-error {
            visibility: hidden;
            background: rgba(255, 255, 255, 0.04);
            border-style: dashed;
        }

        .producto-fila:hover .producto-fila-img {
            transform: scale(1.05);
        }

        .producto-fila-info {
            flex: 1;
            min-width: 0;
        }

        .producto-fila-titulo {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px 10px;
        }

        .producto-fila-titulo h4 {
            font-size: 1.05rem;
            color: var(--text);
            margin: 0;
        }

        .producto-fila-cat {
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--primary-text);
            background: rgba(245, 124, 0, 0.1);
            padding: 2px 10px;
            border-radius: 50px;
        }

        .producto-fila-desc {
            color: var(--text-muted);
            font-size: 0.85rem;
            line-height: 1.5;
            margin-top: 3px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .producto-fila-precio {
            color: var(--tertiary);
            font-weight: 800;
            font-size: 1.05rem;
            margin-top: 5px;
        }

        .producto-fila-add {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            /* Coral: complementario del turquesa del carrito, máximo contraste sin romper armonía */
            background: var(--action-primary);
            color: #FFF;
            border: none;
            font-size: 1.7rem;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, box-shadow 0.3s;
            box-shadow: 0 4px 12px rgba(255, 111, 97, 0.35);
        }

        .producto-fila-add:hover {
            transform: scale(1.12);
            box-shadow: 0 6px 18px rgba(255, 111, 97, 0.5);
        }

        .producto-fila-add:active {
            transform: scale(0.95);
        }

        .producto-fila-add:disabled {
            background: #555;
            color: #999;
            box-shadow: none;
            cursor: not-allowed;
            transform: none;
        }

        /* ===== BOTTOM SHEET DE PERSONALIZACIÓN ===== */
        .bottom-sheet-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 20000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .bottom-sheet-overlay.open {
            opacity: 1;
            pointer-events: all;
        }

        .bottom-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-height: 85vh;
            max-height: 85dvh;
            background: var(--surface);
            border-radius: 24px 24px 0 0;
            z-index: 20001;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .bottom-sheet.open {
            transform: translateY(0);
        }

        .bs-handle {
            display: flex;
            justify-content: center;
            padding: 12px 0 4px;
            flex-shrink: 0;
        }

        .bs-handle-bar {
            width: 40px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .bs-header {
            padding: 8px 24px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
        }

        .bs-product-name {
            font-family: 'Anton', sans-serif;
            font-size: 1.4rem;
            color: var(--text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bs-product-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 4px;
            line-height: 1.4;
        }

        .bs-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px 24px 100px;
            -webkit-overflow-scrolling: touch;
        }

        .bs-group {
            margin-bottom: 24px;
        }

        /* Grupo obligatorio al que le falta la selección: se resalta para que
           el cliente vea qué tiene que elegir (en vez de un botón deshabilitado) */
        .bs-group.bs-group-missing {
            border-left: 3px solid #ef4444;
            background: rgba(239, 68, 68, 0.06);
            border-radius: 8px;
            padding: 10px 12px;
            margin: 0 -12px 20px;
        }

        .bs-group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .bs-group-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text);
        }

        .bs-group-badge {
            font-size: 0.7rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 50px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .bs-group-badge.required {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }

        .bs-group-badge.optional {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-muted);
        }

        .bs-group-constraint {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .bs-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            cursor: pointer;
            transition: background 0.15s;
        }

        .bs-option:last-child {
            border-bottom: none;
        }

        .bs-option:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .bs-option-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .bs-radio {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .bs-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.25);
            border-radius: 6px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .bs-option.selected .bs-radio,
        .bs-option.selected .bs-checkbox {
            background: var(--primary);
            border-color: var(--primary-text);
        }

        .bs-option.selected .bs-radio::after {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #000;
        }

        .bs-option.selected .bs-checkbox::after {
            content: '✓';
            color: #000;
            font-size: 12px;
            font-weight: 800;
        }

        .bs-option-name {
            font-size: 0.95rem;
            color: var(--text);
        }

        .bs-option-price {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--tertiary);
            white-space: nowrap;
            margin-left: 8px;
            flex-shrink: 0;
        }

        .bs-option-price.free {
            color: var(--text-muted);
            font-weight: 400;
        }

        .bs-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 16px 24px;
            padding-bottom: max(16px, env(safe-area-inset-bottom));
            background: var(--surface);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
        }

        .bs-add-btn {
            width: 100%;
            padding: 16px;
            border-radius: 16px;
            border: none;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #FFF;
            font-size: 1.1rem;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.3s;
            box-shadow: 0 8px 24px rgba(245, 124, 0, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .bs-add-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 32px rgba(245, 124, 0, 0.5);
        }

        .bs-add-btn:active {
            transform: scale(0.98);
        }

        .bs-add-btn:disabled {
            background: #444;
            box-shadow: none;
            cursor: not-allowed;
            transform: none;
        }

        @media (min-width: 600px) {
            .bottom-sheet {
                max-width: 480px;
                margin: 0 auto;
                left: 50%;
                transform: translate(-50%, 100%);
            }
            .bottom-sheet.open {
                transform: translate(-50%, 0);
            }
        }

        .producto-fila.agotado {
            opacity: 0.55;
        }

        /* ============================================
           MODALS & CART
           ============================================ */
        .ui-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .ui-overlay.open {
            opacity: 1;
            pointer-events: all;
        }

        /* Product Modal */
        .product-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%; /* Better than 100vh on mobile */
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 10000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
            display: flex;
            align-items: flex-start; /* Changed from center to avoid cutoff on small screens */
            justify-content: center;
            padding: 40px 20px; /* Added padding to ensure scrollability */
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .product-modal-overlay.open {
            opacity: 1;
            pointer-events: all;
        }

        .product-modal {
            background: var(--surface);
            border-radius: 20px;
            width: 100%;
            max-width: 540px;
            /* Remove fixed max-height to allow overlay to handle scrolling, or keep it responsive */
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.05);
            margin: auto; /* Centers it if there is extra space */
        }

        .product-modal-overlay.open .product-modal {
            transform: translateY(0);
        }

        .product-modal-img {
            width: 100%;
            height: auto;
            max-height: 40vh; /* Scaled down for mobile */
            object-fit: cover;
            border-radius: 20px 20px 0 0;
            display: block;
        }

        .product-modal-info {
            padding: 25px;
        }
        .product-modal-title {
            font-size: 1.6rem;
            color: var(--text);
            margin-bottom: 10px;
            line-height: 1.2;
        }

        .product-modal-desc {
            font-size: 1.1rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .product-modal-price {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--tertiary);
        }

        .close-modal-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0,0,0,0.6);
            color: white;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            transition: background 0.3s;
        }

        .close-modal-btn:hover {
            background: var(--primary);
            color: #000;
        }

        .cart-header {
            padding: 20px 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-header h2 {
            color: var(--primary-text);
            font-size: 1.8rem;
            margin: 0;
        }

        .close-btn {
            background: rgba(255, 255, 255, 0.05);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
            font-size: 14px;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        /* Stock badges */
        .stock-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .stock-badge.agotado {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .stock-badge.pocas {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .stock-badge.disponible {
            background: rgba(34, 197, 94, 0.1);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.2);
        }

        /* Cart Sidebar */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 100%;
            max-width: 400px;
            height: 100vh;
            height: 100dvh;
            background: var(--surface);
            z-index: 10000;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            border-left: 1px solid rgba(255, 255, 255, 0.05);
        }

        .cart-sidebar.open {
            right: 0;
        }

        .cart-items-container {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .cart-item {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: var(--radius-sm);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-item-info h4 {
            margin-bottom: 5px;
            font-size: 1rem;
        }

        .cart-item-info p {
            color: var(--tertiary);
            font-weight: bold;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .qty-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.2s;
        }

        .qty-btn:hover {
            background: var(--primary);
            color: #000;
        }

        .cart-footer {
            padding: 25px;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .cart-actions {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .share-btn {
            flex: 1;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 14px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
            font-size: 0.85rem;
        }

        .share-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .checkout-btn {
            width: 100%;
            /* Verde oscuro: el blanco encima del #25D366 de WhatsApp daba 1.98:1 */
            background: var(--cta-action);
            color: white;
            border: none;
            padding: 16px;
            border-radius: var(--radius-sm);
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: background 0.3s;
        }

        .checkout-btn:hover {
            background: #1EBE53;
        }

        /* Checkout Form */
        .cart-step {
            display: none;
            flex-direction: column;
            flex: 1;
            min-height: 0;
        }

        .cart-step.active {
            display: flex;
        }

        .checkout-form {
            padding: 20px 0;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 12px;
            border-radius: 8px;
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--primary-text);
            /* Sin 'outline: none': el foco debe verse también con teclado (ver :focus-visible) */
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .form-row-mt {
            margin-top: 15px;
        }

        .back-to-cart {
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
            margin-bottom: 10px;
            padding: 0;
            transition: color 0.3s;
        }

        .back-to-cart:hover {
            color: var(--text);
        }

        /* ============================================
           GALLERY
           ============================================ */
        .gallery-section {
            display: none;
            padding: 80px 5%;
            max-width: 1200px;
            margin: 0 auto;
            overflow-anchor: none;
        }

        .gallery-section.visible {
            display: block;
        }

        .gallery-scroll {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 8px 4px 18px 4px;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            overscroll-behavior-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

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

        .gallery-item {
            min-width: 280px;
            width: 280px;
            height: 350px;
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
            flex-shrink: 0;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
            pointer-events: none;
            -webkit-user-drag: none;
            user-select: none;
        }

        .gallery-item:hover img {
            transform: scale(1.06);
        }

        .gallery-item .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            pointer-events: none;
        }

        /* ============================================
           CONTACT
           ============================================ */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            background: var(--surface);
            padding: 50px;
            border-radius: var(--radius);
            border: 1px solid rgba(255, 255, 255, 0.05);
            margin-top: 30px;
        }

        .contact-info h3 {
            font-size: 2rem;
            color: var(--primary-text);
            margin-bottom: 25px;
        }

        .contact-info p {
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .map-container {
            width: 100%;
            min-height: 300px;
            border-radius: 15px;
            overflow: hidden;
        }

        .map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .seo-block {
            margin-top: 60px;
            padding: 25px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        /* ============================================
           TOAST NOTIFICATIONS
           ============================================ */
        .toast-container {
            position: fixed;
            top: 90px;
            right: 20px;
            z-index: 20000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            padding: 14px 20px;
            border-radius: var(--radius-sm);
            color: white;
            font-size: 0.9rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            pointer-events: all;
            transform: translateX(120%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            min-width: 280px;
            max-width: 380px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .toast.show {
            transform: translateX(0);
        }

        .toast.success {
            background: rgba(34, 197, 94, 0.9);
        }

        .toast.error {
            background: rgba(239, 68, 68, 0.9);
        }

        .toast.info {
            background: rgba(59, 130, 246, 0.9);
        }

        .toast.warning {
            background: rgba(245, 158, 11, 0.9);
        }

        /* ============================================
           FLOATING BUTTONS
           ============================================ */
        .cart-floating-btn {
            position: fixed;
            /* Mismo lugar que ocupaba el botón flotante de WhatsApp (bottom 30px) */
            bottom: 30px;
            right: 30px;
            /* Turquesa: contrasta con el naranja de la marca */
            background-color: #00BFA5;
            color: #FFF;
            width: 65px;
            height: 65px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 10px 25px rgba(0, 191, 165, 0.45);
            z-index: 1000;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .cart-floating-btn:hover {
            transform: scale(1.1);
        }

        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            /* Blanco con turquesa oscuro: 5.3:1 (con #00BFA5 daba 2.33:1) */
            background: #FFF;
            color: var(--cart-badge-text);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 13px;
            font-weight: bold;
            border: 2px solid var(--bg);
        }

        /* ============================================
           FOOTER
           ============================================ */
        footer {
            background: var(--surface);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding: 60px 5% 30px;
            margin-top: 0;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-brand .footer-logo {
            font-family: 'Anton', sans-serif;
            font-size: 1.8rem;
            color: var(--primary-text);
            text-transform: uppercase;
            margin-bottom: 15px;
        }

        .footer-brand .footer-logo span {
            color: var(--text);
        }

        .footer-brand p {
            color: var(--text-muted);
            line-height: 1.7;
            font-size: 0.9rem;
        }

        .footer-col h4 {
            color: var(--primary-text);
            font-family: 'Anton', sans-serif;
            font-size: 1.1rem;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 10px;
        }

        .footer-col ul li a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
            /* 25px de alto: los links sueltos de 17px no llegan al mínimo de área táctil */
            display: inline-block;
            padding: 4px 0;
        }

        .footer-col ul li a:hover {
            color: var(--primary-text);
        }

        .footer-col .hours-item {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-bottom: 8px;
        }

        .footer-col .hours-item .day {
            font-weight: 600;
            color: var(--text);
        }

        .footer-social {
            display: flex;
            gap: 12px;
            margin-top: 15px;
        }

        .footer-social a {
            /* 44x44: área táctil mínima recomendada (antes 40x40) */
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: all 0.3s;
            text-decoration: none;
        }

        .footer-social a:hover {
            background: var(--primary);
            color: #000;
        }

        .footer-bottom {
            text-align: center;
            margin-top: 40px;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            font-size: 0.8rem;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        /* ============================================
           ANIMATIONS
           ============================================ */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        .stagger-1 {
            transition-delay: 0.1s;
        }

        .stagger-2 {
            transition-delay: 0.2s;
        }

        /* ============================================
           CHECKOUT STEPS
           ============================================ */

        .step-header {
            padding: 20px 25px 0;
            flex-shrink: 0;
        }

        .step-body {
            flex: 1;
            overflow-y: auto;
            padding: 0 25px 15px;
        }

        .step-footer {
            padding: 15px 25px 25px;
            flex-shrink: 0;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* ============================================
           CHECKOUT WIZARD (marcadores de etapas)
           Patrón adaptado del demo: 1 Recibís → 2 Pagás → 3 Confirmás
           ============================================ */

        /* Los elementos con [hidden] se ocultan siempre, incluso si su
           clase define display: flex/block */
        [hidden] {
            display: none !important;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .checkout-progress {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 25px 2px;
            flex-shrink: 0;
        }

        .checkout-step {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .cs-ico {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.68rem;
            font-weight: 800;
            color: var(--text-muted);
            flex-shrink: 0;
            transition: background 0.3s, border-color 0.3s, color 0.3s;
        }

        .cs-num {
            line-height: 1;
        }

        .cs-check {
            display: none;
            line-height: 1;
        }

        .checkout-step.done .cs-ico {
            background: var(--primary);
            border-color: var(--primary-text);
            color: #000;
        }

        .checkout-step.done .cs-num {
            display: none;
        }

        .checkout-step.done .cs-check {
            display: block;
        }

        .checkout-step.active .cs-ico {
            border-color: var(--primary-text);
            color: var(--primary-text);
            box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.25);
        }

        .cs-label {
            font-size: 0.66rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .checkout-step.done .cs-label,
        .checkout-step.active .cs-label {
            color: var(--text);
        }

        .cs-line {
            flex: 1;
            height: 2px;
            border-radius: 2px;
            background: rgba(255, 255, 255, 0.12);
            min-width: 10px;
        }

        [data-theme="light"] .cs-line {
            background: rgba(0, 0, 0, 0.15);
        }

        .checkout-step.done + .cs-line {
            background: var(--primary);
        }

        /* Pasos del wizard: solo uno visible por vez */
        .checkout-paso {
            display: none;
            flex-direction: column;
            gap: 15px;
            padding: 18px 0 6px;
        }

        .checkout-paso.active {
            display: flex;
            animation: paso-in 0.25s ease;
        }

        @keyframes paso-in {
            from {
                opacity: 0;
                transform: translateY(6px);
            }
            to {
                opacity: 1;
                transform: none;
            }
        }

        .paso-titulo {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text);
            margin: 0;
        }

        /* Tarjetas de opción (radio grande, patrón del demo) */
        .opciones-cards {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .option-card {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-sm);
            padding: 13px 14px;
            cursor: pointer;
            transition: border-color 0.25s, background 0.25s;
        }

        .option-card:hover {
            border-color: rgba(255, 255, 255, 0.25);
        }

        .option-card:focus-within {
            border-color: var(--primary-text);
        }

        .option-card.checked {
            border-color: var(--primary-text);
            background: rgba(245, 124, 0, 0.1);
        }

        .option-card input {
            accent-color: var(--primary-text);
            width: 17px;
            height: 17px;
            flex-shrink: 0;
            margin: 0;
        }

        [data-theme="light"] .option-card {
            background: rgba(0, 0, 0, 0.03);
            border-color: rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .option-card:hover {
            border-color: rgba(0, 0, 0, 0.25);
        }

        [data-theme="light"] .option-card.checked {
            border-color: var(--primary-text);
            background: rgba(245, 124, 0, 0.08);
        }

        .oc-icon {
            font-size: 1.25rem;
            line-height: 1;
            flex-shrink: 0;
        }

        .oc-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            flex: 1;
        }

        .oc-title {
            font-weight: 600;
            font-size: 0.95rem;
        }

        .oc-desc {
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        /* Resumen de confirmación (etapa 3) */
        .summary-box {
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.03);
            border-radius: var(--radius-sm);
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        [data-theme="light"] .summary-box {
            border-color: rgba(0, 0, 0, 0.1);
            background: rgba(0, 0, 0, 0.02);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--text-muted);
            padding: 3px 0;
        }

        .summary-item {
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .summary-val {
            font-weight: 600;
            color: var(--text);
            white-space: nowrap;
        }

        .resumen-mods {
            display: block;
            font-size: 0.72rem;
            color: var(--text-muted);
            font-weight: 400;
        }

        .summary-row.total {
            font-weight: 800;
            color: var(--text);
            font-size: 1.05rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 6px;
            padding-top: 10px;
        }

        [data-theme="light"] .summary-row.total {
            border-top-color: rgba(0, 0, 0, 0.1);
        }

        .summary-row.summary-meta {
            font-size: 0.8rem;
        }

        /* Acciones ancladas del wizard */
        .paso-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .paso-actions .checkout-btn {
            flex: 1;
            padding: 14px 16px;
        }

        .btn-atras-paso {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: var(--text-muted);
            padding: 14px 14px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            transition: color 0.3s, border-color 0.3s;
        }

        .btn-atras-paso:hover {
            color: var(--text);
            border-color: rgba(255, 255, 255, 0.35);
        }

        [data-theme="light"] .btn-atras-paso {
            border-color: rgba(0, 0, 0, 0.2);
        }

        [data-theme="light"] .btn-atras-paso:hover {
            color: var(--text);
            border-color: rgba(0, 0, 0, 0.4);
        }

        /* ============================================
           RESPONSIVE
           ============================================ */
        @media (max-width: 768px) {
            .carta-chips {
                top: var(--nav-height, 80px);
            }

            nav {
                padding: 12px 16px;
            }

            .nav-links {
                display: none;
            }

            .nav-right {
                gap: 8px;
            }

            .hamburger {
                display: block;
            }

            .mobile-menu {
                display: flex;
            }

            .status-badge {
                font-size: 0.75rem;
                padding: 5px 10px;
            }

            .hero h1 {
                font-size: 3.5rem;
            }

            .weight-badge {
                font-size: 0.8rem;
                padding: 5px 15px;
                margin-bottom: 15px;
            }

            .hero p {
                font-size: 1rem;
                margin-bottom: 30px;
            }

            .section-title {
                font-size: 2.5rem;
            }

            .contact-container {
                grid-template-columns: 1fr;
                padding: 30px;
            }

            .cart-sidebar {
                max-width: 100%;
                right: -100%;
            }

            .cart-sidebar.open {
                right: 0;
            }

            .cart-floating-btn {
                width: 55px;
                height: 55px;
                right: 20px;
                bottom: 30px;
            }

            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 30px;
            }

            .search-input {
                font-size: 0.9rem;
            }

            .toast {
                min-width: auto;
                max-width: calc(100vw - 40px);
            }

            .toast-container {
                right: 10px;
                left: 10px;
            }

            .gallery-item {
                min-width: 240px;
                width: 240px;
                height: 280px;
            }

            .nav-left {
                gap: 10px;
            }

            .nav-logo {
                font-size: 18px;
            }

            .nav-logo img {
                width: 35px;
                height: 35px;
            }
        }

        /* En pantallas angostas el badge pierde el texto para no empujar
           el menú y el toggle fuera de la pantalla. El texto sigue estando
           para lectores de pantalla (no se usa display:none). */
        @media (max-width: 520px) {
            .status-badge {
                padding: 6px 10px;
            }

            .status-badge #status-text {
                position: absolute;
                width: 1px;
                height: 1px;
                padding: 0;
                margin: -1px;
                overflow: hidden;
                clip-path: inset(50%);
                white-space: nowrap;
            }

            .nav-logo {
                font-size: 17px;
            }
        }

        @media (max-width: 480px) {
            .producto-fila-img {
                width: 92px;
                height: 92px;
            }

            .producto-fila-desc {
                -webkit-line-clamp: 4;
            }

            .footer-grid {
                grid-template-columns: 1fr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }
        }
