/* ============================================================
   TecnoSOS · Restaurantes — "La brasa" (flagship v2)
   Scroll-film: acto oscuro (noche/antojo) → papel (trato).
   Sin dependencias. Todo funciona sin JS; html.js activa cine.
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --coal: #0C0C0B;
  --coal-2: #14120F;
  --coal-3: #1B1815;
  --paper: #F5EFE4;
  --paper-2: #EDE4D3;
  --card: #FFFDF7;
  --ink: #191713;
  --ink-soft: #4C463C;
  --line-d: rgba(245, 239, 228, 0.14);
  --line-l: #E2D7C0;
  --amber: #F0A500;
  --amber-2: #FFC56C;
  --amber-deep: #A66B00;
  --flame: #E85D26;
  --wa: #25D366;
  --wa-ink: #0B3D22;
  --sg: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --body: system-ui, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--coal);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--coal); }
:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Grano de película sobre todo (decorativo, muy sutil) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200;
  pointer-events: none; opacity: 0.05;
  background-image: 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

h1, h2, h3 { font-family: var(--sg); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h2 em, .noche-title em, .final-title em, .turn-line em {
  font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--amber-2); letter-spacing: 0;
}

.kicker {
  font-family: var(--sg); font-weight: 500; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--amber); margin: 0 0 1.1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--sg); font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.28); }
.btn-ghost { border-color: rgba(245, 239, 228, 0.35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-2); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(25, 23, 19, 0.3); }
.btn-big { font-size: 1.15rem; padding: 1.15rem 2.2rem; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 120;
  padding-block: 0.9rem;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.site-head.scrolled {
  background: rgba(12, 12, 11, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(245, 239, 228, 0.08);
  padding-block: 0.55rem;
}
.head-row { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-name { font-family: var(--sg); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.beacon {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px 2px rgba(240, 165, 0, 0.55);
  animation: sos 2.8s infinite;
}
@keyframes sos { /* · · — señal de la casa */
  0%, 8% { opacity: 1; } 10%, 16% { opacity: 0.15; }
  18%, 26% { opacity: 1; } 28%, 34% { opacity: 0.15; }
  36%, 72% { opacity: 1; } 74%, 100% { opacity: 0.15; }
}
.head-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.head-nav a {
  font-family: var(--sg); font-weight: 500; font-size: 0.95rem;
  color: rgba(245, 239, 228, 0.78); text-decoration: none; transition: color 0.2s;
}
.head-nav a:hover { color: var(--amber-2); }
.btn-head { font-size: 0.92rem; padding: 0.6rem 1.15rem; }
@media (max-width: 860px) {
  .head-nav { display: none; }
  .head-row { justify-content: space-between; }
}

/* ============================================================
   HERO — la brasa
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  transform-origin: 50% 70%;
  animation: brasa-zoom 16s ease-in-out infinite alternate;
  transition: opacity 0.8s;
}
@keyframes brasa-zoom { from { transform: scale(1.02); } to { transform: scale(1.11); } }
html.gl-on .hero-media img { opacity: 0; animation-play-state: paused; }
.gl-host { position: absolute; inset: 0; z-index: 1; }
.gl-host canvas { width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(232, 93, 38, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(12, 12, 11, 0.62) 0%, rgba(12, 12, 11, 0.18) 34%, rgba(12, 12, 11, 0.28) 58%, rgba(12, 12, 11, 0.88) 86%, var(--coal) 100%);
}
.hero-inner {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 6.5rem; padding-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero-k { display: flex; align-items: center; gap: 0.9rem; margin-bottom: clamp(1rem, 3vh, 2.2rem); text-shadow: 0 1px 14px rgba(12, 12, 11, 0.9), 0 0 3px rgba(12, 12, 11, 0.8); }
.k-line { width: 3rem; height: 1px; background: var(--amber); flex: none; }
.hero-title {
  font-size: clamp(3.4rem, 11.5vw, 10.5rem);
  line-height: 0.94; letter-spacing: -0.035em;
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
}
.hero-title em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--amber-2); }
.hero-title .dot { color: var(--flame); }
.l { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.li { display: inline-block; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.hero-sub { max-width: 44ch; margin: 0; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(245, 239, 228, 0.88); }
.hero-sub strong { color: var(--amber-2); }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Entrada del hero (solo escritorio, con JS y sin reduced-motion) */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js .li { transform: translateY(118%) rotate(1.5deg); animation: line-up 1s var(--ease-out) forwards; }
  html.js .l:nth-child(2) .li { animation-delay: 0.12s; }
  html.js .hero-k, html.js .hero-foot { opacity: 0; animation: soft-up 0.9s var(--ease-out) forwards; }
  html.js .hero-k { animation-delay: 0.05s; }
  html.js .hero-foot { animation-delay: 0.42s; }
}
@keyframes line-up { to { transform: translateY(0) rotate(0); } }
@keyframes soft-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Marquesina */
.marquee {
  position: relative; z-index: 3; overflow: clip;
  border-top: 1px solid rgba(240, 165, 0, 0.28);
  border-bottom: 1px solid rgba(240, 165, 0, 0.28);
  background: rgba(12, 12, 11, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.marquee-track {
  display: inline-flex; white-space: nowrap; width: max-content;
  padding-block: 0.85rem;
  animation: marq 30s linear infinite;
}
.marquee-track span {
  font-family: var(--sg); font-weight: 700; font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(245, 239, 228, 0.55); padding-right: 0.5rem;
}
.marquee-track b { color: var(--amber-2); font-weight: 700; }
.marquee-track i { color: var(--flame); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Campo de brasas CSS (fallback y secciones suaves) */
.ember-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
html.gl-on .hero .ember-field { display: none; }
.ember-field i {
  position: absolute; bottom: -3vh;
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--amber-2), var(--flame) 65%, transparent 75%);
  opacity: 0; filter: blur(0.4px);
  animation: rise 10s linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  8% { opacity: 0.9; }
  60% { opacity: 0.55; }
  100% { transform: translate(var(--dx, 20px), -108vh) scale(0.45); opacity: 0; }
}
.ember-field i:nth-child(1)  { left: 6%;  --dx: 34px;  animation-duration: 9.5s;  animation-delay: 0s; }
.ember-field i:nth-child(2)  { left: 14%; --dx: -22px; animation-duration: 12s;   animation-delay: 1.4s; width: 4px; height: 4px; }
.ember-field i:nth-child(3)  { left: 22%; --dx: 40px;  animation-duration: 8.6s;  animation-delay: 2.8s; }
.ember-field i:nth-child(4)  { left: 31%; --dx: -30px; animation-duration: 11.2s; animation-delay: 0.9s; width: 3px; height: 3px; }
.ember-field i:nth-child(5)  { left: 39%; --dx: 26px;  animation-duration: 9.8s;  animation-delay: 3.6s; }
.ember-field i:nth-child(6)  { left: 47%; --dx: -38px; animation-duration: 12.8s; animation-delay: 1.9s; }
.ember-field i:nth-child(7)  { left: 55%; --dx: 30px;  animation-duration: 8.9s;  animation-delay: 4.4s; width: 4px; height: 4px; }
.ember-field i:nth-child(8)  { left: 63%; --dx: -26px; animation-duration: 11.6s; animation-delay: 0.4s; }
.ember-field i:nth-child(9)  { left: 70%; --dx: 42px;  animation-duration: 10.4s; animation-delay: 2.2s; width: 3px; height: 3px; }
.ember-field i:nth-child(10) { left: 77%; --dx: -20px; animation-duration: 9.2s;  animation-delay: 3.1s; }
.ember-field i:nth-child(11) { left: 84%; --dx: 36px;  animation-duration: 12.4s; animation-delay: 1.1s; }
.ember-field i:nth-child(12) { left: 90%; --dx: -34px; animation-duration: 8.4s;  animation-delay: 4.8s; width: 4px; height: 4px; }
.ember-field i:nth-child(13) { left: 95%; --dx: 24px;  animation-duration: 10.9s; animation-delay: 2.6s; }
.ember-field i:nth-child(14) { left: 3%;  --dx: 28px;  animation-duration: 11.9s; animation-delay: 5.2s; width: 3px; height: 3px; }
.ember-soft i { animation-duration: 14s; width: 4px; height: 4px; }

/* ============================================================
   ESCENAS FIJADAS (pin) — solo escritorio + JS + motion OK
   ============================================================ */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js [data-pin] .pin-sp { height: 340vh; }
  html.js [data-pin] .pin {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    overflow: clip; display: flex; flex-direction: column; justify-content: center;
  }
}

/* ---------- 01 · LA NOCHE ---------- */
.noche { background: var(--coal); position: relative; }
.noche .pin { background:
  radial-gradient(90% 70% at 82% 30%, rgba(232, 93, 38, 0.07), transparent 60%),
  var(--coal); }
.noche-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding-block: 7rem 4rem;
}
.noche-title { font-size: clamp(2rem, 4.4vw, 3.7rem); margin-bottom: 2.6rem; max-width: 16ch; }
.noche-beats { position: relative; min-height: 12.5rem; }
.nbeat { transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.nbeat h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); color: var(--amber-2); margin-bottom: 0.7rem; }
.nbeat p { margin: 0; max-width: 46ch; color: rgba(245, 239, 228, 0.82); font-size: 1.08rem; }
.nbeat strong { color: var(--paper); }
.noche-dots { display: none; gap: 0.55rem; margin-top: 2.4rem; }
.noche-dots i {
  width: 30px; height: 3px; border-radius: 2px;
  background: rgba(245, 239, 228, 0.18); transition: background 0.3s;
}

/* Teléfono de la escena */
.noche-phone { display: flex; justify-content: center; }
.noche-phone .phone { width: min(300px, 30vw); }
.phone {
  aspect-ratio: 9 / 18.6;
  background: #191715; border: 1px solid rgba(245, 239, 228, 0.16);
  border-radius: 44px; padding: 11px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; background: #191715; border-radius: 11px; z-index: 4;
}
.phone-screen {
  position: absolute; inset: 11px; border-radius: 34px; overflow: hidden;
  background: #101010; display: flex; flex-direction: column;
}
.nscreen { transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }

/* Estado por paso (por defecto: paso 0 visible) */
.nbeat { opacity: 0; transform: translateY(24px); position: absolute; inset: auto 0; }
.nscreen { opacity: 0; transform: translateY(24px); }
.nbeat[data-beat="0"], .nscreen[data-beat="0"] { opacity: 1; transform: none; }
.noche[data-step="1"] .nbeat[data-beat="0"], .noche[data-step="2"] .nbeat[data-beat="0"],
.noche[data-step="1"] .nscreen[data-beat="0"], .noche[data-step="2"] .nscreen[data-beat="0"] {
  opacity: 0; transform: translateY(-20px);
}
.noche[data-step="1"] .nbeat[data-beat="1"], .noche[data-step="1"] .nscreen[data-beat="1"],
.noche[data-step="2"] .nbeat[data-beat="2"], .noche[data-step="2"] .nscreen[data-beat="2"] {
  opacity: 1; transform: none;
}
.noche[data-step="0"] .noche-dots i:nth-child(1),
.noche[data-step="1"] .noche-dots i:nth-child(2),
.noche[data-step="2"] .noche-dots i:nth-child(3) { background: var(--amber); }

/* Pantalla A — chat del menú borroso */
.mini-chat-head {
  background: #075E54; color: #fff; padding: 2rem 0.9rem 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.mini-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #C8B8A2; color: #4C463C;
  display: grid; place-items: center; font-family: var(--sg); font-weight: 700; font-size: 0.85rem; flex: none;
}
.mini-chat-head b { font-size: 0.9rem; display: block; line-height: 1.15; }
.mini-chat-head small { font-size: 0.68rem; opacity: 0.8; display: block; }
.mini-chat { flex: 1; background: #EFE7DC; padding: 0.8rem 0.7rem; display: flex; flex-direction: column; gap: 0.55rem; }
.msg {
  max-width: 84%; padding: 0.5rem 0.7rem; border-radius: 12px;
  font-size: 0.8rem; line-height: 1.4; margin: 0; color: #222;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); position: relative;
}
.msg time { display: block; font-size: 0.6rem; color: #888; text-align: right; margin-top: 2px; }
.msg-in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg-out { background: #D9FDD3; align-self: flex-end; border-top-right-radius: 4px; }
.msg-photo { padding: 0.3rem; width: 84%; }
.blur-img {
  display: block; width: 100%; height: 106px; border-radius: 8px;
  background: url("../assets/img/plato-3.jpg") center/cover;
  filter: blur(5px) saturate(0.75) contrast(0.9);
}
.msg-photo small { display: block; font-size: 0.62rem; color: #777; padding: 3px 4px 1px; }

/* Pantalla B — corte de la app */
.fee-head {
  padding: 2.4rem 1rem 0.9rem; background: #1C1A18; color: var(--paper);
  font-family: var(--sg); font-weight: 700; font-size: 1rem;
}
.fee-head small { display: block; font-weight: 500; font-size: 0.7rem; color: rgba(245, 239, 228, 0.55); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.fee-rows { flex: 1; background: #131211; padding: 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.fee-rows p {
  display: flex; justify-content: space-between; gap: 1rem; margin: 0;
  font-size: 0.82rem; color: rgba(245, 239, 228, 0.75);
  padding-bottom: 0.65rem; border-bottom: 1px dashed rgba(245, 239, 228, 0.12);
}
.fee-rows b { font-family: var(--sg); color: var(--paper); }
.fee-neg b { color: #FF6B5E; }
.fee-total { border-bottom: 0 !important; margin-top: auto !important; padding-top: 0.4rem; }
.fee-total span { color: var(--paper); font-weight: 600; }
.fee-total b { font-size: 1.05rem; color: var(--amber-2); }
.fee-note { background: #131211; margin: 0; padding: 0 1rem 1.4rem; font-size: 0.72rem; color: rgba(245, 239, 228, 0.5); font-style: italic; }

/* Pantalla C — «cerca de mí» */
.nscreen[data-beat="2"] { background: #fff; }
.maps-search {
  margin: 2.3rem 0.8rem 0.8rem; padding: 0.6rem 0.85rem;
  background: #F1F3F4; border-radius: 999px; color: #333;
  font-size: 0.82rem; display: flex; align-items: center; gap: 0.5rem;
}
.maps-search svg { color: #5F6368; flex: none; }
.maps-row {
  display: flex; gap: 0.7rem; align-items: center;
  padding: 0.65rem 0.9rem; border-bottom: 1px solid #EEE; color: #1a1a1a;
}
.maps-thumb { width: 46px; height: 46px; border-radius: 10px; background: #E8EAED; flex: none; border: 1px dashed #C6C9CE; }
.maps-thumb.has-img { background: url("../assets/img/plato-1.jpg") center/cover; border: 0; }
.maps-thumb.has-img.alt { background-image: url("../assets/img/ambiente-1.jpg"); }
.maps-row b { display: block; font-size: 0.84rem; font-family: var(--sg); }
.maps-row small { color: #5F6368; font-size: 0.7rem; }
.maps-you { opacity: 0.62; }
.maps-you b { color: #666; }

/* ---------- 02 · EL ANTOJO (galería horizontal) ---------- */
.antojo { background: var(--coal-2); position: relative; }
.antojo .pin { justify-content: flex-start; }
.antojo-head { padding-top: 6.5rem; padding-bottom: 2.2rem; }
.antojo-head h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.antojo-head h2 em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--amber-2); }
.section-sub { color: rgba(245, 239, 228, 0.72); max-width: 52ch; margin: 0.9rem 0 0; }
.antojo-track {
  display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: stretch;
  padding-inline: max(1.25rem, (100vw - var(--wrap)) / 2);
  padding-bottom: 3rem;
  width: max-content;
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js .antojo-track {
    transform: translateX(calc(var(--p, 0) * var(--shift, 0) * 1px));
    will-change: transform;
  }
}
.dish { margin: 0; width: clamp(240px, 24vw, 360px); flex: none; }
.dish img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 18px; border: 1px solid rgba(245, 239, 228, 0.1);
  transition: transform 0.5s var(--ease-out);
}
.dish:hover img { transform: scale(1.025) rotate(-0.4deg); }
.dish figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0.3rem 0;
}
.dish-name { font-family: var(--sg); font-weight: 700; font-size: 1.05rem; }
.dish-price {
  font-family: var(--sg); font-weight: 700; font-size: 0.85rem;
  color: var(--amber-2); background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.35);
  padding: 0.22rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.dish-cta {
  width: clamp(280px, 27vw, 400px);
  background: var(--coal-3); border: 1px solid rgba(240, 165, 0, 0.3);
  border-radius: 24px; padding: clamp(1.4rem, 2vw, 2.2rem);
  display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
}
.dish-cta p { margin: 0; font-family: var(--sg); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
.dish-cta p em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--amber-2); }
.dish-cta span { color: rgba(245, 239, 228, 0.7); font-size: 0.98rem; }
.dish-cta .btn { align-self: flex-start; }

/* Móvil / sin JS: carrusel nativo con snap */
@media (max-width: 899.98px) {
  .antojo-head { padding-top: 4.5rem; }
  .antojo-track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .antojo-track::-webkit-scrollbar { display: none; }
  .dish { scroll-snap-align: center; width: min(74vw, 330px); }
  .dish-cta { width: min(80vw, 340px); }
  .antojo { padding-bottom: 1rem; }
}

/* ---------- 03 · EL SISTEMA (filas editoriales) ---------- */
.sistema { background: var(--coal-2); padding-block: clamp(5rem, 10vh, 8.5rem); position: relative; }
.sistema .wrap { position: relative; }
.sistema-title { margin-bottom: 3rem; font-size: clamp(2rem, 4.6vw, 3.8rem); }
.sistema-title em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--amber-2); }
.rows { border-top: 1px solid var(--line-d); position: relative; z-index: 2; }
.row {
  display: grid; grid-template-columns: 4rem 1.2fr 1fr 3rem;
  align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.4rem, 3vh, 2.2rem);
  border-bottom: 1px solid var(--line-d);
  text-decoration: none; position: relative;
  transition: background 0.3s, padding-left 0.35s var(--ease-out);
}
.row:hover { background: rgba(245, 239, 228, 0.025); padding-left: 0.8rem; }
.row-num { font-family: var(--sg); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.15em; color: var(--amber); }
.row-title {
  font-family: var(--sg); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.05;
  transition: color 0.25s;
}
.row:hover .row-title { color: var(--amber-2); }
.row-desc { color: rgba(245, 239, 228, 0.62); font-size: 1rem; max-width: 36ch; }
.row-arrow { color: rgba(245, 239, 228, 0.4); transition: transform 0.35s var(--ease-out), color 0.25s; display: flex; }
.row:hover .row-arrow { transform: translateX(8px); color: var(--amber); }
.row-float {
  position: absolute; top: 0; left: 0; z-index: 6;
  width: clamp(200px, 18vw, 280px); aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; border: 1px solid rgba(245, 239, 228, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: scale(0.85) rotate(3deg);
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.row-float.on { opacity: 1; transform: scale(1) rotate(2deg); }
@media (max-width: 899.98px), (pointer: coarse) { .row-float { display: none !important; } }
@media (max-width: 760px) {
  .row { grid-template-columns: 3rem 1fr; row-gap: 0.4rem; }
  .row-desc { grid-column: 2; font-size: 0.92rem; }
  .row-arrow { display: none; }
}

/* ---------- BISAGRA ---------- */
.turn {
  position: relative; background: linear-gradient(180deg, var(--coal-2), #261F13 74%, var(--paper-2));
  padding-block: clamp(7rem, 16vh, 11rem); overflow: clip; text-align: center;
}
.turn .ember-field { opacity: 0.65; }
.turn-line {
  position: relative; z-index: 2; margin: 0;
  font-family: var(--sg); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem); line-height: 1.12; color: var(--paper);
}

/* ============================================================
   ACTO III — PAPEL (secciones claras)
   ============================================================ */
.section { padding-block: clamp(4.5rem, 9vh, 7.5rem); }
.section.light { background: var(--paper); color: var(--ink); }
.section.light .kicker { color: var(--amber-deep); }
.section.light h2 { color: var(--ink); }
.strip-alt { background: var(--paper-2); }

/* Evidencia — collage editorial */
.evidence-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: 3rem; align-items: start;
}
@media (max-width: 980px) { .evidence-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.evidence-grid > figure { margin: 0; }
@media (min-width: 981px) {
  .evidence-grid > figure:nth-child(1) { transform: rotate(-1.3deg); }
  .evidence-grid > figure:nth-child(2) { transform: translateY(2.2rem) rotate(0.6deg); }
  .evidence-grid > figure:nth-child(3) { transform: rotate(1.1deg) translateY(0.6rem); }
}
.evidence-grid figcaption {
  font-size: 0.95rem; color: var(--ink-soft); text-align: center;
  margin-top: 1.1rem; font-style: italic; font-family: var(--serif);
}
.demo-note { margin: 3.4rem auto 0; text-align: center; color: var(--ink-soft); font-size: 0.9rem; max-width: 62ch; }

/* Mock: menú en teléfono (acto claro) */
.menu-mock .phone {
  width: 100%; max-width: 290px; margin-inline: auto;
  aspect-ratio: 9 / 18; background: #17150F; border-color: rgba(25, 23, 19, 0.35);
  box-shadow: 0 30px 70px rgba(25, 23, 19, 0.22);
}
.menu-mock .phone::before { background: #17150F; }
.menu-mock .phone-screen { background: #FFFDF7; }
.menu-screen { color: var(--ink); }
.menu-head { padding: 2.1rem 1rem 0.5rem; }
.menu-head b { font-family: var(--sg); font-size: 1.02rem; display: block; }
.menu-head span { font-size: 0.72rem; color: #1DA851; font-weight: 600; }
.menu-tabs { display: flex; gap: 0.45rem; padding: 0.5rem 1rem 0.7rem; }
.menu-tabs span {
  font-family: var(--sg); font-weight: 500; font-size: 0.72rem;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  background: #F1EADB; color: var(--ink-soft);
}
.menu-tabs .on { background: var(--ink); color: var(--paper); }
.menu-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 1rem; border-top: 1px solid #F0E9DA;
}
.menu-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.menu-item span { flex: 1; min-width: 0; }
.menu-item b { display: block; font-size: 0.82rem; font-family: var(--sg); line-height: 1.2; }
.menu-item small { color: var(--ink-soft); font-size: 0.68rem; }
.menu-item strong { font-family: var(--sg); font-size: 0.85rem; }
.menu-bar {
  margin-top: auto; background: var(--wa); color: var(--wa-ink);
  font-family: var(--sg); font-weight: 700; font-size: 0.85rem;
  text-align: center; padding: 0.85rem;
}

/* Mock: chat de pedido */
.chat-card {
  border-radius: 20px; overflow: hidden; background: #EFE7DC;
  box-shadow: 0 24px 60px rgba(25, 23, 19, 0.16); border: 1px solid #E2D8C6;
}
.chat-head { background: #075E54; color: #fff; padding: 0.8rem 1rem; display: flex; align-items: center; gap: 0.65rem; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--amber); color: var(--coal);
  display: grid; place-items: center; font-family: var(--sg); font-weight: 700; font-size: 0.8rem;
}
.chat-name { font-family: var(--sg); font-weight: 700; font-size: 0.95rem; line-height: 1.1; }
.chat-name small { display: block; font-weight: 400; font-size: 0.7rem; opacity: 0.8; }
.chat-body { padding: 1rem 0.9rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.chat-body .msg { font-size: 0.86rem; }
.msg-cita { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.7rem; }
.msg-cita svg { flex: none; margin-top: 2px; }
.msg-cita span { font-size: 0.8rem; line-height: 1.35; }
.msg-cita strong { display: block; font-family: var(--sg); }

/* Mock: ficha de Google */
.ficha {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(25, 23, 19, 0.14); border: 1px solid #E8E0D2;
  color: #1B1B1B;
}
.ficha-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ficha-fotos img { width: 100%; height: 92px; object-fit: cover; }
.ficha-info { padding: 1rem 1.1rem 1.2rem; }
.ficha-info b { font-family: var(--sg); font-size: 1.1rem; }
.stars { display: block; color: #F5A623; font-size: 0.85rem; margin-top: 0.2rem; }
.stars i { color: #666; font-style: normal; }
.open { display: block; font-size: 0.8rem; color: #1DA851; font-weight: 600; margin-top: 0.2rem; }
.ficha-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
.ficha-actions span {
  font-family: var(--sg); font-weight: 500; font-size: 0.75rem;
  color: #1A73E8; border: 1px solid #DADCE0; border-radius: 999px; padding: 0.3rem 0.8rem;
}

/* ---------- Paquetes ---------- */
.pack-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem; margin-top: 3rem; align-items: stretch;
}
@media (max-width: 1080px) { .pack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pack-grid { grid-template-columns: 1fr; } }
.pack {
  background: var(--card); border: 1px solid var(--line-l); border-radius: 22px;
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.pack:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(25, 23, 19, 0.12); }
.pack h3 { font-size: 1.3rem; }
.pack-for { color: var(--ink-soft); font-size: 0.92rem; margin: 0.3rem 0 1.1rem; }
.pack-price { font-family: var(--sg); font-weight: 700; font-size: 2.1rem; letter-spacing: -0.03em; margin: 0 0 1.1rem; color: var(--ink); }
.pack-price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.pack ul { margin: 0 0 1.6rem; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.pack li { padding-left: 1.4rem; position: relative; font-size: 0.95rem; color: #2E2A22; }
.pack li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--amber); transform: rotate(45deg);
}
.btn-card { margin-top: auto; width: 100%; }
.pack-featured {
  background: var(--coal); color: var(--paper); border-color: transparent;
  position: relative; overflow: clip;
  box-shadow: 0 30px 70px rgba(25, 23, 19, 0.28);
}
.pack-featured::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--flame), var(--amber), var(--amber-2));
}
.pack-featured::after {
  content: ""; position: absolute; inset: auto -30% -45% -30%; height: 70%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(232, 93, 38, 0.18), transparent 70%);
  pointer-events: none;
}
.pack-featured h3 { color: var(--paper); }
.pack-featured .pack-price { color: var(--paper); }
.pack-featured .pack-for { color: rgba(245, 239, 228, 0.65); }
.pack-featured li { color: rgba(245, 239, 228, 0.86); }
.pack-featured .pack-price span { color: rgba(245, 239, 228, 0.6); }
.pack-tag {
  position: relative; z-index: 2;
  display: inline-block; align-self: flex-start;
  font-family: var(--sg); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--coal); background: var(--amber);
  border-radius: 999px; padding: 0.3rem 0.8rem; margin: 0 0 1rem;
}

.starter {
  margin-top: 2.2rem; background: var(--paper-2); border: 1px solid var(--line-l);
  border-radius: 22px; padding: 1.8rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.starter h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.starter p { margin: 0; color: #33302A; max-width: 62ch; }
.starter .btn { flex: none; }

.pay-terms {
  margin: 2.6rem 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
@media (max-width: 860px) { .pay-terms { grid-template-columns: 1fr; } }
.pay-terms li { display: flex; gap: 0.8rem; align-items: flex-start; color: #33302A; font-size: 0.95rem; }
.pay-terms svg { width: 26px; height: 26px; flex: none; color: var(--amber-deep); }
.pay-terms strong { color: var(--ink); }
.honesty {
  margin: 2.8rem auto 0; max-width: 64ch; text-align: center;
  color: var(--ink-soft); font-size: 1rem;
  font-family: var(--serif); font-style: italic;
}

/* ---------- Extras ---------- */
.extras-grid {
  margin: 2.6rem 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.2rem;
}
@media (max-width: 760px) { .extras-grid { grid-template-columns: 1fr; } }
.extras-grid li {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.05rem 0.4rem; border-bottom: 1px solid var(--line-l);
}
.extras-grid svg { width: 30px; height: 30px; flex: none; color: var(--amber-deep); }
.extras-grid span { flex: 1; display: flex; justify-content: space-between; gap: 1.4rem; align-items: baseline; }
.extras-grid b { font-family: var(--sg); font-size: 0.95rem; white-space: nowrap; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.6rem; border-top: 1px solid var(--line-l); }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--sg); font-weight: 700; font-size: 1.08rem;
  padding: 1.25rem 3rem 1.25rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 14px; height: 14px; transform: translateY(-50%);
  background:
    linear-gradient(var(--amber-deep), var(--amber-deep)) center / 14px 2px no-repeat,
    linear-gradient(var(--amber-deep), var(--amber-deep)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq p { margin: 0 0 1.4rem; color: #33302A; max-width: 72ch; }

/* ---------- Final ---------- */
.final {
  position: relative; background: var(--coal); color: var(--paper);
  padding-block: clamp(6rem, 14vh, 10rem) 2.5rem;
  overflow: clip; text-align: center;
}
.final-glow {
  position: absolute; inset: auto -20% -55% -20%; height: 90%;
  background: radial-gradient(50% 90% at 50% 100%, rgba(232, 93, 38, 0.2), rgba(240, 165, 0, 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.final-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final-mark { margin-bottom: 1.6rem; }
.final-title { font-size: clamp(2.5rem, 6.4vw, 5.2rem); letter-spacing: -0.03em; }
.final p { max-width: 52ch; margin: 1.4rem 0 2.2rem; color: rgba(245, 239, 228, 0.82); }
.foot { margin-top: 5rem; width: 100%; border-top: 1px solid var(--line-d); padding-top: 1.6rem; }
.foot p { margin: 0.3rem 0; font-size: 0.88rem; color: rgba(245, 239, 228, 0.6); max-width: none; }
.legal { font-size: 0.78rem !important; }
.legal a { color: rgba(245, 239, 228, 0.75); }

/* ---------- Barra fija móvil ---------- */
.sticky-wa {
  position: fixed; inset: auto 0 0; z-index: 130;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(12, 12, 11, 0.9) 40%);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0s 0.4s;
  display: none;
}
.sticky-wa.show { transform: none; visibility: visible; transition-delay: 0s; }
.btn-sticky { width: 100%; }
@media (max-width: 899.98px) { .sticky-wa { display: block; } }

/* ---------- Reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Escenas: estado apilado (móvil / sin JS) ---------- */
@media (max-width: 899.98px) {
  .noche-grid { grid-template-columns: 1fr; padding-block: 4.5rem 3.5rem; }
  .noche-beats { min-height: 0; display: grid; gap: 1.8rem; }
  .nbeat {
    opacity: 1 !important; transform: none !important;
    position: relative; inset: auto;
    padding-left: 1.1rem; border-left: 2px solid rgba(240, 165, 0, 0.5);
  }
  .noche-phone { display: none; }
  .noche-dots { display: none !important; }
}
@media (min-width: 900px) { .noche-dots { display: flex; } }

/* Sin JS en escritorio: todo visible, sin pin */
html:not(.js) .nbeat { opacity: 1; transform: none; position: relative; inset: auto; margin-bottom: 1.6rem; }
html:not(.js) .noche-phone { display: none; }
html:not(.js) .noche-beats { min-height: 0; }
html:not(.js) .antojo-track { width: auto; overflow-x: auto; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .marquee-track { animation: none; }
  .beacon { animation: none; }
  .ember-field i { animation: none; opacity: 0; }
  .ember-field i:nth-child(-n+3) { opacity: 0.5; bottom: 30vh; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .li { transform: none; animation: none; }
  html.js .hero-k, html.js .hero-foot { opacity: 1; animation: none; }
  .nbeat, .nscreen, .row, .row-float, .dish img, .pack, .btn { transition: none; }
  .nbeat { opacity: 1; transform: none; position: relative; inset: auto; margin-bottom: 1.6rem; }
  .noche-beats { min-height: 0; }
  .noche-phone { display: none; }
  .antojo-track { width: auto; overflow-x: auto; transform: none !important; }
}
