/* Mas Ferrat — sistema visual
   Una sola familia (Inter 300 / 500 / 700), fondo blanco, fotos a sangre,
   rejillas simétricas con 6px de aire y mucho espacio negativo. */

:root {
  --bg: #3b261f;                /* marrón oscuro: fondo de toda la web */
  --bg-soft: #2f1e18;
  --sand: #cac1b4;              /* beige secundario: botones, selección y detalles */
  --ink: #fff;                  /* texto en blanco */
  --ink-2: rgba(255, 255, 255, .78);
  --ink-3: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .22);
  --dim: rgba(255, 255, 255, .26);
  --accent: var(--sand);

  --gap: 6px;                   /* el margen "ínfimo" entre fotos */
  --pad: clamp(16px, 3.4vw, 52px);
  --space: clamp(104px, 13vw, 212px);
  --header-h: 84px;

  --fs-micro: 12px;
  --fs-small: 15px;
  --fs-body: 19px;
  --fs-lead: clamp(30px, 3.4vw, 54px);
  --fs-h2: clamp(46px, 6.6vw, 108px);
  --fs-h3: clamp(23px, 2vw, 30px);
  --fs-display: clamp(80px, 18vw, 300px);

  --ease: cubic-bezier(.22, .8, .16, 1);
  --ease-io: cubic-bezier(.7, 0, .25, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", Cormorant, Garamond, "Times New Roman", serif;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 500; }
::selection { background: var(--sand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--sand); color: var(--bg); padding: 10px 16px; border-radius: 0; font-size: 13px; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */

.micro { font-size: var(--fs-micro); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
.small { font-size: var(--fs-small); line-height: 1.6; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.14; letter-spacing: -.009em; }
.lead strong { font-weight: 400; font-style: italic; }
em, i { font-style: italic; font-weight: inherit; }
.h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.015em; line-height: 1; }
.h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.006em; line-height: 1.2; }
.display { font-size: var(--fs-display); font-weight: 300; letter-spacing: -.020em; line-height: .92; white-space: nowrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.accent { color: var(--accent); }
.tnum { font-variant-numeric: lining-nums tabular-nums; }
.measure { max-width: 46ch; }

.link { position: relative; display: inline-block; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link--on::after { transform: scaleX(1); }

/* ---------- Layout ---------- */

.wrap { padding-inline: var(--pad); }
.section { padding-block: var(--space); }
.section-s { padding-block: calc(var(--space) * .55); }
.center { text-align: center; }
.narrow { max-width: 1000px; margin-inline: auto; }
.stack > * + * { margin-top: 24px; }
.stack-l > * + * { margin-top: 40px; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--nav-top, 0px) + 96px); }

/* ---------- Fotos ---------- */

.media { position: relative; overflow: hidden; background: var(--ph, var(--bg-soft)); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale 1.8s var(--ease), translate .9s var(--ease), filter .8s var(--ease), opacity .8s var(--ease), transform .9s var(--ease);
}
.r-45 { aspect-ratio: 4 / 5; }
.r-34 { aspect-ratio: 3 / 4; }
.r-32 { aspect-ratio: 3 / 2; }
.r-11 { aspect-ratio: 1; }
.r-169 { aspect-ratio: 16 / 9; }
.r-219 { aspect-ratio: 21 / 9; }

.fig { position: relative; display: block; }
.fig__cap { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px 0; }
.fig__cap .faint { flex: none; }
.grid > .fig .fig__cap { padding-inline: 10px; }

/* Rejillas con foco: al pasar el ratón, el resto se desenfoca y la foto activa se mueve con el cursor */
[data-focus] .media img { will-change: translate; }
[data-focus].is-focusing > :not(.is-active) .media img { filter: blur(7px) saturate(.55); opacity: .5; }
[data-focus].is-focusing > :not(.is-active) .fig__cap { opacity: .35; }
.fig__cap { transition: opacity .6s var(--ease); }
.is-active .media img, .media:hover img { transform: scale(1.045); }

/* Aparición al hacer scroll */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .media[data-reveal], html.js .fig[data-reveal] .media { opacity: 1; transform: none; clip-path: inset(14% 0 0 0); transition: clip-path 1.5s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
html.js .fig[data-reveal] { opacity: 1; transform: none; }
html.js .media[data-reveal] img, html.js .fig[data-reveal] .media img { scale: 1.2; }
html.js .media[data-reveal].is-in, html.js .fig[data-reveal].is-in .media { clip-path: inset(0); }
html.js .media[data-reveal].is-in img, html.js .fig[data-reveal].is-in .media img { scale: 1; }

/* Palabras y letras que suben */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .16em .32em; margin: -.14em -.16em -.32em; }
.w__i { display: inline-block; }
html.js [data-split] .w__i { transform: translateY(150%); transition: transform 1.2s var(--ease); transition-delay: calc(min(var(--i, 0), 16) * 34ms); }
html.js [data-split].is-in .w__i, html.js.is-ready .hero [data-split] .w__i, html.js.is-ready .phero [data-split] .w__i { transform: none; }

/* ---------- Botones ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px; border-radius: 0;
  background: var(--sand); color: var(--bg);
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .35s, color .35s, box-shadow .35s, translate .6s var(--ease), opacity .3s;
}
.pill:hover { background: #fff; color: var(--bg); }
.pill:disabled { opacity: .3; cursor: not-allowed; background: var(--sand); color: var(--bg); }
.pill--light { background: #fff; color: var(--bg); }
.pill--light:hover { background: var(--sand); color: var(--bg); }
.pill--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.pill--ghost:hover { background: #fff; color: var(--bg); box-shadow: inset 0 0 0 1px #fff; }
.pill--sm { height: 38px; padding: 0 20px; }
.pill--block { width: 100%; }

/* ---------- Splash ---------- */

.splash {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--ink);
  display: none; place-items: center;
  transition: clip-path 1.1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
html.js .splash { display: grid; animation: splash-safety 0s linear 3.4s forwards; }
html.js.no-splash .splash { display: none; }
.splash.is-done { clip-path: inset(0 0 100% 0); }
.splash__in { display: grid; justify-items: center; gap: 14px; }
.splash .icon-masia { width: 92px; }
.splash .icon-masia path { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; animation: draw 1.15s var(--ease) forwards; }
.splash .icon-masia path { animation-delay: calc(var(--i) * 45ms); }
.splash__name { font-size: 30px; font-weight: 300; letter-spacing: -.012em; line-height: 1; opacity: 0; transform: translateY(12px); animation: rise .9s var(--ease) .55s forwards; }
.splash__sub { opacity: 0; animation: rise .9s var(--ease) .75s forwards; color: var(--ink-3); }
.splash__bar { position: absolute; left: 50%; bottom: 14%; width: 120px; height: 1px; margin-left: -60px; background: var(--line); overflow: hidden; }
.splash__bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: bar 1.4s var(--ease-io) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes splash-safety { to { visibility: hidden; } }

/* Velo para transiciones entre páginas */
.veil { position: fixed; inset: 0; z-index: 150; background: var(--bg); pointer-events: none; opacity: 0; }
html.js .veil { animation: veil-out .7s var(--ease) .05s both; }
html.js.is-leaving .veil { animation: veil-in .38s var(--ease) both; }
@keyframes veil-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cabecera: logo pequeño en el centro, menú a ambos lados ---------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(28px, 4.4vw, 76px);
  padding-inline: var(--pad); color: var(--ink);
  transition: transform .7s var(--ease), color .45s, background-color .45s, height .5s var(--ease);
}
.header[data-theme="light"] { color: #fff; }
.header.is-solid { background: rgba(59, 38, 31, .9); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); height: 64px; }
.header.is-hidden { transform: translateY(-101%); }

.logo { grid-column: 2; display: grid; justify-items: center; gap: 5px; line-height: 1; }
.logo .icon-masia { width: 40px; transition: width .5s var(--ease), opacity .4s, margin .5s var(--ease); }
.logo__name { font-size: 20px; font-weight: 400; letter-spacing: -.009em; }
.logo__sub { font-size: 8px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; }
.header.is-solid .logo .icon-masia { width: 0; opacity: 0; margin-bottom: -5px; }

.header__cta { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; }
.header[data-theme="light"]:not(.is-solid) .header__cta { background: var(--sand); color: var(--bg); }
.header[data-theme="light"]:not(.is-solid) .header__cta:hover { background: #fff; color: var(--bg); }
/* Hamburguesa de tres rayas finas: se convierte en una X al abrir el menú */
.burger { position: absolute; left: calc(var(--pad) - 8px); top: 50%; translate: 0 -50%; display: grid; align-content: center; gap: 7px; width: 46px; height: 46px; padding: 0 8px; }
.burger span { display: block; width: 30px; height: 1px; background: currentColor; transition: transform .6s var(--ease), opacity .3s, width .5s var(--ease); }
.burger:hover span:nth-child(2) { width: 20px; }
html.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
html.menu-open .burger span:nth-child(2) { opacity: 0; }
html.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }




/* Menú a pantalla completa: secciones a la izquierda y sus fotos a la derecha */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); color: var(--ink);
  display: grid; grid-template-rows: 1fr auto; gap: 28px;
  padding: calc(var(--header-h) + 28px) var(--pad) calc(26px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .85s var(--ease-io), visibility 0s .85s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .85s var(--ease-io); }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: center; min-height: 0; }
.menu__links { display: grid; align-content: center; }
.menu__link { display: grid; grid-template-columns: clamp(40px, 4.4vw, 72px) 1fr; align-items: baseline; padding-block: clamp(2px, .7vh, 10px); opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s var(--ease), color .45s; }
.menu.is-open .menu__link { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * 60ms); }
.menu__n { color: var(--ink-3); }
.menu__link[aria-current="page"] .menu__n { color: var(--sand); }
.menu__t { font-size: clamp(44px, 6.2vw, 100px); font-weight: 300; letter-spacing: -.015em; line-height: 1.04; transition: transform .7s var(--ease); }
.menu__links:hover .menu__link:not(.is-active) { color: var(--dim); }
.menu__links:hover .menu__link.is-active .menu__t { transform: translateX(14px); }
.menu__media { display: grid; align-self: center; }
.menu__panel { grid-area: 1 / 1; display: grid; gap: 18px; align-content: center; visibility: hidden; }
.menu__panel.is-on { visibility: visible; }
.menu__lead { font-size: clamp(22px, 1.9vw, 30px); font-weight: 300; font-style: italic; line-height: 1.25; color: var(--ink-2); }
.menu__lead, .menu__tile { opacity: 0; transform: translateY(14px); filter: blur(8px); transition: opacity .55s var(--ease), transform .8s var(--ease), filter .7s var(--ease); }
.menu.is-open .menu__panel.is-on .menu__lead, .menu.is-open .menu__panel.is-on .menu__tile { opacity: 1; transform: none; filter: none; transition-delay: calc(.12s + var(--i, 0) * 60ms); }
.menu__tile { display: block; }
.menu__cap { display: grid; gap: 2px; padding: 10px 2px 0; }
.menu__name { font-size: 19px; font-weight: 500; line-height: 1.3; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
@media (max-height: 820px) { .menu__tiles .media { aspect-ratio: 16 / 9; } }
html.menu-open .header { color: var(--ink); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.menu-open .header[data-theme] .header__cta { background: var(--sand); color: var(--bg); }
@media (hover: none) { .hide-touch { display: none; } }
html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; color: #fff; overflow: hidden; background: #3b2a1b; }
.hero__media, .phero__media, .band__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img, .phero__media img, .band__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.hero__media img { animation: settle 2.6s var(--ease) both; }
html.js:not(.is-ready) .hero__media img { animation-play-state: paused; }
@keyframes settle { from { scale: 1.16; } to { scale: 1; } }
.hero__video { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__video.is-playing { opacity: 1; }
/* Velo marrón sobre los vídeos: oscurece y calienta para que el texto blanco resalte */
.hero::before, .phero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--bg); mix-blend-mode: multiply; opacity: .62; }
.hero::after, .phero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(43, 27, 22, .45) 0%, rgba(43, 27, 22, 0) 26%, rgba(43, 27, 22, 0) 46%, rgba(43, 27, 22, .62) 100%); }
.hero__content { position: absolute; inset: auto 0 0; z-index: 2; padding: 0 var(--pad) clamp(18px, 2.6vw, 38px); }
.hero__row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(18px, 2.6vw, 40px); }
.hero__row > :last-child { text-align: right; }
.hero__title { display: block; text-align: center; }
.hero__title > span { display: inline-block; }
.scroll-cue { position: absolute; left: 50%; top: calc(var(--header-h) + 18px); width: 1px; height: 0; }

/* Cabecera de páginas interiores */
.phero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: #3b2a1b; }
.phero__content { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(20px, 3vw, 44px); display: grid; gap: 18px; }
.phero__title { font-size: clamp(64px, 13vw, 220px); font-weight: 300; letter-spacing: -.020em; line-height: .9; margin-bottom: .12em; }
.phero__row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.crumbs a { opacity: .75; transition: opacity .3s; }
.crumbs a:hover { opacity: 1; }

/* ---------- Bloques ---------- */

.statement .lead { margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-top: clamp(56px, 7vw, 104px); text-align: center; }
.facts p { font-size: 19px; line-height: 1.45; }
.facts .micro { display: inline-block; margin-bottom: 8px; }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 64px); }

/* Lista grande con foto que sigue al cursor */
.offers { display: grid; }
.offer { display: grid; grid-template-columns: clamp(44px, 8vw, 140px) 1fr auto; align-items: baseline; gap: 16px; padding-block: clamp(16px, 2.2vw, 32px); }
.offer__t { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.017em; line-height: 1; transition: transform .8s var(--ease), color .5s; }
.offer__m { text-align: right; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.offer__m b { color: var(--ink); }
.offer__img { display: none; }
[data-preview-list].is-previewing .offer:not(.is-active) .offer__t { color: var(--dim); }
.offer.is-active .offer__t { transform: translateX(clamp(10px, 1.6vw, 28px)); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 45; width: clamp(220px, 21vw, 360px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden; opacity: 0; filter: blur(18px); scale: .82;
  transition: opacity .5s var(--ease), filter .7s var(--ease), scale .7s var(--ease);
}
.preview.is-on { opacity: 1; filter: blur(0); scale: 1; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.12; transition: opacity .45s var(--ease), scale 1s var(--ease); }
.preview img.is-on { opacity: 1; scale: 1; }

/* Banda a sangre */
.band { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; display: grid; place-items: center; background: #2e2a22; }
.band::after { content: ""; position: absolute; inset: 0; background: var(--bg); mix-blend-mode: multiply; opacity: .58; }
.band__content { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; }

/* Arroces */
.rice-list { counter-reset: r; }
.rice-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px; padding-block: 14px; font-size: clamp(22px, 2.2vw, 34px); font-weight: 400; letter-spacing: -.008em; line-height: 1.2; transition: color .5s, transform .7s var(--ease); }
.rice-list li .micro { color: var(--ink-3); }
.rice-list li .note { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.rice-list.is-previewing li:not(.is-active) { color: var(--dim); }
.rice-list li.is-active { transform: translateX(10px); }
[data-preview] .has-photo::after, .dish[data-preview] .dish__name::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 0; background: var(--accent); vertical-align: middle; }

/* Cita y sellos */
.quote blockquote { margin-block: 28px 28px; }
.seals { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(48px, 6vw, 88px); color: var(--ink-3); }

/* Instagram */
.ig__head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 18px; }

/* Bloque de reserva */
.book { background: var(--bg); }
.book__title { font-size: clamp(56px, 10vw, 168px); font-weight: 300; letter-spacing: -.020em; line-height: .92; margin-block: 22px 18px; }


/* Historia: la masía del logo se dibuja con el scroll mientras se cuenta Mas Ferrat */
.story { position: relative; height: 440vh; }
.story__stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--pad); padding: var(--header-h) var(--pad) 32px; overflow: hidden; }
.story__art { display: grid; justify-items: center; gap: clamp(16px, 2vw, 28px); }
.story__icon { width: min(38vw, 60vh); height: auto; }
html.js .story:not(.is-static) .story__icon path { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; }
.story__word { font-size: clamp(40px, 5.6vw, 96px); font-weight: 300; letter-spacing: -.017em; line-height: 1.05; }
html.js .story:not(.is-static) .story__word { opacity: 0; }
.story__text { display: grid; gap: 28px; max-width: 560px; }
.story__chapters { display: grid; }
.story__ch { grid-area: 1 / 1; display: grid; gap: 16px; align-content: start; }
html.js .story:not(.is-static) .story__ch { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
html.js .story:not(.is-static) .story__ch.is-on { opacity: 1; transform: none; filter: none; }
.story__t { font-size: clamp(36px, 4.4vw, 72px); font-weight: 300; letter-spacing: -.015em; line-height: 1.02; }
.story__p { font-size: clamp(20px, 1.7vw, 25px); font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.story__foot { display: flex; align-items: center; gap: 16px; }
.story__bar { position: relative; flex: 1; max-width: 240px; height: 1px; background: var(--line); overflow: hidden; }
.story__bar span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
html:not(.js) .story, .story.is-static { height: auto; }
html:not(.js) .story__stick, .story.is-static .story__stick { position: static; height: auto; padding-block: var(--space); }
html:not(.js) .story__ch, .story.is-static .story__ch { grid-area: auto; }
html:not(.js) .story__ch + .story__ch, .story.is-static .story__ch + .story__ch { margin-top: 48px; }
html:not(.js) .story__foot, .story.is-static .story__foot { display: none; }

/* ---------- Carta ---------- */

.carta-nav { position: sticky; top: var(--nav-top, 0px); z-index: 40; background: rgba(59, 38, 31, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: top .7s var(--ease); }
.carta-nav__in { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 36px); overflow-x: auto; padding: 18px var(--pad); scrollbar-width: none; }
.carta-nav__in::-webkit-scrollbar { display: none; }
.carta-nav a { flex: none; color: var(--ink-3); transition: color .3s; position: relative; }
.carta-nav a.is-current, .carta-nav a:hover { color: var(--ink); }
.carta-nav a.is-current::before { content: ""; position: absolute; left: -11px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 0; background: var(--accent); }

.carta-sec { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); padding: clamp(80px, 10vw, 160px) var(--pad); scroll-margin-top: 60px; }
.carta-sec__head { position: sticky; top: calc(var(--nav-top, 0px) + 92px); align-self: start; display: grid; gap: 14px; }
.carta-sec__head .h2 { font-size: clamp(40px, 5vw, 80px); }
.dishes { display: grid; }
.dish { display: grid; grid-template-columns: 1fr auto; column-gap: 28px; row-gap: 4px; padding-block: 16px; transition: opacity .5s, transform .7s var(--ease); }
.dish__name { font-size: clamp(21px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.006em; line-height: 1.3; }
.dish__desc { grid-column: 1; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.dish__price { grid-column: 2; grid-row: 1; font-size: 20px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.dish__tag { color: var(--accent); }
.dishes.is-previewing .dish:not(.is-active) { opacity: .32; }
.dish.is-active { transform: translateX(10px); }
.carta-note { max-width: 62ch; }

/* ---------- Menús ---------- */

.price { font-size: clamp(88px, 15vw, 248px); font-weight: 300; letter-spacing: -.021em; line-height: .9; font-variant-numeric: lining-nums tabular-nums; }
.price small { font-size: .32em; letter-spacing: -.009em; }
.menus { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--pad); }
.menus--3 { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.menu-card { display: grid; align-content: start; gap: 28px; }
.menus--3 .menu-card__body { padding-inline: clamp(12px, 1.6vw, 28px); }
.menu-card__head { display: grid; gap: 10px; }
.course { display: grid; gap: 8px; }
.course + .course { margin-top: 26px; }
.course li { font-size: clamp(20px, 1.6vw, 24px); font-weight: 400; letter-spacing: -.004em; line-height: 1.35; }
.chips-line { display: flex; flex-wrap: wrap; gap: 8px 28px; }

.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); text-align: center; }
.terms strong { display: block; font-size: clamp(34px, 4.6vw, 72px); font-weight: 300; letter-spacing: -.017em; line-height: 1; margin-bottom: 10px; }

.events { display: grid; }
.event { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: clamp(10px, 1.2vw, 16px); }
.event__t { font-size: clamp(32px, 4.6vw, 72px); font-weight: 300; letter-spacing: -.017em; line-height: 1; transition: color .5s, transform .8s var(--ease); }
.events.is-previewing .event:not(.is-active) .event__t { color: var(--dim); }
.event.is-active .event__t { transform: translateX(16px); }

/* ---------- Formularios y reservas ---------- */

.field { position: relative; margin-top: 18px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  padding: 24px 0 10px; font: inherit; font-size: 20px; font-weight: 400; color: var(--ink); outline: none;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }
.field label { position: absolute; left: 0; top: 24px; font-size: 20px; color: var(--ink-3); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label, .field input[type="date"] + label { transform: translateY(-20px) scale(.7); color: var(--ink-2); }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 16px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--sand); }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.bk { max-width: 600px; margin-inline: auto; }
.bk__steps { display: flex; justify-content: center; gap: clamp(14px, 2.6vw, 32px); margin-bottom: 36px; color: var(--ink-3); }
.bk__steps .is-current { color: var(--ink); }
.bk__steps .is-done { color: var(--ink-2); }
.bk__summary { text-align: center; margin: -18px 0 30px; color: var(--ink-2); min-height: 1.5em; }
.bk__block + .bk__block { margin-top: 40px; }
.bk__label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bk__hint { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.bk__hint strong { color: var(--ink); }
.bk__nav { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 40px; }
.bk__nav .pill { min-width: 200px; }
.bk__back { color: var(--ink-2); }
.bk__back[hidden] { display: inline-block; visibility: hidden; }
.bk__error { color: var(--accent); font-size: 16px; margin-top: 14px; min-height: 1.4em; }

.stepper { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 56px); }
.stepper--s { justify-content: space-between; gap: 18px; }
.stepper__btn { width: 52px; height: 52px; border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); font-size: 22px; font-weight: 300; line-height: 1; transition: box-shadow .3s, background-color .3s, color .3s; }
.stepper__btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__val { min-width: 2ch; text-align: center; font-size: clamp(72px, 9vw, 104px); font-weight: 300; letter-spacing: -.018em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stepper--s .stepper__btn { width: 40px; height: 40px; font-size: 18px; }
.stepper--s .stepper__val { font-size: 28px; letter-spacing: -.009em; }

.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal__arrows { display: flex; gap: 6px; }
.cal__arrows button { width: 40px; height: 40px; border-radius: 0; transition: background-color .3s; }
.cal__arrows button:hover:not(:disabled) { background: var(--bg-soft); }
.cal__arrows button:disabled { opacity: .25; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.cal__dow { padding-bottom: 8px; color: var(--ink-3); }
.cal__day { width: 100%; max-width: 46px; aspect-ratio: 1; margin-inline: auto; border-radius: 0; font-size: 18px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; transition: background-color .25s, color .25s; }
.cal__day:hover:not(:disabled) { background: var(--bg-soft); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--line); }
.cal__day[aria-pressed="true"] { background: var(--sand); color: var(--bg); box-shadow: none; }
.cal__day:disabled { color: var(--ink-3); opacity: .4; cursor: default; }
.cal__day.is-night::after { content: ""; display: block; width: 3px; height: 3px; margin: -2px auto 0; border-radius: 0; background: var(--accent); transform: translateY(6px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 44px; padding: 0 18px; border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; transition: box-shadow .25s, background-color .25s, color .25s; }
.chip:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--sand); color: var(--bg); box-shadow: none; }
.chip:disabled { opacity: .3; cursor: default; }
.chip--text { height: auto; min-height: 42px; padding: 10px 18px; text-align: left; line-height: 1.3; }

.bk__done { text-align: center; display: grid; justify-items: center; gap: 18px; }
.bk__done .icon-ok { width: 64px; height: 64px; }
.bk__done .icon-ok path { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; animation: draw 1s var(--ease) .15s forwards; }
.bk__ticket { width: 100%; display: grid; gap: 10px; margin: 12px 0 8px; text-align: left; }
.bk__ticket div { display: flex; justify-content: space-between; gap: 18px; padding-block: 4px; font-size: 18px; }
.bk__ticket dt { color: var(--ink-3); }
.bk__ticket dd { margin: 0; font-weight: 500; text-align: right; }
.bk__actions { display: grid; gap: 10px; width: 100%; }
.bk-pane { animation: pane-in .6s var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* Panel lateral de reserva */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; transition: visibility 0s .8s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20, 18, 16, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .6s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 24px clamp(20px, 3vw, 44px) 48px; transform: translateX(100%); transition: transform .8s var(--ease-io); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
html.drawer-open { overflow: hidden; }

/* CTA fijo de reserva + WhatsApp */
.fab { position: fixed; right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom)); z-index: 50; display: grid; gap: 6px; transform: translateY(calc(100% + 60px)); transition: transform .8s var(--ease); }
.fab.is-visible { transform: none; }
.fab__btn { display: grid; place-items: center; width: 52px; height: 52px; background: var(--sand); color: var(--bg); transition: background-color .3s; }
.fab__btn:hover { background: #fff; }
.fab__btn svg { width: 20px; height: 20px; }
.fab__call { display: none; }

/* Cursor lupa: un cristal desenfocado sobre el plato */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 0;
  display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  scale: 0; transition: scale .5s var(--ease); }
.cursor.is-on { scale: 1; }
@media (hover: hover) and (pointer: fine) { [data-cursor] { cursor: none; } }

/* Mapa con fachada (no carga Google hasta que se pide) */
.map { position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.62); scale: 1.06; }
.map__ui { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; text-align: center; padding: var(--pad); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* Preguntas */
.faq details { padding-block: 20px; }
.faq summary { display: flex; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-size: clamp(21px, 1.9vw, 27px); font-weight: 500; letter-spacing: -.006em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }

/* Legal */
.legal h2 { font-size: 34px; font-weight: 400; letter-spacing: -.009em; margin-top: 64px; scroll-margin-top: 100px; }
.legal p, .legal li { margin-top: 14px; color: var(--ink-2); max-width: 70ch; }
.legal mark { background: rgba(202, 193, 180, .18); color: var(--sand); padding: 0 4px; }

/* ---------- Pie ---------- */

.footer { padding-top: var(--space); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); font-size: 18px; line-height: 1.6; }
.footer__grid .micro { margin-bottom: 14px; }
.footer__grid p + p { margin-top: 14px; }
.footer__word { display: block; text-align: center; margin-top: clamp(64px, 9vw, 140px); }
.footer__word > span { display: inline-block; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); }

/* ---------- Responsive ---------- */


@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu__grid { grid-template-columns: 1fr; align-items: start; }
  .menu__media { display: none; }
  .menu__t { font-size: clamp(40px, 11vw, 64px); }
  .menu__foot { flex-direction: column; }
  .story__stick { grid-template-columns: 1fr; align-content: center; gap: 24px; padding-top: calc(var(--header-h) + 8px); }
  .story__art { gap: 8px; }
  .story__icon { width: min(52vw, 30vh); }
  .story__word { font-size: clamp(30px, 8.4vw, 46px); }
  .story__text { gap: 18px; }
  .story__t { font-size: clamp(30px, 8.2vw, 44px); }
  .story__p { font-size: 16px; }
  .header.is-solid { height: 60px; }
  .split, .carta-sec, .menus { grid-template-columns: 1fr; }
  .split__sticky, .carta-sec__head { position: static; }
  .carta-sec { gap: 28px; }
  .carta-nav__in { justify-content: flex-start; }
  .menus--3 { gap: 56px; }
  .menus--3 .menu-card__body { padding-inline: var(--pad); }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 760px) {
  :root { --gap: 4px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
  .hero__row { justify-content: center; text-align: center; }
  .hero__row > :last-child { display: none; }
  .facts, .terms { grid-template-columns: 1fr; gap: 36px; }
  .offer { grid-template-columns: 1fr; gap: 10px; padding-block: 0 44px; }
  .offer__img { display: block; margin-bottom: 8px; }
  .offer__m { text-align: left; }
  .offer__t { font-size: clamp(40px, 12vw, 64px); }
  .sec-head { flex-direction: column; align-items: start; }
  .phero__row { flex-direction: column; align-items: start; }
  .field--2 { grid-template-columns: 1fr; }
  .bk__nav .pill { min-width: 0; flex: 1; }
  .drawer__panel { width: 100%; top: 0; transform: translateY(100%); }
  .drawer.is-open .drawer__panel { transform: none; }
  .fab__call { display: grid; }
  .fab__btn { width: 48px; height: 48px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
