@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-var.woff2') format('woff2-variations'),
         url('../fonts/outfit-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* 
       ==========================================================================
       EXPERTO: DESIGN TOKENS - FUNDAMENTOS DEL SISTEMA
       ==========================================================================
       Este núcleo centraliza todas las decisiones de diseño. Un cambio aquí
       se propaga instantáneamente a todo el ecosistema visual.
    */

    /* --- BRAND COLORS (Primitive Tokens) --- */
    --brand-primary: #3d4d1d;      /* Verde oliva institucional */
    --brand-primary-deep: #2b3815;
    --brand-primary-light: #f4faeb;
    --brand-accent: #c99c6b;       /* Beige tierra premium */
    --brand-accent-soft: #e3d2bc;
    --brand-accent-deep: #a67c52;
    
    /* --- SEMANTIC COLORS (Alias Tokens) --- */
    --primary: var(--brand-primary);
    --primary-deep: var(--brand-primary-deep);
    --primary-light: var(--brand-primary-light);
    --accent: var(--brand-accent);
    --accent-soft: var(--brand-accent-soft);
    
    --bg-app: #0a0a0a;
    --bg-surface: rgba(255, 255, 255, 0.05);
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --bronze-glow: rgba(201, 156, 107, 0.15);
    
    --text-main: #eeeeee;
    --text-muted: #aaaaaa;
    --text-on-accent: #111111;
    --white: #ffffff;

    /* --- STATUS COLORS --- */
    --status-success: #4caf50;
    --status-error: #ff5252;
    --status-warning: #ffb74d;
    --status-info: #2196f3;
    --spark-glow: #ffeb3b;
    --spark-fire: #ff5722;

    /* --- SPACING SCALE (Modular Scale 1.5) --- */
    --s-xs: 0.25rem;  /* 4px */
    --s-sm: 0.5rem;   /* 8px */
    --s-md: 0.75rem;  /* 12px */
    --s-base: 1rem;   /* 16px */
    --s-lg: 1.5rem;   /* 24px */
    --s-xl: 2rem;     /* 32px */
    --s-2xl: 3rem;    /* 48px */
    --s-3xl: 4rem;    /* 64px */

    /* --- BORDER RADIUS --- */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-card: var(--radius-xl);
    --radius-pill: 50px;

    /* --- ELEVATION & SHADOWS --- */
    --shadow-soft:
        0 2px 10px rgba(0, 0, 0, 0.05),
        0 5px 20px rgba(0, 0, 0, 0.1),
        0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-medium:
        0 5px 15px rgba(0, 0, 0, 0.1),
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.2);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);

    /* --- TYPOGRAPHY (Modular Scale Ratio: 1.25) --- */
    --ms-neg-2: 0.75rem;  /* 12px */
    --ms-neg-1: 0.875rem; /* 14px */
    --ms-0: 1rem;         /* 16px - Base */
    --ms-1: 1.25rem;      /* 20px */
    --ms-2: 1.5rem;       /* 24px */
    --ms-3: 2rem;         /* 32px */
    --ms-4: 2.5rem;       /* 40px */
    --price-kerning: 0.05em;

    /* --- ANIMATION & TRANSITIONS --- */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- PERFORMANCE HINTS --- */
    --card-intrinsic-height: 220px;
    --list-item-intrinsic-height: 52px;
}

/* Override: DINNER/NIGHT (Bosque profundo y Bronce satinado) */
.circadian-night {
    --primary: #1a230e;      /* Verde bosque profundo */
    --primary-deep: #0f1408;
    --accent: #cd7f32;       /* Bronce satinado nocturno */
    --bg-app: #0a0a14;       /* Negro nocturno con matiz azulado */
    --bg-overlay: rgba(5, 5, 15, 0.9);
    --bronze-glow: rgba(205, 127, 50, 0.2);
    --accent-soft: #8b5a2b;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 
   ==========================================================================
   SISTEMA DE ICONOGRAFÍA "CUSTOM-LINE" (Premium Line Weight: 1.5px)
   ==========================================================================
   Sustitución de iconos genéricos por un set propio que comparte el 
   grosor de línea del logotipo principal.
*/

.icon-cl {
    display: inline-block;
    width: var(--s-xl);
    height: var(--s-xl);
    vertical-align: middle;
    fill: currentColor;
    stroke: none;
    transition: transform var(--transition-elastic);
}

/* 
   Soporte para el nuevo sistema de Sprite SVG
   Garantiza que el icono herede el color del texto y sea escalable.
*/
.q-icon {
    width: var(--s-xl);
    height: var(--s-xl);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    display: inline-block;
    transition: transform var(--transition-elastic);
}

/* 
   ==========================================================================
   LIVE CATEGORY ICONS (Characteristic Animations)
   ==========================================================================
*/
@keyframes icon-tilt {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(12deg);
    }
}

@keyframes icon-pulse-zoom {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Aplicación según el contexto activo */
.pill.active .ic-bebida,
.service-mode-chip.active .ic-bebida,
.submenu-buttons button .live-icon.ic-bebida,
.submenu-buttons button .live-icon.ic-vino,
.header-row .live-icon.ic-vino,
.header-row .live-icon.ic-bebida {
    animation: icon-tilt 2.5s ease-in-out infinite;
}

.pill.active .ic-comida,
.landing-btn-menu-dia:active .ic-comida,
.submenu-buttons button .live-icon.ic-comida,
.submenu-buttons button .live-icon.ic-carne,
.submenu-buttons button .live-icon.ic-ensalada,
.submenu-buttons button .live-icon.ic-frito,
.submenu-buttons button .live-icon.ic-pescado,
.header-row .live-icon.ic-carne,
.header-row .live-icon.ic-ensalada,
.header-row .live-icon.ic-frito,
.header-row .live-icon.ic-pescado,
.header-row .live-icon.ic-comida {
    animation: icon-pulse-zoom 1.8s ease-in-out infinite;
}

.pill.active .ic-postre,
.submenu-buttons button .live-icon.ic-postre,
.submenu-buttons button .live-icon.ic-cafe,
.header-row .live-icon.ic-postre,
.header-row .live-icon.ic-cafe {
    animation: icon-float 3s ease-in-out infinite;
}

/* =========================================================================
   ANIMACIONES DE PARTÍCULAS (EFECTO "VIVO" AVANZADO)
   ========================================================================= */

/* 1. Burbujas para Bebidas (Vino/Cerveza) */
@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0;
    }
}

.pill.active:has(.ic-bebida),
.submenu-buttons button:has(.ic-bebida).active,
.submenu-buttons button:has(.ic-vino).active {
    position: relative;
    overflow: visible;
}

.pill.active:has(.ic-bebida)::after,
.submenu-buttons button:has(.ic-bebida).active::after,
.submenu-buttons button:has(.ic-vino).active::after {
    content: '';
    position: absolute;
    width: var(--s-xs);
    height: var(--s-xs);
    background: var(--accent);
    border-radius: 50%;
    top: -5px;
    right: var(--s-lg);
    animation: bubble-rise 1.5s ease-in infinite;
    box-shadow: -8px 5px 0 -1px rgba(255, 255, 255, 0.6), 5px 8px 0 -2px var(--accent);
}

/* 2. Chispas para Carnes/Fritos (Brasa) */
@keyframes spark-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(10px, -15px) scale(0);
        opacity: 0;
    }
}

@keyframes spark-float-alt {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-10px, -10px) scale(0);
        opacity: 0;
    }
}

.submenu-buttons button:has(.ic-carne).active::before,
.submenu-buttons button:has(.ic-carne).active::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--spark-fire);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--spark-glow);
    top: -2px;
    right: var(--s-lg);
}

.submenu-buttons button:has(.ic-carne).active::before {
    animation: spark-float 1s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.submenu-buttons button:has(.ic-carne).active::after {
    animation: spark-float-alt 1.2s cubic-bezier(0.25, 1, 0.5, 1) infinite 0.3s;
}

/* 3. Vapor para Postres/Café */
@keyframes steam-rise {
    0% {
        transform: translateY(0) rotate(0deg) scaleX(1);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-15px) rotate(15deg) scaleX(1.5);
        opacity: 0;
    }
}

.submenu-buttons button:has(.ic-cafe).active::after,
.submenu-buttons button:has(.ic-postre).active::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: -5px;
    right: 15px;
    animation: steam-rise 2s ease-in-out infinite;
    filter: blur(1px);
}

/* Los iconos ahora se cargan vía assets/icons/sprite.svg */



body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: var(--ms-0);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-slow);
}

/* 
   ==========================================================================
   CUSTOM SCROLLBARS (Premium UX Consistency)
   ==========================================================================
*/

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Specific Context: Legal Modal & Drawers */
.legal-modal-content::-webkit-scrollbar-thumb,
.order-drawer-content::-webkit-scrollbar-thumb {
    background: rgba(201, 156, 107, 0.2);
}

.legal-modal-content::-webkit-scrollbar-thumb:hover,
.order-drawer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 156, 107, 0.4);
}


body.service-mode-barra {
    background-color: #1a0f0a;
    /* Fondo más cálido para Modo Barra */
}

.app-container {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-app);
    position: relative;
    padding: var(--s-xl);
    display: none;
    /* Hidden by default until landing screen is bypassed */
}

/* Landing Screen */
.landing-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 100px;
    /* Levantamos el contenido reduciendo arriba y ampliando abajo */
}

.landing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1.1);
}


.slider-item.active {
    opacity: 1;
    transform: scale(1);
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Dark overlay */
    z-index: -1;
    transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
   ==========================================================================
   BAR MODE TRANSFORMATION
   ==========================================================================
*/
body.service-mode-barra .landing-overlay {
    background: linear-gradient(to bottom, rgba(40, 20, 10, 0.85), rgba(0, 0, 0, 0.95));
}

body.service-mode-barra .btn-bebida {
    order: -1;
    /* Mueve Bebidas al principio en Modo Barra */
    animation: elasticShift 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

body.service-mode-barra .btn-comida {
    order: 1;
    animation: elasticShift 0.9s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

body.service-mode-barra .btn-postre {
    order: 2;
    animation: elasticShift 1.0s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

body.service-mode-barra .landing-btn-menu-dia {
    order: 3;
    animation: elasticShift 1.1s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Transición para el indicador de ubicación */
body.service-mode-barra .location-icon-box {
    background: #d68331;
    /* Color más cálido */
    transition: background 0.8s ease;
}

@keyframes elasticShift {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    60% {
        transform: scale(1.05) translateY(-5px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.landing-top-left {
    position: absolute;
    top: 20px;
    /* Subimos las banderas de 40px a 20px */
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.8rem;
    z-index: 5;
}

.landing-top-left span {
    cursor: pointer;
    transition: transform 0.2s;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.6;
}

.landing-top-left span.active {
    opacity: 1;
    transform: scale(1.1);
}

.landing-logo {
    text-align: center;
    width: 160px;
    z-index: 5;
}

.landing-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 280px;
    margin-bottom: 15px;
    z-index: 5;
}

.landing-buttons button {
    position: relative;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.landing-buttons button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.landing-buttons button:active {
    transform: translateY(-2px) scale(0.98);
}

.landing-btn-menu-dia {
    background: linear-gradient(135deg, rgba(201, 156, 107, 0.2), rgba(43, 56, 21, 0.6)) !important;
    border: 1px solid var(--accent) !important;
}

.landing-btn-menu-dia i {
    position: absolute;
    right: -15px;
    top: -15px;
    font-size: 5rem;
    opacity: 0.1;
    color: var(--accent);
    transform: rotate(-15deg);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
}

.premium-shadow {
    box-shadow: var(--shadow-premium);
}

/* Special handling for buttons with images */
.landing-buttons button.landing-btn-img {
    background-size: cover;
    background-position: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow: hidden;
}

.landing-buttons button.landing-btn-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.landing-buttons button.landing-btn-img:hover::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.landing-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.landing-bottom-right .ig-icon {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s;
}


.landing-bottom-right .ig-icon:hover {
    transform: scale(1.1);
}


.landing-bottom-left {
    position: absolute;
    bottom: 24px;
    left: 20px;
    z-index: 9999;
    pointer-events: all;
    animation: fadeInSlideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both;
}

@keyframes fadeInSlideRight {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.legal-info-btn {

    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.legal-info-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}


.service-mode-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    /* Ultra Transparent */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.6);
    /* Faded Text */
    padding: 0 14px;
    min-height: 38px;
    border-radius: 19px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: 1000;
}

/* Service Mode Variants */
.service-mode-chip.featured {
    background: var(--accent);
    color: #000 !important;
    padding: 4px 12px;
    min-height: 28px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
    font-size: 0.73rem;
}

.service-mode-chip.featured i {
    color: #000 !important;
}

.service-mode-chip.featured span {
    color: #000 !important;
}

.service-mode-chip:active {
    transform: scale(0.95);
    filter: brightness(1.1);
}

.top-status-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-mode-chip.mode-terraza {
    border-color: rgba(201, 156, 107, 0.3);
}

.service-mode-chip.mode-barra {
    border-color: rgba(43, 56, 21, 0.4);
}

.service-mode-chip i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.service-mode-chip.mode-terraza i {
    color: var(--accent);
}

.service-mode-chip.mode-barra i {
    color: #8fa171;
}

.location-indicator-landing {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--s-sm) var(--s-lg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: var(--s-md);
    cursor: pointer;
    margin-top: var(--s-md);
    width: 100%;
    max-width: 280px;
    transition: all var(--transition-base);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.location-indicator-landing:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.location-icon-box {
    width: var(--s-xl);
    height: var(--s-xl);
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-accent);
    font-size: var(--ms-neg-1);
    box-shadow: 0 4px 10px rgba(201, 156, 107, 0.3);
}

.location-text-content {
    text-align: left;
}

.location-label {
    font-size: var(--ms-neg-2);
    opacity: 0.7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 2px;
}

.location-value {
    font-weight: 800;
    font-size: var(--ms-0);
    color: var(--white);
}

.choice-card:active {
    transform: scale(0.98);
    filter: brightness(1.1);
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Header Styling - Inspired by first screen of image */
header {
    margin-top: var(--s-xl);
    margin-bottom: var(--s-2xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-text h1 {
    font-size: var(--ms-1);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
}

.header-text h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 3s linear infinite;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fff;
    border: 2px solid white;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SEARCH Placeholder - Optimized for Thumb Reach & Visibility */
.search-fake {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Category Slider (Pills) - Optimized for Thumb Swing */
.category-pills {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Inercia visual fluida en iOS/Safari */
    overscroll-behavior-x: contain;
    /* Evita que el scroll rebase al navegador */
    scroll-behavior: smooth;
    /* Desplazamiento suave */
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px 0;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    padding: var(--s-md) var(--s-lg);
    background: var(--white);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    font-weight: 600;
    font-size: var(--ms-neg-1);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.pill:active {
    transform: scale(0.98);
}

.pill.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 20px rgba(92, 15, 42, 0.5), 0 0 40px rgba(242, 139, 77, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pill i {
    font-size: 1.1rem;
}

/* Section Titles */
.section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-xl);
}

.section-label h2 {
    font-size: var(--ms-1);
    font-weight: 700;
}

.section-label .arrow-icon {
    width: var(--s-2xl);
    height: var(--s-2xl);
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

/* Item Cards - Inspired by "Rocky Road" card */
.items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.menu-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-card);
    padding: var(--s-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform var(--transition-base), opacity var(--transition-base);
    cursor: pointer;
    /* Expert Optimization: Skipping off-screen rendering */
    content-visibility: auto;
    contain-intrinsic-size: auto var(--card-intrinsic-height);
}

.menu-card:active {
    transform: scale(0.98);
    /* Efecto de hundimiento del 2% */
    filter: brightness(0.9);
}

.menu-card:nth-child(even) {
    background: linear-gradient(135deg, rgba(253, 235, 218, 0.9), rgba(253, 235, 218, 0.4));
}

.menu-card .content {
    flex: 1;
    max-width: 60%;
}

.menu-card .title {
    font-size: var(--ms-1);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1;
}

.menu-card .desc {
    font-size: var(--ms-neg-1);
    color: var(--text-muted);
    margin-bottom: 15px;
}

.menu-card .price-bubble {
    background: white;
    padding: 8px 16px;
    border-radius: 14px;
    display: inline-block;
    font-weight: 800;
    font-size: var(--ms-0);
    letter-spacing: var(--price-kerning);
    font-variant-numeric: tabular-nums;
}

.menu-card .img-overlay {
    position: absolute;
    right: -20px;
    bottom: -10px;
    width: 60%;
    transform: rotate(-15deg);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.menu-card .cart-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #8a173f);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(92, 15, 42, 0.4);
    overflow: hidden;
    transition: var(--transition);
}

.menu-card .cart-btn:active {
    transform: scale(0.9);
}

.back-btn-wrapper div:active {
    transform: scale(0.95);
}

.menu-card .cart-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(300%);
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-circle {
    width: 44px;
    /* Fitts's Standard */
    height: 44px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    border: 1px solid transparent;
}

.lang-circle.active {
    background: var(--accent);
    color: white;
}

/* Bottom Bar - Core of the Thumb-Driven Navigation */
.bottom-bar {
    position: fixed;
    bottom: var(--s-lg);
    left: var(--s-lg);
    right: var(--s-lg);
    background: rgba(43, 56, 21, 0.9);
    /* Harmonized with Olive Green */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: var(--s-md) var(--s-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2000;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.bottom-bar:active {
    transform: scale(0.98);
}

/* Floating Controllers Area (The "Thumb Zone") */
.thumb-controls-area {
    position: fixed;
    bottom: 95px;
    /* Above Bottom Bar */
    left: 0;
    right: 0;
    padding: 0 20px;
    z-index: 1000;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.thumb-controls-area>* {
    pointer-events: auto;
}

/* Scroll States for visibility */
.thumb-controls-hidden {
    transform: translateY(120px);
    opacity: 0;
    pointer-events: none !important;
}

.thumb-controls-minimized .search-fake {
    transform: scale(0.9);
    opacity: 0.5;
}

.bottom-bar .info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bottom-bar .count-circle {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: black;
}

.hidden {
    display: none !important;
}

/* Category selection logic */
#view-home {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Global Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    z-index: 9999;
    transition: width 0.3s cubic-bezier(0.1, 0.7, 1.0, 0.1);
    /* Curva más suave */
    box-shadow: 0 0 15px rgba(201, 156, 107, 0.4);
}

/* Scroll Hint Overlay (Cue) */
.scroll-cue-overlay {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    pointer-events: none;
    z-index: 6;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
}

.scroll-cue-arrow {
    width: 28px;
    height: 28px;
    color: var(--accent);
    opacity: 0.7;
    animation: floatingCue 2.5s ease-in-out infinite;
}

@keyframes floatingCue {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0);
        opacity: 0.3;
    }
}

#preloader .logo-container {
    width: 150px;
    animation: pulseLogo 1s infinite alternate ease-in-out;
}

#preloader img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@keyframes pulseLogo {
    from {
        transform: scale(0.95);
        opacity: 0.7;
    }

    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Pull-to-Refresh Indicator */
.ptr-indicator {
    position: fixed;
    top: -60px;
    /* Oculto arriba by default */
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    /* Oculto por defecto */
    transition: top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.ptr-indicator img {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
    transition: transform 0.1s;
}

.ptr-indicator.refreshing img {
    animation: ptr-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ptr-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading con Gradientes de Marca (Zero State) */
.skeleton {
    background: linear-gradient(90deg,
            var(--primary-deep) 25%,
            var(--primary) 50%,
            var(--primary-deep) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite ease-in-out, skeleton-pulse 2s infinite ease-in-out;
    border-radius: 6px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.4;
    }
}

.skeleton-card {
    height: var(--card-intrinsic-height);
    border-radius: var(--radius-card);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--s-lg);
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.skeleton-title {
    height: 24px;
    width: 60%;
}

.skeleton-desc {
    height: 16px;
    width: 40%;
}

.skeleton-price {
    height: 32px;
    width: 80px;
    border-radius: 14px;
    margin-top: auto;
}

.skeleton-img {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.bg-comida {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/slider1.png') center/cover !important;
}

.bg-bebida {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/slider3.png') center/cover !important;
}

.bg-postre {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/slider4.png') center/cover !important;
}

.text-menu-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    padding: var(--s-2xl) var(--s-lg) 120px var(--s-lg);
    /* Aumentado bottom padding para despejar botones */
    margin: var(--s-lg) auto;
    width: 98%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    flex: 1;
    overflow-y: auto;
}

.text-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 255, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    /* Expert Optimization: Optimized list rendering */
    content-visibility: auto;
    contain-intrinsic-size: auto var(--list-item-intrinsic-height);
}

.text-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.97);
    /* Efecto de hundimiento del 3% */
}

.text-menu-item td {
    padding: 12px 0;
}

.text-menu-item td:last-child {
    letter-spacing: var(--price-kerning);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* 
   ==========================================================================
   STAGGERED ANIMATIONS (Cascading Sequential Entry)
   ==========================================================================
*/
@keyframes itemEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.staggered-item {
    opacity: 0;
    animation: itemEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 
   ==========================================================================
   RIPPLE EFFECT (Tactile Micro-interaction)
   ==========================================================================
*/
.ripple-container {
    position: relative;
    overflow: hidden;
    /* Asegura que no rompa el borde en cards */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* 
   ==========================================================================
   HAPTIC-VISUAL EFFECTS (Confirmation & Closure)
   ==========================================================================
*/
.haptic-vortex {
    animation: hapticVortex 0.45s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    pointer-events: none;
}

@keyframes hapticVortex {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }

    30% {
        transform: scale(1.08) rotate(-2deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(20deg);
        opacity: 0;
        filter: blur(15px);
    }
}

.haptic-vortex-reverse {
    animation: hapticVortexReverse 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes hapticVortexReverse {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
        filter: blur(15px);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

/* 
   ==========================================================================
   DYNAMIC SOCIAL PROOF (Expert UX Psychology)
   ==========================================================================
*/
.social-proof-tag {
    position: absolute;
    top: var(--s-lg);
    right: var(--s-lg);
    padding: var(--s-xs) var(--s-md);
    background: var(--accent);
    color: var(--text-on-accent);
    border-radius: var(--radius-md);
    font-size: var(--ms-neg-2);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: var(--s-xs);
    box-shadow: 0 4px 15px rgba(201, 156, 107, 0.4);
    z-index: 10;
    animation: badge-float 3s ease-in-out infinite;
    pointer-events: none;
}

.social-proof-tag.top-ventas {
    background: var(--spark-fire);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.social-proof-tag.favorito {
    background: var(--status-warning);
    color: var(--text-on-accent);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.social-proof-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
    opacity: 0.9;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Micro-animation for fire icon */
.social-proof-tag.top-ventas .ic-fire {
    animation: icon-flicker 1.5s ease-in-out infinite;
}

@keyframes icon-flicker {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Adaptive for Text Menu (List Style) */
.text-menu-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(201, 156, 107, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

.text-menu-social-proof.top-ventas {
    color: #ff5722;
    background: rgba(255, 87, 34, 0.1);
}

/* 
   ==========================================================================
   ORDER DRAWER & FLOATING ACTION BUTTON (COMANDERO)
   ==========================================================================
*/

.floating-order-btn {
    position: fixed;
    bottom: var(--s-lg);
    right: var(--s-lg);
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--text-on-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(201, 156, 107, 0.4);
    cursor: pointer;
    transition: transform var(--transition-elastic), opacity var(--transition-base), box-shadow var(--transition-base);
    transform: scale(0);
    will-change: transform, opacity;
    /* Hidden by default if empty */
}

.floating-order-btn.visible {
    transform: scale(1);
}

.floating-order-btn:active {
    transform: scale(0.9);
}

.order-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.order-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    will-change: transform;
}

.order-drawer.open {
    transform: translateX(0);
}

.order-drawer-header {
    padding: var(--s-2xl) var(--s-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-drawer-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin: 0;
}

.order-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.order-drawer-clear {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.order-drawer-clear:hover {
    color: #ff5252;
}

.order-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.empty-order-msg {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0.6;
}

.order-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInUpCustom 0.4s ease forwards;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.order-item-cat {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.order-item-price {
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 15px;
}

.order-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.order-drawer-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-total-row span:first-child {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-total-row span:last-child {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}

.order-instructions {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 156, 107, 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.order-close-btn {
    width: 100%;
    height: 55px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Item Toggles in the Carta */
.item-check-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
}

.item-check-toggle.checked {
    background: var(--accent);
    color: #000;
}

.text-menu-item.checked,
.order-item-card.checked {
    border-color: var(--accent);
    background: rgba(201, 156, 107, 0.1);
}

/* Animations */
@keyframes slideInUpCustom {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}

/* =========================================================================
   AVISO LEGAL (LSSI-CE) - GLASSMORPHISM MODAL
   ========================================================================= */

.legal-footer {
    width: 100%;
    margin-top: 40px;
    padding: 20px 0 150px;
    /* Padding extra para no quedar bajo la barra */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.legal-footer:hover {
    opacity: 1;
}

.legal-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    /* El valor más alto posible */
    display: flex;
    visibility: hidden;
    opacity: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.legal-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    animation: legalFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes legalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

.legal-modal-content {
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--s-3xl) var(--s-2xl);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    color: var(--white);
    transform: translateY(20px);
    animation: legalContentSlide 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
}

@keyframes legalContentSlide {
    to {
        transform: translateY(0);
    }
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.legal-modal-header h2 {
    font-size: 1.6rem;
    font-weight: 900;

    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.close-legal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 1.2rem;
}

.close-legal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.legal-info-section {
    margin-bottom: 25px;
}

.legal-info-section h3 {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 800;
    opacity: 0.9;
}


.legal-info-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* =========================================================================
   POLÍTICA DE PRIVACIDAD - QUICK READ LAYERED SYSTEM
   ========================================================================= */

.privacy-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-section h3 {
    margin-bottom: 20px;
}

.privacy-quickcards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.privacy-quickcard {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.privacy-quickcard i {
    font-size: 1.4rem;
    color: var(--accent);
    width: 30px;
    text-align: center;
}

.quickcard-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.quickcard-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.privacy-expandable {
    margin-top: 20px;
}

.privacy-toggle {
    display: none;
}

.privacy-label-expand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    padding: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.privacy-label-expand i {
    font-size: 0.7rem;
    transition: transform 0.4s ease;
}

.privacy-full-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.privacy-toggle:checked~.privacy-full-content {
    max-height: 1000px;
    opacity: 1;
    padding: 20px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-toggle:checked~.privacy-label-expand {
    display: none;
}

/* =========================================================================
   BANNER DE COOKIES - DISEÑO CIRCADIANO & GLASSMORPHISM
   ========================================================================= */

.cookie-banner {
    position: fixed;
    bottom: -100%;
    /* Hidden initially */
    left: var(--s-lg);
    right: var(--s-lg);
    z-index: 9999999;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--s-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: bottom var(--transition-slow);
    max-width: 450px;
    margin: 0 auto;
    pointer-events: none;
    opacity: 0;
}

.cookie-banner.active {
    bottom: 30px;
    pointer-events: all;
    opacity: 1;
}

/* Adaptabilidad Circadiana */
.circadian-night .cookie-banner {
    background: rgba(15, 20, 8, 0.8);
    border-color: rgba(205, 127, 50, 0.3);
}

.cookie-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.cookie-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cookie-actions-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cookie-btn {
    height: 48px;
    border-radius: 14px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}


.cookie-btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-primary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}


.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}


.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.order-disclaimer-text {
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin: 15px 0 20px;
    padding: 0 10px;
    font-style: italic;
    font-weight: 300;
}