/* =============================================================
   Fogón 17 — styles
   1. Tokens · 2. Reset · 3. Utilities · 4. Typography
   5. Components · 6. Sections · 7. Effects · 8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #2A1810;   /* warm espresso */
  --bg-2:        #341E13;   /* toasted brown */
  --paper:       #3B2317;   /* card surface */
  --polaroid:    #F6E7D3;   /* light photo frames */
  --ink:         #FBEFDF;   /* main text (cream) */
  --ink-soft:    rgba(251, 239, 223, 0.82);
  --ink-mute:    rgba(251, 239, 223, 0.62);
  --gold:        #F6B24E;   /* prices + accent text on dark */
  --ember:       #E0582A;   /* fire orange */
  --ember-strong:#C23B17;   /* button ember */
  --amber:       #F3A93C;   /* ají amarillo */
  --red:         #A82A1C;   /* brand red */
  --char:        #1C110B;   /* charcoal brown */
  --char-2:      #150C07;
  --cream:       #FBEFDF;
  --cream-mute:  rgba(251, 239, 223, 0.74);
  --line:        rgba(251, 220, 190, 0.12);
  --line-strong: rgba(251, 220, 190, 0.24);
  --wa:          #25D366;

  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --sans:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand:    "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --radius:    22px;
  --radius-sm: 14px;
  --shadow:       0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-ember: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(224, 88, 42, 0.6);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: 72px;
  --coal-h: clamp(56px, 8vh, 92px);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-weight: 400; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Warm paper grain over everything (decorative) */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .7rem 1.1rem; border-radius: 10px;
  background: var(--amber); color: var(--char); font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 1;
  color: var(--gold);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.kicker--light { color: var(--amber); }
.h2 {
  font-family: var(--display);
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.3vw, 1.12rem); max-width: 58ch; }

/* =============================================================
   5. Components
   ============================================================= */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.45rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-strong) 100%);
  box-shadow: 0 10px 24px -10px rgba(194, 59, 23, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(194, 59, 23, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-ghost { color: var(--cream); border: 1.5px solid rgba(251, 239, 223, 0.5); }
.btn-ghost:hover { background: rgba(251, 239, 223, 0.12); border-color: var(--cream); }
.btn-outline { color: var(--ink); border: 1.5px solid var(--line-strong); background: var(--paper); }
.btn-outline:hover { border-color: var(--amber); color: var(--gold); box-shadow: var(--shadow-ember); }
.btn-sm { padding: .62rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1.1rem 1.7rem; font-size: 1.05rem; }

.round-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out), opacity .3s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--amber); color: var(--char); border-color: var(--amber); transform: translateY(-2px); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--cream);
  transition: background-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft), color .4s var(--ease-soft);
}
.nav.is-solid, .nav.is-open {
  color: var(--cream);
  background: rgba(32, 19, 12, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid, .nav.is-open { background: rgba(32, 19, 12, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner {
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; line-height: 1; white-space: nowrap; }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(243, 169, 60, 0.55); }
.brand b { font-weight: 400; color: var(--ember); }
.nav-links { display: none; }
.nav-links a { position: relative; font-weight: 600; font-size: .95rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--ember); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links-ig { display: none; }
.nav-links svg { width: 1.1em; height: 1.1em; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-ig { display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background-color .3s; }
.nav-ig svg { width: 22px; height: 22px; }
.nav-ig:hover { background: rgba(224, 88, 42, 0.14); }
.nav-toggle { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu panel */
.nav.is-open .nav-links {
  display: flex; flex-direction: column; gap: .2rem;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 1rem var(--gutter) 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
}
.nav.is-open .nav-links a { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .03em; padding: .35rem 0; }
.nav.is-open .nav-links a::after { display: none; }
.nav.is-open .nav-links-ig { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); font-size: 1.5rem !important; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; z-index: 4; }
.section-head { display: grid; gap: .8rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 760px; }
/* Soft warm light washing over the brown sections */
.favorites::before, .about::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 35% at 0% 0%, rgba(243, 169, 60, 0.1), transparent 70%),
    radial-gradient(40% 30% at 100% 60%, rgba(224, 88, 42, 0.08), transparent 70%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 2; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--cream);
  background: var(--char);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%;
  animation: heroDrift 20s var(--ease-soft) both;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(30, 20, 16, 0.55) 0%, rgba(30, 20, 16, 0.55) 30%, rgba(30, 20, 16, 0.92) 78%, rgba(30, 20, 16, 0.98) 100%);
}
.hero-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-sparks i, .sec-sparks i {
  position: absolute; bottom: -12px; left: var(--x);
  width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #FFE7B0 0%, var(--amber) 50%, rgba(224, 88, 42, 0) 72%);
  box-shadow: 0 0 10px 2px rgba(243, 169, 60, 0.55);
  opacity: 0;
  animation: spark calc(var(--t, 7s) * var(--slow, 1)) linear var(--delay, 0s) infinite;
}
.hero-inner {
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(6rem, 13vh, 8rem);
  display: grid; gap: 1.1rem; justify-items: start;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem .9rem; border-radius: 999px;
  background: rgba(30, 20, 16, 0.45); border: 1px solid rgba(251, 239, 223, 0.2);
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(243, 169, 60, 0.25); animation: pulseDot 2.6s ease-in-out infinite; }
.hero-title {
  font-family: var(--display);
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: .86;
  letter-spacing: .01em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(95deg, #FFC861 0%, var(--amber) 35%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-hand {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1;
  color: var(--amber);
  transform: rotate(-3deg);
  margin-top: -.2rem;
}
.hero-sub { max-width: 48ch; color: var(--cream-mute); font-size: clamp(1rem, 1.4vw, 1.14rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.hero-chips a {
  display: inline-block; padding: .45rem .85rem; border-radius: 999px;
  font-size: .88rem; color: var(--cream-mute);
  background: rgba(251, 239, 223, 0.08); border: 1px solid rgba(251, 239, 223, 0.18);
  transition: background-color .3s, color .3s;
}
.hero-chips a:hover { background: rgba(243, 169, 60, 0.2); color: var(--cream); }
.hero-chips b { color: var(--amber); font-weight: 800; }

/* ---------- Page hero (carta.html) ---------- */
.hero--page { min-height: 70vh; min-height: 70svh; }
.hero--page .hero-title { font-size: clamp(3.6rem, 11vw, 8rem); }

/* ---------- Photo backgrounds (every block after the hero) ----------
   Layers, back to front: hero (2) · sections with their photo (4) · brasa (5).
   Each .sec-bg sits behind its section's content; JS drifts the photo a
   little slower than the page (parallax) and windows get a slow zoom. */
.sec-bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  border-radius: inherit;
}
.sec-bg img {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover;
  translate: 0 var(--py, 0px);
  scale: 1.04;
  will-change: translate;
}
/* Warm grade: the photo melts into the brown page at both edges */
.sec-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 85% at 50% 50%, transparent 35%, rgba(16, 9, 5, 0.55) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(42, 24, 16, 0.76) 16%, rgba(42, 24, 16, 0.8) 84%, var(--bg) 100%);
}
.sec-bg--window img { animation: kenBurns 26s ease-in-out infinite alternate; }
.sec-bg--window::after {
  background:
    radial-gradient(110% 80% at 50% 45%, rgba(16, 9, 5, 0.1) 25%, rgba(16, 9, 5, 0.62) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(30, 18, 11, 0.32) 20%, rgba(30, 18, 11, 0.48) 72%, var(--bg) 100%);
}
.sec-smoke { position: absolute; inset: 0; z-index: 2; }
.sec-smoke span {
  position: absolute; bottom: -35%;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 222, 205, 0.13) 0%, rgba(205, 185, 165, 0.05) 42%, transparent 68%);
  opacity: 0;
  animation: smokeDrift calc(24s * var(--slow, 1)) linear infinite;
}
.sec-smoke span:nth-child(1) { left: -20%; }
.sec-smoke span:nth-child(2) { left: 25%; animation-delay: -8s; animation-duration: calc(28s * var(--slow, 1)); }
.sec-smoke span:nth-child(3) { left: 60%; animation-delay: -16s; }
.sec-sparks { position: absolute; inset: 0; z-index: 3; overflow: hidden; }

/* Numbered section label: "— 01 · Favoritos" */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cream-mute);
}
.eyebrow i { display: block; width: 46px; height: 1px; background: linear-gradient(90deg, var(--amber), rgba(243, 169, 60, 0)); }
.eyebrow--center i:last-child { transform: scaleX(-1); }

/* ---------- Brasa de fondo ----------
   Fixed glowing charcoal + flames + sparks along the bottom of the screen,
   over every section (pointer-events: none). */
.brasa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  height: clamp(240px, 46vh, 460px);
  pointer-events: none;
  overflow: hidden;
  transition: opacity .8s var(--ease-soft);
}
.brasa.is-soft { opacity: .5; }
.brasa.is-soft .brasa-coals { height: calc(var(--coal-h) * 0.65); }
.brasa-glow {
  position: absolute; left: -10%; right: -10%; bottom: -30%; height: 100%;
  background:
    radial-gradient(42% 70% at 15% 100%, rgba(224, 88, 42, 0.52), transparent 72%),
    radial-gradient(40% 75% at 50% 100%, rgba(243, 169, 60, 0.5), transparent 72%),
    radial-gradient(42% 70% at 85% 100%, rgba(194, 59, 23, 0.52), transparent 72%);
  transform-origin: 50% 100%;
  animation: brasaBreath calc(6s * var(--slow, 1)) ease-in-out infinite alternate;
}
.brasa-flames span {
  position: absolute; left: var(--x); bottom: calc(var(--coal-h) * 0.3);
  width: var(--w, 220px); height: var(--h, 200px);
  margin-left: calc(var(--w, 220px) / -2);
  border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  background: radial-gradient(60% 80% at 50% 90%, rgba(255, 221, 140, 0.95) 0%, rgba(247, 150, 60, 0.72) 30%, rgba(224, 70, 30, 0.38) 55%, transparent 72%);
  filter: blur(14px);
  opacity: .55;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  animation: flameLick calc(var(--t, 4s) * var(--slow, 1)) ease-in-out var(--delay, 0s) infinite alternate;
}
.brasa-flames span:nth-child(n+7) { display: none; }
.brasa-coals {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--coal-h);
  transition: height .8s var(--ease-soft);
  background: url("assets/img/brasa-carbon.webp") 23% 35% / auto 165% repeat-x;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 55%, transparent 100%);
}
.brasa-coals::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255, 96, 32, 0.55), rgba(255, 150, 50, 0.2));
  mix-blend-mode: screen;
  animation: coalPulse calc(3.8s * var(--slow, 1)) ease-in-out infinite alternate;
}
.brasa-sparks i {
  position: absolute; left: var(--x); bottom: calc(var(--coal-h) * 0.5);
  width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #FFF1C7 0%, #FFB347 45%, rgba(224, 88, 42, 0) 72%);
  box-shadow: 0 0 8px 2px rgba(240, 110, 40, 0.65);
  opacity: 0;
  animation: brasaSpark calc(var(--t, 7s) * var(--slow, 1)) linear var(--delay, 0s) infinite;
}
.brasa-sparks i:nth-child(n+11) { display: none; }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 4;
  overflow: hidden;
  padding: .85rem 0;
  color: #FFF4E6;
  background: linear-gradient(90deg, var(--red) 0%, var(--ember-strong) 35%, var(--ember) 70%, var(--amber) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.ticker-track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul {
  list-style: none; display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: .05em; line-height: 1;
  white-space: nowrap;
}
.ticker .sep svg { width: .8em; height: .8em; color: #FFE1A8; }

/* ---------- Favoritos ---------- */
.dishes { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.dish { display: flex; }
.dish-card {
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .55s;
}
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-ember); border-color: rgba(224, 88, 42, 0.35); }
.dish-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 1s var(--ease-out); }
.dish-card:hover .dish-media img { transform: scale(1.06); filter: saturate(1.12) brightness(1.04); }
.dish-body { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.4rem 1.4rem; }
.dish-tag {
  align-self: flex-start;
  font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: rgba(243, 169, 60, 0.14);
  padding: .35rem .7rem; border-radius: 999px;
}
.dish-name { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: .95; letter-spacing: .01em; }
.dish-desc { color: var(--ink-soft); font-size: .97rem; }
.dish-foot {
  margin-top: auto; padding-top: .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1.5px dashed var(--line-strong);
}
.dish-price { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold); display: flex; align-items: baseline; gap: .15rem; }
.dish-price small { font-size: .6em; }
.dish-price .from { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--ink-mute); margin-right: .35rem; letter-spacing: .02em; }

/* ---------- Carta ---------- */
.carta {
  background: rgba(58, 34, 22, 0.5);
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
  box-shadow: inset 0 1px 0 var(--line);
}
.carta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(40% 30% at 100% 0%, rgba(243, 169, 60, 0.22), transparent 70%),
    radial-gradient(35% 25% at 0% 100%, rgba(224, 88, 42, 0.14), transparent 70%);
}
.carta > .container { position: relative; }
.menu-tabs {
  display: none;
  gap: .35rem;
  width: max-content; max-width: 100%;
  overflow-x: auto;
  padding: .4rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu.is-tabbed .menu-tabs { display: flex; }
.menu-tab {
  flex: none;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em; line-height: 1;
  padding: .7rem 1.15rem .6rem; border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color .3s, color .3s;
}
.menu-tab:hover { background: rgba(251, 239, 223, 0.08); color: var(--ink); }
.menu-tab[aria-selected="true"] { background: linear-gradient(135deg, var(--amber), var(--ember)); color: var(--char); }

.menu-panel { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; margin-bottom: 3.5rem; }
.menu.is-tabbed .menu-panel { margin-bottom: 0; }
.menu-figure {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: var(--char);
}
.menu-figure img { width: 100%; height: 100%; object-fit: cover; }
.menu-figure figcaption {
  position: absolute; inset: auto 0 0 0;
  display: grid; gap: .2rem;
  padding: 4rem 1.4rem 1.3rem;
  color: var(--cream);
  background: linear-gradient(180deg, transparent 0%, rgba(30, 20, 16, 0.9) 70%);
}
.cat-num { font-family: var(--display); font-size: 1.05rem; letter-spacing: .24em; color: var(--amber); }
.cat-name { font-family: var(--display); font-size: clamp(2.3rem, 4.5vw, 3.4rem); line-height: .9; letter-spacing: .01em; }
.cat-note { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--amber); }

.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.menu-list { list-style: none; }
.mi { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.mi:last-child { border-bottom: 0; }
.mi-row { display: flex; align-items: baseline; align-items: last baseline; gap: .55rem; }
.mi-name { font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.mi-dots { flex: 1 1 1.2rem; min-width: 1.2rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-.28em); }
.mi-price { flex: none; font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: .03em; color: var(--gold); white-space: nowrap; }
.mi-desc { color: var(--ink-mute); font-size: .92rem; margin-top: .15rem; }
.mi--star .mi-name::after {
  content: "★ top"; margin-left: .5rem; vertical-align: .15em;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--ember); padding: .2rem .45rem; border-radius: 999px;
}
.subhead {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-size: 1.75rem; letter-spacing: .04em; line-height: 1;
  margin: 1.6rem 0 .3rem;
  color: var(--ink);
}
.menu-groups > div > .subhead:first-child { margin-top: 0; }
.subhead svg { width: 1.6rem; height: 1.6rem; color: var(--ember); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.chips li {
  padding: .5rem .95rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  background: rgba(243, 169, 60, 0.18); border: 1px solid rgba(243, 169, 60, 0.5);
}
.menu-groups { display: grid; gap: 1.8rem 2.6rem; }
.menu-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.menu-note { margin-top: 1.6rem; font-size: .88rem; color: var(--ink-mute); }

/* ---------- Ventana a la parrilla ----------
   A cinematic full-bleed photo between sections, with smoke and embers. */
.scene-window {
  position: relative; z-index: 4; isolation: isolate;
  min-height: 86vh; min-height: 86svh;
  display: flex; align-items: center;
  padding: clamp(4rem, 12vh, 8rem) 0;
}
.scene-window-inner { display: grid; justify-items: center; gap: .7rem; text-align: center; }
.scene-window .kicker { transform-origin: center; }
.scene-window-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: .9; letter-spacing: .01em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}
.scene-window-title em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(95deg, #FFC861 0%, var(--amber) 35%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Carta teaser (home) ---------- */
.menu-teaser::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 100% 0%, rgba(243, 169, 60, 0.09), transparent 70%);
}
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.7rem, 2vw, 1.2rem); }
.cat-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--char);
  box-shadow: var(--shadow);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .55s;
}
.cat-tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28, 17, 11, 0.05) 30%, rgba(28, 17, 11, 0.92) 100%);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-ember); border-color: rgba(243, 169, 60, 0.45); }
.cat-tile:hover img { transform: scale(1.07); filter: saturate(1.15) brightness(1.05); }
.cat-tile-body { display: grid; gap: .15rem; padding: clamp(.9rem, 2.5vw, 1.4rem); padding-right: 3.6rem; }
.cat-tile-name { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: .92; letter-spacing: .01em; color: var(--cream); }
.cat-tile-from { font-size: .86rem; color: var(--cream-mute); }
.cat-tile-from b { font-family: var(--display); font-weight: 400; font-size: 1.35em; letter-spacing: .03em; color: var(--gold); }
.cat-tile-go {
  position: absolute; right: clamp(.7rem, 2vw, 1.1rem); bottom: clamp(.9rem, 2.5vw, 1.3rem);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--char); background: var(--amber);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.cat-tile-go svg { width: 18px; height: 18px; }
.cat-tile:hover .cat-tile-go { transform: translateX(4px); background: var(--gold); }
.teaser-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- Nosotros ---------- */
.about-head { position: relative; }
.about-num {
  position: absolute; right: -.04em; top: -.32em; z-index: 0;
  font-family: var(--display); font-size: clamp(9rem, 26vw, 20rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(243, 169, 60, 0.2);
  pointer-events: none; user-select: none;
}
.about-head .section-head { position: relative; z-index: 1; }
.about-figure {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: var(--char);
}
.about-figure > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.about-stamp {
  position: absolute; right: clamp(.8rem, 3vw, 2rem); bottom: calc(-1 * clamp(2.2rem, 5vw, 3.5rem));
  width: clamp(96px, 16vw, 150px); height: auto;
  border-radius: 50%;
  border: 5px solid var(--bg);
  box-shadow: 0 18px 40px -16px rgba(30, 20, 16, 0.6);
  transform: rotate(-8deg);
}
.pillars { display: grid; gap: 1.2rem; margin-top: clamp(3.4rem, 7vw, 5rem); }
.pillar {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.pillar-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, var(--amber), var(--ember));
  box-shadow: 0 10px 20px -10px rgba(224, 88, 42, 0.8);
  margin-bottom: 1rem;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 { font-family: var(--display); font-size: 2rem; letter-spacing: .02em; margin-bottom: .35rem; }
.pillar p { color: var(--ink-soft); }

/* ---------- Galería ---------- */
.gallery { background: linear-gradient(180deg, rgba(58, 34, 22, 0) 0%, rgba(58, 34, 22, 0.65) 100%); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.gallery-head .section-head { margin-bottom: 0; }
.gallery-nav { display: flex; gap: .6rem; }
.gallery-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 68vw, 330px);
  gap: clamp(.9rem, 2vw, 1.4rem);
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 2.2rem max(var(--gutter), calc((100vw - 1240px) / 2)) 2.6rem;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-track figure {
  position: relative; scroll-snap-align: start;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius);
  background: var(--char);
  box-shadow: var(--shadow);
  border: 6px solid var(--polaroid);
  transform: rotate(-1.3deg);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.gallery-track figure:nth-child(even) { transform: rotate(1.3deg) translateY(10px); }
.gallery-track figure:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-ember); }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.gallery-track figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 3rem 1rem .9rem;
  font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(30, 20, 16, 0.85));
  border-radius: 0 0 calc(var(--radius) - 6px) calc(var(--radius) - 6px);
}
.gallery-ig { display: flex; justify-content: center; }

/* ---------- CTA / Contacto ---------- */
.cta {
  position: relative; z-index: 4; isolation: isolate; overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
  color: var(--cream);
  background: var(--char);
}
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.cta-glow {
  position: absolute; inset: -25%; z-index: -1;
  background:
    radial-gradient(38% 45% at 30% 72%, rgba(224, 88, 42, 0.55), transparent 70%),
    radial-gradient(32% 40% at 72% 28%, rgba(243, 169, 60, 0.38), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, rgba(30, 20, 16, 0.5), transparent 80%);
  filter: blur(30px);
  animation: glowDrift 16s ease-in-out infinite alternate;
}
.cta-inner { display: grid; justify-items: center; gap: 1rem; }
.cta-inner .kicker { transform-origin: center; }
.cta-title { font-family: var(--display); font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: .88; letter-spacing: .01em; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4); }
.cta-text { max-width: 44ch; color: var(--cream-mute); font-size: 1.08rem; }
.cta-phone {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--display); font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: .05em; line-height: 1;
  color: var(--amber);
  margin: .6rem 0 .8rem;
  transition: color .3s, transform .4s var(--ease-out);
}
.cta-phone svg { width: .8em; height: .8em; color: var(--wa); }
.cta-phone:hover { color: var(--cream); transform: scale(1.03); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 4; background: var(--char-2); color: var(--cream-mute); padding: clamp(3.5rem, 7vw, 5rem) 0 1.6rem; font-size: .96rem; }
.footer-grid { display: grid; gap: 2.2rem; }
.footer-brand { display: grid; gap: 1rem; justify-items: start; max-width: 34ch; }
.footer-brand img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(243, 169, 60, 0.35); }
.footer-title { font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; color: var(--cream); margin-bottom: .7rem; }
.footer-links { list-style: none; display: grid; gap: .55rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; transition: color .3s; }
.footer-links a:hover { color: var(--amber); }
.footer-links svg { width: 1.15em; height: 1.15em; }
.footer-bottom {
  margin-top: clamp(2.5rem, 6vw, 3.5rem); padding-top: 1.4rem;
  border-top: 1px solid rgba(251, 239, 223, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  font-size: .84rem;
}
.footer-credits a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .6rem;
}
.wa-float-label {
  display: none;
  padding: .55rem .9rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  color: var(--char); background: var(--cream);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
}
.wa-float-icon {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: var(--wa);
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.75);
  transition: transform .4s var(--ease-out);
}
.wa-float-icon svg { width: 32px; height: 32px; }
.wa-float-icon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waPulse 2.8s var(--ease-out) infinite;
}
.wa-float:hover .wa-float-icon { transform: scale(1.08) rotate(-6deg); }

/* ---------- Intro (splash) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 52%, #3A1D10 0%, var(--char) 72%);
  transition: opacity .7s var(--ease-soft), visibility .7s;
  animation: splashSafety .01s 3.2s forwards;   /* hides itself even if JS fails */
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.no-intro .splash { display: none; }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 1.1rem; }
.splash-glow {
  position: absolute; top: 0; left: 50%;
  width: 360px; height: 360px; margin: -100px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 169, 60, 0.45), rgba(224, 88, 42, 0.15) 45%, transparent 70%);
  opacity: 0;
  animation: splashGlow 1.6s var(--ease-out) .2s forwards;
}
.splash-logo {
  position: relative;
  width: clamp(112px, 24vw, 160px); height: auto; border-radius: 50%;
  filter: brightness(.25) saturate(.4);
  transform: scale(.88);
  animation: ignite 1.4s var(--ease-out) .15s forwards;
}
.splash-line { position: relative; width: 140px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(251, 239, 223, 0.12); }
.splash-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  transform: scaleX(0); transform-origin: left;
  animation: splashLoad 1.4s var(--ease-soft) .1s forwards;
}
.splash-text {
  font-size: .72rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase;
  color: var(--cream-mute);
  opacity: 0; animation: fadeIn .8s ease .35s forwards;
}

/* Hero entrance: the cover's lines rise in one by one after the intro */
.hero-inner > * { animation: heroIn 1s var(--ease-out) both; animation-delay: calc(var(--intro-delay, 1.5s) + var(--i, 0) * 110ms); }
.hero-inner > :nth-child(2) { --i: 1; }
.hero-inner > :nth-child(3) { --i: 2; }
.hero-inner > :nth-child(4) { --i: 3; }
.hero-inner > :nth-child(5) { --i: 4; }
.hero-inner > :nth-child(6) { --i: 5; }
.no-intro { --intro-delay: .05s; }

/* "¿Qué se te antoja hoy? …" */
.antojo-word { font-weight: 700; color: var(--cream); white-space: nowrap; }
.antojo-word::after {
  content: ""; display: inline-block;
  width: 2px; height: .85em; margin-left: 3px; vertical-align: -0.06em;
  background: var(--amber);
  animation: caret 1s steps(1) infinite;
}

/* Alitas card: a badge invites the tap that opens the sauces */
.dish-media { position: relative; }
.dish-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .75rem; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--char); background: linear-gradient(135deg, var(--amber), #FFD27A);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.65);
  animation: badgePulse 3.2s ease-in-out infinite;
}
.dish-badge svg { width: 14px; height: 14px; }
.is-pickable { cursor: pointer; }
.chips--sauces li { display: inline-flex; align-items: center; gap: .5rem; }
.chips--sauces li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14); }
.chips li.is-pickable { transition: transform .35s var(--ease-out), background-color .3s, border-color .3s; }
.chips li.is-pickable:hover, .chips li.is-pickable:focus-visible { transform: translateY(-2px); background: rgba(243, 169, 60, 0.3); border-color: var(--amber); }

/* ---------- Sauce picker (dialog) ---------- */
html.has-dialog { overflow: hidden; }
.alitas-dialog {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: 100vw; max-width: 100vw; max-height: 90vh; max-height: 90dvh;
  margin: auto 0 0;                       /* phone: a sheet that rises from the bottom */
}
.alitas-dialog::backdrop { background: rgba(10, 6, 4, 0.74); }
@supports (backdrop-filter: blur(6px)) { .alitas-dialog::backdrop { backdrop-filter: blur(6px); } }
.ad-card {
  position: relative;
  display: flex; flex-direction: column;
  max-height: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #3D2418 0%, #2A1810 100%);
  border: 1px solid rgba(243, 169, 60, 0.22);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.alitas-dialog[open] .ad-card { animation: sheetUp .5s var(--ease-out); }
.ad-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream); background: rgba(20, 12, 8, 0.62);
  transition: background-color .3s, transform .4s var(--ease-out);
}
.ad-close svg { width: 18px; height: 18px; }
.ad-close:hover { background: var(--ember-strong); transform: rotate(90deg); }
.ad-media { position: relative; flex: none; height: clamp(130px, 22vh, 180px); }
.ad-media img { width: 100%; height: 100%; object-fit: cover; }
.ad-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 17, 11, 0.1) 0%, rgba(42, 24, 16, 0.96) 100%); }
.ad-head { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 1.3rem .9rem; }
.ad-eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.ad-title { font-family: var(--display); font-size: clamp(2.2rem, 7vw, 3rem); line-height: .9; color: var(--cream); }
.ad-sub { font-size: .9rem; color: var(--cream-mute); }
.ad-body { overflow-y: auto; padding: 1.1rem 1.3rem 1.3rem; display: grid; gap: 1.3rem; overscroll-behavior: contain; }
.ad-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.ad-group legend { padding: 0; margin-bottom: .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-mute); }
.ad-sauces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.ad-sauce, .ad-size {
  position: relative; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .3s, background-color .3s, box-shadow .3s, transform .35s var(--ease-out);
}
.ad-sauce input, .ad-size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ad-sauce { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem .65rem; padding: .7rem .8rem; }
.ad-swatch {
  grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55), transparent 42%), var(--c);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07), 0 6px 14px -6px var(--c);
}
.ad-sauce-name { font-family: var(--display); font-size: 1.35rem; letter-spacing: .03em; line-height: 1; color: var(--cream); }
.ad-sauce-note { font-size: .76rem; line-height: 1.25; color: var(--ink-mute); }
.ad-sauce:hover, .ad-size:hover { transform: translateY(-2px); border-color: rgba(243, 169, 60, 0.55); }
.ad-sauce.is-on, .ad-size.is-on {
  border-color: var(--amber);
  background: rgba(243, 169, 60, 0.13);
  box-shadow: 0 0 0 3px rgba(243, 169, 60, 0.18), 0 12px 26px -14px rgba(224, 88, 42, 0.9);
}
.ad-sauce:focus-within, .ad-size:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.ad-sauce.is-on .ad-sauce-name { color: var(--gold); }
.ad-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.ad-size { display: grid; justify-items: center; gap: .05rem; padding: .55rem .2rem; text-align: center; }
.ad-size b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--cream); }
.ad-size span { font-size: .68rem; color: var(--ink-mute); }
.ad-size small { font-size: .74rem; font-weight: 700; color: var(--gold); }
.ad-foot {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.3rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.ad-total span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }
.ad-total b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--gold); }
.ad-foot .btn { white-space: normal; text-align: center; }
.ad-foot .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; filter: grayscale(.4); }

/* ---------- Ruleta del antojo ---------- */
.ruleta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 55% at 80% 50%, rgba(224, 88, 42, 0.16), transparent 70%),
    radial-gradient(35% 40% at 10% 20%, rgba(243, 169, 60, 0.08), transparent 70%);
}
.ruleta-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.ruleta-grid .section-head { margin-bottom: 0; }
.ruleta-machine {
  position: relative;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border-radius: 28px;
  background: linear-gradient(160deg, #46291B 0%, #24150D 100%);
  border: 1px solid rgba(243, 169, 60, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 70px -40px rgba(0, 0, 0, 0.95), 0 0 70px -24px rgba(224, 88, 42, 0.45);
}
.ruleta-window {
  position: relative; overflow: hidden;
  height: 108px;
  border-radius: 18px;
  background: #170D08;
  border: 1px solid var(--line);
  box-shadow: inset 0 14px 26px rgba(0, 0, 0, 0.65), inset 0 -14px 26px rgba(0, 0, 0, 0.65);
  /* drum effect: names fade in and out at the window's edges */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.ruleta-window::before, .ruleta-window::after {
  content: ""; position: absolute; top: 50%; z-index: 2;
  border: 11px solid transparent; margin-top: -11px;
}
.ruleta-window::before { left: 4px; border-left-color: var(--amber); }
.ruleta-window::after { right: 4px; border-right-color: var(--amber); }
.ruleta-reel {
  list-style: none; margin: 0; padding: 0;
  will-change: transform;
}
.ruleta-reel li {
  height: 108px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2.6rem; text-align: center;
  font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: .95; letter-spacing: .02em;
  color: var(--cream);
  text-wrap: balance;
}
.ruleta-machine.is-spinning .ruleta-window { border-color: rgba(243, 169, 60, 0.55); }
.ruleta-machine.is-hit { animation: hitGlow 1.3s var(--ease-out); }
.ruleta-result {
  min-height: 3rem; margin: 1rem 0 .5rem;
  display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
}
.ruleta-result .dish-tag { align-self: center; }
.ruleta-price { font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--gold); display: inline-flex; align-items: baseline; gap: .35rem; }
.ruleta-price span { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--ink-mute); }
.ruleta-result > * { animation: fadeUp .6s var(--ease-out) both; }
.ruleta-result > :nth-child(2) { animation-delay: .1s; }
.ruleta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }

/* ---------- Credits page ---------- */
.page-credits main { width: min(860px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 3rem 0 5rem; }
.page-credits .back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--gold); margin-bottom: 2rem; }
.page-credits h1 { font-family: var(--display); font-size: clamp(3rem, 8vw, 4.6rem); line-height: .9; margin-bottom: 1rem; }
.page-credits .lead { margin-bottom: 2rem; }
.credits-list { list-style: none; display: grid; gap: .8rem; }
.credits-list li { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.credits-list a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   7. Effects
   ============================================================= */
/* Scroll fade — runs every time, in both directions.
   Hidden blocks wait below (scrolling down) or above (scrolling up) the
   screen and glide in from that side; JS sets data-side as they leave.
   Only hides once JS confirms it can reveal. */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 46px, 0) scale(.97);
  transition: opacity .75s var(--ease-soft), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.has-reveal [data-reveal][data-side="above"] { transform: translate3d(0, -46px, 0) scale(.97); }
.has-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }

@keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes spark {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: .95; }
  70%  { opacity: .6; }
  100% { transform: translate3d(var(--dx, 20px), -78vh, 0) scale(.4); opacity: 0; }
}
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 4px rgba(243, 169, 60, 0.25); } 50% { box-shadow: 0 0 0 8px rgba(243, 169, 60, 0.06); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes glowDrift { to { transform: translate3d(4%, -4%, 0) scale(1.1); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes brasaBreath {
  0%   { opacity: .75; transform: scaleY(.9); }
  50%  { opacity: 1;   transform: scaleY(1.06); }
  100% { opacity: .85; transform: scaleY(.96); }
}
@keyframes flameLick {
  0%   { transform: translate3d(0, 0, 0) scale(1, .6);      opacity: .45; }
  35%  { transform: translate3d(-6px, 0, 0) scale(.92, 1.05); opacity: .85; }
  70%  { transform: translate3d(5px, 0, 0) scale(1.06, .8);  opacity: .6; }
  100% { transform: translate3d(-2px, 0, 0) scale(.96, 1.12); opacity: .9; }
}
@keyframes coalPulse { from { opacity: .35; } to { opacity: .9; } }
@keyframes kenBurns { from { scale: 1.04; } to { scale: 1.16; } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes splashGlow { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: .75; transform: scale(1); } }
@keyframes ignite {
  0%   { filter: brightness(.25) saturate(.4); transform: scale(.88); box-shadow: 0 0 0 0 rgba(243, 169, 60, 0); }
  55%  { filter: brightness(1.3) saturate(1.25); transform: scale(1.05); box-shadow: 0 0 70px 12px rgba(243, 169, 60, 0.5); }
  100% { filter: none; transform: scale(1); box-shadow: 0 0 44px 4px rgba(224, 88, 42, 0.38); }
}
@keyframes splashLoad { to { transform: scaleX(1); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes heroIn { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes badgePulse { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
@keyframes sheetUp { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }
@keyframes hitGlow {
  0%   { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 0 rgba(243, 169, 60, 0.7), 0 0 70px -24px rgba(224, 88, 42, 0.45); }
  40%  { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 10px rgba(243, 169, 60, 0), 0 0 110px -10px rgba(224, 88, 42, 0.8); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 0 rgba(243, 169, 60, 0), 0 0 70px -24px rgba(224, 88, 42, 0.45); }
}
@keyframes smokeDrift {
  0%   { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: .8; }
  100% { transform: translate3d(9vw, -55%, 0) scale(1.25); opacity: 0; }
}
@keyframes brasaSpark {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  8%   { opacity: 1; }
  75%  { opacity: .7; }
  100% { transform: translate3d(var(--dx, 20px), -38vh, 0) scale(.3); opacity: 0; }
}

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .alitas-dialog { width: min(660px, 100vw - 32px); max-width: 660px; margin: auto; }
  .ad-card { border-radius: 26px; }
  .ad-sauces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-kicker { font-size: .8rem; }
  .brand { font-size: 1.75rem; gap: .65rem; }
  .nav-ig { display: inline-grid; }
}

@media (min-width: 720px) {
  .dishes { grid-template-columns: repeat(2, 1fr); }
  .dish--xl { grid-column: 1 / -1; }
  .dish--xl .dish-media { aspect-ratio: 16 / 9; }
  .menu-groups { grid-template-columns: 1fr 1fr; }
  .about-figure { aspect-ratio: 16 / 8; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .wa-float-label { display: inline-block; }
  .brasa-flames span:nth-child(n+7), .brasa-sparks i:nth-child(n+11) { display: block; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tile { aspect-ratio: 4 / 5; }
}

@media (min-width: 960px) {
  :root { --nav-h: 80px; }
  .nav-links { display: flex; align-items: center; gap: 1.9rem; }
  .nav-toggle { display: none !important; }
  .hero { align-items: center; }
  .hero-shade {
    background:
      linear-gradient(100deg, rgba(30, 20, 16, 0.94) 0%, rgba(30, 20, 16, 0.8) 34%, rgba(30, 20, 16, 0.25) 68%, rgba(30, 20, 16, 0.1) 100%),
      linear-gradient(0deg, rgba(30, 20, 16, 0.75) 0%, transparent 30%);
  }
  .hero-bg { object-position: 70% 50%; }
  .dishes { grid-template-columns: repeat(12, 1fr); }
  .dish { grid-column: span 4; }
  .dish--xl { grid-column: span 7; }
  .dish--lg { grid-column: span 5; }
  .dish--xl .dish-media, .dish--lg .dish-media { aspect-ratio: auto; height: clamp(280px, 28vw, 380px); }
  .menu-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ruleta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .menu-figure { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  .menu-groups { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  .hero-inner { padding-bottom: 6rem; }
}

/* =============================================================
   9. Reduced motion — only the intrusive effects
   The fire (embers, flames, sparks) is the brand's signature, so it
   keeps running, just slower and calmer.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  :root { --slow: 1.7; }
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .wa-float-icon::before { animation: none; display: none; }
  .hero-kicker .dot { animation: none; }
}
