/* ==========================================================================
   DHABA · Comida India y Pakistaní Halal
   --------------------------------------------------------------------------
   Sistema de diseño "Noche Mogol": esmeralda profundo + oro del logo.
   Mobile-first (los @media suben, nunca bajan).

   REGLAS DEL SISTEMA
   - Un solo acento: el oro. El verde es la base de marca, no un segundo acento.
   - Radios: botones y chips en píldora. Superficies grandes 28px, compactas 20px,
     campos 16px. Las fotos usan el ARCO, la silueta del logo, como forma firma.
   - Dos temas con los mismos tokens: Noche (por defecto) y Día.
   - Solo se animan transform y opacity. Todo movimiento respeta
     prefers-reduced-motion.
   ========================================================================== */

/* ------------------------------ TOKENS ---------------------------------- */
:root {
    color-scheme: dark;

    /* Superficies */
    --bg: #06130c;
    --bg-2: #0a1d12;
    --surface: #0e271a;
    --surface-2: #143324;
    --glass: rgba(14, 39, 26, .64);

    /* Lineas */
    --line: rgba(232, 185, 73, .16);
    --line-2: rgba(232, 185, 73, .36);

    /* Texto */
    --text: #f4ecd6;
    --text-2: #c7ccb6;
    --text-3: #98a48e;

    /* Oro (acento unico) */
    --gold: #e8b949;
    --gold-hi: #f8de93;
    --gold-lo: #b88a20;
    --gold-ink: #0a1b10;
    --gold-text: #e8b949;
    --gold-glow: rgba(232, 185, 73, .42);

    /* Verdes de marca */
    --emerald: #1d6a3c;
    --glow-a: rgba(29, 106, 60, .55);
    --glow-b: rgba(232, 185, 73, .18);

    /* Canvas de particulas (r, g, b) */
    --ember: 248, 222, 147;

    /* Semanticos */
    --danger: #ff9c8d;
    --wa: #25d366;
    --wa-ink: #05210e;

    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    --lattice-op: .08;
    --grain-op: .05;

    /* Tipografia */
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Movimiento */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);

    /* Geometria */
    --header-h: 64px;
    --gutter: clamp(16px, 4.2vw, 40px);
    --container: 1240px;
    --r-lg: 28px;
    --r-md: 20px;
    --r-field: 16px;
    --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));

    /* Capas (escala documentada) */
    --z-float: 40;
    --z-header: 50;
    --z-progress: 60;
    --z-grain: 900;
    --z-loader: 1000;

    /* Mascara de celosia (jali) */
    --lattice-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z'/%3E%3Cpath d='M32 15 49 32 32 49 15 32Z'/%3E%3Ccircle cx='32' cy='32' r='3.5'/%3E%3C/svg%3E");
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f0e0;
    --bg-2: #efe6cf;
    --surface: #fffaf0;
    --surface-2: #f7edd6;
    --glass: rgba(255, 250, 238, .74);
    --line: rgba(92, 64, 6, .14);
    --line-2: rgba(92, 64, 6, .32);
    --text: #10281a;
    --text-2: #3a5142;
    --text-3: #566a5b;
    --gold: #c58f12;
    --gold-hi: #efca66;
    --gold-lo: #8f6408;
    --gold-ink: #0d210f;
    --gold-text: #7a5400;
    --gold-glow: rgba(197, 143, 18, .34);
    --glow-a: rgba(29, 106, 60, .20);
    --glow-b: rgba(232, 185, 73, .34);
    --ember: 143, 100, 8;
    --danger: #b3261e;
    --shadow: 0 30px 60px -34px rgba(60, 40, 0, .34);
    --lattice-op: .12;
    --grain-op: .035;
}

/* ------------------------------ RESET ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 28px);
}
html.no-scroll { overflow: hidden; }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 400 1rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    transition: background-color .6s var(--ease-io), color .6s var(--ease-io);
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; word-spacing: .1em; line-height: 1.06; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: normal; }
::selection { background: var(--gold); color: var(--gold-ink); }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--gold-hi);
    outline-offset: 3px;
    border-radius: 6px;
}
[data-theme="light"] :focus-visible { outline-color: var(--gold-lo); }

/* ------------------------------ UTILIDADES ------------------------------ */
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 12px; top: -80px; z-index: calc(var(--z-loader) + 1);
    padding: .7rem 1.1rem; border-radius: 999px;
    background: var(--gold); color: var(--gold-ink); font-weight: 700;
    transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.i { width: 1.25em; height: 1.25em; flex: none; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2, .faq-head h2, .trust-copy h2, .contact-copy h2, .hpan-head h2 {
    font-size: clamp(2rem, 1.15rem + 3.6vw, 3.7rem);
    letter-spacing: -.035em;
}
.lead {
    margin-top: 1rem;
    max-width: 38rem;
    font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem);
    color: var(--text-2);
}
.section-head--center .lead { margin-inline: auto; }

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold-text);
}

/* Forma firma: el arco del logo */
.arch {
    overflow: hidden;
    border-radius: 50% 50% var(--r-lg) var(--r-lg) / 36% 36% var(--r-lg) var(--r-lg);
    background: var(--surface-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-sm {
    overflow: hidden;
    border-radius: 50% 50% 14px 14px / 44% 44% 14px 14px;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
}
@media (prefers-reduced-transparency: reduce) {
    .glass, .header-bar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--surface) !important; }
}

/* Grano de pelicula: solo en un pseudo-elemento fijo, nunca en contenedores con scroll */
body::after {
    content: "";
    position: fixed; inset: 0; z-index: var(--z-grain);
    pointer-events: none;
    opacity: var(--grain-op);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barra de progreso de lectura (solo con scroll-driven animations) */
.scroll-progress {
    position: fixed; left: 0; top: 0; z-index: var(--z-progress);
    width: 100%; height: 3px;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
    pointer-events: none;
}
@supports (animation-timeline: scroll()) {
    .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root block); }
    @keyframes progress-grow { to { transform: scaleX(1); } }
}

/* ------------------------------ BOTONES --------------------------------- */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: 0 1.4rem;
    border-radius: 999px;
    font: 700 .95rem/1 var(--font-body);
    white-space: nowrap;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s, border-color .3s;
    -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 1.2em; height: 1.2em; transition: transform .45s var(--ease-out); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 1.05rem; font-size: .85rem; }
.btn-lg { min-height: 56px; padding: 0 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-hi), var(--gold) 46%, var(--gold-lo));
    color: var(--gold-ink);
    box-shadow: 0 14px 34px -14px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform .9s var(--ease-out);
}
.btn-gold:hover { box-shadow: 0 20px 44px -14px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover::after { transform: translateX(130%); }

.btn-glass {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.btn-glass:hover { border-color: var(--gold); background: rgba(232, 185, 73, .10); }

.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 14px 34px -16px rgba(37, 211, 102, .8); }
.btn-wa:hover { box-shadow: 0 20px 44px -16px rgba(37, 211, 102, .9); transform: translateY(-2px); }
.btn-wa:active { transform: scale(.97); }

.icon-btn {
    position: relative;
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--glass); border: 1px solid var(--line);
    color: var(--text);
    transition: border-color .3s, background-color .3s, transform .4s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn:active { transform: scale(.92); }
.link-btn {
    display: inline-flex; align-items: center; gap: .45rem; justify-content: center;
    font-size: .85rem; font-weight: 600; color: var(--text-3);
    padding: .5rem; transition: color .3s;
}
.link-btn:hover { color: var(--text); }

/* Botones con cursor magnetico: lo mueve app.js (solo puntero fino) */
.magnetic { will-change: transform; }

/* ------------------------------ CAMPOS ---------------------------------- */
.field { display: grid; gap: .45rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--text); }
.field .opt { font-weight: 500; color: var(--text-3); }
.field input, .field textarea, .field select {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: var(--r-field);
    background: var(--bg);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
[data-theme="light"] .field input, [data-theme="light"] .field textarea, [data-theme="light"] .field select { background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(232, 185, 73, .22);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-err { min-height: 0; font-size: .82rem; font-weight: 600; color: var(--danger); }
.field-err:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.8rem; }
.select .i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-3); }

/* ------------------------------ TOASTS ---------------------------------- */
.toasts {
    position: fixed; left: 50%; z-index: calc(var(--z-float) + 5);
    bottom: calc(92px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: grid; gap: 8px; justify-items: center;
    width: min(92vw, 420px); pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem .8rem .7rem 1rem;
    border-radius: 999px;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line-2);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .65);
    font-size: .9rem; font-weight: 600;
    pointer-events: auto;
    animation: toast-in .55s var(--ease-out) both;
}
.toast .i { color: var(--gold-text); }
.toast button { padding: .35rem .8rem; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: .8rem; }
.toast.is-out { animation: toast-out .35s var(--ease-io) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }


/* ==========================================================================
   PRELOADER: spinner de marca + puertas que se abren
   ========================================================================== */
#loader {
    position: fixed; inset: 0; z-index: var(--z-loader);
    display: grid; place-items: center;
    color: var(--text);
    /* Red de seguridad: si el JS falla, el loader se retira solo a los 9 s */
    animation: loader-failsafe .01s linear 9s forwards;
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.loader-door {
    position: absolute; top: 0; bottom: 0; width: 50.3%;
    background:
        radial-gradient(120% 80% at 50% 0%, var(--glow-a), transparent 70%),
        var(--bg);
    transition: transform 1.15s var(--ease-io);
    will-change: transform;
}
.loader-door::after {
    content: ""; position: absolute; inset: 0;
    background: var(--gold); opacity: var(--lattice-op);
    -webkit-mask: var(--lattice-mask); mask: var(--lattice-mask);
    -webkit-mask-size: 64px 64px; mask-size: 64px 64px;
}
.loader-door--l { left: 0; border-right: 1px solid var(--line); }
.loader-door--r { right: 0; border-left: 1px solid var(--line); }
.loader-door--r::after { -webkit-mask-position: 32px 0; mask-position: 32px 0; }

.loader-stage {
    position: relative; z-index: 1;
    display: grid; justify-items: center;
    transition: opacity .55s var(--ease-io), transform .8s var(--ease-io);
}
.loader-emblem { position: relative; width: clamp(170px, 46vw, 220px); aspect-ratio: 1; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lr-track { fill: none; stroke: var(--line); stroke-width: 2.5; }
.lr-dash { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 100px 100px; animation: spin 16s linear infinite; }
.lr-arc {
    fill: none; stroke: url(#lg-gold); stroke-width: 3.5; stroke-linecap: round;
    stroke-dasharray: 100 100; stroke-dashoffset: 100;
    transform: rotate(-90deg); transform-origin: 100px 100px;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}
.loader-orbit { position: absolute; inset: 0; animation: spin 2.2s linear infinite; }
.loader-orbit i {
    position: absolute; left: 50%; top: 4%; width: 9px; height: 9px; margin-left: -4.5px;
    border-radius: 50%; background: var(--gold-hi);
    box-shadow: 0 0 14px 4px var(--gold-glow);
}
.loader-orbit--b { animation-duration: 3.4s; animation-direction: reverse; inset: 6%; }
.loader-orbit--b i { width: 6px; height: 6px; margin-left: -3px; opacity: .7; }

.loader-logo { position: absolute; inset: 17%; animation: logo-breathe 2.6s ease-in-out infinite; }
.loader-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.loader-pct { margin-top: 1.7rem; font: 800 clamp(2.4rem, 8vw, 3rem)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--gold-text); }
.loader-pct small { margin-left: .2rem; font-size: .9rem; font-weight: 700; color: var(--text-3); }
.loader-caption { margin-top: .65rem; min-height: 1.6em; font-size: .92rem; font-weight: 600; letter-spacing: .03em; color: var(--text-3); transition: opacity .3s, transform .4s var(--ease-out); }
.loader-caption.is-swap { opacity: 0; transform: translateY(6px); }

html.loader-out .loader-stage { opacity: 0; transform: scale(1.12); }
html.loader-out .loader-door--l { transform: translateX(-101%); }
html.loader-out .loader-door--r { transform: translateX(101%); }
html.loader-done #loader { display: none; }
html.is-loading { overflow: hidden; }

/* Brillo que recorre el logo: una copia mas luminosa del propio logo que solo se ve
   a traves de una banda de degradado en movimiento (recorte exacto a la silueta) */
.shine {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
    filter: brightness(2.3) saturate(.55);
    -webkit-mask-image: linear-gradient(112deg, transparent 40%, #000 50%, transparent 60%);
    mask-image: linear-gradient(112deg, transparent 40%, #000 50%, transparent 60%);
    -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: 140% 0; mask-position: 140% 0;
    animation: shine 5.4s var(--ease-io) infinite;
}
.loader-logo .shine { animation-duration: 2.4s; }

/* ==========================================================================
   HEADER: pildora de cristal, una sola linea
   ========================================================================== */
.site-header {
    position: fixed; z-index: var(--z-header);
    inset: max(10px, env(safe-area-inset-top)) 10px auto;
    display: flex; justify-content: center;
    pointer-events: none;
    transition: transform .6s var(--ease-out), opacity .6s var(--ease-out);
}
html.is-loading .site-header { opacity: 0; transform: translateY(-24px); }

.header-bar {
    pointer-events: auto;
    width: min(100%, 1200px); height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 0 10px 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: background-color .45s var(--ease-out), border-color .45s, box-shadow .45s, backdrop-filter .45s;
}
.site-header.is-scrolled .header-bar {
    background: var(--glass);
    border-color: var(--line);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand img { width: 38px; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.brand-word { font: 800 1.45rem/1 var(--font-display); letter-spacing: -.03em; color: var(--gold-text); }

.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }
.theme-toggle .i { position: absolute; transition: transform .6s var(--ease-out), opacity .4s; }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.4); }

.cart-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center;
    border-radius: 999px; background: var(--gold); color: var(--gold-ink);
    font-size: .72rem; font-weight: 800;
    box-shadow: 0 0 0 3px var(--bg);
}
.cart-badge.is-bump { animation: bump .5s var(--ease-out); }

@media (min-width: 640px) {
    .nav-cta { display: inline-flex; }
    .header-bar { padding-right: 8px; }
}
@media (min-width: 1100px) {
    .burger { display: none; }
    .nav-desktop { display: flex; align-items: center; gap: 2px; }
    .nav-desktop a {
        position: relative; padding: .55rem .85rem; border-radius: 999px;
        font-size: .9rem; font-weight: 600; color: var(--text-2);
        white-space: nowrap;
        transition: color .3s, background-color .3s;
    }
    .nav-desktop a:hover { color: var(--text); background: var(--line); }
    .nav-desktop a[aria-current="true"] { color: var(--gold-text); background: rgba(232, 185, 73, .12); }
}

/* ==========================================================================
   MENU MOVIL (pantalla completa, se abre como iris desde el boton)
   ========================================================================== */
.navsheet, .drawer {
    border: 0; padding: 0; margin: 0;
    max-width: none; max-height: none;
    background: transparent; color: var(--text);
}
.navsheet { width: 100%; height: 100%; }
.navsheet::backdrop { background: rgba(2, 8, 5, .6); }
.navsheet-panel {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    background:
        radial-gradient(90% 55% at 100% 0%, var(--glow-a), transparent 70%),
        radial-gradient(70% 40% at 0% 100%, var(--glow-b), transparent 70%),
        var(--bg);
    clip-path: circle(0 at calc(100% - 36px) 36px);
    transition: clip-path .75s var(--ease-io);
}
.navsheet.is-open .navsheet-panel { clip-path: circle(150% at calc(100% - 36px) 36px); }
.navsheet-links { display: grid; align-content: center; flex: 1; gap: .2rem; padding-block: 1rem; }
.navsheet-links a {
    display: block; padding: .55rem 0;
    font: 800 clamp(2rem, 9vw, 3rem)/1.1 var(--font-display); letter-spacing: -.035em;
    color: var(--text);
    opacity: 0; transform: translateY(26px);
    transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), color .3s;
}
.navsheet-links a:hover { color: var(--gold-text); }
.navsheet.is-open .navsheet-links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 60ms); }
.navsheet-foot { padding-top: 1rem; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   FLOTANTES: WhatsApp y barra de pedido
   ========================================================================== */
.wa-float {
    position: fixed; z-index: var(--z-float);
    right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 10px;
    -webkit-tap-highlight-color: transparent;
}
.wa-icon {
    position: relative;
    display: grid; place-items: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--wa); color: var(--wa-ink);
    box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .75), inset 0 2px 0 rgba(255, 255, 255, .35);
    transition: transform .5s var(--ease-out);
}
.wa-icon .i { width: 30px; height: 30px; }
.wa-icon::before, .wa-icon::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--wa);
    animation: wa-ring 2.8s var(--ease-out) infinite;
}
.wa-icon::after { animation-delay: 1.4s; }
.wa-float:hover .wa-icon { transform: scale(1.08) rotate(-6deg); }
.wa-float:active .wa-icon { transform: scale(.94); }
.wa-tip {
    order: -1;
    padding: .55rem .95rem; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
    font-size: .85rem; font-weight: 700; white-space: nowrap;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
    opacity: 0; transform: translateX(14px) scale(.96); pointer-events: none;
    transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.wa-float:hover .wa-tip, .wa-float.show-tip .wa-tip { opacity: 1; transform: none; }

.orderbar {
    position: fixed; z-index: calc(var(--z-float) + 1);
    left: max(12px, env(safe-area-inset-left)); right: 88px;
    bottom: max(14px, env(safe-area-inset-bottom));
    animation: bar-in .7s var(--ease-out) both;
}
.orderbar-btn {
    width: 100%; height: 60px; padding: 0 1.1rem 0 .7rem;
    display: flex; align-items: center; gap: .8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
    color: var(--gold-ink); font-weight: 800;
    box-shadow: 0 18px 40px -14px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .4s var(--ease-out);
}
.orderbar-btn:active { transform: scale(.98); }
.orderbar-count {
    display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold-ink); color: var(--gold-hi); font-size: .95rem;
}
.orderbar-label { flex: 1; text-align: left; font-size: .95rem; }
.orderbar-btn strong { font: 800 1.1rem/1 var(--font-display); }
.orderbar-btn .i { width: 1.2em; height: 1.2em; }
@media (min-width: 720px) {
    .orderbar { left: 50%; right: auto; width: 440px; transform: translateX(-50%); animation: bar-in-c .7s var(--ease-out) both; }
    .toasts { bottom: 100px; }
}
@keyframes bar-in { from { opacity: 0; transform: translateY(30px); } }
@keyframes bar-in-c { from { opacity: 0; transform: translate(-50%, 30px); } }


/* ==========================================================================
   HERO
   Capas (de atras hacia adelante): aurora, celosia, particulas, foco del cursor,
   mandala, anillos, platos en orbita, escudo con tilt.
   ========================================================================== */
.hero {
    position: relative; isolation: isolate; overflow: clip;
    min-height: 100vh; min-height: 100svh;
    display: grid; align-items: center;
    padding: calc(var(--header-h) + 30px) 0 44px;
    background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::after {             /* funde el hero con la siguiente seccion */
    content: ""; position: absolute; inset: auto 0 0; height: 22%;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.aurora--1 { width: 70vmax; height: 70vmax; left: -28vmax; top: -34vmax; background: radial-gradient(circle, var(--glow-a), transparent 62%); animation: drift-a 26s ease-in-out infinite alternate; }
.aurora--2 { width: 58vmax; height: 58vmax; right: -24vmax; top: 4vmax;  background: radial-gradient(circle, var(--glow-b), transparent 64%); animation: drift-b 32s ease-in-out infinite alternate; }
.aurora--3 { width: 52vmax; height: 52vmax; left: 6vmax; bottom: -34vmax; background: radial-gradient(circle, var(--glow-a), transparent 66%); animation: drift-c 29s ease-in-out infinite alternate; }

.lattice {
    position: absolute; inset: 0; pointer-events: none;
    background: var(--gold); opacity: var(--lattice-op);
    -webkit-mask: var(--lattice-mask); mask: var(--lattice-mask);
    -webkit-mask-size: 64px 64px; mask-size: 64px 64px;
}
.lattice--hero {
    -webkit-mask-image: var(--lattice-mask), radial-gradient(70% 70% at 72% 44%, #000 10%, transparent 75%);
    mask-image: var(--lattice-mask), radial-gradient(70% 70% at 72% 44%, #000 10%, transparent 75%);
    -webkit-mask-size: 64px 64px, 100% 100%; mask-size: 64px 64px, 100% 100%;
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-spot {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 42%), rgba(248, 222, 147, .10), transparent 62%);
}
[data-theme="light"] .hero-spot { background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 42%), rgba(197, 143, 18, .16), transparent 62%); }

.hero-grid { display: grid; gap: 20px; align-items: center; grid-template-columns: minmax(0, 1fr); }

/* ----------------------------- COPY ------------------------------------- */
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .32rem 1rem .32rem .34rem; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--line-2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font-size: .82rem; font-weight: 800; letter-spacing: .02em; color: var(--text);
}
.hero-eyebrow img { width: 30px; height: 30px; border-radius: 50%; }
.hero-title {
    margin: 1rem 0 1rem;
    font-size: clamp(2.15rem, 1.05rem + 4.9vw, 4.6rem);
    line-height: 1.02; letter-spacing: -.04em; word-spacing: .14em;
}
.hero-title em { color: var(--gold-text); }
.hero-sub { max-width: 32rem; font-size: clamp(1.02rem, .96rem + .35vw, 1.22rem); color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-cta .btn { flex: 1 1 auto; }

/* ----------------------------- VISUAL ----------------------------------- */
.hero-visual { order: -1; position: relative; z-index: 1; will-change: transform; }
.thali {
    --S: min(84vw, 38svh, 470px);
    --orbit-r: calc(var(--S) * .435);
    --bowl: calc(var(--S) * .205);
    position: relative; width: var(--S); height: var(--S); margin-inline: auto;
}
.thali-halo {
    position: absolute; inset: -16%; border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 62%);
    animation: halo 6s ease-in-out infinite;
}
.thali-mandala {
    color: var(--gold);
    position: absolute; inset: -9%; width: 118%; height: 118%;
    opacity: .55; overflow: visible; animation: spin 140s linear infinite;
}
.thali-mandala g.m-rev { transform-origin: 0 0; animation: spin-rev 80s linear infinite; }
.thali-mandala * { vector-effect: non-scaling-stroke; }
.thali-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.thali-ring--a { inset: 4%;  border: 1px dashed var(--line-2); animation: spin 70s linear infinite; }
.thali-ring--b { inset: -5%; border: 1px solid var(--line); animation: spin-rev 110s linear infinite; }
.thali-ring--b::after {
    content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px;
    border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 16px 4px var(--gold-glow);
}

.orbit { position: absolute; inset: 0; animation: spin 90s linear infinite; }
.bowl {
    position: absolute; left: 50%; top: 50%;
    width: var(--bowl); height: var(--bowl);
    margin: calc(var(--bowl) / -2) 0 0 calc(var(--bowl) / -2);
    transform: rotate(var(--a)) translateY(calc(var(--orbit-r) * -1)) rotate(calc(var(--a) * -1));
}
.bowl-in {
    width: 100%; height: 100%; padding: 3px; border-radius: 50%;
    background: conic-gradient(from 200deg, var(--gold-hi), var(--gold-lo), var(--gold-hi), var(--gold), var(--gold-hi));
    box-shadow: 0 20px 34px -14px rgba(0, 0, 0, .65), 0 0 0 5px rgba(6, 19, 12, .55);
    animation: spin-rev 90s linear infinite;
}
[data-theme="light"] .bowl-in { box-shadow: 0 20px 34px -14px rgba(60, 40, 0, .5), 0 0 0 5px rgba(246, 240, 224, .7); }
.bowl-in img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.crest {
    position: absolute; left: 50%; top: 50%; width: 67%;
    transform: translate(-50%, -50%) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    will-change: transform;
}
.crest-float { position: relative; animation: crest-float 7.5s ease-in-out infinite; }
.crest img {
    width: 100%; height: auto;
    filter: drop-shadow(0 34px 38px rgba(0, 0, 0, .55)) drop-shadow(0 0 34px var(--gold-glow));
}
[data-theme="light"] .crest img { filter: drop-shadow(0 28px 30px rgba(60, 40, 0, .35)) drop-shadow(0 0 26px var(--gold-glow)); }

/* Entrada tras el preloader */
.js .hero [data-hero-in] {
    opacity: 0; transform: translateY(26px);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: calc(.55s + var(--d, 0) * .14s);
}
.js .hero .thali { opacity: 0; transform: scale(.82) rotate(-8deg); transition: opacity 1.2s var(--ease-out) .15s, transform 1.6s var(--ease-out) .15s; }
html.is-ready .hero [data-hero-in] { opacity: 1; transform: none; }
html.is-ready .hero .thali { opacity: 1; transform: none; }

@media (min-width: 560px) {
    .hero-cta .btn { flex: 0 0 auto; }
}

@media (min-width: 980px) {
    .hero { padding: calc(var(--header-h) + 36px) 0 56px; }
    .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 40px; }
    .hero-visual { order: 0; }
    .thali { --S: min(41vw, 78svh, 640px); margin-inline: auto 0; }
    .hero-title { font-size: clamp(3rem, 1rem + 3.9vw, 5rem); }
}
@media (min-width: 1280px) {
    .thali { margin-inline: auto; }
}
@media (max-height: 640px) and (min-width: 980px) {
    .hero-title { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
}


/* ==========================================================================
   MARQUEE (la unica cinta de la pagina)
   ========================================================================== */
.marquee {
    position: relative; overflow: hidden;
    padding-block: 1.15rem;
    background: var(--bg-2);
    border-block: 1px solid var(--line);
    -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; align-items: center; }
.marquee li {
    display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem);
    padding-right: clamp(1.2rem, 3vw, 2.4rem);
    font: 800 clamp(1.6rem, 1rem + 2.6vw, 3rem)/1 var(--font-display); letter-spacing: -.035em;
    white-space: nowrap; color: var(--text);
}
.marquee li.is-outline { color: var(--gold-text); }
.marquee li .i { width: .6em; height: .6em; color: var(--gold-text); }

/* ==========================================================================
   MANIFIESTO (el texto se ilumina palabra por palabra al hacer scroll)
   ========================================================================== */
.manifesto { padding-block: clamp(5rem, 13vw, 11rem); }
.manifesto .container { max-width: 1100px; }
.manifesto-lead { margin-bottom: 1.4rem; font: 700 1rem/1.4 var(--font-body); letter-spacing: .02em; color: var(--gold-text); }
.manifesto-text {
    font: 700 clamp(1.75rem, 1rem + 3.7vw, 3.7rem)/1.14 var(--font-display);
    letter-spacing: -.035em; word-spacing: .12em; color: var(--text);
}
.manifesto-text em { color: var(--gold-text); }
.js .manifesto-text .sw { opacity: .18; transition: opacity .6s var(--ease-out); }
.js .manifesto-text .sw.is-lit { opacity: 1; }

/* ==========================================================================
   CERTIFICACION + NUMEROS
   ========================================================================== */
.trust { background: var(--bg-2); overflow: clip; }
.lattice--soft {
    -webkit-mask-image: var(--lattice-mask), linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
    mask-image: var(--lattice-mask), linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
    -webkit-mask-size: 64px 64px, 100% 100%; mask-size: 64px 64px, 100% 100%;
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
.trust-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.seal-stage { position: relative; width: min(74vw, 340px); aspect-ratio: 1; margin-inline: auto; }
.seal-stage::before {
    content: ""; position: absolute; inset: 8%; border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow), transparent 66%);
    animation: halo 5s ease-in-out infinite;
}
.seal-stage::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid var(--line-2); }
.seal-stage img {
    position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5));
}
.seal-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 46s linear infinite; }
.seal-text text { font: 800 14px var(--font-body); fill: var(--gold-text); }

.trust-copy .lead { max-width: 32rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.2rem; margin-top: 2.4rem; }
.stat { display: flex; flex-direction: column; padding-left: 1rem; border-left: 1px solid var(--line-2); }
.stat dd { order: 1; font: 800 clamp(2.6rem, 1.8rem + 3.2vw, 4.2rem)/1 var(--font-display); letter-spacing: -.045em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat dd b { font-size: .5em; font-weight: 800; color: var(--gold-text); letter-spacing: 0; margin: 0 .08em; vertical-align: .55em; }
.stat dt { order: 2; margin-top: .5rem; font-size: .9rem; line-height: 1.4; color: var(--text-2); max-width: 17ch; }

@media (min-width: 900px) {
    .trust-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; }
}

/* ==========================================================================
   ESPECIALIDADES: tarjetas que se apilan (sticky stack)
   ========================================================================== */
.stack-section { padding-bottom: clamp(3rem, 7vw, 6rem); }
.stack { position: relative; padding-bottom: 4vh; }
.stack-card {
    --sticky: calc(var(--header-h) + 26px + var(--i) * 16px);
    position: sticky; top: var(--sticky);
    display: grid; gap: 1.2rem; align-content: start;
    margin-bottom: 8vh;
    padding: clamp(1.1rem, 3vw, 2.4rem);
    border-radius: var(--r-lg);
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(232, 185, 73, .10), transparent 60%),
        linear-gradient(150deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    transform-origin: 50% 0;
    transform: scale(calc(1 - var(--p, 0) * .055));
    will-change: transform;
    overflow: hidden;
}
.stack-card:last-child { margin-bottom: 0; }
.stack-shade { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: var(--bg); opacity: calc(var(--p, 0) * .62); }
.stack-copy { position: relative; z-index: 1; align-self: center; }
.stack-copy h3 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.3rem); letter-spacing: -.04em; }
.stack-copy p { margin-top: .8rem; max-width: 38ch; color: var(--text-2); }
.stack-copy .from { margin: 1.1rem 0 1.5rem; color: var(--text-3); font-size: .92rem; }
.stack-copy .from strong { display: block; font: 800 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1.1 var(--font-display); letter-spacing: -.03em; color: var(--gold-text); }
.stack-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--gold); opacity: .07;
    -webkit-mask-image: var(--lattice-mask), linear-gradient(to left, #000, transparent 75%);
    mask-image: var(--lattice-mask), linear-gradient(to left, #000, transparent 75%);
    -webkit-mask-size: 56px 56px, 100% 100%; mask-size: 56px 56px, 100% 100%;
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
.stack-photo { order: -1; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); }
.stack-photo img { transition: transform 1.6s var(--ease-out); }
.stack-card:hover .stack-photo img { transform: scale(1.06); }

@media (min-width: 820px) {
    .stack-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; min-height: min(68svh, 560px); }
    .stack-photo { order: 0; aspect-ratio: 9 / 10; width: min(100%, calc(min(58svh, 520px) * .9)); justify-self: end; }
}

/* ==========================================================================
   BENTO: ELIGE TU PROTEINA
   ========================================================================== */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tile {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 230px; padding: clamp(1.2rem, 2.6vw, 1.8rem);
    border-radius: var(--r-lg);
    border: 1px solid var(--line-2);
    background: linear-gradient(150deg, var(--surface-2), var(--surface));
    transition: transform .7s var(--ease-out), border-color .4s, box-shadow .6s;
}
.tile:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .75); }
.tile-body { position: relative; z-index: 2; }
.tile-body h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.04em; }
.tile-body p { margin-top: .45rem; max-width: 28ch; color: var(--text-2); }
.tile-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.1rem !important; max-width: none !important; font-size: .88rem; color: var(--text-3) !important; }
.tile-meta strong { font: 800 1.15rem/1 var(--font-display); letter-spacing: -.02em; color: var(--gold-text); }
.tile-go {
    position: absolute; z-index: 3; top: 1.1rem; right: 1.1rem;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold); color: var(--gold-ink);
    transform: scale(.8) rotate(-30deg); opacity: 0;
    transition: transform .6s var(--ease-out), opacity .4s;
}
.tile:hover .tile-go, .tile:focus-visible .tile-go { transform: none; opacity: 1; }
.tile:hover 
.tile--veg { color: #f4ecd6; min-height: 380px; }
.tile--veg .tile-body p { color: #dde2cf; }
.tile--veg .tile-meta { color: #b8c2aa !important; }
.tile--veg .tile-meta strong { color: #f8de93; }
.tile--veg .tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.tile--veg:hover .tile-img { transform: scale(1.07); }
.tile--veg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(3, 12, 7, .94) 6%, rgba(3, 12, 7, .35) 58%, rgba(3, 12, 7, .05)); }

.tile--pollo { background: radial-gradient(80% 90% at 100% 0%, rgba(232, 185, 73, .24), transparent 60%), linear-gradient(150deg, var(--surface-2), var(--surface)); }
.tile--res { background: radial-gradient(90% 90% at 0% 100%, rgba(29, 106, 60, .55), transparent 62%), linear-gradient(150deg, var(--surface-2), var(--surface)); }
.tile--mutton { background: repeating-linear-gradient(135deg, rgba(232, 185, 73, .07) 0 2px, transparent 2px 16px), linear-gradient(150deg, var(--surface-2), var(--surface)); }
.tile--pescado::before {
    content: ""; position: absolute; inset: 0; z-index: 0; background: var(--gold); opacity: .09;
    -webkit-mask: var(--lattice-mask); mask: var(--lattice-mask); -webkit-mask-size: 48px 48px; mask-size: 48px 48px;
}

.tile--thali {
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem;
    min-height: 0; padding: clamp(1.4rem, 3vw, 2.2rem);
    background: radial-gradient(70% 120% at 0% 50%, rgba(232, 185, 73, .18), transparent 62%), linear-gradient(150deg, var(--surface-2), var(--surface));
}
.tile--thali:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.tile--thali .tile-meta { justify-content: flex-start; }
.tile-price { font-size: 2.2rem !important; }
.thali-plate {
    position: relative; flex: none; width: 132px; aspect-ratio: 1; border-radius: 50%;
    border: 1px solid var(--gold); background: radial-gradient(circle, var(--surface) 0 58%, var(--surface-2) 59%);
    box-shadow: inset 0 0 0 8px var(--bg-2), 0 0 0 1px var(--line-2), 0 24px 40px -24px rgba(0, 0, 0, .7);
    animation: spin 50s linear infinite;
}
.thali-plate i { position: absolute; width: 31%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--gold-lo); }
.thali-plate i:nth-child(1) { left: 14%; top: 14%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold-lo)); }
.thali-plate i:nth-child(2) { right: 14%; top: 14%; background: radial-gradient(circle at 35% 30%, #2f8a52, var(--emerald)); }
.thali-plate i:nth-child(3) { left: 14%; bottom: 14%; background: radial-gradient(circle at 35% 30%, #d9a13a, #8f5a0e); }
.thali-plate i:nth-child(4) { right: 14%; bottom: 14%; background: radial-gradient(circle at 35% 30%, #c8d8b0, #6f8f58); }
.thali-plate b { position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3cc, var(--gold)); }

@media (min-width: 640px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile--veg, .tile--thali { grid-column: 1 / -1; }
    .tile--thali { flex-direction: row; align-items: center; }
    .tile--thali .tile-body { flex: 1; }
    .tile--thali .tile-body p { max-width: 40ch; }
}
@media (min-width: 960px) {
    .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 16px; }
    .tile--veg { grid-column: 1 / span 5; grid-row: 1 / span 2; min-height: 0; }
    .tile--pollo { grid-column: 6 / span 4; }
    .tile--res { grid-column: 10 / span 3; }
    .tile--mutton { grid-column: 6 / span 3; }
    .tile--pescado { grid-column: 9 / span 4; }
    .tile--thali { grid-column: 1 / -1; }
}


/* ==========================================================================
   TARJETAS CON FOCO QUE SIGUE AL CURSOR (.spot-card)
   ========================================================================== */
.spot-card { position: relative; }
.spot-card::before {
    content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity .4s;
    background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(232, 185, 73, .17), transparent 58%);
}
.spot-card:hover::before { opacity: 1; }
.spot-card > * { position: relative; }
.tile.spot-card > .tile-img, .tile.spot-card > .tile-go { position: absolute; }

/* ==========================================================================
   CONTROL DE CANTIDAD (+ / stepper), reutilizado en menú, bebidas y galería
   ========================================================================== */
.qty-ctl { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.qty-ctl--wide { justify-content: flex-start; }
.add-btn:not(.btn) {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--gold); color: var(--gold-text);
    transition: background-color .3s, color .3s, transform .45s var(--ease-out), box-shadow .3s;
    -webkit-tap-highlight-color: transparent;
}
.add-btn:not(.btn) .i { width: 20px; height: 20px; }
.add-btn:not(.btn):hover { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 22px -10px var(--gold-glow); }
.add-btn:not(.btn):active { transform: scale(.86); }
.stepper {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
    background: var(--gold); color: var(--gold-ink);
    animation: pop .45s var(--ease-out);
}
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background-color .25s, transform .3s var(--ease-out); }
.stepper button:hover { background: rgba(10, 27, 16, .16); }
.stepper button:active { transform: scale(.85); }
.stepper .i { width: 18px; height: 18px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   MENU
   ========================================================================== */
.menu { background: var(--bg); }

.menu-tools {
    position: sticky; top: calc(var(--header-h) + 22px); z-index: 20;
    display: grid; gap: 10px;
    padding: 10px; margin-bottom: 2.2rem;
    border-radius: var(--r-lg);
    background: var(--glass); border: 1px solid var(--line);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.search { position: relative; display: flex; align-items: center; }
.search > .i { position: absolute; left: 1rem; color: var(--text-3); pointer-events: none; }
.search input {
    width: 100%; height: 50px; padding: 0 3rem;
    border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2);
    font-size: 1rem; color: var(--text);
    transition: border-color .25s, box-shadow .25s;
}
[data-theme="light"] .search input { background: #fff; }
.search input::placeholder { color: var(--text-3); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 185, 73, .22); }
.search-clear { position: absolute; right: 6px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text-2); }
.search-clear:hover { background: var(--line); color: var(--text); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
.chip {
    flex: none; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: .5rem;
    height: 42px; padding: 0 1rem; border-radius: 999px;
    border: 1px solid var(--line-2); background: transparent;
    font-size: .9rem; font-weight: 700; color: var(--text-2); white-space: nowrap;
    transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}
.chip span { padding: .08rem .48rem; border-radius: 999px; background: var(--line); color: var(--text-3); font-size: .74rem; transition: background-color .3s, color .3s; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip:active { transform: scale(.95); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip.is-active span { background: rgba(10, 27, 16, .16); color: var(--gold-ink); }

.menu-group { margin-top: 2.8rem; scroll-margin-top: calc(var(--header-h) + 150px); }
.menu-group:first-child { margin-top: 0; }
.menu-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: 1.1rem; }
.menu-group-head h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); letter-spacing: -.04em; }
.menu-group-head p { font-size: .92rem; color: var(--text-3); }
.menu-group-count { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--text-3); }

.dishes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

.dish {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 12px;
    border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .55s var(--ease-out), border-color .3s, background-color .3s;
}
.dish:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dish.in-cart { border-color: var(--gold); background: linear-gradient(145deg, rgba(232, 185, 73, .13), var(--surface)); }
.dish-media { width: 64px; height: 78px; background: var(--surface-2); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.dish:hover .dish-media img { transform: scale(1.12); }
.dish-glyph {
    display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold-text);
    background: radial-gradient(circle at 50% 28%, rgba(232, 185, 73, .2), transparent 72%), var(--surface-2);
}
.dish-glyph .i { width: 26px; height: 26px; }
.dish-name { font: 800 1.05rem/1.2 var(--font-display); letter-spacing: -.02em; }
.dish-badge { display: inline-block; margin-top: .3rem; padding: .12rem .6rem; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: .7rem; font-weight: 800; }
.dish-desc { margin-top: .25rem; font-size: .85rem; line-height: 1.4; color: var(--text-2); }
.dish-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dish-price { font: 800 1.2rem/1 var(--font-display); letter-spacing: -.02em; color: var(--gold-text); }
.dish.is-pop { animation: pop-in .55s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 28ms); }

.menu-empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1rem; text-align: center; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.menu-empty-title { font: 800 1.4rem var(--font-display); color: var(--text); }
.menu-foot-link { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
#menu-body { scroll-margin-top: calc(var(--header-h) + 170px); }
.menu-foot { margin-top: 2.4rem; font-size: .85rem; color: var(--text-3); }

@media (min-width: 900px) {
    .menu-tools { grid-template-columns: 300px minmax(0, 1fr); align-items: center; padding: 10px 14px 10px 10px; gap: 14px; }
    .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ==========================================================================
   BEBIDAS: scroll vertical que se convierte en desplazamiento horizontal
   Sin JS o con reduced-motion es un carrusel nativo con scroll-snap.
   ========================================================================== */
@property --tint { syntax: "<color>"; inherits: true; initial-value: rgba(232, 185, 73, .18); }
.hpan {
    position: relative;
    --tint: rgba(232, 185, 73, .18);
    background: radial-gradient(62% 56% at 72% 58%, var(--tint), transparent 70%), var(--bg-2);
    transition: --tint .9s var(--ease-out);
}
.hpan-sticky { display: flex; flex-direction: column; justify-content: center; gap: clamp(1.4rem, 4vh, 2.4rem); padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.hpan-head .lead { max-width: 32rem; }
.hpan-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--edge); }
.hpan-viewport::-webkit-scrollbar { display: none; }
.hpan-track { display: flex; gap: clamp(14px, 3vw, 32px); width: max-content; padding-block: 6px; }

.drink { flex: none; width: min(72vw, clamp(220px, calc((100svh - 340px) * .8), 320px)); scroll-snap-align: center; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; }
.drink-photo { aspect-ratio: 4 / 5; border: 1px solid var(--line-2); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8); }
.drink-photo img { transition: transform 1.4s var(--ease-out); }
.drink:hover .drink-photo img { transform: scale(1.07); }
.drink-body h3 { font-size: 1.5rem; letter-spacing: -.035em; }
.drink-body p { margin-top: .25rem; font-size: .92rem; color: var(--text-2); }
.drink-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drink-price { font: 800 1.6rem/1 var(--font-display); letter-spacing: -.03em; color: var(--gold-text); }

.hpan-progress { display: none; }
.hpan.is-hijack .hpan-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: calc(var(--header-h) + 34px) 30px; justify-content: center; overflow: clip; }
.hpan.is-hijack .hpan-viewport { overflow: visible; scroll-snap-type: none; }
.hpan.is-hijack .hpan-track { will-change: transform; }
.hpan.is-hijack .drink { scroll-snap-align: none; }
.hpan.is-hijack .hpan-progress { display: block; width: min(260px, 52vw); height: 3px; margin-inline: var(--edge); border-radius: 3px; background: var(--line-2); overflow: hidden; }
.hpan-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform: scaleX(var(--hp, 0)); transform-origin: 0 50%; }


/* ==========================================================================
   COMO PEDIR: linea de tiempo que se dibuja con el scroll
   (mobile: vertical, desktop: horizontal). --prog lo escribe app.js.
   ========================================================================== */
.steps { --prog: 0; position: relative; display: grid; gap: 2.6rem; padding-left: 4.4rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line-2); }
.steps::after {
    background: linear-gradient(to bottom, var(--gold-hi), var(--gold));
    transform: scaleY(var(--prog)); transform-origin: 50% 0;
    box-shadow: 0 0 16px var(--gold-glow);
}
.step { position: relative; }
.step-node {
    position: absolute; left: -4.4rem; top: 0; z-index: 1;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--text-3);
    transition: background-color .5s, color .5s, border-color .5s, transform .7s var(--ease-out), box-shadow .7s;
}
.step-node .i { width: 24px; height: 24px; }
.step.is-on .step-node {
    background: var(--gold); color: var(--gold-ink); border-color: var(--gold);
    box-shadow: 0 0 0 8px rgba(232, 185, 73, .14), 0 16px 30px -12px var(--gold-glow);
    transform: scale(1.06);
}
.step h3 { padding-top: .75rem; font-size: 1.45rem; letter-spacing: -.035em; }
.step p { margin-top: .4rem; max-width: 30ch; color: var(--text-2); }

@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 0; }
    .steps::before, .steps::after { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 2px; }
    .steps::after { background: linear-gradient(to right, var(--gold-hi), var(--gold)); transform: scaleX(var(--prog)); transform-origin: 0 50%; }
    .step-node { position: relative; left: 0; margin-bottom: 1.5rem; }
    .step h3 { padding-top: 0; }
}

/* ==========================================================================
   GUIA: tarjetas que giran en 3D
   ========================================================================== */
.guide { background: var(--bg-2); }
.flips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; perspective: 1400px; }
.flip { position: relative; min-height: 232px; }
.flip-front, .flip-back {
    border-radius: var(--r-lg); border: 1px solid var(--line-2);
    background: linear-gradient(150deg, var(--surface-2), var(--surface));
    padding: 1.15rem;
}
.flip-front {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    width: 100%; height: 100%; min-height: 232px; text-align: left;
    transition: border-color .3s;
}
.flip-front:hover { border-color: var(--gold); }
.flip-front::after {
    content: ""; position: absolute; right: -30%; top: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 185, 73, .2), transparent 65%); pointer-events: none;
}
.flip-front::before {
    content: attr(data-initial); position: absolute; left: .7rem; top: -.12em; pointer-events: none;
    font: 800 clamp(6.5rem, 9vw, 9rem)/1 var(--font-display); letter-spacing: -.05em;
    background: linear-gradient(180deg, rgba(232, 185, 73, .34), rgba(232, 185, 73, 0) 88%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    transition: transform 1s var(--ease-out), opacity .4s;
}
[data-theme="light"] .flip-front::before { background-image: linear-gradient(180deg, rgba(122, 84, 0, .3), rgba(122, 84, 0, 0) 88%); }
.flip-front:hover::before { transform: translate(8px, 8px) scale(1.05); }
.flip-name { font: 800 clamp(1.45rem, 1.1rem + 1.4vw, 2rem)/1.05 var(--font-display); letter-spacing: -.04em; }
.flip-hint { margin-top: .35rem; font-size: .85rem; color: var(--text-3); }
.flip-ico { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 1; width: 26px; height: 26px; color: var(--gold-text); transition: transform .9s var(--ease-out); }
.flip-front:hover .flip-ico { transform: rotate(90deg) scale(1.25); }
.flip-back { margin-top: 10px; }
.flip-back p { font-size: .92rem; color: var(--text-2); }
.flip-back a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .9rem; font-weight: 800; color: var(--gold-text); }
.flip-back a .i { transition: transform .4s var(--ease-out); }
.flip-back a:hover .i { transform: translateX(4px); }

/* Con JS: doble cara real */
.js .flip { transform-style: preserve-3d; transition: transform .95s var(--ease-out); }
.js .flip-front, .js .flip-back { position: absolute; inset: 0; margin: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.js .flip-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; }
.js .flip.is-open { transform: rotateY(180deg); }

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

/* ==========================================================================
   GALERIA: acordeon de fotos con pie interactivo
   ========================================================================== */
.gp { display: grid; gap: 14px; }
.gp-list { display: flex; flex-direction: column; gap: 8px; height: 580px; }
.gp-list > li { flex: 1 1 0; min-width: 0; min-height: 0; transition: flex-grow .95s var(--ease-out); }
.gp-list > li:has(.is-active) { flex-grow: 6; }
.gp-item {
    position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
    border-radius: var(--r-lg); border: 1px solid var(--line-2);
    background: var(--surface-2);
    transition: border-color .4s;
    -webkit-tap-highlight-color: transparent;
}
.gp-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.7); transition: filter .9s, transform 1.4s var(--ease-out); }
.gp-item:hover img { filter: saturate(1) brightness(.92); }
.gp-item.is-active { border-color: var(--gold); }
.gp-item.is-active img { filter: none; transform: scale(1.03); }
.gp-caption {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
    padding: 1.1rem 1.3rem; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line-2);
}
.gp-info { flex: 1 1 240px; min-width: 0; }
.gp-info h3 { font-size: 1.6rem; letter-spacing: -.035em; }
.gp-info p { margin-top: .2rem; color: var(--text-2); }
.gp-price { font: 800 2rem/1 var(--font-display); letter-spacing: -.03em; color: var(--gold-text); }
.gp-caption.is-swap .gp-info, .gp-caption.is-swap .gp-price { animation: swap-in .6s var(--ease-out); }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 800px) {
    .gp-list { flex-direction: row; height: clamp(440px, 64svh, 640px); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; gap: 2rem; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
    border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
    transition: border-color .3s, background-color .3s;
}
.faq-item[open] { border-color: var(--line-2); background: linear-gradient(145deg, rgba(232, 185, 73, .09), var(--surface)); }
.faq-item summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.2rem; cursor: pointer;
    font: 700 1.05rem/1.35 var(--font-body);
    -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { color: var(--gold-text); transition: transform .55s var(--ease-out); }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--gold-text); }
.faq-a { padding: 0 1.2rem 1.25rem; max-width: 62ch; color: var(--text-2); }
:root { interpolate-size: allow-keywords; }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
@media (min-width: 960px) {
    .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
    .faq-head { position: sticky; top: calc(var(--header-h) + 50px); }
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { background: var(--bg-2); overflow: clip; }
.contact-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(60% 60% at 88% 12%, var(--glow-b), transparent 66%),
        radial-gradient(56% 60% at 0% 100%, var(--glow-a), transparent 70%);
}
.contact-grid { position: relative; display: grid; gap: 2.8rem; align-items: start; }
.contact-list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.ci {
    flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--gold-text);
}
.contact-list strong { display: block; font-weight: 800; }
.contact-list a, .contact-list span { color: var(--text-2); }
.contact-list a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; transition: color .3s; }
.contact-list a:hover { color: var(--gold-text); }
.contact-map { margin-top: 2rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); }
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.contact-card { padding: clamp(1.3rem, 3.4vw, 2.3rem); border-radius: var(--r-lg); }
.contact-card h3 { margin-bottom: 1.4rem; font-size: 1.7rem; letter-spacing: -.035em; }
.form-cart { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: var(--r-field); background: rgba(232, 185, 73, .12); border: 1px solid var(--line-2); font-size: .88rem; color: var(--text); }
.form-note { margin-top: .9rem; text-align: center; font-size: .82rem; color: var(--text-3); }
.btn-label { display: inline-flex; align-items: center; gap: .6rem; transition: opacity .25s; }
.btn-spin {
    position: absolute; width: 24px; height: 24px; border-radius: 50%; opacity: 0;
    border: 3px solid rgba(5, 33, 14, .22); border-top-color: var(--wa-ink);
    animation: spin .8s linear infinite; pointer-events: none;
}
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .btn-spin { opacity: 1; }
@media (min-width: 960px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; overflow: clip; padding-top: clamp(3.5rem, 8vw, 6rem); background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.4rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand img { width: 46px; }
.footer-brand .brand-word { font-size: 1.8rem; }
.footer-brand p { margin-top: 1rem; max-width: 26ch; color: var(--text-2); }
.socials { display: flex; gap: 10px; margin-top: 1.3rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); transform: translateY(-3px); }
.footer-col h2 { margin-bottom: 1rem; font: 800 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.footer-col li a { display: inline-block; padding: .32rem 0; color: var(--text-2); transition: color .3s, transform .4s var(--ease-out); }
.footer-col li a:hover { color: var(--gold-text); transform: translateX(5px); }
.footer-mark {
    margin: clamp(2.2rem, 7vw, 4.5rem) 0 0; text-align: center; user-select: none;
    font: 800 clamp(5.5rem, 29vw, 26rem)/.8 var(--font-display); letter-spacing: -.06em;
    background: linear-gradient(180deg, rgba(232, 185, 73, .5), rgba(232, 185, 73, 0) 82%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: .08em;
}
[data-theme="light"] .footer-mark { background-image: linear-gradient(180deg, rgba(122, 84, 0, .5), rgba(122, 84, 0, 0) 82%); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem;
    padding-block: 1.3rem 6.5rem; border-top: 1px solid var(--line);
    font-size: .85rem; color: var(--text-3);
}
@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { padding-bottom: 2rem; }
}

/* ==========================================================================
   CAJON DEL PEDIDO
   ========================================================================== */
.drawer { width: 100%; height: 100%; }
.drawer::backdrop { background: rgba(2, 8, 5, .64); backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s var(--ease-io); }
.drawer.is-open::backdrop { opacity: 1; }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    width: min(100%, 460px);
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--bg-2); border-left: 1px solid var(--line-2);
    box-shadow: -40px 0 90px -30px rgba(0, 0, 0, .85);
    transform: translateX(102%); transition: transform .7s var(--ease-out);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { padding: 10px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.7rem; letter-spacing: -.04em; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.cart-list { display: grid; gap: 10px; }
.cart-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem 1rem;
    padding: .85rem .95rem; border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line);
    animation: pop-in .5s var(--ease-out) backwards;
}
.cart-item h3 { font: 800 1rem/1.25 var(--font-display); letter-spacing: -.02em; }
.cart-item .sub { font-size: .82rem; color: var(--text-3); }
.cart-item .line { font: 800 1.1rem/1 var(--font-display); text-align: right; color: var(--gold-text); }
.cart-item .stepper { grid-column: 1 / -1; justify-self: end; }
.cart-empty { display: grid; justify-items: center; gap: .6rem; padding: 3.5rem 1rem; text-align: center; color: var(--text-2); }
.cart-empty .i { width: 52px; height: 52px; color: var(--gold-text); }
.cart-empty-title { font: 800 1.5rem var(--font-display); letter-spacing: -.03em; color: var(--text); }
.cart-empty .btn { margin-top: .8rem; }
.drawer-foot { padding: 14px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.drawer-foot .field { margin-bottom: .7rem; }
.drawer-foot .field input, .drawer-foot .field textarea { padding: .75rem .9rem; }
.drawer-foot .field textarea { min-height: 4.4rem; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin: .4rem 0 .9rem; font-weight: 700; color: var(--text-2); }
.cart-total strong { font: 800 2rem/1 var(--font-display); letter-spacing: -.035em; color: var(--gold-text); }
.drawer-foot .link-btn { width: 100%; margin-top: .4rem; }


/* ==========================================================================
   MOVIMIENTO
   Revelado al entrar en pantalla (lo dispara app.js con IntersectionObserver),
   titulares palabra por palabra y todos los keyframes.
   El revelado usa `animation ... backwards` (y no transition) para que los
   :hover de cada elemento sigan funcionando con su propio transform.
   ========================================================================== */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in {
    opacity: 1;
    animation: reveal-up 1.15s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="scale"].is-in { animation-name: reveal-scale; }
.js [data-reveal="left"].is-in { animation-name: reveal-left; }
@keyframes reveal-up { from { opacity: 0; transform: translate3d(0, 38px, 0); } }
@keyframes reveal-scale { from { opacity: 0; transform: scale(.9) translate3d(0, 20px, 0); } }
@keyframes reveal-left { from { opacity: 0; transform: translate3d(-44px, 0, 0); } }

/* Titulares: cada palabra sube desde una mascara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .16em; margin: -.08em -.03em -.16em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(115%); }
.js [data-split].is-in .wi { transform: none; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--w, 0) * 70ms); }
html.is-ready .hero [data-split] .wi { transform: none; transition: transform 1.25s var(--ease-out); transition-delay: calc(.4s + var(--w, 0) * 90ms); }

/* Red de seguridad: si app.js no llega a ejecutarse, el contenido aparece solo a los 9.5 s */
.js [data-reveal], .js [data-split] .wi, .js .hero [data-hero-in], .js .hero .thali {
    animation: show-failsafe .01s linear 9.5s forwards;
}
@keyframes show-failsafe { to { opacity: 1; transform: none; } }

/* Cambio de tema suave (lo activa app.js durante 700 ms) */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .55s var(--ease-io), border-color .55s var(--ease-io), color .55s var(--ease-io),
                fill .55s var(--ease-io), stroke .55s var(--ease-io), box-shadow .55s var(--ease-io) !important;
}

/* ------------------------------ KEYFRAMES ------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes halo { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes crest-float {
    0%, 100% { transform: translate3d(0, -1.4%, 0) rotate(-.7deg); }
    50% { transform: translate3d(0, 1.8%, 0) rotate(.7deg); }
}
@keyframes logo-breathe { 0%, 100% { transform: scale(.97); } 50% { transform: scale(1.04); } }
@keyframes shine {
    0%, 55% { -webkit-mask-position: 140% 0; mask-position: 140% 0; }
    100% { -webkit-mask-position: -40% 0; mask-position: -40% 0; }
}
@keyframes drift-a { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, 9vmax, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(7vmax, -8vmax, 0) scale(1.15); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ==========================================================================
   REDUCED MOTION: todo queda estatico y visible
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    .js [data-reveal], .js [data-split] .wi, .js .hero [data-hero-in], .js .hero .thali { opacity: 1 !important; transform: none !important; }
    .marquee { overflow-x: auto; -webkit-mask: none; mask: none; }
    .scroll-progress { display: none; }
}
