/* HappyFood-Restaurante · hoja de estilos única, mobile-first */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0B0B0D;
  --surface: #1C1C22;
  --surface-2: #26262E;
  --accent: #2563EB;
  --accent-press: #1D4FC4;
  --ink: #F5F5F5;
  --muted: #D2D2DA;
  --scrim: rgba(11, 11, 13, .45);

  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .4vw, 1.5rem);
  --fs-body: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-small: .875rem;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --radius: 20px;
  --section-y: clamp(96px, 14vw, 180px);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dur: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
p, h1, h2, h3, ul, dl, dd, address, figure { margin: 0; }
p, dd, li { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.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; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; transform: translateY(-72px); transition: transform var(--dur) var(--ease-out); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía */
.h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: var(--fs-body); max-width: 42ch; }
.small { font-size: var(--fs-small); color: var(--muted); }
.big-text { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }

/* ---------- Botones */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: #fff;
  font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color var(--dur) var(--ease-out), opacity 150ms linear;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-block { width: 100%; }
.btn-ghost { --btn-bg: rgba(245, 245, 245, .12); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--accent-press); }
  .btn-ghost:hover { --btn-bg: rgba(245, 245, 245, .2); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(4px); } }
.link-arrow:active::after { transform: translateX(4px); }

/* ---------- Barra de navegación */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 max(var(--gutter), calc((100% - var(--maxw)) / 2));
  background: rgba(11, 11, 13, .94);
  transition: background-color 320ms var(--ease-out);
}
/* En la portada la barra es transparente (el logo grande ya está centrado) y se rellena al bajar */
.bar:not(.is-shown):not([data-solid]) { background: transparent; }
.bar:not(.is-shown):not([data-solid]) .bar-brand { opacity: 0; pointer-events: none; }
.bar-brand { transition: opacity 320ms var(--ease-out); }
.bar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; margin-right: auto; }
.bar-brand img { width: 40px; height: 40px; }
.bar-links { display: none; gap: 4px; }
.bar-links a { padding: 10px 12px; font-weight: 500; text-decoration: none; border-radius: 999px; transition: background-color var(--dur) var(--ease-out); }
.bar-links a:hover { background: var(--surface); }
.bar-cta { display: none; }
.bar-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--surface); cursor: pointer; transition: transform 160ms var(--ease-out); }
.bar-toggle:active { transform: scale(.94); }
.bar-toggle-lines, .bar-toggle-lines::before, .bar-toggle-lines::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.bar-toggle-lines { position: relative; }
.bar-toggle-lines::before, .bar-toggle-lines::after { content: ""; position: absolute; left: 0; }
.bar-toggle-lines::before { top: -6px; }
.bar-toggle-lines::after { top: 6px; }
@media (min-width: 1000px) {
  .bar-links, .bar-cta { display: flex; }
  .bar-toggle { display: none; }
}

/* Menú de pantalla completa: la mancha del logo crece desde el botón */
.menu { position: fixed; inset: 0; z-index: 60; overflow: hidden; }
.menu[hidden] { display: none; }
.menu-splash {
  position: absolute; top: calc(32px - 130vmax); right: calc(var(--gutter) + 24px - 130vmax); width: 260vmax; height: 260vmax;
  color: var(--surface);
  transform: scale(.02); opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 150ms linear 150ms;
}
.menu.is-open .menu-splash { transform: scale(1); opacity: 1; transition: transform 520ms var(--ease-out), opacity 150ms linear; }
.menu-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 88px var(--gutter) 32px; overflow-y: auto; }
.menu-close { position: absolute; top: 8px; right: var(--gutter); width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--bg); font-size: 1.75rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 200ms linear 200ms; }
.menu.is-open .menu-close { opacity: 1; }
.menu ul { display: grid; gap: 4px; }
.menu li { opacity: 0; transform: translateY(20px); transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: calc(140ms + var(--i) * 45ms); }
.menu.is-open li { opacity: 1; transform: none; }
.menu li a { display: block; padding: 6px 0; font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-decoration: none; }
.menu li:last-child a { color: #fff; }
.menu li:last-child a::after { content: " →"; color: var(--accent); }
.menu-foot { display: flex; gap: 24px; margin-top: auto; padding-top: 32px; font-weight: 500; opacity: 0; transition: opacity 300ms linear 400ms; }
.menu.is-open .menu-foot { opacity: 1; }
.menu:not(.is-open) :is(li, .menu-close, .menu-foot) { transition-duration: 150ms; transition-delay: 0s; }
body.menu-lock { overflow: hidden; }

/* ---------- Pantalla de carga con la portada */
/* Si site.js no llega a cargar, la pantalla de carga se retira sola a los 6 s */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); transition: opacity 500ms var(--ease-out), visibility 0s linear 500ms; animation: loader-out 400ms var(--ease-out) 6s forwards; }
.loader img:first-of-type { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.loader-mark { position: relative; display: grid; justify-items: center; gap: 20px; }
.loader-mark img { width: 120px; height: 120px; animation: pulse 1.6s var(--ease-in-out) infinite; }
.loader-bar { display: block; width: 140px; height: 4px; border-radius: 4px; background: rgba(245, 245, 245, .25); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: load 4s var(--ease-out) forwards; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader.is-done .loader-bar span { animation: none; transform: none; }
html:not(.js) .loader { display: none; }
@keyframes pulse { 50% { transform: scale(1.05); } }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Fondos de escena (fotos y vídeos oscurecidos) */
.zone-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.zone-bg img, .zone-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zone-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--scrim); pointer-events: none; }

/* ---------- Portada: frases sobre fotos, cada panel se queda fijo y el siguiente lo cubre */
.story { position: relative; }
.story-panel { position: sticky; top: 0; isolation: isolate; height: 100vh; height: 100svh; display: grid; overflow: hidden; }
.story-panel .zone-bg::after { background: rgba(11, 11, 13, .34); }
.story-panel--first .zone-bg::after { background: rgba(11, 11, 13, .42); }
.story-copy { position: relative; z-index: 3; align-self: end; padding-bottom: clamp(48px, 10vh, 120px); }
.story-copy .h1 { max-width: 28ch; }
.story-copy--right { text-align: right; }
.story-copy--right .h1 { margin-left: auto; }
.story-copy--first { display: grid; gap: 20px; }
.story-copy--first .h1 { max-width: 12ch; }
.brand { position: absolute; top: clamp(20px, 4vh, 40px); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; text-align: center; z-index: 3; }
.brand-logo { width: clamp(72px, 9vw, 104px); height: auto; aspect-ratio: 1; }
.brand-name { font-size: var(--fs-h3); font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.status { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot--on { background: #3BD16F; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .story-panel .bg-pic img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
  }
}

/* ---------- Escenas de sección */
.zone { position: relative; display: grid; min-height: 100vh; min-height: 100svh; padding-block: var(--section-y); isolation: isolate; }
.zone > .zone-bg { z-index: -1; }
.zone-body { position: relative; display: grid; align-content: center; }
.zone--left .zone-body { justify-items: start; }
.zone--right .zone-body { justify-items: end; }
.zone--center .zone-body { justify-items: center; text-align: center; }
.panel { display: grid; gap: 20px; justify-items: start; width: 100%; max-width: 560px; padding: clamp(24px, 4vw, 48px); background: rgba(28, 28, 34, .9); border-radius: var(--radius); }
.panel p { color: var(--ink); }
.panel .btn { margin-top: 8px; }

.hours { display: grid; gap: 4px; margin: 20px 0 24px; }
.hours span { font-size: var(--fs-h3); font-weight: 500; }
.hours strong { font-size: var(--fs-h1); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.zone--center .status { justify-content: center; }

.phones { display: grid; gap: 12px; width: 100%; }
.phones li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.phone { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.01em; text-decoration: none; }

/* Oferta */
.zone--menu .zone-bg::after { background: rgba(11, 11, 13, .6); }
/* La foto nueva aparece encima de la anterior, que sigue visible debajo: sin pasar por negro */
.crossfade-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.crossfade-item.is-on { opacity: 1; z-index: 1; }
.crossfade-item.is-under { opacity: 1; transition: none; }
.menu-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.menu-cols { display: grid; gap: 56px; }
.menu-list { display: grid; gap: 24px; align-content: start; }
.menu-list ul { display: grid; gap: 22px; }
.dish { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.dish-pic { width: 64px; height: 64px; -webkit-mask: url("/assets/img/splash.svg") center / contain no-repeat; mask: url("/assets/img/splash.svg") center / contain no-repeat; background: var(--surface-2); }
.dish-pic img { width: 100%; height: 100%; object-fit: cover; }
.dish-pic--mark { width: 28px; height: 28px; margin-left: 18px; background: var(--accent); }
.dish-text { display: grid; gap: 2px; }
.dish-text strong { font-weight: 600; }
.dish-text span { color: var(--muted); max-width: 44ch; }
.menu-list .btn { justify-self: start; margin-top: 8px; }

/* Servicios */
.services { max-width: 680px; }
.services dl { display: grid; gap: 24px; width: 100%; margin-top: 8px; }
.services dl > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; }
.services dl > div::before { content: ""; grid-row: span 2; width: 28px; height: 28px; margin-top: 2px; background: var(--accent); -webkit-mask: url("/assets/img/splash.svg") center / contain no-repeat; mask: url("/assets/img/splash.svg") center / contain no-repeat; }
.services dt { font-size: var(--fs-h3); font-weight: 600; }
.services dd { color: var(--muted); }
.panel--wide { max-width: 820px; }

/* Vídeo encadenado */
.seq video { opacity: 0; transition: opacity 500ms linear; }
.seq video.is-on { opacity: 1; z-index: 1; }
.seq video.is-under { opacity: 1; transition: none; }
.zone--video .zone-bg::after, .zone--book .zone-bg::after { background: rgba(11, 11, 13, .5); }
.two { display: grid; gap: 20px; }
.two p { color: var(--muted); }
.seq-toggle { position: absolute; right: var(--gutter); bottom: 20px; z-index: 2; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(28, 28, 34, .9); font-size: var(--fs-small); font-weight: 500; cursor: pointer; }
.seq-toggle { transition: transform 160ms var(--ease-out); }
.seq-toggle:active { transform: scale(.97); }

/* Redes */
.social { padding-block: var(--section-y); background: var(--bg); }
.social-grid { display: grid; gap: 48px; align-items: center; }
.social-copy { display: grid; gap: 20px; justify-items: start; max-width: 520px; }
.playlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.playlist button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface); font-weight: 500; cursor: pointer; transition: background-color var(--dur) var(--ease-out), transform 160ms var(--ease-out); }
.playlist button:active { transform: scale(.97); }
.playlist button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.player { justify-self: center; width: min(100%, 360px, calc((100svh - 140px) * 406 / 720)); }
.player video { width: 100%; height: auto; aspect-ratio: 406 / 720; object-fit: cover; border-radius: var(--radius); background: var(--surface); }

/* Reservas: el formulario como un cupón para recortar */
.zone--book .zone-body { justify-items: center; }
.coupon { --notch: 14px; position: relative; display: grid; width: 100%; max-width: 1040px; background: var(--surface); border-radius: var(--radius); }
.coupon-side { display: grid; gap: 12px; align-content: start; padding: 32px 24px 28px; border-bottom: 5px dotted var(--bg); }
.form { display: grid; gap: 18px; padding: 28px 24px 32px; }
.row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 1rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--surface-2); border: 2px solid transparent; border-radius: 12px;
  font-size: 1rem; color: var(--ink);
  transition: border-color var(--dur) var(--ease-out);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8E8E98; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #F26B6B !important; }
.field-err { color: #FF9A9A; font-size: var(--fs-small); min-height: 0; }
.field-err:empty { display: none; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; }
.turnos-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.turno { position: relative; cursor: pointer; }
.turno input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.turno span { display: grid; gap: 2px; min-height: 64px; padding: 10px 12px; background: var(--surface-2); border: 2px solid transparent; border-radius: 12px; transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform 160ms var(--ease-out); }
.turno small { color: var(--muted); font-size: var(--fs-small); line-height: 1.3; }
.turno input:checked + span { border-color: var(--accent); background: rgba(37, 99, 235, .16); }
.turno input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.turno input:disabled + span { opacity: .45; cursor: not-allowed; }
.turno:active span { transform: scale(.98); }
.more { background: var(--surface-2); border-radius: 12px; padding: 0 16px; }
.more summary { min-height: 52px; display: flex; align-items: center; font-weight: 500; cursor: pointer; }
.more[open] { padding-bottom: 16px; }
.more .field { margin-top: 12px; }
.more .field input:not([type="checkbox"]), .more .field textarea { background: var(--surface); }
.check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-weight: 400; font-size: 1rem; }
.check .field-err { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: campo trampa oculto */
.form-msg { padding: 14px 16px; border-radius: 12px; background: rgba(242, 107, 107, .14); color: #FFD0D0; }
.form-msg.is-ok { background: rgba(37, 99, 235, .16); color: var(--ink); }
.form-note { text-align: center; }
.done { display: grid; gap: 16px; justify-items: start; padding: 40px 24px; }
.done:focus { outline: none; }

/* ---------- Pie */
.foot { padding: var(--section-y) 0 40px; background: var(--surface); }
.foot-mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(120px, 22vw, 300px); margin-bottom: 56px; }
.foot-mark span { flex: 1; display: grid; place-items: end center; height: var(--h); padding-bottom: .06em; background: var(--bg); border-radius: 8px 8px 0 0; font-size: clamp(1.5rem, 6.4vw, 6rem); font-weight: 700; line-height: 1; transition: translate 400ms var(--ease-out); }
.foot-mark span:is(:nth-child(1), :nth-child(6)) { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .foot-mark span:hover { translate: 0 -6px; } }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.foot-h { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.foot-grid ul { display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--muted); transition: color var(--dur) var(--ease-out); }
.foot-grid a:hover { color: var(--ink); }
.foot-grid address, .foot-grid p { color: var(--muted); }
.foot-grid p { margin-top: 8px; }
.foot-last { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Páginas interiores (legal, reserva) */
.page { padding: 128px 0 var(--section-y); }
.page-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 48px; }
.prose { max-width: 62ch; display: grid; gap: 16px; }
.prose h2 { font-size: var(--fs-h3); font-weight: 600; margin-top: 24px; }
.prose ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 6px; }
.prose p, .prose li { color: #E2E2E8; }
.card { display: grid; gap: 16px; max-width: 640px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border-radius: var(--radius); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.kv dt { color: var(--muted); }

/* ---------- Entradas al hacer scroll (solo con JS; sin JS todo se ve)
   Se usa la propiedad `translate` para no pisar el `transform` de pulsación de los botones */
.js .reveal, .js .reveal-group > * { opacity: 0; translate: 0 16px; transition: opacity 400ms var(--ease-out), translate 500ms var(--ease-out); }
.js .reveal-group > * { transition-delay: calc(var(--d, 0) * 60ms); }
.js .is-in.reveal, .js .is-in.reveal-group > * { opacity: 1; translate: none; }
.js .reveal-group > .btn, .js .reveal > .btn {
  transition: opacity 400ms var(--ease-out) calc(var(--d, 0) * 60ms), translate 500ms var(--ease-out) calc(var(--d, 0) * 60ms),
              transform 160ms var(--ease-out), background-color var(--dur) var(--ease-out);
}
.js .words > span { display: inline-block; opacity: 0; translate: 0 .35em; transition: opacity 400ms var(--ease-out), translate 500ms var(--ease-out); transition-delay: calc(var(--w) * 45ms + 60ms); }
.js .is-in .words > span, .js .words.is-in > span { opacity: 1; translate: none; }

/* Mensajes del formulario */
.form-msg:not([hidden]), .field-err:not(:empty) { animation: msg-in 200ms var(--ease-out); }
.done:not([hidden]) { animation: done-in 300ms var(--ease-out); }
.more[open] .field { animation: msg-in 220ms var(--ease-out) both; }
.more[open] .field:nth-of-type(2) { animation-delay: 40ms; }
.more[open] .field:nth-of-type(3) { animation-delay: 80ms; }
@keyframes msg-in { from { opacity: 0; translate: 0 -4px; } }
@keyframes done-in { from { opacity: 0; translate: 0 8px; } }

/* ---------- Tablet y escritorio */
@media (min-width: 720px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .menu-cols { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
@media (min-width: 960px) {
  .coupon { grid-template-columns: 340px 1fr;
    -webkit-mask: radial-gradient(circle var(--notch) at 340px 0, transparent 98%, #000), radial-gradient(circle var(--notch) at 340px 100%, transparent 98%, #000); /* taste-skill-ignore: muescas del cupón (máscara, no relleno) */
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .coupon-side { padding: 48px 40px; border-bottom: 0; border-right: 5px dotted var(--bg); }
  .form { padding: 48px 48px 40px; }
  .done { padding: 64px 48px; }
}

/* ---------- Transición entre páginas: un círculo, como el logo, descubre la página nueva */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: page-in 500ms var(--ease-out) both; }
@keyframes page-in {
  from { clip-path: circle(0% at 50% 40%); }
  to { clip-path: circle(75% at 50% 40%); }
}

/* ---------- Menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .reveal-group > *, .js .words > span { translate: none; transition: opacity 200ms linear !important; }
  ::view-transition-new(root) { animation: none; }
  .menu-splash { transform: none; }
}

/* Texto sobre fotos: blanco pleno con una sombra suave para que se lea sobre cualquier zona de la imagen */
.story-copy, .brand, .zone-body > :not(.panel), .loader-mark { color: var(--ink); text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 28px rgba(0, 0, 0, .35); }
.story-copy .btn, .zone-body .btn { text-shadow: none; }

/* Frases de la portada centradas en su foto */
.story-copy { align-self: center; justify-self: stretch; padding-block: 0; text-align: center; }
.story-copy .h1, .story-copy--right .h1 { margin-inline: auto; }
.story-copy--first { justify-items: center; padding-top: clamp(150px, 22vh, 220px); }
.story-copy--first .lead { max-width: 46ch; margin-inline: auto; }
.story-copy--first .actions, .story-copy--first .status { justify-content: center; }
