/* =====================================================================
   RAÍZ Cocina & Terraza — Estilos
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color: tomados del logo, el muro olivo, la madera y el oro de las sillas */
  --bosque: #1c2218;        /* noche del logo */
  --bosque-2: #232b1f;
  --olivo: #3a4630;         /* muro de paneles */
  --olivo-claro: #56643f;
  --oro: #c9a46a;
  --oro-claro: #e4cb97;
  --oro-profundo: #7a5c2a;  /* oro legible sobre crema */
  --crema: #f3ecdf;
  --crema-2: #e9dfcc;
  --madera: #6b4a33;
  --tinta: #262a20;         /* texto sobre crema */
  --tinta-suave: #4a4d40;
  --niebla: rgba(243, 236, 223, .72); /* texto secundario sobre oscuro */
  --linea-oscura: rgba(201, 164, 106, .28);
  --linea-clara: rgba(38, 42, 32, .16);

  /* Tipografía */
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;

  --t-xs: .78rem;
  --t-sm: .9rem;
  --t-base: 1.0625rem;
  --t-lead: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --t-h3: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  --t-h2: clamp(2.4rem, 1.7rem + 3vw, 4.6rem);
  --t-display: clamp(2.6rem, 1.6rem + 4.6vw, 6.4rem);

  /* Espacio */
  --gutter: clamp(1.25rem, .8rem + 2.5vw, 3rem);
  --section: clamp(5.5rem, 4rem + 8vw, 11rem);
  --max: 1320px;

  /* Movimiento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 240ms;
  --dur: 360ms;

  /* Micro-interacciones: responden al instante y se asientan suave */
  --ease-ui: cubic-bezier(.23, 1, .32, 1);     /* respuesta inmediata */
  --ease-morph: cubic-bezier(.77, 0, .175, 1); /* algo que cambia de forma en su lugar */
  --ease-panel: cubic-bezier(.32, .72, 0, 1);  /* paneles tipo iOS */
  --t-press: 130ms;   /* al tocar */
  --t-release: 240ms; /* al soltar */
  --t-ui: 260ms;      /* subrayados, pestañas, colores */
  --t-panel: 420ms;   /* menú y avisos al abrir */
  --t-panel-out: 260ms; /* al cerrar: más rápido que al abrir */
  --ease-grow: cubic-bezier(.37, 0, .63, 1); /* crecimiento: suave al inicio y al final */

  /* Capas */
  --z-header: 50;
  --z-menu: 60;
  --z-float: 70;
  --z-loader: 100;

  color-scheme: dark light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bosque);
  color: var(--crema);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
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 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--oro); color: var(--bosque); }

:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; border-radius: 2px; }
.theme-light :focus-visible { outline-color: var(--oro-profundo); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 200; padding: .75rem 1.1rem;
  background: var(--oro); color: var(--bosque); font-weight: 500; transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

/* Temas por sección */
.theme-dark { background: var(--bosque); color: var(--crema); }
.theme-olive { background: var(--olivo); color: var(--crema); }
.theme-light { background: var(--crema); color: var(--tinta); }

/* Textura de papel sutil (como la carta impresa) */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía utilitaria ---------- */
.label {
  display: inline-block;
  font-family: var(--f-sans); font-size: var(--t-xs); font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--oro);
}
.theme-light .label { color: var(--oro-profundo); }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.lead { font-family: var(--f-display); font-size: var(--t-lead); font-weight: 400; line-height: 1.5; }
.prose p + p { margin-top: 1.1em; }
.prose { font-size: 1.0625rem; max-width: 34rem; }
.theme-dark .prose, .theme-olive .prose { color: var(--niebla); }
.theme-light .prose { color: var(--tinta-suave); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--oro); --btn-fg: var(--bosque);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px; padding: .95rem 1.9rem;
  font-family: var(--f-sans); font-size: .82rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  overflow: hidden; isolation: isolate; cursor: pointer;
  touch-action: manipulation;
  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(--oro-claro);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: scale(.98); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--crema); border-color: var(--linea-oscura); }
.btn--ghost::before { background: rgba(201, 164, 106, .14); }
.btn--ghost:hover { border-color: var(--oro); }
.theme-light .btn--ghost { --btn-fg: var(--tinta); border-color: var(--linea-clara); }
.theme-light .btn--ghost::before { background: rgba(122, 92, 42, .1); }
.theme-light .btn--ghost:hover { border-color: var(--oro-profundo); }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: .6em; min-height: 44px;
  font-size: .82rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--oro);
}
.theme-light .link-line { color: var(--oro-profundo); }
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform-origin: right; transition: transform var(--dur) var(--ease-out);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: left; }

/* ---------- Marca (logos como máscara para colorearlos) ---------- */
.mark {
  display: block;
  background: linear-gradient(115deg, #a9844d 0%, #d9bc85 32%, #f1dcae 46%, #c9a46a 60%, #9c7843 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-mask: var(--mask) center / contain no-repeat;
          mask: var(--mask) center / contain no-repeat;
}
.mark--wordmark { --mask: url("../img/raiz-wordmark.png"); aspect-ratio: 1655 / 1037; }
.mark--r { --mask: url("../img/raiz-r.png"); aspect-ratio: 442 / 380; }
.mark--olive { background: var(--olivo); }
.mark--cream { background: var(--crema); }

/* ---------- La raíz dorada del logo ----------
   Dorado champaña: claro en el tronco, más oliva hacia las puntas. Sin sombra.
   El JS la hace crecer por partes en el <canvas>; mientras tanto (o sin JS)
   se ve completa gracias a la capa __base. */
.raiz-root { position: relative; display: block; width: min(300px, 74vw); aspect-ratio: 1800 / 567; margin: 0 auto; pointer-events: none; }
.raiz-root canvas, .raiz-root i { position: absolute; inset: 0; width: 100%; height: 100%; }
.raiz-root i {
  -webkit-mask: url("../img/raiz-raices.png") center / contain no-repeat;
          mask: url("../img/raiz-raices.png") center / contain no-repeat;
}
.raiz-root__base { background: linear-gradient(90deg, #6e6141 0%, #a8966b 22%, #d9c99c 50%, #a8966b 78%, #6e6141 100%); }
.raiz-root.is-growing .raiz-root__base { opacity: 0; }
/* Destello: una franja de luz la recorre una vez al terminar de crecer */
.raiz-root__shine {
  opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 220, .6) 50%, transparent 60%) 220% 0 / 250% 100% no-repeat;
}
.raiz-root.is-shining .raiz-root__shine { opacity: 1; animation: raiz-shine 1.8s ease-in-out forwards; }
@keyframes raiz-shine { to { background-position: -120% 0; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center;
  background: var(--bosque);
  pointer-events: none;
}
.loader .mark--r { width: clamp(64px, 12vw, 108px); }
html:not(.js) .loader, .loader.is-done { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(28, 34, 24, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--linea-oscura);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; min-height: 44px; }
.brand .mark--r { width: 34px; }
.brand-text { display: none; font-family: var(--f-sans); font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; color: var(--crema); }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(1.2rem, 2.2vw, 2.4rem); margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .78rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--crema);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--oro);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--oro-claro); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-size: .74rem; font-weight: 500; letter-spacing: .18em; color: var(--crema);
}
.lang-toggle span { opacity: .45; transition: opacity var(--dur-fast); }
.lang-toggle span[aria-current="true"] { opacity: 1; color: var(--oro-claro); }
.lang-toggle i { font-style: normal; opacity: .35; margin: 0 .35em; }
.header-actions .btn { display: none; min-height: 44px; padding: .7rem 1.3rem; font-size: .74rem; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
}
.menu-toggle__lines { display: grid; }
.menu-toggle__lines span { display: block; width: 26px; height: 1px; background: var(--crema); transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast); }
.menu-toggle__lines span + span { margin-top: 7px; }
.menu-open .menu-toggle__lines span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle__lines span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Barra de administración de WordPress (solo cuando el dueño tiene sesión iniciada) */
.admin-bar .site-header { top: 32px; }
.admin-bar .menu-tabs { top: calc(76px + 32px); }
.header-hidden .admin-bar .menu-tabs { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .menu-tabs { top: calc(76px + 46px); }
  .header-hidden .admin-bar .menu-tabs { top: 46px; }
}
/* En teléfonos la barra de WordPress no es fija: se va al bajar */
@media (max-width: 600px) {
  .admin-bar-scrolled .admin-bar .site-header { top: 0; }
  .admin-bar-scrolled .admin-bar .menu-tabs { top: 76px; }
  .admin-bar-scrolled.header-hidden .admin-bar .menu-tabs { top: 0; }
}

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

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--bosque);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity var(--dur) var(--ease-out); }
.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: calc(var(--z-menu) + 1); transform: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a:not(.btn) {
  display: block; padding: .35rem 0;
  font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.15; color: var(--crema);
  transform: translateY(100%); transition: transform 700ms var(--ease-out), color var(--dur-fast);
}
.mobile-menu a:not(.btn):hover { color: var(--oro-claro); }
.menu-open .mobile-menu a:not(.btn) { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 60ms; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 120ms; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 180ms; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: 240ms; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: 300ms; }
.mobile-menu__foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Raíces (SVG generado) ---------- */

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 14vh;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(28, 34, 24, .55) 0%, rgba(28, 34, 24, .82) 60%, rgba(28, 34, 24, .96) 100%),
    linear-gradient(180deg, rgba(28, 34, 24, .7) 0%, rgba(28, 34, 24, .2) 30%, rgba(28, 34, 24, 1) 100%);
}
.hero__inner { position: relative; width: 100%; max-width: 760px; text-align: center; }
.hero .mark--wordmark { width: min(88vw, 640px); margin-inline: auto; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .35)); }
.hero__lede {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 1rem + .9vw, 1.65rem); color: var(--crema);
}
.hero__ctas { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.6rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--niebla);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 46px;
  background: linear-gradient(var(--oro), transparent);
  transform-origin: top; animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-head h2 { font-size: var(--t-h2); font-weight: 300; }
.section-head h2 em { font-style: italic; color: var(--oro-claro); }
.theme-light .section-head h2 em { color: var(--oro-profundo); }

/* Divisor de raíz entre secciones */

/* ---------- Manifiesto ---------- */
.manifesto { overflow: hidden; }
.manifesto__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.manifesto__quote {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.9rem);
  line-height: 1.08; letter-spacing: -.015em; color: var(--tinta);
}
.manifesto__quote .w { display: inline-block; }
.manifesto__side { display: grid; gap: 2rem; }
.manifesto__sign { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); color: var(--oro-profundo); }
@media (min-width: 960px) {
  .manifesto__grid { grid-template-columns: 1.35fr 1fr; }
  .manifesto__side { padding-top: 1.2rem; }
}

/* ---------- Platillos de la casa ---------- */
.dishes__layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.dish-stage { display: none; }
.dish-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea-oscura); }
.dish {
  position: relative; display: grid; gap: .5rem;
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--linea-oscura);
}
.dish__media { position: relative; aspect-ratio: 4 / 3; margin-bottom: 1rem; overflow: hidden; background: var(--olivo); }
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; }
.dish__name { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 400; transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.dish__price { font-family: var(--f-display); font-size: 1.35rem; color: var(--oro); font-variant-numeric: lining-nums tabular-nums; }
.dish__desc { color: var(--niebla); max-width: 38rem; font-size: 1rem; }
.dish__tag { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--oro); opacity: .85; }

/* Marco de foto: muestra la foto real si existe; si no, un arte botánico */
.photo-frame { position: absolute; inset: 0; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .placeholder {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 164, 106, .2), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 0, 0, .25), transparent 70%),
    var(--olivo);
}
.photo-frame .placeholder::before {
  content: ""; position: absolute; inset: clamp(.9rem, 2vw, 1.4rem);
  border: 1px solid rgba(201, 164, 106, .3);
  pointer-events: none;
}
.photo-frame.is-empty img { display: none; }
.photo-frame.is-empty .placeholder { display: grid; }
.placeholder > div { display: grid; justify-items: center; gap: 1.4rem; }
.placeholder span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; color: var(--crema); padding-inline: 2rem; }

@media (min-width: 960px) {
  .dishes__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .dish-stage {
    display: block; position: sticky; top: 110px;
    aspect-ratio: 4 / 5; overflow: hidden; background: var(--olivo);
  }
  .dish-stage .photo-frame {
    opacity: 0; transform: scale(1.08); filter: blur(10px);
    transition: opacity 1.2s var(--ease-grow), transform 2.4s var(--ease-out), filter 1.2s var(--ease-grow);
  }
  .dish-stage .photo-frame.is-active { opacity: 1; transform: none; filter: blur(0); }
  .dish-stage__caption {
    position: absolute; left: 1.4rem; bottom: 1.2rem; right: 1.4rem;
    font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--crema); opacity: .8;
  }
  .dish__media { display: none; }
  .dish { cursor: default; padding-left: 0; transition: padding var(--dur) var(--ease-out); }
  .dish::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--oro);
    transition: width var(--dur) var(--ease-out);
  }
  .dish.is-active { padding-left: 3rem; }
  .dish.is-active::before { width: 2rem; }
  .dish.is-active .dish__name { color: var(--oro-claro); }
}
.dishes__more { margin-top: 2.5rem; }

/* ---------- El espacio ---------- */
.space__intro { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.gallery { display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(6, 1fr); }
.gallery figure { margin: 0; }
.gallery .frame { position: relative; overflow: hidden; background: var(--crema-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: .8rem; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--tinta-suave); }
.g-1 { grid-column: 1 / -1; }
.g-1 .frame { aspect-ratio: 4 / 5; }
.g-2 { grid-column: 1 / 4; }
.g-3 { grid-column: 4 / -1; margin-top: 3rem; }
.g-2 .frame, .g-3 .frame { aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
  .space__intro { grid-template-columns: 1fr 1fr; align-items: end; }
  .gallery { column-gap: clamp(1.5rem, 3vw, 3rem); }
  .g-1 { grid-column: 1 / 5; grid-row: 1 / 3; }
  .g-1 .frame { aspect-ratio: 4 / 5; }
  .g-2 { grid-column: 5 / -1; grid-row: 1; margin-top: 12%; }
  .g-3 { grid-column: 5 / -1; grid-row: 2; margin-top: 0; }
}
.space__quote {
  margin-top: clamp(4rem, 8vw, 7rem); text-align: center;
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.35; color: var(--tinta);
  max-width: 44rem; margin-inline: auto;
}

/* ---------- Eventos (textura del muro de paneles diagonales) ---------- */
.events { overflow: hidden; }
.events::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(45deg, transparent 0 118px, rgba(0, 0, 0, .22) 118px 120px),
    repeating-linear-gradient(-45deg, transparent 0 178px, rgba(0, 0, 0, .16) 178px 180px);
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 55%);
          mask: linear-gradient(90deg, transparent 0%, #000 55%);
}
.events__grid { position: relative; display: grid; gap: 3rem; }
.events__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linea-oscura); }
.events__list li {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--linea-oscura);
  font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem);
}
.events__list li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--oro); transform: rotate(45deg) translateY(-3px); }
.events__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 960px) {
  .events__grid { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
}

/* ---------- Reservar ---------- */
.reserve { text-align: center; overflow: hidden; }
.reserve__inner { position: relative; max-width: 46rem; margin-inline: auto; display: grid; justify-items: center; gap: 1.5rem; }
.reserve h2 { font-size: var(--t-display); font-weight: 300; }
.reserve h2 em { font-style: italic; color: var(--oro-profundo); }
.reserve__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
.reserve__note { font-size: .88rem; color: var(--tinta-suave); }

/* ---------- Visítanos + Footer ---------- */
.visit__grid { display: grid; gap: 3rem; }
.visit h3 { font-size: var(--t-h3); font-weight: 400; margin-bottom: 1rem; }
.visit address { font-style: normal; }
.visit .info { color: var(--niebla); display: grid; gap: .35rem; }
.visit .info a { color: var(--crema); border-bottom: 1px solid var(--linea-oscura); transition: border-color var(--dur-fast); }
.visit .info a:hover { border-color: var(--oro); }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dotted var(--linea-oscura); color: var(--niebla); }
.hours li span:last-child { color: var(--crema); font-variant-numeric: tabular-nums; }
.pending { color: var(--niebla); font-style: italic; font-family: var(--f-display); font-size: 1.2rem; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: repeat(3, 1fr); } }

.site-footer { padding-block: clamp(4rem, 8vw, 7rem) calc(6rem + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--linea-oscura); }
.site-footer .raiz-root { width: min(240px, 60vw); margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.site-footer .mark--wordmark { width: min(70vw, 300px); margin: 0 auto; }
.footer__thanks { margin-top: 2rem; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); color: var(--oro-claro); }
.footer__nav { margin-top: 2.5rem; }
.footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--niebla); transition: color var(--dur-fast); }
.footer__nav a:hover { color: var(--oro-claro); }
.socials { margin-top: 1.5rem; display: flex; justify-content: center; gap: .75rem; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--linea-oscura); border-radius: 50%; color: var(--crema); transition: border-color var(--dur-fast), color var(--dur-fast); }
.socials a:hover { border-color: var(--oro); color: var(--oro-claro); }
.socials svg { width: 18px; height: 18px; }
.footer__legal { margin-top: 3rem; font-size: .78rem; color: rgba(243, 236, 223, .5); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: var(--z-float);
  right: calc(1rem + env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .6rem;
  height: 56px; padding: 0 1.15rem 0 1rem; border-radius: 999px;
  background: var(--bosque-2); color: var(--crema);
  border: 1px solid var(--oro);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  touch-action: manipulation;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast), opacity var(--dur);
}
.wa-float svg { width: 24px; height: 24px; color: var(--oro-claro); flex: none; }
.wa-float:hover { transform: translateY(-3px); background: var(--olivo); }
.wa-float__text { display: none; }
@media (min-width: 640px) { .wa-float__text { display: inline; } .wa-float { right: calc(1.5rem + env(safe-area-inset-right)); bottom: calc(1.5rem + env(safe-area-inset-bottom)); } }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: calc(var(--z-float) + 1);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: .9rem 1.2rem;
  background: var(--crema); color: var(--tinta); font-size: .92rem; text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Página de menú
   ===================================================================== */
.menu-hero {
  position: relative; overflow: hidden;
  padding: calc(140px + env(safe-area-inset-top)) var(--gutter) clamp(4.5rem, 9vw, 7rem);
  text-align: center;
}
.menu-hero .raiz-root { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.menu-hero h1 { font-family: var(--f-script); font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: 1; color: var(--oro-claro); font-weight: 400; }
.menu-hero p { margin-top: 1.2rem; color: var(--niebla); font-family: var(--f-display); font-style: italic; font-size: var(--t-lead); }

.menu-tabs {
  position: sticky; top: 76px; z-index: 40;
  background: rgba(58, 70, 48, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--linea-oscura);
  transition: top var(--dur) var(--ease-out);
}
.header-hidden .menu-tabs { top: 0; }
.menu-tabs ul {
  display: flex; gap: .25rem; margin: 0 auto; padding: 0 var(--gutter); list-style: none;
  max-width: var(--max); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.menu-tabs ul::-webkit-scrollbar { display: none; }
.menu-tabs a {
  position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 .9rem; white-space: nowrap;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--niebla);
  transition: color var(--dur-fast);
}
.menu-tabs a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 2px; background: var(--oro); transform: scaleX(0); transition: transform var(--dur) var(--ease-out); }
.menu-tabs a:hover { color: var(--crema); }
.menu-tabs a.is-active { color: var(--oro-claro); }
.menu-tabs a.is-active::after { transform: scaleX(1); }
@media (min-width: 1080px) { .menu-tabs ul { justify-content: center; } }

.menu-body { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.menu-cat { padding-block: clamp(3rem, 6vw, 5rem); scroll-margin-top: 140px; }
.menu-cat + .menu-cat { border-top: 1px solid var(--linea-oscura); }
.menu-cat__head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.menu-cat__head h2 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 300; }
.menu-cat__head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--linea-oscura), transparent); }
.menu-items { display: grid; gap: 2.1rem 5rem; }
@media (min-width: 900px) { .menu-items { grid-template-columns: 1fr 1fr; } }
.menu-item__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; }
.menu-item__name { font-family: var(--f-display); font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); font-weight: 500; line-height: 1.2; }
/* Psicología de menús: el precio es discreto (mismo tamaño que la descripción,
   sin signo, sin línea de puntos, pegado al texto). El protagonista es el platillo. */
.menu-item__price {
  display: inline-block; margin-left: .45em; white-space: nowrap;
  font-family: var(--f-sans); font-size: .95em; font-weight: 500; letter-spacing: .04em;
  color: var(--oro); font-variant-numeric: lining-nums proportional-nums;
}
.menu-item__desc { margin-top: .4rem; color: var(--niebla); font-size: .98rem; max-width: 34rem; }
.menu-note { margin-top: 4rem; text-align: center; color: var(--niebla); font-size: .9rem; }
.menu-cat__note { margin-top: 1.6rem; color: var(--niebla); font-family: var(--f-display); font-style: italic; font-size: .98rem; }
/* Happy Hour: el menú se sube como imagen o PDF */
.menu-hh { text-align: center; }
.menu-hh .menu-cat__head { justify-content: center; }
.menu-hh .menu-cat__head::after { display: none; }
.menu-hh__when { margin-top: -1.2rem; margin-bottom: 2rem; color: var(--oro-claro); font-family: var(--f-display); font-style: italic; font-size: var(--t-lead); }
.menu-hh__figure { max-width: 620px; margin: 0 auto; }
.menu-hh__figure img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.menu-hh__figure figcaption { margin-top: 1.2rem; }

/* Frases destacadas del menú ("¡Pregunta por nuestros carajillos!", brunch) */
.menu-highlight {
  margin: clamp(2rem, 5vw, 3.5rem) auto; padding-block: clamp(1.3rem, 3vw, 1.8rem); max-width: 40rem;
  border-block: 1px solid var(--linea-oscura); text-align: center;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); line-height: 1.3; color: var(--crema);
}
.menu-highlight em { font-style: normal; letter-spacing: .14em; color: var(--oro-claro); }
.menu-highlight--end { margin-top: clamp(3rem, 7vw, 5rem); }
.menu-cta { text-align: center; padding-block: var(--section); }
.menu-cta h2 { font-size: var(--t-h2); font-weight: 300; margin-bottom: 2rem; }
.menu-cta h2 em { font-style: italic; color: var(--oro-profundo); }
.menu-cta .reserve__ctas { justify-content: center; }

/* ---------- Estados iniciales de animación (solo con JS y movimiento) ---------- */
/* Los títulos nunca están invisibles: solo un poco atenuados hasta que asoman */
.js.motion [data-reveal] { opacity: .45; filter: blur(3px); transform: translateY(10px); }
/* Las fotos siempre visibles: crecen con el scroll (ver main.js) */
.js.motion [data-reveal-img] { transform: scale(.86); opacity: .4; }
.js.motion [data-reveal-img] .frame > img { transform: scale(1.25); }
[data-reveal-img] { transform-origin: 50% 70%; will-change: transform, opacity; }
.js.motion .hero .mark--wordmark,
.js.motion .hero__lede,
.js.motion .hero__ctas,
.js.motion .scroll-cue { opacity: 0; }

/* =====================================================================
   Micro-interacciones (pensadas primero para el teléfono)
   Tocar: 130 ms · soltar: 240 ms · cambios pequeños: 260 ms ·
   paneles: 420 ms al abrir y 260 ms al cerrar.
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; } /* sin destello gris al tocar */
a, button, [role="button"], .dish { touch-action: manipulation; }

/* Botones: se hunden al tocar y regresan con calma */
.btn { transition: color var(--t-ui) ease, border-color var(--t-ui) ease, transform var(--t-release) var(--ease-ui); }
.btn::before { transition: transform var(--dur) var(--ease-ui); }
.btn:active { transform: scale(.97); transition-duration: var(--t-press); }
.mobile-bar__item { transition: background-color var(--t-ui) ease, transform var(--t-release) var(--ease-ui); }
.mobile-bar__item:active { transform: scale(.96); transition-duration: var(--t-press); background-color: rgba(201, 164, 106, .12); }
.mobile-bar__item--primary:active { background-color: var(--oro-claro); }
.lang-toggle, .menu-toggle, .socials a, .wa-float, .menu-tabs a { transition-property: transform, color, border-color, background-color, opacity; transition-duration: var(--t-release); transition-timing-function: var(--ease-ui); }
.lang-toggle:active, .menu-toggle:active, .socials a:active, .menu-tabs a:active { transform: scale(.94); transition-duration: var(--t-press); }
.wa-float:active { transform: scale(.96); transition-duration: var(--t-press); }
.lang-toggle span { transition: opacity var(--t-ui) ease, color var(--t-ui) ease; }

/* Subrayados y pestañas */
.link-line::after, .nav a::after { transition: transform var(--t-ui) var(--ease-ui); }
.link-line:active { opacity: .7; }
.menu-tabs a::after { transition: transform var(--t-ui) var(--ease-ui); }

/* Ícono de menú: las líneas giran en su lugar */
.menu-toggle__lines span { transition: transform var(--t-ui) var(--ease-morph); }

/* Menú móvil: abre con calma, cierra rápido */
.mobile-menu { transition: opacity var(--t-panel-out) ease, visibility 0s linear var(--t-panel-out); }
.menu-open .mobile-menu { transition: opacity var(--t-panel) var(--ease-panel); }
.mobile-menu a:not(.btn) { transform: translateY(40%); opacity: 0; transition: transform var(--t-panel-out) var(--ease-ui), opacity var(--t-panel-out) ease, color var(--t-ui) ease; }
.menu-open .mobile-menu a:not(.btn) { transform: none; opacity: 1; transition: transform 520ms var(--ease-panel), opacity 420ms ease, color var(--t-ui) ease; }
.menu-open .mobile-menu li:nth-child(1) a { transition-delay: 60ms; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 110ms; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 160ms; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 210ms; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: 260ms; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: 310ms; }
.mobile-bar { transition: transform var(--t-panel) var(--ease-panel); }
.menu-open .mobile-bar { transition-duration: var(--t-panel-out); }

/* Encabezado: se esconde y reaparece sin prisa, sin brusquedad */
.site-header { transition: background-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--t-panel) var(--ease-panel); }

/* Aviso (toast): entra desde abajo y sale más rápido */
.toast { transform: translate(-50%, 16px) scale(.98); transition: opacity var(--t-panel-out) ease, transform var(--t-panel-out) var(--ease-ui); }
.toast.is-visible { transform: translate(-50%, 0) scale(1); transition: opacity var(--t-panel) ease, transform var(--t-panel) var(--ease-panel); }

/* Cambio de idioma: los textos se funden en vez de saltar */
/* (se aplica a los contenedores, no a cada texto, para no chocar con las animaciones de GSAP) */
main, .nav, .footer__nav, .mobile-menu nav { transition: opacity 180ms ease; }
.is-switching-lang :is(main, .nav, .footer__nav, .mobile-menu nav) { opacity: .25; }

/* Platillos destacados (escritorio): foto y lista a ritmo medio */
.dish-stage .photo-frame { transition: opacity 500ms ease, filter 500ms ease, transform 1.1s var(--ease-ui); }
.dish { transition: padding 420ms var(--ease-ui); }
.dish::before { transition: width 420ms var(--ease-ui); }
.dish__name { transition: color var(--t-ui) ease; }

/* En pantallas táctiles, los efectos de "pasar el mouse" no se quedan pegados */
@media (hover: none) {
  .btn:hover::before { transform: scaleY(0); }
  .btn--ghost:hover, .theme-light .btn--ghost:hover { border-color: var(--linea-oscura); }
  .theme-light .btn--ghost:hover { border-color: var(--linea-clara); }
  .link-line:hover::after { transform: none; transform-origin: right; }
  .wa-float:hover { transform: none; background: var(--bosque-2); }
  .socials a:hover { border-color: var(--linea-oscura); color: var(--crema); }
  .menu-tabs a:hover { color: var(--niebla); }
  .menu-tabs a.is-active:hover { color: var(--oro-claro); }
  .footer__nav a:hover { color: var(--niebla); }
  .mobile-menu a:not(.btn):hover { color: var(--crema); }
  .visit .info a:hover { border-color: var(--linea-oscura); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scroll-cue::after { animation: none; transform: none; }
}

/* =====================================================================
   WordPress: piezas nuevas del tema
   ===================================================================== */

/* Botón pequeño del encabezado */
.btn--sm { min-height: 44px; padding: .7rem 1.3rem; font-size: .74rem; }

/* Encabezados de sección */
.section-head--flush { margin: 0; }
.section-intro { max-width: 36rem; color: var(--niebla); }
.section-title { font-size: var(--t-h2); font-weight: 300; }
.section-title em, .section-head h2 em { font-style: italic; color: var(--oro-claro); }
.theme-light .section-title em, .theme-light .section-head h2 em { color: var(--oro-profundo); }
.visit .section-head h2 { font-size: var(--t-h2); font-weight: 300; }
.manifesto__quote { margin-top: 1.4rem; }
.manifesto .label + .manifesto__quote { margin-top: 1.4rem; }
.manifesto__quote:first-child { margin-top: 0; }
.prose em { font-style: italic; }

/* Reservar: sin etiqueta, las raíces tienen su espacio */
.reserve .lead { color: var(--tinta-suave); }

/* ---------- Barra móvil: Reservar · Menú · WhatsApp ---------- */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float);
    display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
    gap: .5rem;
    background: rgba(28, 34, 24, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--linea-oscura);
    transition: transform var(--dur) var(--ease-out);
  }
  .mobile-bar__item {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px; padding: 0 .5rem;
    font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--crema); border: 1px solid var(--linea-oscura);
    touch-action: manipulation;
    transition: background-color var(--dur-fast), transform var(--dur-fast);
  }
  .mobile-bar__item:active { transform: scale(.97); }
  .mobile-bar__item svg { width: 20px; height: 20px; flex: none; color: var(--oro-claro); }
  .mobile-bar__item--primary { background: var(--oro); border-color: var(--oro); color: var(--bosque); }
  .mobile-bar__item--primary svg { color: var(--bosque); }
  .menu-open .mobile-bar { transform: translateY(110%); }
  .wa-float { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* Platillos destacados en móvil: solo muestran foto si existe */
.dish__media img { width: 100%; height: 100%; object-fit: cover; }
.dish-stage .photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Menú con fotos ---------- */
.menu-item { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.menu-item.has-photo { grid-template-columns: 88px 1fr; }
.menu-item__photo { width: 88px; aspect-ratio: 1; overflow: hidden; background: var(--bosque-2); }
.menu-item__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .menu-item.has-photo { grid-template-columns: 104px 1fr; }
  .menu-item__photo { width: 104px; }
}

/* ---------- Secciones libres ---------- */
.free-ti__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.free-ti__text { display: grid; gap: 1.2rem; justify-items: start; }
.free-ti__media { margin: 0; }
.free-ti__media .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--crema-2); }
.theme-dark .free-ti__media .frame, .theme-olive .free-ti__media .frame { background: var(--bosque-2); }
.free-ti__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .free-ti__grid { grid-template-columns: 1fr 1fr; }
  .free-ti.is-left .free-ti__media { order: -1; }
}

.free-quote { text-align: center; overflow: hidden; padding-top: var(--section); }
.free-quote__body { margin: 0 auto; max-width: 52rem; display: grid; gap: 1.5rem; justify-items: center; }
.free-quote__text { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.15; }
.free-quote__text em { font-style: italic; color: var(--oro-claro); }
.theme-light .free-quote__text em { color: var(--oro-profundo); }
.free-quote__sign { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); color: var(--oro-claro); }
.theme-light .free-quote__sign { color: var(--oro-profundo); }

.free-gallery__grid { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(2, 1fr); }
.free-gallery__grid figure { margin: 0; }
.free-gallery__grid .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--crema-2); }
.free-gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .free-gallery__grid.count-3 { grid-template-columns: repeat(3, 1fr); }
  .free-gallery__grid.count-4 { grid-template-columns: repeat(4, 1fr); }
}

.free-list .events__list li::before { border-color: var(--oro); }
.theme-light.free-list .events__list { border-color: var(--linea-clara); }
.theme-light.free-list .events__list li { border-color: var(--linea-clara); }
.theme-light.free-list .events__list li::before { border-color: var(--oro-profundo); }

/* ---------- Páginas genéricas y 404 ---------- */
.page-generic { padding: calc(140px + env(safe-area-inset-top)) 0 var(--section); min-height: 70vh; }
.page-generic__inner { max-width: 46rem; }
.page-generic__title { font-size: var(--t-h2); font-weight: 300; margin-bottom: 2rem; color: var(--tinta); }
.page-generic__content { color: var(--tinta-suave); font-size: 1.0625rem; }
.page-generic__content > * + * { margin-top: 1.1em; }
.page-generic__content h2, .page-generic__content h3 { color: var(--tinta); margin-top: 2em; }
.page-generic__content a { color: var(--oro-profundo); text-decoration: underline; text-underline-offset: 3px; }
.page-generic__entry + .page-generic__entry { margin-top: 3rem; }

.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.page-404__inner { display: grid; justify-items: center; gap: 2rem; }
.page-404 .raiz-root { width: min(220px, 60vw); }
.page-404 h1 { font-size: var(--t-h2); font-weight: 300; }
