/* =========================================================
   Casa Emeterio · Fuego y piedra
   Tokens primero; componentes y secciones después.
   ========================================================= */

@font-face {
  font-family: 'Ibarra Real Nova';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/IbarraRealNova-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/InstrumentSans-normal.woff2) format('woff2');
}

:root {
  /* Primitivos */
  --c-crema: #F3EEE5;
  --c-crema-2: #EAE2D4;
  --c-piedra: #C7B9A6;
  --c-piedra-claro: #DCD1C1;
  --c-bronce: #A88459;
  --c-bronce-claro: #C9A877;
  --c-burdeos: #541F2A;
  --c-burdeos-900: #3A141D;
  --c-oliva: #343D30;
  --c-carbon: #24211F;
  --c-carbon-900: #171412;
  --c-tinta-suave: #5E5750;

  /* Semánticos */
  --bg: var(--c-crema);
  --fg: var(--c-carbon);
  --fg-muted: var(--c-tinta-suave);
  --line: rgba(36, 33, 31, 0.16);
  --accent: var(--c-burdeos);
  --focus: var(--c-bronce);
  --on-dark: var(--c-crema);
  --on-dark-muted: rgba(243, 238, 229, 0.72);
  --line-dark: rgba(243, 238, 229, 0.2);

  /* Tipografía */
  --font-serif: 'Ibarra Real Nova', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: clamp(3.6rem, 13.2vw, 12rem);
  --fs-h2: clamp(2.35rem, 5.6vw, 5.4rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.45vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  /* Espacio */
  --gutter: clamp(1rem, 4.2vw, 4.5rem);
  --max: 1480px;
  --section: clamp(6rem, 13vw, 12rem);
  --header-h: 84px;
  --header-h-compact: 64px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 180ms;
  --dur: 240ms;

  /* Capas */
  --z-header: 50;
  --z-cta: 40;
  --z-menu: 60;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h-compact); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul[role='list'], ol { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--c-burdeos); color: var(--c-crema); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--c-carbon); color: var(--c-crema); padding: 0.75rem 1rem;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-muted); max-width: 38ch; text-wrap: pretty; }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-muted); }

/* ---------- Botones y enlaces ---------- */
.btn {
  --btn-bg: var(--c-burdeos);
  --btn-fg: var(--c-crema);
  --btn-hover: var(--c-burdeos-900);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.6rem;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  line-height: 1; text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bg); border-radius: 2px;
  overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleY(1); }
}
.btn:active { transform: scale(0.97); }
.btn--light, [data-header='dark'] .btn--solid {
  --btn-bg: var(--c-crema); --btn-fg: var(--c-carbon); --btn-hover: #FFFFFF;
}
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--c-carbon); --btn-hover: var(--c-carbon);
  border-color: currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover { color: var(--c-crema); border-color: var(--c-carbon); }
}
.btn--big { min-height: 60px; padding: 0 2.2rem; font-size: 1.05rem; }

.link-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 44px;
  font-weight: 500; font-size: 0.975rem;
  text-decoration: none;
  color: inherit;
}
.link-arrow::after {
  content: '→';
  font-family: var(--font-sans);
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow > span, .link-arrow { background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.85em) / 100% 1px no-repeat; }
.link-arrow { background-size: 0 1px; transition: background-size var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { background-size: calc(100% - 1.6em) 1px; }
  .link-arrow:hover::after { transform: translateX(4px); }
}
.link-arrow--light { color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 300ms var(--ease-out);
}
.site-header::after {
  content: ''; position: absolute; inset: auto 0 0; height: 1px;
  background: currentColor; opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.site-header__inner {
  height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2rem;
  transition: transform 300ms var(--ease-out);
}
/* Compacta sin tocar el layout: la barra sube 20px y el contenido baja 10px, queda una banda de 64px */
.site-header.is-compact { transform: translateY(-20px); }
.site-header.is-compact .site-header__inner { transform: translateY(10px); }
.site-header.is-compact::after { opacity: 0.12; }
.site-header.is-compact[data-theme='dark'] { background: rgba(23, 20, 18, 0.94); }
.site-header.is-compact[data-theme='light'] { background: rgba(243, 238, 229, 0.96); color: var(--c-carbon); }
.site-header.is-compact[data-theme='wine'] { background: rgba(58, 20, 29, 0.95); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header[data-theme='light'] .btn--header { --btn-bg: var(--c-burdeos); --btn-fg: var(--c-crema); --btn-hover: var(--c-burdeos-900); }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.32em;
  font-family: var(--font-serif); font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; margin-right: auto;
  min-height: 44px; align-items: center;
}
.wordmark__casa { font-size: 0.62em; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 500; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: clamp(1.2rem, 2vw, 2.2rem); list-style: none; }
.site-nav a {
  position: relative; display: inline-block; padding: 0.6rem 0;
  font-size: 0.925rem; font-weight: 500; text-decoration: none;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.35rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.btn--header { min-height: 42px; padding: 0 1.15rem; font-size: 0.9rem; display: none; }
.site-header[data-theme='dark'] .btn--header { --btn-bg: var(--c-crema); --btn-fg: var(--c-carbon); --btn-hover: #FFFFFF; }
.site-header[data-theme='wine'] .btn--header { --btn-bg: var(--c-crema); --btn-fg: var(--c-burdeos); --btn-hover: #FFFFFF; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 44px; min-width: 44px; padding: 0 0.25rem;
  font-size: 0.925rem; font-weight: 500;
}
.menu-toggle__lines { position: relative; width: 22px; height: 10px; }
.menu-toggle__lines i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.menu-toggle__lines i:first-child { top: 0; }
.menu-toggle__lines i:last-child { top: 8.5px; }
.menu-toggle[aria-expanded='true'] .menu-toggle__lines i:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__lines i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 1080px) {
  .site-nav { display: block; }
  .btn--header { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--c-carbon-900); color: var(--on-dark);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ol { counter-reset: m; }
.mobile-menu li { counter-increment: m; border-top: 1px solid var(--line-dark); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0; min-height: 56px;
  font-family: var(--font-serif); font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.1;
  text-decoration: none;
}
.mobile-menu li a::before { content: counter(m, decimal-leading-zero); font-family: var(--font-sans); font-size: 0.8rem; color: var(--on-dark-muted); min-width: 1.6rem; }
.mobile-menu__foot { display: grid; gap: 1rem; padding-top: 2rem; }
.mobile-menu__foot .btn { --btn-bg: var(--c-crema); --btn-fg: var(--c-carbon); width: 100%; }
.mobile-menu__tel { font-family: var(--font-serif); font-size: 1.6rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mobile-menu__foot p { color: var(--on-dark-muted); font-size: var(--fs-small); }
.menu-open .site-header { color: var(--on-dark); background: transparent !important; z-index: calc(var(--z-menu) + 1); }
.menu-open .site-header::after { opacity: 0 !important; }
.menu-open .btn--header { visibility: hidden; }
.menu-open { overflow: hidden; }

/* =========================================================
   01 · Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: end;
  color: var(--on-dark);
  background: var(--c-carbon-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 30% 55%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(18, 14, 12, 0.92) 0%, rgba(18, 14, 12, 0.55) 34%, rgba(18, 14, 12, 0.08) 62%, rgba(18, 14, 12, 0.5) 100%);
}
.hero__content {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--header-h) + 4rem) var(--gutter) clamp(5.5rem, 12vh, 8.5rem);
}
.hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: var(--fs-display); line-height: 0.9; letter-spacing: -0.03em;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; }
.hero__foot { display: grid; gap: 1.75rem; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 30ch; color: var(--on-dark); margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.hero__seal {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 4vh);
  width: clamp(92px, 11vw, 148px); aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--on-dark);
}
.hero__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__seal text { fill: currentColor; font-family: var(--font-sans); font-size: 12.5px; text-transform: uppercase; }
.hero__seal span { font-family: var(--font-serif); font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.hero__caption {
  display: none;
  position: absolute; right: var(--gutter); bottom: 2rem; margin: 0;
  font-size: 0.8rem; color: var(--on-dark-muted); max-width: 26ch; text-align: right;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 44px; height: 72px; display: grid; justify-items: center;
}
.hero__scroll span { width: 1px; height: 100%; background: rgba(243, 238, 229, 0.25); position: relative; overflow: hidden; }
.hero__scroll span::after {
  content: ''; position: absolute; inset: 0; background: var(--c-crema);
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll span::after { animation: drip 2.4s linear 2.2s 3; }
}
@keyframes drip { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

@media (min-width: 900px) {
  .hero__media img { object-position: 50% 55%; }
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; }
  .hero__caption { display: block; }
  .hero__scroll { left: auto; right: auto; left: var(--gutter); transform: none; }
}

/* =========================================================
   02 · Historia
   ========================================================= */
.historia { position: relative; padding: var(--section) 0; overflow: hidden; }
.historia__year {
  display: flex; justify-content: center;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(9rem, 39vw, 38rem); line-height: 0.78; letter-spacing: -0.045em;
  color: var(--c-piedra-claro);
  user-select: none; pointer-events: none;
  margin-bottom: -0.1em;
  overflow: hidden; padding-top: 0.06em;
}
.historia__year span { display: inline-block; }
.historia__intro { position: relative; display: grid; gap: 2rem; }
.historia__title { max-width: 19ch; }
.historia__body { max-width: 46ch; }
.historia__body p:not(.lead) { color: var(--fg-muted); }
.historia__lower { margin-top: clamp(3.5rem, 7vw, 6rem); }
.historia__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ledger { margin-top: clamp(2.5rem, 6vw, 5rem); padding-inline: var(--gutter); }
.ledger__row {
  display: grid; grid-template-columns: minmax(7.5rem, 0.8fr) 2fr; gap: 1.25rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.ledger__row:last-child { border-bottom: 1px solid var(--line); }
.ledger__num { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; color: var(--accent); }
.ledger__row p { margin: 0; color: var(--fg-muted); max-width: 40ch; }
.historia__quote { margin-top: clamp(5rem, 10vw, 9rem); }
.historia__quote blockquote p {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.18; letter-spacing: -0.012em; max-width: 26ch; margin: 0;
  text-wrap: balance;
}
.historia__quote figcaption { margin-top: 1.5rem; color: var(--fg-muted); font-size: var(--fs-small); }

@media (min-width: 900px) {
  .historia__intro { grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
  .historia__title { grid-column: 1 / span 9; }
  .historia__body { grid-column: 8 / span 5; margin-top: 2.5rem; }
  .historia__lower {
    display: grid; grid-template-columns: 7fr 5fr; align-items: center;
    gap: clamp(2.5rem, 5vw, 6rem);
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .historia__photo img { aspect-ratio: 5 / 4; }
  .ledger { margin: 0; padding: 0; }
  .historia__quote blockquote, .historia__quote figcaption { margin-left: 16.6%; }
}

/* Revelado con máscara (lo activa JS) */
.reveal-img { overflow: hidden; }

/* =========================================================
   03 · Horno
   ========================================================= */
.horno {
  position: relative;
  background: var(--c-carbon-900); color: var(--on-dark);
  padding: var(--section) 0;
}
.horno__stage { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 2.5rem; }
.horno__title { max-width: 12ch; }
.horno__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
.horno__img { position: absolute; inset: 0; }
.horno__img img { width: 100%; height: 100%; object-fit: cover; }
.horno__img--oven img { object-position: 60% 45%; }
.horno__img--plate img { object-position: 62% 60%; }
.horno__img--plate { clip-path: inset(100% 0 0 0); }
.horno__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 14, 12, 0.94) 0%, rgba(18, 14, 12, 0.78) 24%, rgba(18, 14, 12, 0) 52%); pointer-events: none; }
.horno__steps { display: grid; gap: 1.75rem; max-width: 40ch; }
.horno__step p { font-size: var(--fs-lead); line-height: 1.5; color: var(--on-dark); }
.horno__step .small { color: var(--on-dark-muted); font-size: var(--fs-small); margin: 1rem 0 1.5rem; }
.price-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.price-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); }
.price-list dt { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.25; }
.price-list dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.05rem; }

/* Sin movimiento o sin JS: las dos fotos, una tras otra */
html:not(.gsap-on) .horno__frame { aspect-ratio: auto; display: grid; gap: 1rem; background: none; }
html:not(.gsap-on) .horno__img { position: relative; clip-path: none; }
html:not(.gsap-on) .horno__img img { aspect-ratio: 3 / 2; height: auto; }
html:not(.gsap-on) .horno__veil { display: none; }

@media (min-width: 900px) {
  html.gsap-on .horno { padding: 0; height: 320vh; }
  html.gsap-on .horno__stage {
    position: sticky; top: 0; height: 100vh; max-width: none; padding: 0;
    display: block; overflow: hidden;
  }
  html.gsap-on .horno__frame {
    position: absolute; inset: 0; aspect-ratio: auto;
    clip-path: inset(30% 8% 34% 42%);
  }
  html.gsap-on .horno__title {
    position: absolute; z-index: 2;
    left: var(--gutter); top: calc(var(--header-h) + 5vh);
    font-size: clamp(3rem, 7vw, 7.5rem); max-width: 9ch;
  }
  html.gsap-on .horno__steps {
    position: absolute; z-index: 2;
    left: var(--gutter); bottom: 9vh;
    width: min(32rem, 40vw); max-width: none;
    display: block;
  }
  html.gsap-on .horno__step { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; }
  html.gsap-on .horno__step:first-child { opacity: 1; }
  html:not(.gsap-on) .horno__frame { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   04 · Gastronomía
   ========================================================= */
.gastro { background: var(--c-crema-2); padding: var(--section) 0; }
.gastro__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.dishes { list-style: none; }
.dish { padding-bottom: clamp(2.5rem, 7vw, 4rem); }
.dish__link {
  display: block; text-decoration: none;
  padding: 1.25rem 0 1rem; border-top: 1px solid var(--line);
}
.dish__name {
  display: block;
  font-family: var(--font-serif); font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.08; letter-spacing: -0.012em;
  text-wrap: balance;
  transition: color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.dish__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; font-size: var(--fs-small); color: var(--fg-muted); }
.dish__price { font-variant-numeric: tabular-nums; color: var(--fg); }
.dish__photo img { width: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.dish__photo--wide { margin-inline: calc(-1 * var(--gutter)); }
.dish__photo--wide img { aspect-ratio: 3 / 2; }
.dish__photo--right { width: 82%; margin-left: auto; }
.dish__photo--right img { aspect-ratio: 4 / 5; }
.dish__photo--left { width: 82%; }
.dish__photo--left img { aspect-ratio: 1; }
.gastro__viewer { display: none; }

@media (min-width: 960px) {
  .gastro__head { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .gastro__layout { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
  .dish { padding: 0; }
  .dish:last-child .dish__link { border-bottom: 1px solid var(--line); }
  .dish__link { padding: 1.5rem 0 1.25rem; }
  .dish__photo { display: none; }
  .dishes:hover .dish__name, .dishes:focus-within .dish__name { opacity: 0.38; }
  .dish.is-active .dish__name { opacity: 1 !important; color: var(--accent); }
  .gastro__viewer { display: block; position: sticky; top: calc(var(--header-h-compact) + 6vh); }
  .gastro__viewer-inner { position: relative; aspect-ratio: 5 / 4; max-height: calc(100vh - var(--header-h-compact) - 14vh); width: 100%; overflow: hidden; background: var(--c-piedra); }
  .gastro__viewer-inner picture { position: absolute; inset: 0; opacity: 0; transition: opacity 240ms var(--ease-out); }
  .gastro__viewer-inner picture img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
  .gastro__viewer-inner picture.is-on { opacity: 1; }
  .gastro__count { margin: 0.9rem 0 0; font-size: var(--fs-small); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
}

/* =========================================================
   05 · Galería
   ========================================================= */
.galeria { padding: var(--section) 0; background: var(--c-crema); }
.galeria__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(6, 1fr); }
.galeria__title { grid-column: 1 / -1; margin-bottom: 1.5rem; }
.g { margin: 0; }
.g__img { overflow: hidden; }
.g__img picture { height: 100%; }
.g__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.g figcaption { margin-top: 0.7rem; font-size: var(--fs-small); color: var(--fg-muted); }
.g--a { grid-column: 1 / -1; margin-inline: calc(-1 * var(--gutter)); }
.g--a figcaption { padding-inline: var(--gutter); }
.g--a .g__img { aspect-ratio: 4 / 3; }
.g--b { grid-column: 2 / -1; margin-top: 1rem; }
.g--b .g__img { aspect-ratio: 4 / 3; }
.galeria__phrase {
  grid-column: 1 / -1; margin: 3rem 0 2rem;
  font-family: var(--font-serif); font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -0.015em;
  max-width: 14ch;
}
.g--c { grid-column: 1 / -1; }
.g--c .g__img { aspect-ratio: 3 / 2; }
.g--d { grid-column: 1 / span 4; }
.g--d .g__img { aspect-ratio: 4 / 5; }
.g--e { grid-column: 1 / -1; margin-inline: calc(-1 * var(--gutter)); }
.g--e .g__img { aspect-ratio: 16 / 9; }

@media (min-width: 900px) {
  .galeria__grid { grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
  .galeria__title { grid-column: 1 / span 8; margin-bottom: clamp(3rem, 6vw, 5rem); }
  .g--a { grid-column: 1 / span 8; margin-inline: calc(-1 * var(--gutter)) 0; }
  .g--a figcaption { padding-inline: var(--gutter) 0; }
  .g--a .g__img { aspect-ratio: 16 / 10; }
  .g--b { grid-column: 9 / span 4; align-self: end; margin: 0 0 -9vw; }
  .g--b .g__img { aspect-ratio: 4 / 5; }
  .galeria__phrase { grid-column: 2 / span 5; margin: 9vw 0 0; align-self: center; }
  .g--c { grid-column: 7 / span 6; margin-top: 14vw; }
  .g--d { grid-column: 1 / span 4; margin-top: -4vw; }
  .g--e { grid-column: 5 / span 8; margin: 6vw calc(-1 * var(--gutter)) 0 0; }
  .g--e .g__img { aspect-ratio: 21 / 10; }
}

/* =========================================================
   06 · Bodega
   ========================================================= */
.bodega {
  position: relative;
  padding: var(--section) 0 calc(var(--section) * 1.1);
  color: var(--on-dark);
  background: var(--c-burdeos-900);
}
.bodega__inner { display: grid; gap: 2.5rem; }
.bodega__title { max-width: 13ch; }
.bodega__photo { margin-inline: calc(-1 * var(--gutter)); }
.bodega__photo-clip { overflow: hidden; }
.bodega__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bodega__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin: 0 0 1.25rem; }
.bodega__num { font-family: var(--font-serif); font-size: clamp(5.5rem, 14vw, 11rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--c-bronce-claro); font-variant-numeric: tabular-nums; }
.bodega__unit { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; max-width: 13ch; }
.bodega .lead { color: var(--on-dark-muted); }
.sumiller { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; align-items: start; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.sumiller picture { background: var(--c-crema); }
.sumiller img { width: 100%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); }
.sumiller__quote { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.3; margin-bottom: 0.75rem; }
.sumiller__name { font-weight: 500; margin-bottom: 0.4rem; }
.sumiller .small { color: var(--on-dark-muted); }
.origins { padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.origins .h3 { color: var(--on-dark-muted); font-size: 1.15rem; font-family: var(--font-sans); font-weight: 500; letter-spacing: 0; }
.origins__list { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem clamp(1rem, 2vw, 1.8rem); margin-bottom: 1.5rem; font-family: var(--font-serif); line-height: 1.1; }
.origins__list li { white-space: nowrap; font-size: calc(var(--s, 1) * clamp(1.05rem, 1.7vw, 1.55rem)); letter-spacing: -0.01em; }
.origins__list sup { font-family: var(--font-sans); font-size: max(0.7rem, 0.34em); color: var(--c-bronce-claro); vertical-align: super; margin-left: 0.2em; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.bodega .small { color: var(--on-dark-muted); }

@media (min-width: 900px) {
  .bodega__inner { grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
  .bodega__title { grid-column: 1 / span 10; font-size: clamp(3.4rem, 7vw, 7.5rem); margin-bottom: clamp(3rem, 5vw, 5rem); max-width: 16ch; }
  .bodega__photo { grid-column: 1 / span 7; grid-row: 2 / span 2; margin: 0 0 0 calc(-1 * var(--gutter)); }
  .bodega__photo img { aspect-ratio: 5 / 4; }
  .bodega__facts { grid-column: 9 / span 4; grid-row: 2; align-self: start; }
  .sumiller { grid-column: 9 / span 4; grid-row: 3; align-self: end; grid-template-columns: 8.5rem 1fr; margin-top: 2.5rem; }
  .origins { grid-column: 1 / -1; margin-top: clamp(4rem, 7vw, 7rem); }
}

/* =========================================================
   07 · Carta y menú del día
   ========================================================= */
.carta { padding: var(--section) 0; }
.carta__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.carta__layout { display: grid; gap: 3rem; }
.mdd {
  background: var(--c-oliva); color: var(--on-dark);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-inline: calc(-1 * var(--gutter));
  align-self: start;
}
.mdd__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; margin: 0 0 0.5rem; }
.mdd__date { color: var(--on-dark-muted); font-size: var(--fs-small); margin-bottom: 1.75rem; }
.mdd__group + .mdd__group { margin-top: 1.5rem; }
.mdd__group h4 { margin: 0 0 0.6rem; font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-small); color: var(--c-bronce-claro); }
.mdd__group ul { list-style: none; }
.mdd__group li { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.3; padding: 0.45rem 0; border-top: 1px solid var(--line-dark); }
.mdd__price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--on-dark-muted); }
.mdd__price strong { font-family: var(--font-serif); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.mdd__price span { font-size: var(--fs-small); color: var(--on-dark-muted); max-width: 18ch; }
.mdd__note { margin-top: 1rem; font-size: var(--fs-small); color: var(--on-dark-muted); }
.mdd__body a { color: var(--on-dark); }
.mdd__source { margin-top: 1.5rem; font-size: var(--fs-small); }

.tabs__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tabs__list [role='tab'] {
  min-height: 44px; padding: 0 1rem;
  font-size: 0.925rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tabs__list [role='tab']:hover { border-color: var(--fg); }
}
.tabs__list [role='tab'][aria-selected='true'] { background: var(--c-carbon); color: var(--c-crema); border-color: var(--c-carbon); }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin: 0 0 1.25rem; }
.menu-cols { display: flex; justify-content: flex-end; gap: 0; font-size: 0.8rem; color: var(--fg-muted); margin: 0 0 0.25rem; }
.menu-cols span { width: 4.75rem; text-align: right; }
.menu-list { list-style: none; border-top: 1px solid var(--line); }
.menu-item { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.menu-item__name { flex: 1; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.3; }
.menu-item__detail { display: block; font-family: var(--font-sans); font-size: var(--fs-small); color: var(--fg-muted); margin-top: 0.2rem; line-height: 1.45; }
.menu-item__price, .menu-item__half { width: 4.75rem; flex: none; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item__half { color: var(--fg-muted); }
.menu-note { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--fg-muted); max-width: 60ch; }
.carta__more { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.carta__notes { margin-top: 2rem; font-size: var(--fs-small); color: var(--fg-muted); }

@media (min-width: 960px) {
  .carta__head { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .carta__layout { grid-template-columns: minmax(300px, 4fr) 8fr; gap: clamp(2.5rem, 5vw, 6rem); }
  .mdd { margin: 0; position: sticky; top: calc(var(--header-h-compact) + 2rem); }
}

/* =========================================================
   08 · Celebraciones
   ========================================================= */
.celebra { background: var(--c-crema-2); padding: var(--section) 0; }
.celebra__grid { display: grid; gap: 2.5rem; }
.celebra__main { margin-inline: calc(-1 * var(--gutter)); }
.celebra__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; }
.celebra__text { display: grid; gap: 1.5rem; }
.spaces { display: grid; border-top: 1px solid var(--fg); }
.space { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.space dt { font-weight: 500; }
.space dd { color: var(--fg-muted); text-align: right; }
.space__num, .space__word { font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 0.9; color: var(--fg); letter-spacing: -0.03em; display: block; }
.space__word { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.celebra__second { width: 72%; margin-left: auto; }
.celebra__second img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-index { list-style: none; border-top: 1px solid var(--line); margin-bottom: 1rem; }
.menu-index a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; min-height: 48px; align-items: baseline;
}
.menu-index a span:first-child { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.3; transition: transform var(--dur) var(--ease-out); }
.menu-index a span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .menu-index a:hover span:first-child { transform: translateX(6px); color: var(--accent); }
}
.celebra__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }

@media (min-width: 900px) {
  .celebra__grid { grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
  .celebra__main { grid-column: 1 / span 7; grid-row: 1 / span 3; margin: 0 0 0 calc(-1 * var(--gutter)); }
  .celebra__main img { aspect-ratio: auto; height: 100%; min-height: 760px; }
  .celebra__text { grid-column: 8 / span 5; grid-row: 1; padding-top: 1rem; }
  .spaces { grid-column: 8 / span 5; grid-row: 2; margin-top: 3rem; align-self: start; }
  .celebra__second { grid-column: 9 / span 4; grid-row: 3; width: auto; margin: 3rem 0 0; align-self: end; }
  .celebra__menus { grid-column: 3 / span 8; margin-top: clamp(4.5rem, 8vw, 7rem); }
  .menu-index { columns: 2; column-gap: var(--gutter); border: 0; }
  .menu-index li { break-inside: avoid; }
  .menu-index li:first-child a, .menu-index li:nth-child(5) a { border-top: 1px solid var(--line); }
}

/* =========================================================
   09 · Sobremesa
   ========================================================= */
.sobremesa {
  position: relative; min-height: 92svh;
  display: grid; align-items: center;
  color: var(--on-dark); overflow: hidden; isolation: isolate;
  background: var(--c-carbon-900);
}
.sobremesa__media { position: absolute; inset: 0; z-index: -1; }
.sobremesa__media picture, .sobremesa__media img { width: 100%; height: 100%; }
.sobremesa__media img { object-fit: cover; object-position: 30% 50%; }
.sobremesa__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 11, 10, 0.86) 0%, rgba(14, 11, 10, 0.66) 50%, rgba(14, 11, 10, 0.5) 100%); }
.sobremesa__title {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.6rem, 7.6vw, 7.6rem); line-height: 1.02; letter-spacing: -0.025em;
  text-wrap: balance;
}
.sobremesa__title .w { display: inline-block; }
@media (min-width: 900px) { .sobremesa__title { padding-right: 22vw; } }

/* =========================================================
   10 · Reserva
   ========================================================= */
.reserva {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  background: var(--c-carbon-900); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
}
.reserva__media { position: absolute; inset: 0; z-index: -1; }
.reserva__media picture, .reserva__media img { width: 100%; height: 100%; }
.reserva__media img { object-fit: cover; object-position: 40% 50%; }
.reserva__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 11, 10, 0.94) 10%, rgba(14, 11, 10, 0.45) 60%, rgba(14, 11, 10, 0.3)); }
.reserva__text { padding: var(--section) var(--gutter) clamp(4rem, 9vh, 6rem); display: grid; gap: 1.75rem; }
.reserva__title { font-size: clamp(3.2rem, 7.2vw, 7.5rem); line-height: 0.95; max-width: 12ch; }
.reserva .lead { color: var(--on-dark); }
.reserva__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.reserva__note { color: var(--on-dark-muted); }

@media (min-width: 900px) {
  .reserva { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .reserva__media { position: relative; grid-column: 2; inset: auto; z-index: 0; }
  .reserva__media::after { background: linear-gradient(to right, var(--c-carbon-900), transparent 30%); }
  .reserva__text { grid-column: 1; grid-row: 1; align-content: end; padding: var(--section) var(--gutter) 12vh max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* =========================================================
   11 · Footer
   ========================================================= */
.site-footer { background: var(--c-burdeos); color: var(--on-dark); padding-top: clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.site-footer__grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; }
.f-title { margin: 0 0 0.9rem; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; color: rgba(243, 238, 229, 0.66); }
.f-col { font-size: 1.05rem; line-height: 1.55; }
.f-col a:not(.link-arrow) { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .f-col a:not(.link-arrow):hover { text-decoration: underline; } }
.f-col address, .f-col p { margin-bottom: 0.5rem; }
.f-col p a, .social a { display: inline-flex; min-height: 40px; align-items: center; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line-dark); }
.hours dt { color: rgba(243, 238, 229, 0.8); }
.hours dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.social { list-style: none; }
.site-footer__mark {
  margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: 0 0.04em;
  font-family: var(--font-serif); font-size: 17.6vw; line-height: 0.78; letter-spacing: -0.045em;
  white-space: nowrap; text-align: center;
  color: #6E2D3A; user-select: none;
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.85rem; color: rgba(243, 238, 229, 0.74);
  border-top: 1px solid var(--line-dark);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 1.5rem; }
.site-footer__bottom a { text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .site-footer__bottom a:hover { text-decoration: underline; } }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.1fr 1fr 1.25fr 0.8fr; } }

/* ---------- Barra de reserva en móvil ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-cta);
  display: flex; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(23, 20, 18, 0.96);
  transform: translateY(110%);
  transition: transform 240ms var(--ease-drawer);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; --btn-bg: var(--c-crema); --btn-fg: var(--c-carbon); --btn-hover: #fff; }
.mobile-cta__tel { flex: none; width: 50px; display: grid; place-items: center; color: var(--c-crema); border: 1px solid var(--line-dark); border-radius: 2px; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Panel de reserva ---------- */
.booking {
  width: min(980px, calc(100% - 2rem)); height: min(820px, calc(100dvh - 2rem));
  max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 2px;
  background: var(--c-crema); color: var(--fg);
  overflow: hidden;
}
.booking[open] { display: flex; flex-direction: column; }
.booking::backdrop { background: rgba(18, 14, 12, 0.68); }
@media (prefers-reduced-motion: no-preference) {
  .booking[open] { animation: sheet-in 360ms var(--ease-drawer); }
  .booking[open]::backdrop { animation: fade-in 240ms var(--ease-out); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.booking__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.75rem 0.75rem 1.5rem; background: var(--c-carbon); color: var(--c-crema); }
.booking__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; }
.booking__close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { .booking__close:hover { background: rgba(243, 238, 229, 0.1); } }
.booking__frame { flex: 1; background: #F7F7F7; min-height: 0; }
.booking__frame iframe { width: 100%; height: 100%; border: 0; }
.booking__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom)); font-size: var(--fs-small); color: var(--fg-muted); border-top: 1px solid var(--line); }
.booking__foot p { margin: 0; }
.booking__foot a { color: var(--fg); }
@media (max-width: 699px) {
  .booking { width: 100%; height: 100dvh; border-radius: 0; margin: 0; }
}

/* ---------- Páginas interiores ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c-carbon-900); color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 8rem)) 0 clamp(3.5rem, 7vw, 6rem);
}
.page-hero--wine { background: var(--c-burdeos-900); }
.page-hero--image { min-height: min(78svh, 760px); display: grid; align-items: end; }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18, 14, 12, 0.7) 0%, rgba(18, 14, 12, 0) 22%), linear-gradient(to top, rgba(18, 14, 12, 0.92) 0%, rgba(18, 14, 12, 0.55) 45%, rgba(18, 14, 12, 0.3) 100%); }
.page-hero--wine .page-hero__media::after { background: linear-gradient(to bottom, rgba(40, 12, 19, 0.75) 0%, rgba(40, 12, 19, 0) 24%), linear-gradient(to top, rgba(58, 20, 29, 0.96) 0%, rgba(58, 20, 29, 0.62) 50%, rgba(58, 20, 29, 0.4) 100%); }
.page-hero__content { width: 100%; }
.page-hero__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3rem, 8.4vw, 7.5rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 1.5rem; max-width: 15ch; text-wrap: balance; }
.page-hero .lead { color: var(--on-dark); max-width: 46ch; }
.page-hero:not(.page-hero--image) .lead { color: var(--on-dark-muted); }
html.motion .page-hero__title .line > span { animation: line-up 1000ms var(--ease-out) 120ms both; }
html.motion .page-hero__lead, html.motion .page-hero__actions { animation: rise 800ms var(--ease-out) 420ms both; }
html.motion .page-hero__media { animation: hero-media-in 1800ms var(--ease-out) both; }
html.motion-calm .page-hero__content, html.motion-calm .page-hero__media { animation: appear 400ms var(--ease-out) both; }
.page-hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; }
.page-body { padding: clamp(3rem, 7vw, 6rem) 0 var(--section); }
.page-layout { display: grid; gap: 2.5rem; }
.page-layout > * { min-width: 0; }
.page-nav { position: sticky; top: var(--header-h-compact); z-index: 5; background: var(--bg); margin-inline: calc(-1 * var(--gutter)); padding: 0.75rem var(--gutter); border-bottom: 1px solid var(--line); }
.page-nav ul { list-style: none; display: flex; gap: 0.25rem 1.25rem; overflow-x: auto; scrollbar-width: none; }
.page-nav ul::-webkit-scrollbar { display: none; }
.page-nav a { display: inline-flex; min-height: 40px; align-items: center; white-space: nowrap; font-size: 0.925rem; font-weight: 500; text-decoration: none; color: var(--fg-muted); }
.page-nav a[aria-current] { color: var(--fg); text-decoration: underline; }
.page-section { scroll-margin-top: calc(var(--header-h-compact) + 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-section > h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
@media (min-width: 960px) {
  .page-layout { grid-template-columns: 15rem 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .page-nav { top: calc(var(--header-h-compact) + 2rem); margin: 0; padding: 0; border: 0; background: none; }
  .page-nav ul { flex-direction: column; overflow: visible; }
  .page-section { scroll-margin-top: calc(var(--header-h-compact) + 2rem); }
}

/* Menús de grupo */
.menus-grid { display: grid; gap: 1.25rem; }
.menu-card { padding: 1.75rem 0; border-top: 1px solid var(--fg); scroll-margin-top: calc(var(--header-h-compact) + 5rem); }
.menu-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.menu-card__head h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.menu-card__head span { font-family: var(--font-serif); font-size: 1.75rem; white-space: nowrap; }
.menu-card h4 { margin: 1rem 0 0.4rem; font-size: var(--fs-small); font-weight: 500; color: var(--fg-muted); }
.menu-card ul { list-style: none; }
.menu-card li { padding: 0.3rem 0; }
.menu-card :target, .menu-card:target { background: transparent; }
.menu-card:target .menu-card__head h3 { color: var(--accent); }
@media (min-width: 760px) { .menus-grid { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); } }

/* Vinos */
.wine-group { margin-bottom: 2.5rem; }
.wine-group > h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 0.25rem; padding-top: 1rem; border-top: 1px solid var(--fg); }
.wine-bodega { padding: 0.9rem 0 0.4rem; }
.wine-bodega h4 { margin: 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.wine-bodega h4 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wine-list { list-style: none; }
.wine-list li { display: flex; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.wine-list li span:first-child { flex: 1; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; }
.wine-list li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Legal */
.legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.25rem; }
.legal h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { max-width: 68ch; color: var(--fg-muted); }
.legal ul { padding-left: 1.1rem; margin-bottom: 1rem; }
.pending { background: #F6E7C8; color: #5A4214; padding: 0.05em 0.3em; border-radius: 2px; font-weight: 500; }

/* 404 */
.notfound { min-height: 100svh; display: grid; align-content: center; background: var(--c-carbon-900); color: var(--on-dark); padding: var(--header-h) var(--gutter) 3rem; }
.notfound h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.95; margin: 0 0 1.5rem; max-width: 12ch; }
.notfound p { color: var(--on-dark-muted); max-width: 40ch; font-size: var(--fs-lead); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 2rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  /* Fuera desplazamientos y escalas; se quedan los fundidos de opacidad y color */
  .hero__scroll span::after { animation: none; }
  .btn:active { transform: none; }
  .booking[open], .booking[open]::backdrop { animation: fade-in 200ms var(--ease-out); }
  .mobile-cta { transform: none; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
  .mobile-cta.is-visible { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out); }
  .site-header.is-compact, .site-header.is-compact .site-header__inner { transform: none; }
  .site-header.is-hidden { transform: none; }
  .menu-index a span:first-child, .link-arrow::after { transition: none; }
}

/* ---------- Impresión (carta) ---------- */
@media print {
  .site-header, .site-footer, .mobile-cta, .page-nav, .booking, .page-hero__actions { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; }
  body { background: #fff; }
}

@media (max-width: 599px) {
  .menu-cols span, .menu-item__price, .menu-item__half { width: 3.7rem; }
  .menu-item__name { font-size: 1.125rem; }
}

/* =========================================================
   Movimiento
   html.motion la pone un script en <head> si el usuario no pide reducir movimiento.
   html.gsap-on la pone motion.js solo cuando GSAP ha arrancado.
   ========================================================= */

/* Hero: entrada en CSS para que no dependa del JS ni del hilo principal */
@keyframes hero-media-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

html.motion .hero__media { animation: hero-media-in 2200ms var(--ease-out) both; }
html.motion .hero__title .line > span { animation: line-up 1100ms var(--ease-out) both; }
html.motion .hero__title .line:nth-child(1) > span { animation-delay: 280ms; }
html.motion .hero__title .line:nth-child(2) > span { animation-delay: 380ms; }
html.motion .hero__lead { animation: rise 900ms var(--ease-out) 760ms both; }
html.motion .hero__actions { animation: rise 900ms var(--ease-out) 840ms both; }
html.motion .hero__seal, html.motion .hero__caption, html.motion .hero__scroll { animation: appear 1200ms var(--ease-out) 1100ms both; }
html.motion .site-header { animation: appear 900ms var(--ease-out) 200ms both; }

/* Estados de partida de lo que revela GSAP (solo si GSAP está activo) */
html.gsap-on [data-rise] { opacity: 0; transform: translateY(28px); }
html.gsap-on .reveal-img > picture { clip-path: inset(100% 0 0 0); }

/* Con movimiento reducido el hero aparece con un fundido, sin desplazarse */
html.motion-calm .hero__media, html.motion-calm .hero__title, html.motion-calm .hero__foot,
html.motion-calm .site-header { animation: appear 400ms var(--ease-out) both; }
html.motion-calm .mobile-menu:not([hidden]) { animation: appear 200ms var(--ease-out); }
a[href^='tel:'] { white-space: nowrap; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
html.motion .mobile-menu:not([hidden]) { animation: menu-in 220ms var(--ease-out); }

/* ---------- Teléfono: que se sienta nativo ---------- */
html { -webkit-tap-highlight-color: transparent; }
.btn, .menu-toggle, .booking__close, [role='tab'], .mobile-cta a {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
[role='tab']:active, .menu-index a:active, .dish__link:active { opacity: 0.7; transition: opacity 100ms var(--ease-out); }
.site-header { padding-top: env(safe-area-inset-top, 0px); height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.site-header__inner { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* =========================================================
   Web multipágina: bloques de las páginas interiores
   ========================================================= */
.page-intro { margin-bottom: 2.5rem; }
.page-intro .h2 { margin-bottom: 1rem; }

/* Listas de datos (menú del día, reservas, para llevar, contacto) */
.info-list { display: grid; border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: minmax(7rem, 0.38fr) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 500; }
.info-list dd { color: var(--fg-muted); }
.info-list dd a { color: var(--fg); }
.info-list--big dd { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.3; color: var(--fg); }
.info-list--big dd a { text-decoration: none; }
.info-list--big .link-arrow { font-family: var(--font-sans); font-size: 0.975rem; margin-top: 0.5rem; }
.hours--light > div { border-bottom-color: var(--line); }
.hours--light dt { color: var(--fg-muted); }

/* Enlaces relacionados al pie de la carta */
.see-also { display: grid; gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.see-also__item { display: grid; gap: 0.25rem; padding: 1.4rem 1.5rem; background: var(--bg); text-decoration: none; transition: background-color var(--dur) var(--ease-out); }
.see-also__item span:first-child { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.15; }
.see-also__item span:last-child { font-size: var(--fs-small); color: var(--fg-muted); }
@media (hover: hover) and (pointer: fine) { .see-also__item:hover { background: var(--c-crema-2); } }
@media (min-width: 760px) { .see-also { grid-template-columns: repeat(3, 1fr); } }

/* Inicio: enlaces que llevan a cada página */
.historia__body .link-arrow { margin-top: 1.25rem; }
.gastro__head .link-arrow { justify-self: start; }
.horno__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.bodega__more { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; align-items: center; padding-top: 2.5rem; }
@media (min-width: 900px) { .bodega__more { grid-column: 1 / -1; } }
.celebra__menus--short .lead { margin-bottom: 0; }

/* Nuestra casa: producto */
.producto { padding: var(--section) 0; background: var(--c-crema-2); }
.producto__grid { display: grid; gap: 2.5rem; }
.producto__photo { margin-inline: calc(-1 * var(--gutter)); }
.producto__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.producto__list { display: grid; border-top: 1px solid var(--fg); }
.producto__list > div { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.producto__list dt { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin-bottom: 0.5rem; }
.producto__list dd { color: var(--fg-muted); max-width: 48ch; }
@media (min-width: 900px) {
  .producto__grid { grid-template-columns: 6fr 5fr; gap: 0 clamp(2.5rem, 5vw, 6rem); align-items: start; }
  .producto__grid .h2 { grid-column: 1 / -1; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
  .producto__photo { margin: 0 0 0 calc(-1 * var(--gutter)); }
  .producto__photo img { aspect-ratio: 5 / 4; }
}
.galeria__head { grid-column: 1 / -1; display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.galeria__head .galeria__title { margin: 0; }
@media (min-width: 900px) {
  .galeria__head { grid-column: 1 / span 9; margin-bottom: clamp(3rem, 6vw, 5rem); }
}

/* Bodega como página: el título va en el H1, aquí solo cifras, sumiller y orígenes */
.bodega--page { padding-top: clamp(4rem, 8vw, 7rem); }
@media (min-width: 900px) {
  .bodega--page .bodega__facts { grid-column: 1 / span 6; grid-row: 1; }
  .bodega--page .sumiller { grid-column: 8 / span 5; grid-row: 1; align-self: end; margin-top: 0; }
  .bodega--page .origins { grid-row: 2; }
}

/* Menú del día como página */
.mdd-page { padding: clamp(3.5rem, 7vw, 6rem) 0 var(--section); }
.mdd-page__grid { display: grid; gap: 3rem; }
.mdd--big { margin-inline: calc(-1 * var(--gutter)); }
.mdd--big .mdd__title { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.mdd--big .mdd__group li { font-size: 1.35rem; }
.mdd-page__info .h3 { margin-bottom: 1.25rem; }
.mdd-page__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.5rem; }
@media (min-width: 960px) {
  .mdd-page__grid { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .mdd--big { margin: 0; position: static; padding: clamp(2.5rem, 4vw, 3.5rem); }
}

/* Para llevar */
.llevar { padding: clamp(4rem, 8vw, 7rem) 0 var(--section); }
.llevar__grid { display: grid; gap: 3rem; }
.llevar .h2 { margin-bottom: 1.5rem; }
.llevar__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; align-items: center; margin-top: 2rem; }
@media (min-width: 900px) { .llevar__grid { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: end; } }

/* Celebraciones: menús */
.menus-page { padding: clamp(4rem, 8vw, 7rem) 0 var(--section); }
.menus-page .page-section > h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1rem; }
.menus-page .page-section > .lead { margin-bottom: 1.5rem; }

/* Reservas */
.reservas { padding: clamp(2.5rem, 5vw, 4.5rem) 0 var(--section); }
.reservas__grid { display: grid; gap: 3rem; }
.reservas__frame { margin-inline: calc(-1 * var(--gutter)); background: #F7F7F7; }
.reservas__frame iframe { display: block; width: 100%; height: 760px; border: 0; }
.reservas__fallback { padding: 1rem var(--gutter); margin: 0; background: var(--bg); }
.reservas__info .h3 { margin-bottom: 1.25rem; }
.reservas__call { margin-top: 2rem; display: grid; gap: 0.75rem; justify-items: start; }
.reservas__call p { margin: 0; color: var(--fg-muted); }
@media (min-width: 960px) {
  .reservas__grid { grid-template-columns: 7fr 4fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .reservas__frame { margin: 0; }
  .reservas__frame iframe { height: 640px; }
  .reservas__fallback { padding-inline: 0; }
  .reservas__info { position: sticky; top: calc(var(--header-h-compact) + 2rem); }
}

/* Contacto */
.contacto { padding: clamp(4rem, 8vw, 7rem) 0 var(--section); }
.contacto__grid { display: grid; gap: 4rem; }
.contacto__data .h3 { margin: 2.5rem 0 1rem; }
.contacto__data .small { margin-top: 1.5rem; }
.contact-form { display: grid; gap: 1.25rem; align-content: start; }
.contact-form .h3 { margin: 0; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field__opt { font-weight: 400; color: var(--fg-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: #FBF8F3; border: 1px solid var(--c-piedra); border-radius: 2px;
  padding: 0.85rem 0.9rem; min-height: 48px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--c-carbon); box-shadow: 0 0 0 3px rgba(168, 132, 89, 0.35); }
.field [aria-invalid='true'] { border-color: #9B2C2C; }
.field__error { margin: 0; font-size: var(--fs-small); color: #9B2C2C; }
.contact-form .btn { justify-self: start; }
@media (min-width: 900px) { .contacto__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); } }
