/* =========================================================
   TOKENS — cambia aquí colores y tipografías
   ========================================================= */
:root {
  /* ===== PALETA "PARRILLA" =====
     Colores cálidos que abren el apetito (rojo, naranja, amarillo) sobre
     neutros de pan y café tostado. Contrastes WCAG medidos al lado de cada uso. */
  --brioche:  #FBF3E6;     /* pan brioche: fondo claro */
  --corteza:  #F2E3CC;     /* corteza: superficies y hovers */
  --mostaza:  #FFB627;     /* mostaza: realces sobre oscuro (10.5:1 en carbón) */
  --cheddar:  #F39A33;     /* cheddar: fondo del hero, energía */
  --ketchup:  #C8281C;     /* ketchup: botones de compra (texto crema 5.1:1) */
  --llama:    #FF6B2C;     /* llama: acentos sobre oscuro (6.5:1 en carbón) */
  --tostado:  #3E2618;     /* café tostado: fondo de la anatomía */
  --carbon:   #1C110B;     /* carbón: secciones oscuras */
  --espresso: #2B1A12;     /* espresso: texto (15:1 en brioche, 7.5:1 en cheddar) */
  --lechuga:  #367320;     /* lechuga: detalles de frescura, con moderación (4.9:1 en brioche) */
  --crema:    #FFF4E2;     /* texto sobre oscuro (17:1 en carbón) */

  --bg: var(--brioche);
  --bg-2: var(--corteza);
  --surface: #FFFFFF;
  --ink: var(--espresso);
  --muted: #6B5244;        /* 6.5:1 en brioche */
  --accent: var(--ketchup);
  --accent-soft: #F6C9A0;
  --sauce: #E0892F;        /* gotas de salsa */
  --dark: var(--carbon);
  --on-dark: var(--crema);
  --cta: var(--ketchup);   /* botón principal */
  --on-cta: var(--crema);
  --ph-a: #E7DCCB;         /* placeholders */
  --ph-b: #DDD0BC;

  /* Fuente de marca (la del logo BURGUER CAT): geométrica, redondeada y muy gruesa.
     Fredoka es variable: se usa en su versión más ancha (font-stretch 125%) y más gruesa (700),
     igual que las letras "CAT" del logo. Gratis en Google Fonts. */
  --font-brand: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-display: var(--font-brand);
  --font-body: "Inter", system-ui, sans-serif;
  --font-hero: var(--font-brand);

  --gutter: clamp(16px, 5vw, 80px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-synthesis: none;   /* nunca negritas ni cursivas falsas: solo las formas reales de cada fuente */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 700; font-stretch: 125%;
  line-height: .9;
  letter-spacing: -0.01em;
}
/* Letras "rebotadas" (main.js las separa): alturas y giros irregulares, como rotulado a mano */
.bounce-l { display: inline-block; transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg)); }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.lead { color: var(--muted); max-width: 30ch; font-size: 15px; }

/* ---------- Placeholders (sustituir por imágenes) ---------- */
.ph {
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font: 600 10px/1.2 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: transform .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cta); color: var(--on-cta); }
.btn--primary:hover { box-shadow: 0 8px 22px rgb(200 40 28 / .28); }
.btn--light { background: var(--on-dark); color: var(--dark); }
.btn--ghost { border: 1.5px solid var(--ink); }
.btn--sm { height: 38px; padding: 0 18px; text-transform: none; letter-spacing: 0; }
.btn--xs { height: 30px; padding: 0 12px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.btn-circle {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
}
.btn-circle svg, .icon-btn svg, .slider-hint svg, .to-top svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(12px);
}
/* Header sobre el hero oscuro */
.site-header.on-dark { --bg: var(--carbon); --ink: var(--crema); color: var(--ink); }
.site-header.on-dark .icon-btn:hover { background: #2E1F16; }
.site-header.on-dark.is-scrolled { background: color-mix(in srgb, var(--carbon) 70%, transparent); }
/* Sobre el cheddar del hero: texto espresso (7.5:1) y botón espresso */
.site-header.on-warm, .site-header.on-warm.is-scrolled {
  background: transparent; backdrop-filter: none;
  --ink: var(--espresso); color: var(--ink); --cta: var(--espresso); --on-cta: var(--crema);
}
.site-header.on-dark ~ .scroll-rail { background: rgb(255 255 255 / .15); }
.site-header.on-dark ~ .scroll-rail span { background: var(--crema); }
/* Con el menú abierto el header queda sobre el cheddar del panel */
.menu-open .site-header { background: transparent !important; backdrop-filter: none !important; --ink: var(--espresso); color: var(--espresso); }
/* ---------- Logo BURGUER CAT ----------
   La silueta es una máscara (toma el color del texto: espresso o crema según el fondo)
   y las pupilas son piezas aparte que siguen al cursor (main.js → --px / --py). */
.logo { display: block; line-height: 0; }
.logo__mark {
  position: relative; display: block;
  height: var(--logo-h, 96px); aspect-ratio: 877 / 1066;
  transition: height .3s ease;
}
.logo__mark::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("assets/marca/logo-mask.png") center / 100% 100% no-repeat;
          mask: url("assets/marca/logo-mask.png") center / 100% 100% no-repeat;
}
.logo__pupil {
  position: absolute; top: 38.75%; left: 32.835%;
  width: 12.09%; height: 9.19%;
  background: currentColor; border-radius: 50% 50% 46% 46% / 52% 52% 48% 48%;
  translate: calc(var(--px, 0) * 22%) calc(var(--py, 0) * 34%);
  transition: translate .18s ease-out;
  animation: blink 5.5s infinite;
}
.logo__pupil + .logo__pupil { left: 55.075%; }
/* parpadeo: las pupilas se aplastan un instante */
@keyframes blink { 0%, 93%, 100% { scale: 1 1; } 95.5% { scale: 1.1 .12; } }
.site-header.is-scrolled { --logo-h: 70px; }
@media (prefers-reduced-motion: reduce) { .logo__pupil { animation: none; transition: none; } }

/* ---------- Botón de menú: icono de hamburguesa (pan · lechuga · pan) ---------- */
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 18px; border-radius: 99px;
  border: 1.5px solid currentColor;
  font: 700 expanded 15px/1 var(--font-brand); letter-spacing: .04em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .2s;
}
.menu-btn:hover { transform: translateY(-1px); }
/* Botón de sonido (bocina): tachado cuando está en silencio, con ondas cuando suena */
.header-actions { display: flex; align-items: center; gap: 10px; }
.sound-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid currentColor; transition: transform .2s, background .25s;
}
.sound-btn:hover { transform: translateY(-1px); }
.sound-btn svg { width: 24px; height: 24px; overflow: visible; }
.sound-btn path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s; }
.sound-btn .sb-horn { fill: currentColor; }
.sound-btn .sb-wave { opacity: 0; }
.sound-btn.is-on .sb-wave { opacity: 1; animation: sb-pulse 1.6s ease-in-out infinite; }
.sound-btn.is-on .sb-x { opacity: 0; }
@keyframes sb-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sound-btn.is-on .sb-wave { animation: none; } }
.menu-btn__icon { width: 32px; height: 32px; overflow: visible; }
.menu-btn__icon .mi {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: center;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s;
}
.menu-btn__icon .mi-seed { stroke-width: 1.6; }
.menu-btn__icon .mi--x { opacity: 0; transform: scale(.4) rotate(-90deg); }
/* al pasar el ratón la hamburguesa se "desarma" un poco, como en el hero */
.menu-btn:hover .mi--top { transform: translateY(-2.5px) rotate(-6deg); }
.menu-btn:hover .mi--bot { transform: translateY(2px); }
.menu-btn:hover .mi--mid { transform: scaleX(1.08); }
/* abierto: el pan sale volando y aparece la X */
.menu-btn[aria-expanded="true"] .mi--top { transform: translateY(-10px) rotate(-18deg); opacity: 0; }
.menu-btn[aria-expanded="true"] .mi--bot { transform: translateY(10px); opacity: 0; }
.menu-btn[aria-expanded="true"] .mi--mid { transform: scaleX(0); opacity: 0; }
.menu-btn[aria-expanded="true"] .mi--x { opacity: 1; transform: none; }

/* ---------- Menú a pantalla completa (landing de una sola página) ---------- */
.menu-panel {
  position: fixed; inset: 0; z-index: 55;
  display: grid; place-content: center; justify-items: center; gap: 36px;
  color: var(--espresso);
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgb(255 222 140 / .7), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 40%, #FDB443, var(--cheddar) 50%, #DE6E1C);
  animation: menu-in .45s cubic-bezier(.2, .9, .3, 1);
}
@keyframes menu-in { from { clip-path: circle(0 at calc(100% - 60px) 40px); } to { clip-path: circle(150% at calc(100% - 60px) 40px); } }
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.menu-panel li a {
  display: inline-flex; align-items: flex-start; gap: 12px;
  font: 700 expanded clamp(2.6rem, 8vw, 5.5rem)/1.05 var(--font-brand);
  transition: color .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.menu-panel li:nth-child(odd) a { transform: rotate(-2deg); }
.menu-panel li:nth-child(even) a { transform: rotate(1.5deg); }
.menu-panel li a:hover { color: var(--ketchup); transform: scale(1.06) rotate(-3deg); }
.menu-panel small { font: 600 13px/1 var(--font-body); letter-spacing: .14em; margin-top: .9em; opacity: .75; }
.menu-panel__cta { --cta: var(--espresso); }
.menu-panel__ctas { display: grid; justify-items: center; gap: 30px; }
/* Redes de Stelar Creative al pie del menú: íconos redondos con borde suave */
.menu-panel__social { display: grid; justify-items: center; gap: 14px; }
.menu-soc { display: flex; gap: 14px; }
.menu-soc .soc {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent);
  transition: border-color .2s, color .2s, transform .2s;
}
.menu-soc .soc svg { width: 19px; height: 19px; display: block; }
.menu-soc .soc:hover { transform: translateY(-2px); color: var(--ketchup); border-color: currentColor; }
.menu-panel__phone { font: 500 14px/1 var(--font-body); letter-spacing: .02em; opacity: .8; }
.menu-panel__phone:hover { opacity: 1; color: var(--ketchup); }
.menu-panel a:focus-visible { outline: 2px solid var(--ketchup); outline-offset: 3px; border-radius: 8px; }

/* ---------- Botón de delivery con el gatito corriendo ----------
   Píldora ketchup; el gato asoma por arriba a la izquierda, corre en su sitio (pasitos + rebote)
   con líneas de velocidad detrás. Al pasar el mouse corre más rápido y adelanta un poco. */
.btn-delivery {
  --cat: 92px;
  position: relative; display: inline-flex; align-items: center;
  height: 64px; padding: 0 32px 0 calc(var(--cat) + 18px); border-radius: 99px;
  background: var(--ketchup); color: var(--crema);
  font: 700 expanded 17px/1 var(--font-brand); text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgb(200 40 28 / .28), inset 0 -4px 0 rgb(0 0 0 / .14);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s;
}
.btn-delivery:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 16px 32px rgb(200 40 28 / .36), inset 0 -4px 0 rgb(0 0 0 / .14); }
.btn-delivery:active { transform: translateY(1px) scale(.98); }
.btn-delivery:focus-visible { outline: 3px solid var(--espresso); outline-offset: 4px; }
.btn-delivery__text { display: grid; gap: 5px; text-align: left; }
.btn-delivery__text small {
  font: 600 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  opacity: .85; margin: 0;
}
.btn-delivery__cat {
  position: absolute; left: 8px; bottom: 6px;
  width: var(--cat); aspect-ratio: 350 / 360;
  background: url("assets/marca/gato-delivery.png") center / contain no-repeat;
  filter: drop-shadow(0 0 0 var(--crema)) drop-shadow(2px 0 0 var(--crema)) drop-shadow(-2px 0 0 var(--crema)) drop-shadow(0 -2px 0 var(--crema));
  transform-origin: 50% 90%;
  animation: deliv-run .36s ease-in-out infinite alternate;
  transition: translate .3s cubic-bezier(.3, 1.5, .5, 1);
}
/* líneas de velocidad detrás del gato */
.btn-delivery__cat::before {
  content: ""; position: absolute; left: -10px; top: 46%;
  width: 16px; height: 3px; border-radius: 3px; background: var(--crema);
  box-shadow: -6px 9px 0 var(--crema), 2px 18px 0 var(--crema);
  animation: deliv-lines .5s linear infinite;
}
.btn-delivery:hover .btn-delivery__cat { animation-duration: .2s; translate: 6px 0; }
.btn-delivery:hover .btn-delivery__cat::before { animation-duration: .28s; }
@keyframes deliv-run {
  from { transform: translateY(0) rotate(2deg); }
  to   { transform: translateY(-6px) rotate(-5deg); }
}
@keyframes deliv-lines {
  from { translate: 6px 0; opacity: 0; }
  30%  { opacity: 1; }
  to   { translate: -14px 0; opacity: 0; }
}
.btn-delivery--sm { --cat: 74px; height: 56px; font-size: 15px; padding-right: 26px; }
.shop__delivery { margin-top: 40px; position: relative; z-index: 30; }
@media (prefers-reduced-motion: reduce) {
  .btn-delivery__cat, .btn-delivery__cat::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .menu-panel { animation: none; } .menu-btn__icon .mi { transition: none; } }

/* =========================================================
   ESCENAS FIJADAS (sticky + progreso --p de 0 a 1 vía JS)
   ========================================================= */
.scene { position: relative; height: var(--len, 200vh); --p: 0; }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- ESCENA 1 · HERO "ARMA TU BURGER" ----------
   Fondo naranja cálido con palabra gigante (estilo póster), líneas guía
   e ingredientes flotando. Todo se retira cuando la burger se desarma (--e). */
.scene--grind {
  --r: clamp(0, calc(var(--p) / .35), 1);           /* fase 1: el texto se retira */
  --e: clamp(0, calc((var(--p) - .35) / .45), 1);   /* fase 2: explosión */
  /* Texto espresso sobre cheddar (7.5:1); el crema solo en la palabra gigante decorativa */
  --bg: var(--cheddar);
  --ink: var(--espresso);
  --muted: #4A2E1E;                                  /* 5.6:1 en cheddar */
  --accent: var(--espresso);
  --cta: var(--espresso);
  --on-cta: var(--crema);
  color: var(--ink);
  /* El cheddar original de siempre; la luz detrás de la burger la ponen el halo y los rayos (.hero-glow) */
  background:
    radial-gradient(ellipse 42% 50% at 50% 50%, rgb(255 222 140 / .75) 0%, rgb(255 210 120 / 0) 70%),
    radial-gradient(ellipse 120% 105% at 50% 42%, #FDB443 0%, var(--cheddar) 48%, #DE6E1C 100%);
}

/* Luz detrás de la hamburguesa: halo crema que respira y rayos muy sutiles que giran lento */
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: clamp(0, calc(1 - var(--e) * 1.4), 1);
}
.hero-glow i { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.hero-glow__rays {
  width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  background: repeating-conic-gradient(from 0deg, rgb(255 246 214 / .16) 0deg 5deg, rgb(255 246 214 / 0) 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 4%, rgb(0 0 0 / .5) 22%, transparent 46%);
          mask: radial-gradient(circle, #000 4%, rgb(0 0 0 / .5) 22%, transparent 46%);
  animation: hero-rays 90s linear infinite;
}
.hero-glow__halo {
  width: min(70vw, 760px); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgb(255 226 150 / .45) 0%, rgb(255 214 130 / .18) 35%, rgb(255 210 120 / 0) 68%);
  filter: blur(8px);
  animation: hero-halo 6s ease-in-out infinite;
}
/* Mientras canta el coro (sound.js) el cielo se abre: más luz y el halo crece */
.hero-glow { transition: filter 1.2s ease; }
.hero-glow__halo { transition: transform 1.4s cubic-bezier(.3, .8, .4, 1); }
.hero-glow.is-singing { filter: brightness(1.35) saturate(1.08); }
.hero-glow.is-singing .hero-glow__halo { transform: scale(1.22); }
@keyframes hero-rays { to { rotate: 360deg; } }
@keyframes hero-halo { 50% { scale: 1.08; opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .hero-glow i { animation: none; } }
/* Grano fino para que el naranja no se vea plano */
.scene--grind .scene__sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .25  0 0 0 0 0  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Palabra gigante detrás de la hamburguesa (todas las letras en el mismo plano) */
.hero-word {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); top: 50%;
  margin: 0; pointer-events: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-hero); font-weight: 700; font-stretch: 125%;
  font-size: clamp(42px, 12vw, 230px); line-height: .8; letter-spacing: 0;
  text-transform: uppercase; color: var(--crema);
  transform: translateY(-50%) scale(calc(1 + var(--r) * .05));
  opacity: clamp(0, calc(1 - var(--e) * 1.8), 1);
  text-shadow: 0 14px 50px rgb(150 55 0 / .22);
}
/* rebote de rotulado a mano en la palabra gigante */
.hero-word span { display: inline-block; }
.hero-word span:nth-child(1) { transform: translateY(-3%) rotate(-4deg); }
.hero-word span:nth-child(2) { transform: translateY(4%) rotate(3deg); }
.hero-word span:nth-child(3) { transform: translateY(-2%) rotate(-2deg); }
.hero-word span:nth-child(4) { transform: translateY(5%) rotate(4deg); }
.hero-word span:nth-child(5) { transform: translateY(-4%) rotate(-3deg); }
.hero-word span:nth-child(6) { transform: translateY(2%) rotate(2deg); }
.hero-word span:nth-child(7) { transform: translateY(-3%) rotate(-3deg); }


/* Ingredientes flotando alrededor (con profundidad: los grandes, desenfocados) */
.hero-floats {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: clamp(0, calc(1 - var(--e) * 1.6), 1);
}
.hf {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  filter: blur(var(--b, 0px)) drop-shadow(0 18px 22px rgb(120 40 0 / .32));
  translate: 0 calc(var(--r) * var(--par, -12vh));
  animation: hf-bob var(--t, 6s) ease-in-out infinite alternate;
}
@keyframes hf-bob {
  from { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(12px) rotate(calc(var(--rot, 0deg) + 9deg)); }
}
.hf--1 { --x: 24%; --y: 17%; --w: 8vw;  --rot: -22deg; --t: 5.5s; }
.hf--2 { --x: 70%; --y: 15%; --w: 4.4vw; --rot: 28deg; --t: 6.5s; --par: -18vh; }
.hf--3 { --x: 85%; --y: 36%; --w: 13vw; --rot: 14deg; --b: 5px; --t: 7.5s; --par: -26vh; }
.hf--4 { --x: 19%; --y: 63%; --w: 9vw;  --rot: -12deg; --b: 1.5px; --t: 6s; --par: -20vh; }
.hf--5 { --x: 66%; --y: 76%; --w: 3.8vw; --rot: -34deg; --b: 1px; --t: 5s; }

/* Título y llamada a la acción (abajo a la izquierda) */
.grind__intro {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 8vh;
  opacity: clamp(0, calc(1 - var(--r) * 1.3), 1);
  transform: translateY(calc(var(--r) * -5vh));
}
.grind__title {
  font: 700 expanded clamp(34px, 3.9vw, 62px)/.92 var(--font-hero);
  text-transform: uppercase; letter-spacing: .03em;
}
.scene--grind .lead {
  margin-top: 8px; max-width: none;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.scene--grind .actions { margin-top: 22px; }
.scene--grind .btn--primary { box-shadow: 0 10px 26px rgb(140 50 0 / .25); }

/* Firma de estilo western (abajo a la derecha) */
.hero-script {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 9vh;
  margin: 0; text-align: right; line-height: 1;
  /* misma fuente del logo, como una etiqueta: letras gruesas con sombra ketchup */
  font: 700 expanded clamp(28px, 2.9vw, 46px)/1 var(--font-brand);
  text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 3px 3px 0 var(--ketchup);
  rotate: -4deg;
  opacity: clamp(0, calc(1 - var(--r) * 1.4), 1);
  transform: translateY(calc(var(--r) * -5vh));
}
.hero-script small {
  display: block; margin-bottom: 8px;
  font: 500 11px var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) { .hf { animation: none; transform: rotate(var(--rot)); } }

/* Hamburguesa 3D (three.js): lienzo transparente fijo sobre toda la página.
   z-index 15: encima de las escenas, debajo de las tarjetas delanteras
   de la tienda (30+), del menú (55) y del header (60). */
.burger3d {
  position: fixed; inset: 0; z-index: 15;
  pointer-events: none;
  opacity: 0; transition: opacity .8s ease;
}
.burger3d.is-ready { opacity: 1; }
.burger3d canvas { display: block; width: 100% !important; height: 100% !important; }
/* ---------- Fondo de la anatomía (aparece con --anat) ----------
   Capas: café tostado con viñeta y grano · reflejos de color (ketchup y mostaza) ·
   rayos de luz que giran despacio · halo que respira · anillos tipo plato · bokeh flotando */
.anat-bg {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none;
  opacity: var(--anat, 0);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .06  0 0 0 0 .03  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 45%, rgb(8 4 2 / .7) 100%),
    radial-gradient(ellipse 45% 50% at 8% 92%, rgb(200 40 28 / .28), transparent 70%),
    radial-gradient(ellipse 40% 45% at 94% 6%, rgb(255 182 39 / .16), transparent 70%),
    radial-gradient(ellipse 35% 40% at 92% 88%, rgb(255 107 44 / .14), transparent 70%),
    radial-gradient(ellipse 75% 70% at 50% 46%, #5E3A25 0%, var(--tostado) 40%, #24160E 76%, #150D08 100%);
}
/* Rayos de luz suaves detrás de la hamburguesa (giran muy despacio) */
.anat-bg__rays {
  position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax;
  margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(from 0deg, rgb(255 196 100 / .085) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 4%, rgb(0 0 0 / .5) 16%, transparent 34%);
          mask-image: radial-gradient(circle, #000 4%, rgb(0 0 0 / .5) 16%, transparent 34%);
  animation: anat-spin 120s linear infinite;
}
/* Halo cálido que "respira" */
.anat-bg__halo {
  position: absolute; left: 50%; top: 50%; width: min(70vh, 60vw); height: min(70vh, 60vw);
  margin: calc(min(70vh, 60vw) / -2) 0 0 calc(min(70vh, 60vw) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 190 90 / .32), rgb(255 140 50 / .12) 45%, transparent 70%);
  animation: anat-breathe 6s ease-in-out infinite alternate;
}
/* Anillos finos, como el borde de un plato visto de frente */
.anat-bg__ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border: 1px solid rgb(255 182 39 / .16);
}
.anat-bg__ring--1 { --d: 64vh; }
.anat-bg__ring--2 { --d: 88vh; border-style: dashed; border-color: rgb(255 182 39 / .12); animation: anat-spin 90s linear infinite reverse; }
.anat-bg__ring--3 { --d: 116vh; border-color: rgb(246 239 228 / .06); }
/* Bokeh: luces desenfocadas flotando */
.anat-bg__bokeh span {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  border-radius: 50%; background: var(--c); filter: blur(var(--b, 6px)); opacity: var(--o, .35);
  mix-blend-mode: screen;
  animation: anat-float var(--t, 14s) ease-in-out infinite alternate;
}
@keyframes anat-spin { to { transform: rotate(360deg); } }
@keyframes anat-breathe { from { transform: scale(.94); opacity: .8; } to { transform: scale(1.06); opacity: 1; } }
@keyframes anat-float { from { transform: translate(0, 0); } to { transform: translate(var(--mx, 20px), var(--my, -40px)); } }
@media (max-width: 760px) {
  .anat-bg__ring--1 { --d: 80vw; } .anat-bg__ring--2 { --d: 110vw; } .anat-bg__ring--3 { --d: 140vw; }
}
@media (prefers-reduced-motion: reduce) { .anat-bg__rays, .anat-bg__halo, .anat-bg__ring, .anat-bg__bokeh span { animation: none; } }
/* Título de la infografía */
.anat-title {
  /* main.js elige la esquina libre (data-spot) y, si no cabe en ninguna, lo achica (--ts),
     para que nunca choque con las etiquetas de la anatomía */
  position: absolute; z-index: 2; left: var(--gutter); top: 120px;
  margin: 0; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%; text-transform: uppercase;
  font-size: calc(clamp(13px, 1.2vw, 19px) * var(--ts, 1)); letter-spacing: .06em; line-height: 1.05;
  color: var(--mostaza);
  opacity: var(--anat, 0);
  transform: translateX(calc((1 - var(--anat, 0)) * -20px));
  text-shadow: 0 2px 18px rgb(0 0 0 / .45);
}
.anat-title[data-spot="bl"] { top: auto; bottom: 7vh; }
.anat-title[data-spot="tr"] { left: auto; right: var(--gutter); text-align: right; }
.anat-title[data-spot="br"] { left: auto; right: var(--gutter); top: auto; bottom: 7vh; text-align: right; }
.anat-title strong {
  display: block; font-size: 2.7em; letter-spacing: .01em; line-height: .9; margin-top: .1em;
  font-weight: 700;   /* <strong> pide 900 y Fredoka llega a 700: sin esto el navegador inventa una negrita falsa */
  color: #F7931E;
  background: linear-gradient(180deg, #FFC04A 0%, #F7931E 55%, #D9661A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Volutas de humo detrás de la hamburguesa */
.anat-smoke-fx {
  position: fixed; inset: 0; z-index: 16; width: 100%; height: 100%;
  pointer-events: none;
}
@media (max-width: 1100px) { .anat-title { display: none; } }
/* ---------- ANATOMÍA DE LA BURGER (vista desarmada del hero) ----------
   Estilo infografía: guías punteadas curvas con punta de flecha,
   nombre en naranja y descripción breve en crema sobre fondo café.
   burger3d.js coloca cada etiqueta en el borde de su capa (--x, --y en px),
   fija el largo de la guía (--len) y su aparición (--a, 0–1). */
.anatomy {
  position: fixed; inset: 0; z-index: 16;
  margin: 0; padding: 0; list-style: none;
  pointer-events: none;
  --orange: var(--mostaza);
  --cream: var(--crema);
}
.anat {
  --a: 0; --sx: 1; --sy: 1; --rise: -28px;
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform: translate(var(--x, 0px), var(--y, 0px));
  visibility: hidden;
}
.anat.is-on { visibility: visible; }
.anat[data-side="l"] { --sx: -1; }
.anat[data-curve="down"] { --sy: -1; --rise: 28px; }

/* Punto sobre la capa */
.anat__dot {
  position: absolute; left: -3.5px; top: -3.5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgb(245 165 36 / .22), 0 0 12px rgb(245 165 36 / .6);
  opacity: var(--a);
  transform: scale(calc(.3 + var(--a) * .7));
}

/* Guía punteada curva: se revela de la capa hacia el texto */
.anat__curve {
  position: absolute; left: 0; top: -34px;
  width: var(--len, 90px); height: 40px;
  overflow: visible;
  transform-origin: 0 34px;
  transform: scale(var(--sx), var(--sy));
  clip-path: inset(-12px calc((1 - var(--a)) * 100%) -12px -12px);
}
.anat__curve path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: .1 5.5;
  vector-effect: non-scaling-stroke;
}
/* Punta de flecha al final de la guía, apuntando al texto */
.anat__arrow {
  position: absolute; width: 8px; height: 8px;
  left: calc(var(--len, 90px) * var(--sx) - 4px - 5px * var(--sx));
  top: calc(var(--rise) - 4px);
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange);
  border-radius: 1px;
  opacity: clamp(0, calc(var(--a) * 3 - 2), 1);
  transform: scaleX(var(--sx)) rotate(45deg);
}

/* Texto: nombre en naranja + descripción breve */
.anat__text {
  position: absolute; top: calc(var(--rise) - 12px);
  left: calc(var(--len, 90px) + 12px);
  width: max-content; max-width: 240px;
  font-family: var(--font-body, Inter, sans-serif);
  opacity: clamp(0, calc(var(--a) * 1.8 - .7), 1);
  transform: translateX(calc((1 - var(--a)) * 12px));
}
.anat[data-side="l"] .anat__text {
  left: auto; right: calc(var(--len, 90px) + 12px);
  text-align: right;
  transform: translateX(calc((1 - var(--a)) * -12px));
}
.anat__text b {
  display: block;
  font-size: clamp(17px, 1.35vw, 21px); font-weight: 700; line-height: 1.15;
  color: var(--orange);
  text-shadow: 0 2px 10px rgb(0 0 0 / .5);
}
.anat__text small {
  display: block; margin-top: 5px;
  font-size: clamp(13px, .95vw, 14.5px); font-weight: 400; line-height: 1.4;
  color: rgb(246 239 228 / .82);
  text-shadow: 0 1px 8px rgb(0 0 0 / .6);
}

/* En móvil no hay sitio a los lados: sin guía, píldora sobre el borde de la capa */
@media (max-width: 760px) {
  .anat__curve, .anat__arrow { display: none; }
  .anat__text, .anat[data-side="l"] .anat__text {
    left: 12px; right: auto; top: 0; max-width: none;
    text-align: left;
    padding: 6px 12px; border-radius: 999px;
    background: rgb(34 21 13 / .78);
    border: 1px solid rgb(245 165 36 / .35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transform: translateY(-50%) translateX(calc((1 - var(--a)) * 10px));
  }
  .anat__text b { font-size: 14px; }
  .anat__text small { display: none; }
}
/* ---------- ESCENA 2 · A LA PARRILLA ---------- */
.scene--grill {
  /* espátula, molinillo y queso: los anima burger3d.js con este mismo --p */
  --t: clamp(0, calc((var(--p) - .82) / .15), 1);   /* aparece el dato */
  /* Tema oscuro cálido (brasas) */
  --bg: #140D09;
  --ink: var(--crema);
  --muted: #C2AD9B;        /* 8.6:1 */
  --accent: var(--llama);
  --ph-a: #2B211B;
  --ph-b: #231B16;
  background: var(--bg);
  color: var(--ink);
}
.grill__text { position: absolute; left: var(--gutter); top: 16vh; z-index: 3; }
.grill__title { font-size: clamp(3rem, 8vw, 8rem); }
.grill__accent {
  font-size: clamp(4.5rem, 16vw, 16rem);
  color: var(--accent);
  white-space: nowrap;
  margin-top: -.06em;
  transform: translateX(calc(var(--p) * -8vw));
}
.swoosh {
  position: absolute; left: 40%; top: clamp(2.6rem, 7vw, 7rem);
  width: clamp(140px, 22vw, 300px);
  fill: none; stroke: var(--ink); stroke-width: 1.5;
}
.swoosh__star { fill: var(--ink); stroke: none; }

.grill__stat {
  position: absolute; z-index: 3;
  right: var(--gutter); bottom: 14vh;
  max-width: 280px;
  padding: 18px 22px 20px;
  border-radius: 18px;
  background: rgb(18 12 9 / .72);
  border: 1px solid rgb(255 106 43 / .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * 30px));
}
/* La fuente de marca es muy ancha: el tamaño se limita para que "140°C" quepa siempre dentro de la tarjeta */
.grill__stat span { display: block; font-size: clamp(2.4rem, 4.4vw, 4rem); white-space: nowrap; color: var(--accent); margin-bottom: 10px; }
.grill__stat p { color: #D9CBBD; font-size: 14px; }
.grill__stat strong { color: var(--mostaza); font-weight: 600; }
.grill__stat-tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--carbon); background: var(--mostaza);
}

/* La espátula y el molinillo se animan en burger3d.js (aplastan y pimientan la carne) */

/* Escenario central: rejilla + carne + queso + humo */
.grill__stage {
  position: absolute; z-index: 2;
  left: 56%; bottom: 6vh;
  width: clamp(260px, 34vw, 480px); height: 56vh;
  transform: translateX(-50%);
}
/* Escena de fondo: una sola foto (pared de madera de rancho + parrilla con brasas) */
.grill__fire {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.grill__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 100%;
  filter: brightness(calc(.72 + var(--p) * .2));
  animation: coal-breathe 4s ease-in-out infinite;
}
@keyframes coal-breathe {
  0%, 100% { filter: brightness(calc(.72 + var(--p) * .2)); }
  50%      { filter: brightness(calc(.78 + var(--p) * .22)); }
}
/* Profundidad: el fondo (arriba) desenfocado y más oscuro, la rejilla (abajo) nítida */
.grill__photo--far {
  filter: blur(var(--far-blur, 3px)) brightness(.7) saturate(.9);
  transform: scale(1.04);          /* evita bordes claros del blur */
  -webkit-mask-image: linear-gradient(#000 0%, #000 var(--far-end, 52%), transparent calc(var(--far-end, 52%) + 12%));
          mask-image: linear-gradient(#000 0%, #000 var(--far-end, 52%), transparent calc(var(--far-end, 52%) + 12%));
  animation: none;
}
/* Neblina cálida en la línea del horizonte de la parrilla: une los dos planos */
.grill__haze {
  position: absolute; left: -10%; right: -10%;
  top: var(--haze-y, 50%); height: 26%;
  transform: translateY(-50%);
  pointer-events: none;
}
.grill__haze span {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 30% 50%, rgb(255 170 110 / .22), transparent 70%),
    radial-gradient(ellipse 45% 50% at 72% 55%, rgb(255 150 90 / .18), transparent 70%),
    linear-gradient(transparent, rgb(120 70 40 / .28) 45%, rgb(120 70 40 / .28) 55%, transparent);
  filter: blur(16px);
  animation: haze-drift 14s ease-in-out infinite alternate;
}
.grill__haze span:nth-child(2) { animation-duration: 19s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes haze-drift {
  from { transform: translateX(-4%); }
  to   { transform: translateX(4%); }
}
/* Sombra para que el título se lea y el borde superior se funda con la sección anterior */
.grill__fire::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(18 12 9 / .7), rgb(18 12 9 / .15) 45%, transparent 70%),
    linear-gradient(rgb(18 12 9 / .85), rgb(18 12 9 / 0) 28%);
}
/* Latido suave de las brasas, solo sobre la zona del carbón */
.grill__coals {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: radial-gradient(ellipse 60% 70% at 50% 75%, rgb(255 120 30 / .5), transparent 70%);
  mix-blend-mode: screen;
  opacity: calc(.15 + var(--p) * .2);
  animation: coal-pulse 3s ease-in-out infinite alternate;
}
@keyframes coal-pulse {
  from { opacity: calc(.1 + var(--p) * .15); }
  to   { opacity: calc(.2 + var(--p) * .25); }
}
/* Lienzo de humo, chispas y ceniza (grill-fx.js) */
.grill__fx {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* El humo CSS antiguo queda sustituido por el lienzo */
.grill__smoke, .grill__embers { display: none; }
/* La carne y el queso los dibuja burger3d.js (fotos en el lienzo fijo) */
.grill__smoke {
  position: absolute; left: 50%; bottom: 30%; width: 0; height: 0;
  opacity: calc(.3 + var(--p) * .7);
}
.grill__smoke span {
  position: absolute; left: -50px; top: 0;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgb(255 255 255 / .09);
  filter: blur(18px);
  animation: smoke 5s ease-out infinite;
}
.grill__smoke span:nth-child(2) { left: -110px; animation-delay: 1s; }
.grill__smoke span:nth-child(3) { left: 10px;   animation-delay: 2s; }
.grill__smoke span:nth-child(4) { left: -70px;  animation-delay: 3s; }
.grill__smoke span:nth-child(5) { left: -20px;  animation-delay: 4s; }
@keyframes smoke {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-45vh) translateX(30px) scale(2.2); opacity: 0; }
}
.grill__embers { position: absolute; left: 50%; bottom: 8%; width: 0; height: 0; opacity: .7; }
.grill__embers span:nth-child(n+9) { display: none; }
.grill__embers span {
  position: absolute; left: var(--x); top: 0;
  width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: #FFD27A; box-shadow: 0 0 6px #FF8A2B, 0 0 14px #FF4A0B;
  animation: ember 3s ease-out var(--d) infinite;
  opacity: 0;
}
@keyframes ember {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(24px, -40vh); opacity: 0; }
}

/* Sello giratorio "100% res" */
.grill__seal {
  position: absolute; z-index: 3;
  left: 28%; top: 58%;
  width: clamp(96px, 9vw, 130px); height: auto;
  animation: spin 14s linear infinite;
}
.grill__seal-bg { fill: var(--accent); }
.grill__seal-text { font: 700 11.5px var(--font-display); letter-spacing: .14em; fill: #FFF3E6; }
.grill__seal-star { fill: #FFF3E6; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-badge {
  position: absolute; left: 28%; top: 58%; z-index: 3;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / .12);
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-14px) rotate(14deg); } }

/* ---------- ESCENA 3 · SABOREAR ---------- */
.scene--sip { --fill: calc(38% + var(--p) * 70%); }
.sip__top {
  position: absolute; inset: 0 0 auto; height: 62%;
  transform: translateY(calc(var(--p) * -45vh));
}
.sip__carafe {
  position: absolute; left: 50%; bottom: 0;
  width: clamp(220px, 28vw, 400px); height: 62%;
  border-radius: 24px 24px 40px 40px;
  transform: translateX(-50%);
}
/* Ingredientes sueltos flotando a los lados de la hamburguesa */
.sip__deco {
  position: absolute; left: var(--gutter); bottom: 8%;
  width: clamp(120px, 15vw, 220px); height: 70%;
}
.sip__deco--right { left: auto; right: var(--gutter); bottom: 16%; }
.sip__deco img {
  position: absolute; width: 100%; height: auto;
  filter: drop-shadow(0 16px 22px rgb(60 30 10 / .25));
}
.sip__deco-a { top: 8%; left: 0; transform: rotate(-18deg); animation: float-a 6s ease-in-out infinite; }
.sip__deco-b { bottom: 0; left: 30%; width: 62% !important; transform: rotate(14deg); animation: float-b 5s ease-in-out infinite; }
.sip__deco--right .sip__deco-a { top: auto; bottom: 6%; width: 80% !important; }
.sip__deco--right .sip__deco-b { bottom: auto; top: 4%; left: 10%; }
@keyframes float-a { 50% { transform: translateY(-16px) rotate(-10deg); } }
@keyframes float-b { 50% { transform: translateY(-12px) rotate(24deg); } }
.sip__drops {
  position: absolute; left: 50%; z-index: 2;
  top: calc(62% - var(--p) * 45vh); height: 20vh;
}
.sip__drops span {
  position: absolute; left: -6px; top: 0;
  width: 12px; height: 16px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--sauce);
  animation: drop 1.8s ease-in infinite;
  opacity: 0;
}
.sip__drops span:nth-child(2) { animation-delay: .6s; }
.sip__drops span:nth-child(3) { animation-delay: 1.2s; }
@keyframes drop { 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(18vh); opacity: 0; } }

.sip__label {
  position: absolute; left: var(--gutter); z-index: 3;
  bottom: calc(var(--fill) + 4vh);
  opacity: clamp(0, calc(1 - var(--p) * 2.4), 1);
}
.sip__title { font-size: clamp(3rem, 6vw, 5.5rem); }

.sip__liquid {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: var(--fill);
  background: var(--dark);
  color: var(--on-dark);
}
.wave {
  position: absolute; left: 0; bottom: calc(100% - 1px);
  width: 200%; height: 50px;
  fill: var(--dark);
  animation: wave 7s linear infinite;
}
@keyframes wave { to { transform: translateX(-50%); } }
.sip__content {
  position: absolute; inset: auto var(--gutter) 8vh;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.sip__big {
  font-size: clamp(3rem, 12.4vw, 13rem); white-space: nowrap;
  transform: translateY(calc((1 - var(--p)) * 30vh));
  opacity: clamp(0, calc((var(--p) - .25) * 2.5), 1);
}
.sip__copy {
  max-width: 320px; display: grid; gap: 20px; justify-items: start;
  color: color-mix(in srgb, var(--on-dark) 75%, transparent);
  opacity: clamp(0, calc((var(--p) - .6) * 3), 1);
}

/* ---------- ESCENA 4 · TIENDA ---------- */
.shop {
  position: relative; min-height: 100vh;
  padding: 120px var(--gutter) 48px;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.shop__head { position: relative; display: grid; justify-items: center; gap: 28px; z-index: 5; }
.shop__title { font-size: clamp(3rem, 7.5vw, 6.5rem); text-align: center; line-height: .9; }
.shop__title, .shop__head .btn { position: relative; z-index: 1; }
.orbit {
  position: absolute; left: 50%; top: 4%;
  width: 130%; transform: translateX(-50%) rotate(-16deg);
  fill: none; stroke: var(--ink); stroke-width: 1.2;
  pointer-events: none;
}
.star { fill: var(--ink); position: absolute; }
.star--a { width: 26px; right: -6%; top: 2%; }
.star--b { width: 22px; left: -2%; top: 44%; }

.shop__stage {
  position: relative; width: 100%;
  height: clamp(360px, 52vh, 560px);
  margin-top: -40px;
}
.shop__hero {
  position: absolute; left: 50%; bottom: 0; z-index: 20;
  width: clamp(190px, 24vw, 360px); height: 70%;
  border-radius: 40px 40px 120px 120px;
  transform: translateX(-50%);
}
.deco-blob {
  position: absolute; right: 22%; top: -30%;
  width: 48px; height: 48px; border-radius: 40%;
  background: var(--surface);
  animation: bob 5s ease-in-out infinite;
}
.orbit-cards { position: absolute; inset: 0; }
/* Cuando la burger aterriza (burger3d.js añade .is-impact): la tienda acusa el golpe con un temblor corto.
   Ojo: el temblor va en cada tarjeta (que ya tiene su propio z-index), NO en el contenedor: si se anima
   el contenedor crea su propia capa y las tarjetas delanteras quedan detrás de la burger 3D (z 15). */
.shop.is-impact .pcard { animation: impact-quake .55s cubic-bezier(.3, .6, .4, 1); }
.shop.is-impact .shop__head { animation: impact-quake .55s .03s cubic-bezier(.3, .6, .4, 1); }
@keyframes impact-quake {
  0%   { translate: 0 0; }
  12%  { translate: -3px 5px; }
  26%  { translate: 3px -3px; }
  40%  { translate: -2px 2px; }
  56%  { translate: 1.5px -1px; }
  72%  { translate: -1px .5px; }
  100% { translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .shop.is-impact .pcard, .shop.is-impact .shop__head { animation: none; } }
/* Se puede arrastrar con el mouse: mano abierta / cerrada, y sin transición mientras se arrastra */
.shop__stage { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.shop__stage:focus-visible { outline: 2px dashed var(--ink); outline-offset: 8px; border-radius: 24px; }
.shop__stage.is-dragging { cursor: grabbing; }
.shop__stage.is-dragging .pcard { transition: none; }
.pcard a, .pcard button { cursor: pointer; }
.pcard {
  position: absolute; left: 50%; top: 18%;
  width: clamp(150px, 15vw, 210px);
  margin-left: calc(clamp(150px, 15vw, 210px) / -2);
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(0 0 0 / .08);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s, filter .9s;
}
.pcard header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pcard__cat { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.heart.is-on svg { fill: var(--accent); stroke: var(--accent); }
.pcard__img {
  display: block; width: 100%; aspect-ratio: 1 / 1.05;
  object-fit: contain; padding: 10px;
  border-radius: 12px; margin-bottom: 12px;
  background: radial-gradient(ellipse at 50% 60%, #FFF6E8, var(--bg-2));
}
.pcard h3 { font-size: 15px; font-family: var(--font-display); font-weight: 700; font-stretch: 112%; }
.pcard p { font-size: 12px; color: var(--muted); margin: 2px 0 12px; }
.pcard__actions { display: flex; gap: 6px; }

.dots { display: flex; gap: 10px; margin-top: 28px; position: relative; z-index: 30; }
.dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--ph-b); transition: width .3s, background .3s; padding: 0; }
.dots button[aria-selected="true"] { width: 26px; background: var(--ink); }

/* ---------- FOOTER ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--ph-b);
  font-size: 14px; color: var(--muted);
}
.site-footer .logo { color: var(--ink); --logo-h: 150px; }

/* ---------- Firma de Stelar Creative (la misma del proyecto SIGNAL) ----------
   Identidad propia de la agencia: naranja del isotipo (#ff5a00 → #e34100), fondo casi negro.
   z-index alto para quedar por encima del lienzo fijo de la hamburguesa 3D. */
.stelar { --st: #ff5a00; --st-deep: #e34100; position: relative; z-index: 20; overflow: hidden; color: #f4f1ee; background: #0c0b0d;
  padding: clamp(56px, 9vh, 96px) clamp(32px, 6vw, 112px) 28px; font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.stelar a { color: inherit; text-decoration: none; }
.stelar-glow { position: absolute; left: -10%; top: -60%; width: 70%; height: 160%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,90,0,.22), rgba(255,90,0,.06) 55%, rgba(255,90,0,0)); }
.stelar-inner { position: relative; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(28px,5vw,80px); align-items: center; }
.stelar-brand { display: block; line-height: 0; }
.stelar-brand img { display: block; width: clamp(210px,17vw,260px); height: auto; }
.stelar-k { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--st); }
.stelar-h { margin: 0 0 12px; font-family: 'Unbounded', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; font-size: clamp(22px,2.2vw,34px); letter-spacing: -.03em; line-height: 1.1; text-transform: none; }
.stelar-h em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.14em; color: #ffb48a; }
.stelar-p { margin: 0; font-size: 14px; line-height: 1.7; color: #bdb5b0; max-width: 42em; }
.stelar-actions { display: grid; gap: 14px; justify-items: end; }
.stelar-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #fff !important;
  background: linear-gradient(135deg, var(--st), var(--st-deep)); box-shadow: 0 12px 34px rgba(255,90,0,.32); transition: transform .25s ease, box-shadow .25s ease; }
.stelar-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(255,90,0,.45); }
.stelar-site { font-size: 13px; border-bottom: 1px solid rgba(255,90,0,.6); padding-bottom: 2px; }
.stelar-site:hover, .stelar-copy a:hover, .stelar-social a:hover { color: var(--st); }
.stelar a:focus-visible { outline: 2px solid var(--st); outline-offset: 3px; border-radius: 6px; }
.stelar-bottom { position: relative; max-width: 1320px; margin: clamp(40px,6vh,64px) auto 0; padding-top: 22px; border-top: 1px solid rgba(244,241,238,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.stelar-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.stelar-social a { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.stelar .soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); transition: border-color .2s ease, transform .2s ease; }
.stelar .soc svg { width: 17px; height: 17px; display: block; }
.stelar-social a:hover .soc { transform: translateY(-2px); border-color: currentColor; }
/* margen a la derecha para no quedar bajo el botón "volver al inicio" */
.stelar-copy { margin: 0; padding-right: 64px; font-size: 12px; color: #8a8380; }
.stelar-copy a { color: #f4f1ee; }
@media (max-width: 760px) {
  .stelar { padding: 56px 18px 24px; }
  .stelar-inner { grid-template-columns: 1fr; gap: 26px; }
  .stelar-actions { justify-items: start; }
  .stelar-social { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .stelar-btn, .stelar .soc { transition: none; } }

/* =========================================================
   GATITOS DE LA MARCA (una pose por sección)
   .cat = posición en la página · .cat__body = animación de la pose.
   La silueta es una máscara del color del texto (currentColor); detrás van
   los blancos de los ojos y encima las pupilas, que siguen al cursor (main.js).
   ========================================================= */
.cat {
  position: absolute; z-index: 3; pointer-events: none;
  width: var(--cat-w, 120px); aspect-ratio: var(--ratio, 1);
  color: var(--cat-c, var(--espresso));
}
.cat__body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.cat__body::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: currentColor;
  -webkit-mask: var(--src) center / 100% 100% no-repeat;
          mask: var(--src) center / 100% 100% no-repeat;
}
.cat__white { position: absolute; z-index: 0; border-radius: 50%; background: var(--cat-eye, var(--crema)); }
.cat__pupil {
  position: absolute; z-index: 2; border-radius: 50%; background: currentColor;
  translate: calc(var(--px, 0) * 26% * var(--flip, 1)) calc(var(--py, 0) * 26%);
  transition: translate .2s ease-out;
  animation: blink 5.5s infinite;
}

/* 01 · Anatomía: gato agazapado espiando los ingredientes que flotan; menea la cola y amaga el salto.
   Aparece con el fondo café (--anat). main.js le elige una esquina libre de etiquetas (data-spot). */
.cat--stalk {
  /* siempre en el mismo sitio: abajo a la izquierda, mirando hacia la hamburguesa (espejado) */
  --cat-w: clamp(150px, 14vw, 220px); --flip: -1;
  left: var(--gutter); bottom: 4vh;
  color: var(--crema); --cat-eye: var(--carbon);
  scale: -1 1;
  opacity: var(--anat, 0);
  transform: translateY(calc((1 - var(--anat, 0)) * 30px));
}
.cat--stalk .cat__pupil { background: var(--crema); }
.cat--stalk .cat__body { transform-origin: 72% 100%; animation: stalk-wiggle 3.6s ease-in-out infinite; }
@keyframes stalk-wiggle {
  0%, 52%, 100% { rotate: 0deg; translate: 0 0; }
  58% { rotate: -3deg; }  63% { rotate: 2.5deg; }  68% { rotate: -3deg; }  73% { rotate: 2deg; }
  80% { rotate: 0deg; translate: 0 2px; }          /* se agacha un poco más… */
  86% { translate: -6px -10px; rotate: -4deg; }    /* …amaga el salto */
  92% { translate: 0 0; rotate: 0deg; }
}

/* 02 · Parrilla: llega caminando por la derecha (atraído por el olor) y se sube al dato curioso.
   Mira hacia la carne (la pose ya mira a la izquierda). Solo da pasitos mientras haces scroll. */
.cat--walk {
  --cat-w: clamp(124px, 12vw, 180px); --cat-c: var(--crema); --cat-eye: #2B1A12;
  right: calc(var(--gutter) + 26px); bottom: calc(14vh + var(--stat-h, 250px) - 3px);
  translate: calc((1 - var(--t)) * (var(--gutter) + 190px)) 0;
}
.cat--walk .cat__body {
  rotate: calc(sin(var(--p) * 150) * 5deg);
  translate: 0 calc(sin(var(--p) * 150) * sin(var(--p) * 150) * -6px);
}
.cat--walk .cat__pupil { background: var(--crema); }

/* 03 · Saborea: juega con los ingredientes en órbita. burger3d.js lo pone junto a la órbita
   y le pone .is-swat cada vez que un ingrediente le pasa por la patita. */
.cat--play {
  --cat-w: clamp(230px, 22vw, 340px); left: 0; top: 0; z-index: 3; opacity: 0; will-change: transform;
  /* borde crema tipo sticker: se lee igual sobre el fondo claro y sobre la banda oscura que sube */
  filter: drop-shadow(2.5px 0 0 var(--crema)) drop-shadow(-2.5px 0 0 var(--crema))
          drop-shadow(0 2.5px 0 var(--crema)) drop-shadow(0 -2.5px 0 var(--crema));
}
.cat--play .cat__body { animation: play-ready 2.2s ease-in-out infinite; }
.cat--play.is-swat .cat__body { animation: swat .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes play-ready { 0%, 100% { rotate: 1.5deg; } 50% { rotate: -1.5deg; translate: 0 -2px; } }
@keyframes swat {
  0%   { rotate: 0deg; translate: 0 0; }
  25%  { rotate: 6deg; translate: 4px 2px; }       /* toma impulso */
  55%  { rotate: -11deg; translate: -8px -10px; }  /* ¡zarpazo! hacia la burger */
  100% { rotate: 0deg; translate: 0 0; }
}

/* 04 · Tienda: sentado junto al botón esperando su pedido; ladea la cabeza y salta al pasar el ratón */
.cat--sit {
  /* sentado sobre la línea de "BURGER", a su derecha (más cerca del botón tapaba el título) */
  --cat-w: clamp(92px, 8.6vw, 128px);
  left: calc(50% + clamp(262px, 23.5vw, 350px)); bottom: 70px; z-index: 2;
}
.cat--sit .cat__body { animation: sit-tilt 6s ease-in-out infinite; }
.shop__head:has(.btn:hover) .cat--sit .cat__body { animation: sit-hop .5s ease-in-out infinite; }
@keyframes sit-tilt { 0%, 70%, 100% { rotate: 0deg; } 76%, 88% { rotate: -8deg; } 94% { rotate: 2deg; } }
@keyframes sit-hop { 0%, 100% { translate: 0 0; scale: 1 1; } 15% { scale: 1.06 .92; } 50% { translate: 0 -14px; scale: .96 1.05; } }

@media (prefers-reduced-motion: reduce) {
  .cat__body, .cat__pupil { animation: none !important; rotate: none !important; translate: none !important; }
}

/* ---------- FLOTANTES ---------- */
.scroll-rail {
  position: fixed; right: 6px; top: 80px; bottom: 80px; z-index: 50;
  width: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.scroll-rail span { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--ink); transform-origin: top; transform: scaleY(0); }
/* Volver al inicio: escondido arriba del todo, aparece al bajar */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  /* ketchup: se distingue igual sobre el cheddar, el crema y las secciones oscuras */
  background: var(--ketchup); color: var(--crema);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgb(0 0 0 / .25), 0 0 0 2px rgb(255 244 226 / .25);
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .3s, translate .35s cubic-bezier(.3, 1.4, .5, 1), background .25s;
}
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: #A81F15; }
.to-top svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.to-top:hover svg { transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--crema); outline-offset: 3px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
  .site-header { --logo-h: 66px; }
  .site-header.is-scrolled { --logo-h: 54px; }

  .actions { margin-top: 16px; }
  .grind__intro { bottom: 5vh; }
  .hero-script { display: none; }
  /* en móvil la burger ocupa el centro: la palabra sube y asoma detrás del pan */
  .hero-word { top: 31%; }
  /* en celular va en una sola línea, debajo de la hamburguesa */
  .grind__title { font-size: 25px; white-space: nowrap; }
  .grind__title br { display: none; }
  .hf--1 { --x: 6%;  --y: 17%; --w: 13vw; }
  .hf--2 { --x: 78%; --y: 14%; --w: 9vw; }
  .hf--3 { --x: 80%; --y: 62%; --w: 22vw; }
  .hf--4 { --x: 4%;  --y: 64%; --w: 17vw; }
  .hf--5 { display: none; }

  .grill__text { top: 96px; }
  .swoosh { display: none; }
  .grill__stat { display: none; }
  .cat--walk { display: none; }               /* camina sobre la tarjeta del dato, que en celular no se muestra */
  .cat--play { --cat-w: 150px; }
  .btn-delivery { --cat: 68px; height: 54px; font-size: 14px; padding: 0 22px 0 calc(var(--cat) + 14px); }
  .btn-delivery__text small { font-size: 8.5px; letter-spacing: .06em; }
  .shop__delivery { margin-top: 34px; }
  .cat--sit { --cat-w: 58px; left: calc(50% + 82px); bottom: -34px; }   /* junto al botón, sin tapar "BURGER" */
  .cat--stalk { --cat-w: 110px; }
  .grill__stage { left: 50%; width: 78vw; height: 44vh; bottom: 8vh; }
  .grill__photo { object-position: 50% 100%; }
  .float-badge { left: 14%; top: 50%; }
  .grill__seal { left: auto; right: var(--gutter); top: 40%; width: 84px; }

  .shop { padding-top: 104px; }
  .deco-blob { display: none; }
  .shop__stage { margin-top: 0; }
  .pcard { width: 140px; margin-left: -70px; padding: 10px; }
  .pcard__actions .btn--ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sip__drops span, .wave, .float-badge, .deco-blob, .grill__seal, .sip__deco img { animation: none; }
  .sip__drops, .grill__smoke, .grill__embers, .grill__flames { display: none; }
  .grill__photo, .grill__coals { animation: none; }
}
