/* ==========================================================================
   NIEBLA · Reserva & Lodge — hoja de estilos
   Organización:  1) tokens  2) base/reset  3) tipografía  4) utilidades
   5) preloader/cursor  6) nav  7) hero  8) manifiesto  9) suites
   10) experiencias  11) cine (scrub)  12) gastronomía  13) galería
   14) cita  15) reserva  16) footer  17) responsive  18) reduced-motion
   ========================================================================== */

/* ------------------------------ 1) TOKENS ------------------------------ */
:root {
  /* Paleta: bosque de niebla. Verde profundo → bruma → oro cálido. */
  --forest-900: #0b130e;
  --forest-800: #0f1712;
  --forest-700: #16261d;
  --forest-600: #1d3327;
  --forest-500: #2c4636;
  --moss:       #5c7362;
  --mist:       #e8eeea;
  --paper:      #f4f2ec;
  --gold:       #c9a35e;
  --gold-soft:  #dcc08a;
  --cream:      #eef1ea;
  --ink:        #12201a;

  /* Escala tipográfica fluida (clamp: mínimo, preferido vw, máximo) */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --step-2:  clamp(1.8rem, 1.4rem + 1.9vw, 3rem);
  --step-3:  clamp(2.6rem, 1.9rem + 3.4vw, 5rem);
  --step-4:  clamp(3.4rem, 2.2rem + 6vw, 8rem);

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --radius: 14px;
}

/* ------------------------------ 2) BASE ------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* El atributo `hidden` debe ganar aunque la sección declare display:grid/flex. */
[hidden] { display: none !important; }

/* overflow-x:hidden va en HTML (no en body): en body convierte al body en el
   contenedor de scroll y desincroniza a ScrollTrigger/Lenis (que leen la ventana). */
html { scroll-behavior: smooth; background: var(--forest-900); overflow-x: hidden; } /* base bajo el canvas fijo */
/* Cuando Lenis toma el control, desactivamos el smooth nativo para no duplicar */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: transparent; /* deja ver el canvas fijo del recorrido */
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Grano fílmico global: mata el aspecto "flat" sin pesar (SVG inline) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--forest-900); }

/* ------------------------------ 3) TIPOGRAFÍA ------------------------------ */
.h-display, .hero__title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.h-display { font-size: var(--step-3); max-width: 16ch; text-shadow: 0 0 26px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.75), 0 3px 40px rgba(0,0,0,0.45); }

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* (Las cabeceras ya no se parten palabra por palabra: ahora "se acercan"
   como bloque, igual que el resto del contenido — ver .js [data-split] arriba.) */

/* ------------------------------ 4) UTILIDADES ------------------------------ */
.btn {
  --pad: 0.95em 1.6em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: var(--pad);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--solid { background: var(--gold); color: var(--forest-900); }
.btn--solid:hover { background: var(--gold-soft); }
.btn--ghost { border-color: rgba(238,241,234,0.35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--nav { background: transparent; border-color: rgba(238,241,234,0.3); padding: 0.7em 1.3em; }
.btn--nav:hover { background: var(--gold); color: var(--forest-900); border-color: var(--gold); }
.btn--block { width: 100%; }

.section-head { padding: 0 var(--gutter); margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }

section { position: relative; }

/* Estado inicial de reveals: el contenido nace LEJOS (pequeño + desenfocado) y
   se ACERCA (escala a 1 + enfoca) al entrar en vista — como si emergiera desde
   la profundidad del video. Solo oculto cuando corre el JS (.js en <html>). */
.js [data-reveal], .js [data-split], .js [data-split-lines] {
  opacity: 0; will-change: transform, opacity;
}

section[id] { scroll-margin-top: 6rem; } /* el nav fijo no tapa el borde al saltar a un ancla */

/* ------------------------------ 5) PRELOADER / CURSOR ------------------------------ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--forest-900);
  display: grid; place-content: center; gap: 1.6rem;
}
.preloader__word { display: flex; gap: 0.15em; font-family: var(--serif); font-size: clamp(2rem, 8vw, 5rem); color: var(--cream); }
.preloader__word span { opacity: 0; transform: translateY(120%); }
.preloader__bar { width: min(52vw, 320px); height: 1px; background: rgba(238,241,234,0.18); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--gold);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-active { width: 58px; height: 58px; background: rgba(201,163,94,0.15); border-color: transparent; }
@media (hover: none) { .cursor { display: none; } }

/* ------------------------------ 6) NAV ------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11,19,14,0.72);
  backdrop-filter: blur(14px);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(238,241,234,0.08);
}
.nav__brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.14em; }
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav__links a { font-size: var(--step--1); letter-spacing: 0.05em; opacity: 0.82; transition: opacity 0.3s, color 0.3s; }
.nav__links a:hover { opacity: 1; color: var(--gold); }

/* Hamburguesa: oculta en escritorio, visible <=860px (ver responsive). */
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 210; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--cream); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { bottom: 17px; }
body.menu-open .nav__toggle span:first-child { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* Panel de navegación móvil a pantalla completa. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,19,14,0.97); backdrop-filter: blur(8px);
  display: grid; place-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 1.4rem; text-align: center; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 3rem); color: var(--cream); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--gold); }

/* ------------------------------ 7) HERO ------------------------------ */
.hero { height: 100svh; min-height: 640px; position: relative; overflow: hidden; display: grid; }
.hero__layers { position: absolute; inset: -8% -4%; }
.hero .layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__video { z-index: 1; background-size: cover; background-position: center; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.layer--fog { mix-blend-mode: screen; opacity: 0.8; }
.layer--fog-low { opacity: 0.95; }
/* Viñeta para asentar el texto sobre las capas */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background: radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(11,19,14,0.55) 100%),
              linear-gradient(to top, rgba(11,19,14,0.85), transparent 45%);
}
.hero__content {
  position: relative; z-index: 6;
  align-self: center;
  padding: 0 var(--gutter);
  max-width: 60rem;
  will-change: transform;
}
.hero__content .eyebrow { margin-bottom: 1.4rem; }
.hero__title { font-size: var(--step-4); margin-bottom: 1.6rem; }
.hero__sub { max-width: 42ch; font-size: var(--step-1); color: rgba(238,241,234,0.82); font-weight: 300; margin-bottom: 2.4rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 6; display: grid; justify-items: center; gap: 0.7rem;
  font-size: var(--step--1); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(238,241,234,0.6);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2.2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------------------- 7b) RECORRIDO (scroll-scrub, pieza central) ---------------------- */
/* El video es el FONDO FIJO de toda la página; el hero abre lento (2 pantallas). */
.journey { position: relative; height: 200svh; background: transparent; }
.journey__stage { position: relative; height: 100svh; overflow: hidden; }

/* Pantallas de "revelado": transparentes (muestran el video viajando) con una
   leyenda por escena. Aportan lentitud/apreciación y narran el recorrido. */
.reveal { min-height: 120svh; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); }
.reveal__caption {
  font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
  font-size: var(--step-3); max-width: 20ch; color: var(--cream);
  /* Halo oscuro alrededor de las letras: legibles sobre cielo/nubes brillantes
     sin necesitar una caja. El texto vive DENTRO del paisaje. */
  text-shadow: 0 0 28px rgba(0,0,0,0.72), 0 2px 8px rgba(0,0,0,0.85), 0 3px 44px rgba(0,0,0,0.5);
}
/* Canvas + scrim fijos detrás de TODO (z-index negativos). El scrub (js) los
   hace viajar con el scroll de toda la página, terminando en el pie. */
/* inset:0 + 100% llenan el viewport completo (100svh se quedaba corto y dejaba
   una franja del fondo forest-900 asomando abajo). */
.journey__canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.journey__scrim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,19,14,0.55) 0%, rgba(11,19,14,0.26) 22%, rgba(11,19,14,0.26) 66%, rgba(11,19,14,0.74) 100%),
    radial-gradient(120% 90% at 50% 30%, transparent 46%, rgba(11,19,14,0.34) 100%);
}
.journey__beats { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); }
.beat { position: absolute; max-width: 44rem; opacity: 0; will-change: opacity, transform; }
.beat .eyebrow { display: block; margin-bottom: 1.2rem; }
.beat__title {
  font-family: var(--serif); font-weight: 400; line-height: 1.0; letter-spacing: -0.02em;
  font-size: var(--step-3); margin-bottom: 1rem; text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
.beat__title--brand { font-size: clamp(4rem, 16vw, 12rem); letter-spacing: 0.04em; }
.beat__sub { font-size: var(--step-1); color: rgba(238,241,234,0.9); font-family: var(--serif); font-weight: 300; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.beat .btn { margin-top: 2rem; }

.journey__cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 4;
  display: grid; justify-items: center; gap: 0.7rem; opacity: 0; transition: opacity 0.6s var(--ease);
  font-size: var(--step--1); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(238,241,234,0.6);
}
.journey.is-ready .journey__cue { opacity: 1; }
.journey__loader { position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%); z-index: 5; display: grid; justify-items: center; gap: 0.6rem; transition: opacity 0.6s var(--ease); }
.journey__loader.is-done { opacity: 0; pointer-events: none; }
.journey__loader-bar { display: block; width: min(40vw, 200px); height: 2px; background: rgba(238,241,234,0.18); overflow: hidden; }
.journey__loader-bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.journey__loader-pct { font-size: var(--step--1); letter-spacing: 0.2em; color: rgba(238,241,234,0.6); }

/* Fallback estático (sin GSAP / reduced-motion): 1 pantalla, primer beat, sin pin. */
.journey.is-static { height: 100svh; }
.journey.is-static .journey__stage { position: relative; }
.journey.is-static .beat { position: relative; opacity: 1 !important; transform: none !important; }
.journey.is-static .beat:not([data-beat="0"]) { display: none; }
.journey.is-static .journey__loader { display: none; }

/* ------------------------------ 8) MANIFIESTO (expand) ------------------------------ */
.manifesto { padding: clamp(6rem, 14vw, 12rem) 0 clamp(4rem, 8vw, 8rem); }
.manifesto__intro { padding: 0 var(--gutter); max-width: 60rem; margin-bottom: clamp(2rem, 6vw, 5rem); }
.manifesto__intro .eyebrow { display: block; margin-bottom: 1.2rem; }
.manifesto__intro .h-display { max-width: 20ch; }

.expand { height: 220vh; position: relative; }
.expand__media {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.expand__media img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: clip-path, transform;
}
.expand__caption {
  position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 5vw, 3.5rem);
  z-index: 2; max-width: 26ch;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.expand__caption span { display: block; font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.manifesto__text { padding: clamp(3rem, 8vw, 7rem) var(--gutter) 0; max-width: 48rem; margin-left: auto; }
.manifesto__text p { font-size: var(--step-1); font-family: var(--serif); font-weight: 300; line-height: 1.4; }

/* ------------------------------ 9) SUITES ------------------------------ */
.suites { padding: clamp(5rem, 12vw, 10rem) 0; }
.suites__grid {
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
/* Tarjeta de VIDRIO: panel translúcido que deja ver el paisaje detrás; la foto
   del cuarto va enmarcada arriba y el texto en el cuerpo de vidrio. */
.suite-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: rgba(11,19,14,0.24);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(238,241,234,0.12);
  padding: clamp(0.7rem, 1.4vw, 1.1rem);
  display: flex; flex-direction: column; gap: clamp(0.7rem, 1.6vw, 1.1rem);
  isolation: isolate;
}
.suite-card--wide { grid-column: 1 / -1; }
.suite-card__media {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 16 / 11;
  background-size: cover; background-position: center;
  transition: transform 0.9s var(--ease);
}
.suite-card--wide .suite-card__media { aspect-ratio: 24 / 9; }
.suite-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.suite-card:hover .suite-card__media { transform: scale(1.05); }
.suite-card__body { padding: 0.1rem clamp(0.4rem, 1vw, 0.8rem) clamp(0.4rem, 1vw, 0.7rem); }
.suite-card__price { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.suite-card__body h3 { font-family: var(--serif); font-size: var(--step-2); font-weight: 400; margin: 0.5rem 0 0.6rem; }
.suite-card__body p { max-width: 36ch; color: rgba(238,241,234,0.78); font-size: var(--step-0); }

/* ------------------------------ 10) EXPERIENCIAS (parallax) ------------------------------ */
.experiences {
  min-height: 118vh; overflow: hidden;
  display: grid; align-items: center;
}
.experiences__bg, .experiences__fog {
  position: absolute; inset: -12% 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.experiences__fog { z-index: -1; mix-blend-mode: screen; opacity: 0.65; }
.experiences::before { content: ""; position: absolute; inset: 0; background: rgba(8,13,10,0.55); z-index: -1; }
.experiences__inner { padding: clamp(4rem, 10vw, 9rem) var(--gutter); max-width: 60rem; }
.experiences__inner .eyebrow { display: block; margin-bottom: 1.2rem; }
.experiences__inner .h-display { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.experiences__list { list-style: none; display: grid; gap: 0.4rem; }
.experiences__list li {
  display: flex; gap: clamp(1rem, 3vw, 2.4rem); align-items: baseline;
  padding: 1.1rem 0; border-top: 1px solid rgba(238,241,234,0.14);
  font-size: var(--step-1); font-weight: 300;
}
.experiences__list li:last-child { border-bottom: 1px solid rgba(238,241,234,0.14); }
.experiences__list span { color: var(--gold); font-family: var(--serif); font-size: var(--step-0); min-width: 4.5em; }

/* ------------------------------ 11) CINE (scrub video) ------------------------------ */
.cinema { position: relative; }
.cinema__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.cinema__media {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  will-change: transform;
}
.cinema__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Fallback vivo mientras no exista el mp4: bruma que deriva */
.cinema__fallback {
  position: absolute; inset: -20%;
  background: radial-gradient(60% 50% at 30% 40%, rgba(232,238,234,0.5), transparent 60%),
             radial-gradient(50% 40% at 75% 65%, rgba(232,238,234,0.4), transparent 60%);
  mix-blend-mode: screen;
  animation: fogdrift 22s ease-in-out infinite alternate;
}
@keyframes fogdrift { from { transform: translate3d(-4%, 2%, 0) scale(1.1); } to { transform: translate3d(6%, -3%, 0) scale(1.25); } }
.cinema::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cinema__caption { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.cinema__caption .h-display { margin: 0 auto 1rem; max-width: 18ch; }
.cinema__caption p { color: rgba(238,241,234,0.82); font-size: var(--step-1); font-family: var(--serif); }
.cinema__track { height: 200vh; }

/* ------------------------------ 12) GASTRONOMÍA ------------------------------ */
.gastro {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
}
.gastro__media { overflow: hidden; border-radius: var(--radius); }
.gastro__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transform: scale(1.15); will-change: transform; }
.gastro__text .eyebrow { display: block; margin-bottom: 1.2rem; }
.gastro__text .h-display { margin-bottom: 1.6rem; }
.gastro__text p { color: rgba(238,241,234,0.8); margin-bottom: 2rem; max-width: 44ch; }

/* ------------------------------ 13) GALERÍA ------------------------------ */
.gallery { padding: clamp(4rem, 10vw, 9rem) 0; }
.gallery__grid {
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 30vh; gap: clamp(0.8rem, 1.6vw, 1.6rem);
}
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); grid-row: span 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 130%; object-fit: cover; position: absolute; inset: 0; will-change: transform; }

/* ------------------------------ 14) CITA ------------------------------ */
.quote { text-align: center; padding: clamp(6rem, 16vw, 14rem) var(--gutter); max-width: 52rem; margin: 0 auto;
  background: radial-gradient(60% 60% at 50% 50%, rgba(11,19,14,0.62), transparent 76%); }
.quote blockquote { font-family: var(--serif); font-size: var(--step-2); font-weight: 300; line-height: 1.25; letter-spacing: -0.01em; text-shadow: 0 2px 30px rgba(0,0,0,0.55); }
.quote cite { display: block; margin-top: 1.6rem; font-style: normal; color: var(--gold); letter-spacing: 0.14em; font-size: var(--step--1); text-transform: uppercase; }
[data-split-lines] .word { display: inline-block; will-change: transform, opacity; }

/* ------------------------------ 15) RESERVA ------------------------------ */
.booking { padding: clamp(4rem, 10vw, 9rem) var(--gutter) clamp(6rem, 12vw, 10rem); }
.booking__inner {
  /* Vidrio: el paisaje se ve a través en vez de una caja opaca. */
  background: rgba(11,19,14,0.34);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(238,241,234,0.14);
  border-radius: clamp(18px, 3vw, 34px);
  padding: clamp(2rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.booking__copy p, .booking__copy .h-display { text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.booking__copy .eyebrow { display: block; margin-bottom: 1.2rem; }
.booking__copy .h-display { margin-bottom: 1.4rem; }
.booking__copy p { color: rgba(238,241,234,0.78); max-width: 40ch; }
.booking__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(238,241,234,0.75); }
.field input, .field select {
  width: 100%; padding: 0.9em 1em;
  background: rgba(11,19,14,0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(238,241,234,0.22); border-radius: 10px;
  color: var(--cream); font-family: var(--sans); font-size: var(--step-0);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
/* Foco visible robusto por teclado (no basta cambiar 1px de borde). */
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,163,94,0.5); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #e6a08a; }
.booking__form .btn { grid-column: 1 / -1; }
.booking__note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--gold); min-height: 1.2em; }

/* ------------------------------ 16) FOOTER ------------------------------ */
/* Footer inmersivo: el paisaje (spa) se ve detrás; solo un velo suave hacia
   abajo para el texto legal. El texto flota con sombra, no en caja opaca. */
.footer { position: relative; background: linear-gradient(to bottom, transparent, rgba(8,13,10,0.55)); padding: clamp(4rem, 10vw, 8rem) var(--gutter) 2.4rem; }
.footer__brand { font-family: var(--serif); font-size: clamp(3rem, 12vw, 9rem); letter-spacing: 0.06em; line-height: 1; color: rgba(238,241,234,0.16); margin-bottom: 2rem; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.footer h3, .footer a, .footer p, .footer__legal { text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer__cols h3 { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 500; }
.footer__cols a, .footer__cols p { display: block; color: rgba(238,241,234,0.72); font-size: var(--step-0); margin-bottom: 0.4rem; transition: color 0.3s; }
.footer__cols a:hover { color: var(--gold); }
.footer__legal { font-size: var(--step--1); color: rgba(238,241,234,0.64); }

/* ------------- VIDEO INYECTADO (contrato Veo) ------------- */
/* Los <video> que crea video.js entran con fundido; si el mp4 falta, queda
   el poster de fondo y nunca se ve un hueco. */
[data-video] video { opacity: 0; transition: opacity 0.6s var(--ease); }
[data-video].has-video video { opacity: 1; } /* suites: solo al hover; scrub: al cargar */
.cinema__media.has-video .cinema__fallback { opacity: 0; transition: opacity 0.8s var(--ease); }

/* ------------- DINAMISMO (progreso, marquee, deriva de niebla) ------------- */
/* Barra de progreso de lectura (scaleX la maneja GSAP con el scroll). */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: left;
}

/* Marquee cinético: ribbon de serif en movimiento continuo. */
.marquee { overflow: hidden; padding: clamp(1.4rem, 4vw, 3rem) 0; background: rgba(11,19,14,0.5); border-block: 1px solid rgba(238,241,234,0.1); }
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee 34s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 7vw, 5rem); letter-spacing: -0.01em;
  color: rgba(238,241,234,0.4); white-space: nowrap; /* ghost sobre el video */
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Deriva interna de la niebla del hero: viva incluso en reposo. GSAP controla
   el transform de estas capas; aquí animamos SOLO background-position (no choca). */
.hero .layer--fog { animation: fogshift 44s ease-in-out infinite alternate; }
@keyframes fogshift { from { background-position: 47% 50%; } to { background-position: 53% 50%; } }

/* ------------------------------ 17) RESPONSIVE ------------------------------ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  /* .journey ya es 100svh (el video es fondo fijo de toda la página). */
  .suites__grid { grid-template-columns: 1fr; }
  .gastro { grid-template-columns: 1fr; }
  .booking__inner { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 26vh; }
  .gallery__item--wide { grid-column: span 2; }
  .expand { height: 180vh; }
  .cinema__track { height: 140vh; }
}
@media (max-width: 520px) {
  .booking__form { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 32vh; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
}

/* ------------------------------ 18) REDUCED MOTION ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
  .hero__layers { inset: 0; }
  .journey { height: 100svh; } /* sin pin: una sola pantalla */
  .journey__stage { position: relative; }
  .expand { height: auto; }
  .expand__media { position: relative; height: auto; }
  .expand__media img { height: auto; } /* evita alto porcentual ambiguo con contenedor auto */
  .cinema__track { height: 0; }
  .cinema__sticky { position: relative; height: 80vh; }
}
