/* =========================================================
   MADRID HORSE TOUR — Editorial redesign
   Art direction: full-bleed photography · night/paper rhythm
   Type: EB Garamond (display) + Schibsted Grotesk (neutral sans)
   ========================================================= */

:root {
  /* Display: un Garamond real. La marca habla de travesias y patrimonio,
     y esa es la letra de la imprenta europea desde el XVI. Aguanta bien
     todo el rango que usa esta maqueta, de 0.9rem de pie de foto a 5rem
     de titular, cosa que un Garamond de display puro no haria. */
  --serif: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  /* La neutra fue Geist hasta el 20-09-2026. Geist es la tipografia de
     Vercel y lleva desde 2023 en media web de producto: se reconoce, y lo
     que reconoce no es esta casa.
     Schibsted Grotesk es una grotesca de prensa, hecha por Bold Monday
     para un grupo de periodicos. Ese es el registro de esta web, y ademas
     mide casi lo mismo que la anterior: la altura de x queda a medio punto
     porcentual y ninguna cadena se ensancha mas de un 2%, asi que la
     maqueta no se mueve de sitio. */
  --sans:  'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ---- curvas ----
     Habia una sola curva para todo el sitio: un expo-out muy marcado. Para
     lo que entra en pantalla es la correcta y se queda. Para responder al
     puntero no lo es: un expo-out de 0.4s en el color de un boton llega
     tarde, porque la mayor parte del recorrido la gasta frenando.

     La regla de reparto es la de siempre:
       entra o se revela  -> --ease     (expo-out, la curva de la casa)
       se mueve o cambia de sitio en pantalla -> --ease2  (acelera y frena)
       responde al puntero o al dedo -> --ease-ui a --t-ui (corta y sin cola)
       movimiento constante -> linear */
  --ease:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease2: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --t-ui: 0.15s;
  --t-press: 0.06s;   /* la vuelta de un :active tiene que ser inmediata */

  --edge: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1560px;
  /* Alto real de .site-head__row sin desplazar: 1.5rem + 2.6rem de escudo
     + 1.5rem, mas lo que aporta la linea base del nombre. Medido, no
     estimado. Lo necesita el hero para no meterse debajo de la barra. */
  --head-h: 6.2rem;

  /* ---- escala de micro-texto ----
     Las etiquetas en versalitas, las cabeceras de tabla y las filas de
     metadatos vivian repartidas entre 0.60 y 0.68rem: cuatro escalones
     dentro de un solo pixel, que no es jerarquia sino deriva, y todos
     por debajo de los 11px a partir de los cuales un texto funcional
     deja de leerse en pantalla densa o en movil.

     Se consolidan en dos escalones, los dos por encima del suelo. Si
     algun dia hay que subirlo mas, se sube aqui y no en 43 reglas. */
  --micro:    0.70rem;   /* 11.2px */
  --micro-lg: 0.72rem;   /* 11.5px */

  /* raw palette */
  --night: #15170f;
  --night-2: #1c1e15;
  --bone: #f6f2e8;
  --paper: #f2eee4;
  --ink: #2a281d;
  --gold: #c9a566;
  /* El ocre se usa como color de texto en mas de treinta reglas (fechas de
     salida, epigrafes, enlaces legales, todo el panel). A #a5672c daba
     3.96:1 sobre el papel y fallaba en cada una. Se corrige en el token. */
  --ochre: #8a5624;        /* 5.27:1 como texto, 5.47:1 como relleno con hueso */
  --ochre-tint: 138, 86, 36;  /* el mismo, en canales, para los fondos al 4-12% */
}

/* ---- theme tokens (flip per section) ----
   Los valores estan medidos contra su propio fondo, no elegidos a ojo:
     --dim y --faint   >= 4.5:1  (texto normal, WCAG AA)
     --line-strong     >= 3:1    (borde de control: campos de formulario)
     --line            decorativo, sin minimo: separa, no informa
     --cta-*           el par solido del boton, comprobado en los dos temas
   El acento del tema papel bajo de #a5672c a #8a5624 porque el anterior
   daba 3.96:1 sobre el papel y se usa en texto de 11 px. */
[data-theme="night"] {
  --bg: #15170f;
  --fg: #f6f2e8;
  --dim: rgba(246, 242, 232, 0.66);    /* 7.58:1 */
  --faint: rgba(246, 242, 232, 0.52);  /* 5.14:1 */
  --accent: #cba86a;                   /* 8.05:1 */
  --line: rgba(246, 242, 232, 0.14);
  --line-strong: rgba(246, 242, 232, 0.35);  /* 3.03:1 */
  --cta-bg: #cba86a;
  --cta-fg: #15170f;                   /* 8.05:1 sobre el boton */
}
[data-theme="paper"] {
  --bg: #f2eee4;
  --fg: #2a281d;
  --dim: rgba(42, 40, 29, 0.78);       /* 6.57:1 */
  --faint: rgba(42, 40, 29, 0.66);     /* 4.60:1 */
  --accent: #8a5624;                   /* 5.27:1 */
  --line: rgba(42, 40, 29, 0.13);
  --line-strong: rgba(42, 40, 29, 0.51);     /* 3.02:1 */
  --cta-bg: #8a5624;
  --cta-fg: #f6f2e8;                   /* 5.47:1 sobre el boton */
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--night);
  color: var(--bone);
  line-height: 1.65;
  /* `overflow-x: hidden` convierte al body en contenedor de scroll, y eso
     recorta a sus descendientes posicionados —menus, capas flotantes— y
     rompe `position: sticky` dentro. `clip` corta el desbordamiento sin
     crear contenedor de scroll, que es lo que aqui hace falta. Se deja
     `hidden` de base para quien no lo soporte. */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--gold); color: var(--night); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #101208; }
::-webkit-scrollbar-thumb { background: #2b2e1f; }
@media (hover: hover) {
  ::-webkit-scrollbar-thumb:hover { background: var(--gold); }
}

/* =========================================================
   SECTION BASE
   ========================================================= */
.section { position: relative; background: var(--bg); color: var(--fg); }
.section--paper { color: var(--ink); }

/* =========================================================
   SHARED TYPE
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: var(--micro-lg); letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--accent);
}

em { font-style: italic; }
strong { font-weight: 600; color: inherit; }
.lede strong { color: var(--fg); }

/* display headline helper */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.04;
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-media .media__img { clip-path: inset(0 0 100% 0); transition: clip-path 0.85s var(--ease); }
.reveal-media.in .media__img { clip-path: inset(0 0 0 0); }
.d1 { transition-delay: 0.04s; } .d2 { transition-delay: 0.10s; }
.d3 { transition-delay: 0.16s; } .d4 { transition-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-media .media__img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  /* Con el menu desplegado la cabecera tiene que estar por encima de todo:
     el aviso de privacidad va a 950 y tapaba los dos botones del final del
     menu, que son «Reservar plaza» y el de WhatsApp. */
  color: var(--fg);
  transition: color 0.5s var(--ease), background 0.5s var(--ease);
}
.site-head::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200%; z-index: -1; opacity: 0;
  pointer-events: none; transition: opacity 0.5s var(--ease);
}
.site-head[data-theme="night"]::before {
  background: linear-gradient(180deg, rgba(21, 23, 15, 0.72) 0%, rgba(21, 23, 15, 0.28) 45%, transparent 100%);
  opacity: 1;
}
/* El fondo difuminado del header va en un pseudoelemento, no en el propio
   header: `backdrop-filter` convierte al elemento en bloque contenedor de
   sus descendientes `position: fixed`, y eso encogia el menu movil de 844px
   a la altura de la barra, dejando sus enlaces desbordados sobre la pagina. */
.site-head.menu-open { z-index: 1000; }
.site-head.scrolled { background: none; }
.site-head::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-head.scrolled::after { opacity: 1; }
.site-head.scrolled::before { opacity: 0; }

.site-head__row {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem var(--edge);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.5s var(--ease);
}
.site-head.scrolled .site-head__row { padding-top: 1rem; padding-bottom: 1rem; }

.wordmark { display: flex; align-items: baseline; gap: 0.7rem; }
.wordmark__mono { font-family: var(--serif); font-weight: 600; letter-spacing: 0.18em; color: var(--accent); font-size: 1rem; }
.wordmark__full { font-family: var(--serif); font-weight: 400; font-size: 1.18rem; letter-spacing: 0.01em; }

.menu { display: flex; align-items: center; gap: 2.4rem; }
.menu__link { position: relative; font-size: 0.9rem; letter-spacing: 0.01em; padding: 0.2rem 0; flex: none; white-space: nowrap; }
.menu__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .menu__link:hover::after { transform: scaleX(1); }
}
.menu__cta {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border: 1px solid currentColor; border-radius: 100px; padding: 0.6rem 1.4rem;
  /* Sin esto el flex los encoge cuando va justo de sitio y la etiqueta se
     parte en dos lineas, que es lo que hacia crecer la cabecera de 99 a
     113px. Un boton no se estrecha: o cabe, o se pasa a hamburguesa. */
  flex: none; white-space: nowrap;
  transition: background var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui);
}
@media (hover: hover) {
  .menu__cta:hover,
  .menu__cta:focus-visible { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); }
}

/* Contacto directo por WhatsApp, al lado del CTA.

   Va en pastilla como el CTA para que se lea como boton, pero con el filete
   mas tenue: dos contornos identicos uno al lado del otro no dicen cual es
   la accion principal. Reservar manda; esto acompana.

   El trazo de WhatsApp no es adorno: sin el, «WhatsApp» se lee como una
   palabra mas del menu y no como algo que se pulsa para escribir. */
.menu__wa {
  display: inline-flex; align-items: center; gap: 0.45rem;
  flex: none; white-space: nowrap;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 0.6rem 1.15rem;
  color: var(--fg);
  transition: background var(--t-ui) var(--ease-ui),
              border-color var(--t-ui) var(--ease-ui),
              color var(--t-ui) var(--ease-ui);
}
.menu__wa-i { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
@media (hover: hover) {
  .menu__wa:hover,
  .menu__wa:focus-visible { border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
}
.menu__wa:active { transform: scale(0.97); transition-duration: var(--t-press); }
@media (prefers-reduced-motion: reduce) { .menu__wa:active { transform: none; } }

.burger { display: none; width: 30px; height: 16px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { bottom: 0; }
.site-head.menu-open .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.site-head.menu-open .burger span:nth-child(2) { bottom: 7px; transform: rotate(-45deg); }

/* =========================================================
   FULL-BLEED MEDIA
   ========================================================= */
.bleed { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.bleed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed__veil { position: absolute; inset: 0; }
.bleed__veil--hero {
  background:
    linear-gradient(180deg, rgba(21,23,15,0.55) 0%, rgba(21,23,15,0.10) 32%, rgba(21,23,15,0.45) 72%, rgba(21,23,15,0.95) 100%),
    radial-gradient(95% 75% at 22% 88%, rgba(21,23,15,0.7), transparent 62%);
}
.bleed__veil { background: linear-gradient(0deg, rgba(21,23,15,0.88) 0%, rgba(21,23,15,0.15) 55%, rgba(21,23,15,0.4) 100%); }
.bleed__veil--right { background: linear-gradient(270deg, rgba(21,23,15,0.9), transparent 62%), linear-gradient(0deg, rgba(21,23,15,0.55), transparent 55%); }
.bleed__veil--center { background: linear-gradient(90deg, rgba(21,23,15,0.9), transparent 58%), linear-gradient(0deg, rgba(21,23,15,0.5), transparent 60%); }
.bleed__veil--soft { background: radial-gradient(120% 100% at 50% 50%, transparent 35%, rgba(21,23,15,0.78)); }
.bleed__veil--testi { background: linear-gradient(90deg, rgba(21,23,15,0.85), rgba(21,23,15,0.35) 70%), linear-gradient(0deg, rgba(21,23,15,0.6), transparent 55%); }

/* =========================================================
   HERO
   ========================================================= */
/* El contenido del hero se ancla abajo. En pantallas estrechas el bloque
   crece hasta subir por encima de la barra superior —que va en `fixed` y
   no ocupa sitio en el flujo—, y el antetitulo acababa pisando el nombre
   de la marca: 4px de solape a 390 y 430 de ancho.
   Reservar arriba el alto de la barra lo resuelve solo, porque `min-height`
   deja crecer: cuando el contenido no cabe con ese hueco, el hero se
   estira lo justo y el bloque baja. En escritorio sobra sitio y no cambia
   nada. */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden;
  padding: var(--edge);
  padding-top: calc(var(--edge) + var(--head-h));
  padding-bottom: clamp(3rem, 8svh, 7rem);
}
.hero__grid { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero__eyebrow { color: var(--gold); margin-bottom: 1.6rem; }
.hero__title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em;
  font-size: clamp(2.9rem, 9vw, 8.4rem); line-height: 1.02;
}
.hero__title span { display: block; }
.hero__title em { color: var(--gold); font-weight: 400; }
.hero__sub { margin-top: 2rem; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(242,236,224,0.82); line-height: 1.65; }
.hero__enter { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 2.4rem; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.hero__enter .arrow { transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .hero__enter:hover .arrow { transform: translateY(4px); }
}

/* =========================================================
   FILOSOFÍA (editorial magazine)
   ========================================================= */
.filo { padding: clamp(5rem, 12vw, 11rem) var(--edge); }
.filo__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.filo__lead { grid-column: 1 / 8; }
.filo__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1; margin-top: 1.6rem; }
.filo__title em { color: var(--ochre); font-weight: 400; }
.filo__body { grid-column: 2 / 7; margin-top: clamp(2rem, 5vw, 4.5rem); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.6; font-family: var(--serif); font-weight: 400; }
.filo__note { margin-top: 1.6rem; color: var(--dim); max-width: 46ch; }
.filo__media { grid-column: 8 / 13; grid-row: 1 / 4; align-self: stretch; }
.filo__media .media { position: relative; aspect-ratio: 4 / 5.2; overflow: hidden; }
.media__img { width: 100%; height: 100%; object-fit: cover; }
.filo__cap { margin-top: 1rem; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--dim); font-style: italic; font-family: var(--serif); }

/* =========================================================
   REEL — pieza vertical 9:16 (video de marca)
   Va sobre hueso, no sobre papel: separa esta seccion de la de
   filosofia, que tambien es clara, y el blanco con el que abre y
   cierra el video se funde con el fondo en vez de recortarse.
   ========================================================= */
.reel { background: var(--bone); padding: clamp(4.5rem, 10vw, 9rem) var(--edge); }
.reel__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
}
/* El video a la izquierda: filosofia deja la imagen a la derecha, y asi la
   pagina alterna en vez de repetir la misma composicion dos veces seguidas.
   Siete columnas de doce: la pieza es 16:9 y necesita ancho, pero dejando
   sitio a que el parrafo de al lado no baje de una medida legible. */
.reel__media { grid-column: 1 / 8; }
/* Fondo noche, no papel: mientras el poster carga se ve un hueco, y en
   negro parece el marco del video en vez de un fallo de la pagina. */
.reel__marco {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--night);
}
.reel__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__cap { margin-top: 1rem; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--dim); font-style: italic; font-family: var(--serif); text-align: center; }
.reel__texto { grid-column: 8 / 13; }
.reel__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.05; margin-top: 1.4rem; }
.reel__title em { color: var(--ochre); font-weight: 400; }
.reel__lede { margin-top: 1.6rem; color: var(--dim); max-width: 44ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.65; }

/* =========================================================
   INTERLUDE
   ========================================================= */
.interlude { min-height: 72svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6rem var(--edge); text-align: center; }
.interlude__text {
  position: relative; z-index: 2; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 4.2vw, 3.8rem); line-height: 1.18; letter-spacing: -0.012em;
  max-width: 20ch;
}
.interlude__text em { color: var(--gold); }

/* =========================================================
   EXPERIENCIAS
   ========================================================= */
.exp-intro { padding: clamp(5rem, 12vw, 11rem) var(--edge) clamp(4rem, 8vw, 7rem); }
.exp-intro__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: end; }
.exp-intro__grid .eyebrow { grid-column: 1 / 6; }
.exp-intro__title { grid-column: 1 / 9; grid-row: 2; font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.4rem, 6.5vw, 6rem); line-height: 1.04; margin-top: 1.4rem; }
.exp-intro__title em { color: var(--ochre); font-weight: 400; }
.exp-intro__note { grid-column: 9 / 13; grid-row: 2; align-self: end; color: var(--dim); max-width: 30ch; }

/* chapters */
.chapter { position: relative; min-height: 94svh; overflow: hidden; color: var(--bone); }
.chapter__inner { position: relative; z-index: 2; min-height: 94svh; display: flex; padding: clamp(2.2rem, 5vw, 5.5rem); max-width: var(--maxw); margin: 0 auto; }
.chapter__num {
  position: absolute; font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em;
  font-size: clamp(5rem, 15vw, 15rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 236, 224, 0.5);
}
.chapter__text { position: relative; z-index: 3; max-width: 42ch; }
.chapter__meta { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.chapter__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1; margin-bottom: 1.2rem; }
.chapter__desc { color: rgba(242, 236, 224, 0.82); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; margin-bottom: 1.8rem; }

/* chapter variants */
.chapter--a .chapter__inner { align-items: flex-end; justify-content: flex-start; }
.chapter--a .chapter__num { top: 14%; right: 6%; }

.chapter--b .chapter__inner { align-items: flex-end; justify-content: flex-end; }
.chapter--b .chapter__text { text-align: right; }
.chapter--b .chapter__num { top: 14%; left: 6%; }

.chapter--c .chapter__inner { align-items: center; justify-content: flex-start; }
.chapter--c .chapter__num { top: 50%; right: 4%; transform: translateY(-50%); font-size: clamp(7rem, 24vw, 22rem); color: rgba(242, 236, 224, 0.09); -webkit-text-stroke: 0; }

.chapter--d .chapter__inner { align-items: flex-end; justify-content: flex-start; }
.chapter--d .chapter__num { bottom: 12%; right: 6%; }

.link-underline { position: relative; display: inline-block; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.link-underline::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .link-underline:hover::after { transform: scaleX(1); }
}
.chapter .link-underline { color: var(--gold); }

/* =========================================================
   EL PARQUE (typographic figures + topo)
   ========================================================= */
.parque { padding: clamp(5rem, 12vw, 11rem) var(--edge); overflow: hidden; }
.parque__topo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ochre); opacity: 0.16; pointer-events: none; }
.parque__head { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.parque__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1; margin: 1.4rem 0 1.6rem; max-width: 16ch; }
.parque__title em { color: var(--ochre); font-weight: 400; }
.parque__note { max-width: 52ch; color: var(--dim); font-size: clamp(1rem, 1.4vw, 1.2rem); }

.figures { position: relative; z-index: 2; max-width: var(--maxw); margin: clamp(3rem, 7vw, 6rem) auto 0; display: grid; grid-template-columns: repeat(12, 1fr); row-gap: clamp(2.5rem, 5vw, 4.5rem); }
.figure { display: flex; flex-direction: column; }
.figure__num { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(3.4rem, 9vw, 8rem); line-height: 0.95; color: var(--ink); }
.figure__num em { font-style: normal; color: var(--ochre); font-size: 0.5em; vertical-align: super; }
.figure__label { margin-top: 0.9rem; font-size: 0.82rem; letter-spacing: 0.03em; color: var(--dim); max-width: 22ch; }
/* asymmetric placement */
.figure--1 { grid-column: 1 / 5; }
.figure--2 { grid-column: 7 / 12; margin-top: clamp(1rem, 4vw, 3.5rem); }
.figure--3 { grid-column: 2 / 6; }
.figure--4 { grid-column: 8 / 13; margin-top: clamp(1rem, 3vw, 2.5rem); }

/* =========================================================
   DESTINOS (horizontal carousel)
   ========================================================= */
.destinos { padding: clamp(5rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem); }
.destinos__head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--edge); display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: end; }
.destinos__title { grid-column: 1 / 10; grid-row: 1; font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 1; }
.destinos__title em { color: var(--gold); font-weight: 400; }
.destinos__hint { grid-column: 10 / 13; grid-row: 1; align-self: end; text-align: right; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

.carousel { margin-top: clamp(2.5rem, 5vw, 4rem); scroll-padding-left: var(--edge); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; cursor: grab; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track { display: flex; gap: clamp(0.8rem, 1.5vw, 1.4rem); padding: 0 var(--edge); width: max-content; }
.slide { flex: 0 0 auto; width: min(72vw, 780px); height: 76svh; scroll-snap-align: start; position: relative; overflow: hidden; }
.slide__media { position: absolute; inset: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); filter: brightness(0.82) saturate(0.95); }
@media (hover: hover) {
  .slide:hover .slide__media img { transform: scale(1.05); filter: brightness(0.95) saturate(1); }
}
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,23,15,0.85), transparent 55%); }
.slide__cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(1.5rem, 2.5vw, 2.4rem); display: flex; flex-direction: column; gap: 0.2rem; }
.slide__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; }
.slide__desc { font-size: 0.9rem; color: rgba(242, 236, 224, 0.72); margin-top: 0.3rem; }

.carousel__bar { max-width: var(--maxw); margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; padding: 0 var(--edge); }
.carousel__bar::before { content: ''; display: block; height: 1px; background: var(--line); position: relative; }
.carousel__progress {
  display: block; height: 1px; width: 20%; background: var(--accent); margin-top: -1px;
  transform-origin: left; will-change: transform;
  transition: transform 0.15s linear;   /* solo transform: no toca la disposicion */
}

/* =========================================================
   TESTIMONIO
   ========================================================= */
.testi { min-height: 92svh; display: flex; align-items: center; overflow: hidden; padding: clamp(4rem, 10vw, 9rem) var(--edge); }
.testi__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto 0 0; }
.testi__quote { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(1.8rem, 4.6vw, 4.4rem); line-height: 1.14; max-width: 20ch; }
.testi__by { margin-top: 2.2rem; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* =========================================================
   RESERVAR
   ========================================================= */
.reservar { padding: clamp(5rem, 12vw, 11rem) var(--edge); }
.reservar__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.reservar__lead { grid-column: 1 / 6; }
.reservar__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.4rem, 5.5vw, 4.8rem); line-height: 1; margin: 1.4rem 0 1.4rem; }
.reservar__title em { color: var(--ochre); font-weight: 400; }
.reservar__note { color: var(--dim); max-width: 40ch; font-size: 1.05rem; }
.contactlist { list-style: none; margin-top: 2.6rem; display: grid; gap: 1.5rem; }
.contactlist li { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contactlist__k { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.contactlist__v { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; width: fit-content; }

.form { grid-column: 7 / 13; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.8rem; }
.field span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1.05rem; color: var(--fg);
  background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  padding: 0.7rem 0; transition: border-color var(--t-ui) var(--ease-ui);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a5672c' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.2rem center; }
.field select option { background: var(--paper); color: var(--ink); }
.submit {
  margin-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--accent);
  position: relative; padding-bottom: 0.4rem;
}
.submit::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(1); transform-origin: left; transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .submit:hover .arrow { transform: translateX(6px); }
}
.submit .arrow { transition: transform 0.5s var(--ease); }
.form__note { margin-top: 1.2rem; font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: clamp(4rem, 9vw, 8rem) var(--edge) 2.5rem; }
.footer__top { max-width: var(--maxw); margin: 0 auto; }
.footer__mark { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; font-size: clamp(2.6rem, 9vw, 8rem); line-height: 1.0; display: block; }
.footer__cols { max-width: var(--maxw); margin: clamp(3rem, 6vw, 5rem) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer__col { display: flex; flex-direction: column; gap: 0.85rem; }
.footer__k { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; }
.footer__col a { color: var(--dim); font-size: 0.98rem; width: fit-content; transition: color var(--t-ui) var(--ease-ui); }
@media (hover: hover) {
  .footer__col a:hover { color: var(--accent); }
}
.footer__muted { color: var(--faint); font-size: 0.9rem; }
.footer__base { max-width: var(--maxw); margin: 2rem auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--faint); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .filo__lead { grid-column: 1 / 8; }
  .filo__body { grid-column: 1 / 8; }
  .filo__media { grid-column: 8 / 13; grid-row: 1 / 4; }

  .reel__media { grid-column: 1 / 8; }
  .reel__texto { grid-column: 8 / 13; }
}

/* Entre el punto de corte y el ancho holgado la navegacion cabe, pero
   justa: sin apretarla, «Madrid Horse Tour» se parte en dos lineas y la
   cabecera crece de 99 a 130px. Se estrechan los huecos, no el tamano de
   letra, que es lo que menos se nota. */
@media (min-width: 1151px) and (max-width: 1460px) {
  .menu { gap: 1rem; }
  .menu__langs { margin-right: 0.2rem; }
  .menu__cta { padding: 0.6rem 1rem; letter-spacing: 0.08em; }
  .menu__wa { padding: 0.6rem 0.85rem; letter-spacing: 0.08em; }
  .wordmark__full { white-space: nowrap; }
}

/* =========================================================
   EL MENU COMPLETO PASA A HAMBURGUESA ANTES QUE LA MAQUETA

   La navegacion lleva cinco enlaces, tres idiomas y dos botones, y por
   debajo de 1150px no cabe: ya antes de anadir el de WhatsApp el nombre de
   la marca se partia en dos lineas en todo ese rango, y con el el CTA se
   salia de la pantalla. El resto de la maqueta sigue cambiando a 820, que
   es donde le toca; esto es solo la cabecera.

   Va con `:not(.menu--min)` porque la barra de las paginas internas —panel,
   perfil del jinete, confirmacion— no se despliega: es fija, se reordena en
   varias filas y tiene su propio juego de reglas.
   ========================================================= */
@media (max-width: 1150px) {
  .menu:not(.menu--min) {
    position: fixed; inset: 0;
    background: var(--night); color: var(--bone);
    flex-direction: column; justify-content: center; gap: 1.6rem;
    /* Aire arriba para la barra y abajo para el indicador del telefono: sin
       el, en una pantalla de 667px el boton de reservar quedaba a once
       pixeles del borde. Y si algun dia no cabe, que se pueda desplazar en
       vez de perderse por debajo. */
    padding: calc(var(--head-h) + 1rem) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-101%);
    transition: transform 0.6s var(--ease);
  }
  .site-head.menu-open .menu:not(.menu--min) { transform: none; }
  .menu:not(.menu--min) .menu__link { font-family: var(--serif); font-weight: 400; font-size: 2rem; }
  /* En el menu desplegado los dos botones van al mismo tamano. */
  .menu:not(.menu--min) .menu__cta,
  .menu:not(.menu--min) .menu__wa { font-size: 1rem; padding: 0.8rem 2rem; }
  .site-head:not(.site-head--solid) .burger { display: block; z-index: 2; }

  /* En pantallas bajas —un movil de 667px, o cualquiera en horizontal— los
     cinco enlaces a 2rem mas los dos botones no caben, y «Reservar plaza»
     se iba por debajo del pliegue. Se baja la escala del menu, que es
     preferible a que el boton principal haya que buscarlo. */
  @media (max-height: 880px) {
    .menu:not(.menu--min) {
      gap: 0.85rem;
      /* arriba basta con librar la barra; no hace falta el aire de respiro */
      padding-top: var(--head-h);
      padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
    }
    /* Fluida con la altura, en vez de ir poniendo cortes: de un movil de
       640px a uno de 932 la escala acompana sola. */
    .menu:not(.menu--min) .menu__link { font-size: clamp(1.2rem, 3.1vh, 1.55rem); }
    .menu:not(.menu--min) .menu__cta,
    .menu:not(.menu--min) .menu__wa { font-size: 0.9rem; padding: 0.7rem 1.6rem; }
  }
}

@media (max-width: 820px) {
  .filo__grid { display: block; }
  .filo__lead, .filo__body { max-width: none; }
  .filo__media { margin-top: 2.5rem; }
  .filo__media .media { aspect-ratio: 3 / 4; max-height: 78svh; }

  .reel__grid { display: block; }
  .reel__texto { margin-top: 2.4rem; }
  .reel__lede { max-width: none; }

  .exp-intro__grid { display: block; }
  .exp-intro__title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .exp-intro__note { margin-top: 1.5rem; }

  .chapter, .chapter__inner { min-height: 88svh; }
  .chapter--b .chapter__inner { justify-content: flex-start; }
  .chapter--b .chapter__text { text-align: left; }
  .chapter__num { font-size: clamp(4.5rem, 26vw, 9rem) !important; }
  .chapter--c .chapter__num { color: rgba(242,236,224,0.10); }

  .figures { display: block; }
  .figure { margin: 0 0 2.8rem !important; }
  .figure__num { font-size: clamp(3.6rem, 20vw, 6rem); }

  .destinos__head { display: block; }
  .destinos__title { margin-top: 1rem; }
  .destinos__hint { text-align: left; margin-top: 1rem; }
  .slide { width: 82vw; height: 64svh; }

  .reservar__grid { display: block; }
  .form { margin-top: 3rem; }
  .contactlist { margin-bottom: 1rem; }

  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .form__two { grid-template-columns: 1fr; gap: 0; }
  .eyebrow { letter-spacing: 0.16em; font-size: var(--micro-lg); gap: 0.6rem; }
  .interlude__text { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .testi__quote { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }
}
