/* Casa Glider v2 — main.css
   Referencia de diseño: medidas tomadas de steuermann.haus (parecido, no idéntico).
   Tokens primero; todo lo demás los usa. */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color: fondo blanco, texto gris azulado, títulos casi negros, un solo acento discreto */
  --bg: #fff;
  --white: #fff;
  --ink: rgb(55, 55, 65);          /* títulos */
  --text: rgb(108, 117, 127);      /* cuerpo */
  --line: rgba(55, 55, 65, 0.16);
  --soft: #eef0f2;                 /* fondo de fotos que faltan (gris neutro, sin tinte) */
  --accent: #3b6b86;               /* lago, discreto */
  --error: #b3261e;                /* solo mensajes de error del formulario */
  --muted: var(--text);            /* alias: lo usan el carrusel y el formulario */
  --taupe: var(--soft);

  /* Tipografía (a 1800 px: cuerpo 19/28, título 37, subtítulo 26) */
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans);
  --fs-body: clamp(1.0625rem, 1.01rem + 0.17vw, 1.1875rem);
  --fs-title: clamp(1.75rem, 1.55rem + 0.7vw, 2.3125rem);
  --fs-sub: clamp(1.25rem, 1.12rem + 0.5vw, 1.625rem);
  --fs-quote: clamp(1.75rem, 1.55rem + 0.7vw, 2.3125rem);
  --fs-small: 0.875rem;

  /* Medidas */
  --gutter: clamp(2.75rem, 1.4rem + 3.4vw, 4.5rem);
  --measure: 53.125rem;                                /* 850 px: ancho del texto en dos columnas */
  --wide: 72rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --z-tag: 40;
  --z-menu: 55;
  --z-topbar: 60;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.474;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video { max-width: 100%; }

.skip {
  position: fixed; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Barra superior: logo a la izquierda, menú a la derecha ---------- */
.topbar {
  position: fixed; z-index: var(--z-topbar); left: 0; right: 0;
  top: clamp(0.5rem, 1.2vw, 1.5rem); padding: 0 clamp(0.75rem, 2vw, 2rem) 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--white); pointer-events: none;
  transition: color 0.3s var(--ease);
}
.topbar > * { pointer-events: auto; }
body[data-tone="light"] .topbar { color: var(--ink); }
body.menu-open .topbar { color: var(--ink); }
body[data-tone="dark"]:not(.menu-open) .topbar .wordmark { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }

.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1; padding: 0; }
.burger { position: relative; width: 44px; height: 44px; }
.burger span, .film-modal__close span {
  position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Menú a pantalla completa ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--bg); color: var(--ink);
  padding: clamp(5.5rem, 14vh, 9rem) var(--gutter) 4rem;
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.menu:focus { outline: none; }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease); }
.menu__list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--measure); display: grid; gap: 0.2rem; }
.menu__list a {
  display: inline-block; padding: 0.15em 0; font-size: var(--fs-title); line-height: 1.25;
  letter-spacing: 1px; text-transform: lowercase; transition: color 0.2s;
}
.menu__list a:hover, .menu__list a:focus-visible { color: var(--accent); }
.menu__list li { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: 0.04s; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: 0.08s; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: 0.12s; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: 0.16s; }
.menu.is-open .menu__list li:nth-child(6) { transition-delay: 0.2s; }
.menu.is-open .menu__list li:nth-child(7) { transition-delay: 0.24s; }
.menu__sep { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---------- Trazo superior fijo (brújula) ---------- */

.compass {
  position: fixed; z-index: var(--z-tag); left: 50%; top: clamp(0.5rem, 1.2vw, 1.5rem);
  width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; pointer-events: none;
  color: var(--white); transition: color 0.3s var(--ease);
}
body[data-tone="light"] .compass { color: var(--ink); }
/* Sobre fondo claro: un velo blanco suave y difuminado detrás del trazo para que no tape el texto */
.compass::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s var(--ease);
}
body[data-tone="light"] .compass::before { opacity: 1; }
.compass svg { position: relative; display: block; width: 36px; height: 36px; will-change: transform; }
body[data-tone="dark"] .compass svg { filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.3)); }

body.overlay-open .topbar, body.overlay-open .compass, body.menu-open .compass { visibility: hidden; }

/* ---------- Hero: solo el video ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 30rem; overflow: hidden;
  color: var(--white);
  /* Mientras carga el video (o si no corre) se ve el póster a pantalla completa, con el degradado detrás */
  background: url("../video/hero-02-poster.jpg") center / cover no-repeat, linear-gradient(180deg, #34506b 0%, #6f8da5 55%, #a9b9bf 100%);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Botón de pausa/reproducir del hero y botón "Play" de los videos de los interiores (44 px mínimo) */
.hero__toggle, .exp-screen__play {
  position: absolute; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; min-width: 44px; min-height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 50%; background: rgba(0, 0, 0, 0.28); color: var(--white); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.hero__toggle { right: clamp(0.75rem, 2vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); }
.hero__toggle[data-state="paused"] svg, .exp-screen__play svg { margin-left: 2px; }
.hero__toggle:hover, .hero__toggle:focus-visible, .exp-screen__play:hover, .exp-screen__play:focus-visible { background: var(--white); color: #111; outline: none; }
.exp-screen__play { display: none; z-index: 6; right: 1.25rem; bottom: 1.25rem; }
.exp-screen__play.is-needed { display: grid; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 76%, rgba(0,0,0,0.22) 100%);
}

/* ---------- Piezas compartidas ---------- */
.todo { background: rgba(59, 107, 134, 0.1); outline: 1px dashed rgba(59, 107, 134, 0.55); outline-offset: 1px; }

.section { padding: clamp(5rem, 10vw, 11rem) var(--gutter); }
.wrap { max-width: min(var(--measure), 70vw); margin: 0 auto; }   /* texto entre 15% y 85% del ancho */
.wrap--wide { max-width: var(--wide); }

/* Dos columnas: título a la izquierda, texto a la derecha */
.cols { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.title {
  margin: 0 0 1.4em; font-size: var(--fs-title); font-weight: 400; color: var(--ink);
  line-height: 1.2; letter-spacing: 1px; text-transform: lowercase;
}
.cols > .title { margin-bottom: 0; }
.title span { display: block; }
.title .title__sub, .title .lema { font-size: var(--fs-sub); line-height: 1.3; margin-top: 0.35em; color: var(--text); }

.prose p { margin: 0 0 0.9em; max-width: 36rem; text-indent: 1.6em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--ink); }
.cols > .prose { padding-top: 0.45em; }

/* Enlaces pequeños, grises, con flecha */
.more {
  display: inline-block; margin-top: 0.8rem; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0.01em; color: var(--text);
  text-transform: none; border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s;
}
.more::after { content: " →"; transition: margin-left 0.3s var(--ease); }
.more:hover, .more:focus-visible { color: var(--ink); border-bottom-color: var(--line); }
.more:hover::after { margin-left: 0.25em; }
.prose .more { display: block; width: fit-content; margin-top: 0.5rem; }
.prose .links { margin-top: 1.4rem; text-indent: 0; }

/* Fotos y pies de foto */
.photo { margin: 0; position: relative; }
.photo > img, .photo > picture img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--soft); }
.photo figcaption, .cap {
  margin-top: 0.7rem; max-width: 24rem; font-size: var(--fs-small); line-height: 1.4; color: var(--text);
}
.photo figcaption strong, .cap strong { display: block; font-weight: 700; color: var(--ink); }
[data-todo].is-empty { background: var(--soft); }
[data-todo].is-empty img { visibility: hidden; }
[data-todo].is-empty::after {
  content: attr(data-todo); position: absolute; inset: 0; display: grid; place-items: center;
  padding: 1rem; text-align: center; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}

/* Página de una casa: etiqueta lateral activa, enlace de regreso, secciones más juntas */
.menu__list a[aria-current="page"] { color: var(--accent); }
.more--back::before { content: "← "; }
.more--back::after { content: none; }
.section--tight { padding-top: clamp(2.5rem, 5vw, 5rem); }

/* ---------- Modal de video ---------- */
/* ---------- Film modal ---------- */
.film-modal {
  padding: 0; border: 0; background: #000; color: var(--white);
  width: min(94vw, 1400px); max-height: 92vh; overflow: visible;
}
.film-modal::backdrop { background: rgba(20, 18, 16, 0.88); }
.film-modal video { display: block; width: 100%; max-height: 92vh; background: #000; }
.film-modal__close { position: absolute; z-index: 2; top: -3rem; right: 0; width: 44px; height: 44px; }
.film-modal__close span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.film-modal__close span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Reveal (hidden state only when main.js turns it on) ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ================= Composiciones (alternan para dar ritmo) =================
   A  foto alta a la izquierda · texto a partir del 54% · foto pequeña abajo a la derecha
   C  franja: foto a todo el ancho, sin texto (.band)
   D  dos fotos grandes lado a lado, cada una con título y enlace (.duo)
   Pantallas angostas: una sola columna, foto primero y texto debajo. */
:root { --duo-grey: rgb(142, 150, 160); }

/* Título en dos tonos: primera línea oscura, segunda gris más claro, mismo tamaño */
.title--duo span:nth-child(2) { color: var(--duo-grey); }
.title--duo .title__sub { color: var(--text); }

/* Foto: el recuadro lleva la proporción; la imagen lo llena (o queda el bloque gris con TODO) */
.photo__media { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.photo__media > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* Enlace pequeño en mayúsculas, con flecha ▸ en el acento */
.link-cap {
  display: inline-block; margin-top: 1.2rem; font-size: 0.75rem; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-indent: 0;
}
.link-cap::after { content: " ▸"; color: var(--accent); }
.link-cap:hover, .link-cap:focus-visible { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link-cap--back::before { content: "◂ "; color: var(--accent); }
.link-cap--back::after { content: none; }
.prose .link-cap { display: block; width: fit-content; margin-top: 1.6rem; }

.cmp .prose p { max-width: none; }
.cmp__text { max-width: calc(34rem + var(--gutter)); }

/* A */
.cmp { padding: clamp(3.5rem, 7vw, 8rem) 0; }
.cmp-a {
  display: grid; grid-template-columns: 15% 33% 6% 31% 15%;   /* contenido entre 15% y 85% */
  grid-template-rows: auto auto; padding-bottom: clamp(6rem, 11vw, 13rem);
}
.cmp-a .cmp__tall { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.cmp-a .cmp__tall .photo__media { max-height: 92vh; max-height: 92svh; }
.cmp-a .cmp__tall .photo__media > img { object-position: 50% 30%; }   /* la cara y el ala delta: el recorte horizontal de móvil conserva la mano y la cabeza */
.cmp-a .cmp__text { grid-column: 4; grid-row: 1; align-self: start; padding: clamp(2rem, 7vw, 8rem) 0 clamp(2.5rem, 5vw, 5rem) 0; }
.cmp-a .cmp__small {
  grid-column: 4; grid-row: 2; justify-self: end; width: max(18vw, 9rem); margin-right: 0;
  margin-bottom: calc(-1 * clamp(2rem, 6vw, 7rem));
}
.cmp-a .cmp__small .photo__media { aspect-ratio: 3 / 4; }

/* C */
.band {
  position: relative; overflow: hidden; margin: clamp(2rem, 4vw, 4rem) 0; background: var(--soft);
  height: clamp(16rem, 66vh, 64rem); height: clamp(16rem, 66svh, 64rem);
}
.band > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* D */
.duo-sec { padding: clamp(3rem, 6vw, 6rem) 15%; }   /* contenido entre 15% y 85% */
.duo { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4.3%; row-gap: 3rem; }   /* cada foto ~33% del ancho de la pantalla, separación ~3% */
.duo__photo { display: block; }
.duo__photo .photo__media { max-height: 88vh; max-height: 88svh; }
.duo__title { margin: 1.1rem 0 0; font-size: var(--fs-sub); font-weight: 400; line-height: 1.3; letter-spacing: 1px; text-transform: lowercase; color: var(--ink); }
.duo__item { display: flex; flex-direction: column; }
/* Párrafo de la tarjeta: gris, sangría de primera línea. 19px/28px (1.474) desde ~1400 px de ancho; por debajo escala con el ancho
   (1.36vw, mínimo 14px) para que siga ocupando dos líneas en tarjetas de ~33% del ancho a partir de 1100 px. */
.duo__text { flex: 1; margin: 0.5rem 0 0; font-size: clamp(14px, 1.36vw, 19px); line-height: 1.474; text-indent: 1.6em; }
.duo__item .link-cap { margin-top: 0.9rem; align-self: flex-start; }

/* Pantallas angostas: una columna, la foto primero y el texto debajo */
@media (max-width: 900px) {
  .cmp { display: flex; flex-direction: column; padding: clamp(2.5rem, 8vw, 4rem) var(--gutter); }
  .cmp .cmp__tall .photo__media { aspect-ratio: 4 / 3; max-height: none; }
  .cmp .cmp__text { padding: 2rem 0 2.2rem; max-width: none; }
  /* La foto grande ocupa todo el ancho útil (sin esto el align-self: start de escritorio la dejaba de 60 px) */
  .cmp .cmp__tall { align-self: stretch; width: 100%; }
  .cmp-a .cmp__small { width: min(78%, 22rem); margin: 0; }
  .cmp-a .cmp__small { align-self: flex-end; }
}
@media (max-width: 600px) {
  .cmp .cmp__tall .photo__media { aspect-ratio: 4 / 5; }
  .cmp-a .cmp__small { width: 82%; }
  .band { height: clamp(14rem, 52svh, 26rem); }
}
@media (max-width: 720px) {
  .duo { grid-template-columns: 1fr; gap: 3rem; }
  .duo__photo .photo__media { aspect-ratio: 4 / 3; max-height: none; }
}

/* ---------- Para hacer en Valle de Bravo: carrusel de tarjetas ---------- */
:root { --cols-gap: clamp(1.5rem, 4vw, 3.5rem); --edge: max(var(--gutter), calc((100% - var(--measure)) / 2)); }
.experiences { padding-bottom: clamp(4rem, 8vw, 8rem); }
.carousel { margin: clamp(3rem, 6vw, 5rem) calc(var(--gutter) * -1) 0; }
.carousel__track {
  position: relative; list-style: none; margin: 0; padding: 0 var(--edge) 0.5rem;
  display: flex; align-items: flex-start; gap: clamp(0.9rem, 1.6vw, 1.75rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; user-select: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -6px; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-dragging a { pointer-events: none; }

/* Tarjeta: foto en color natural arriba (sin velos), título y frase debajo */
.card { flex: 0 0 clamp(15rem, 23vw, 21rem); scroll-snap-align: start; }
.card__frame { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--soft); }
/* Mascara: la imagen es 128% mas ancha (14% de sobra a cada lado) y main.js la desplaza dentro del marco al mover el carrusel */
.card__img { position: absolute; top: 0; left: -14%; display: block; width: 128%; height: 100%; object-fit: cover; will-change: transform; }
.card__frame[data-todo].is-empty::after { color: var(--text); }
.card__text { display: block; padding-top: 1rem; }
.card__title { display: block; margin: 0; font-size: var(--fs-sub); font-weight: 400; line-height: 1.2; letter-spacing: 1px; text-transform: lowercase; color: var(--ink); transition: color 0.25s; }
.card__desc { display: block; max-width: 26ch; margin-top: 0.45rem; font-size: var(--fs-small); line-height: 1.4; color: var(--text); }
.card__link:hover .card__title, .card__link:focus-visible .card__title { color: var(--accent); }
.card__link:focus-visible { outline-offset: 6px; }
.card__play {
  position: absolute; z-index: 1; top: 0.75rem; right: 0.75rem; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); padding-left: 2px;
}

.carousel__bar { display: none; }
.carousel.is-ready .carousel__bar { display: flex; align-items: center; gap: 2rem; padding: 1.8rem var(--edge) 0; }
.carousel__progress { position: relative; flex: 1; height: 1px; background: var(--line); }
.carousel__progress i { position: absolute; left: 0; top: -0.5px; width: 30%; height: 2px; background: var(--ink); transition: left 0.15s linear; }
.carousel__arrows { display: flex; gap: 0.5rem; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s; }
.arrow--prev svg { transform: scaleX(-1); }
.arrow:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.arrow:disabled { opacity: 0.3; cursor: default; }

/* Las tarjetas suben una tras otra (solo cuando main.js activa .reveal-on) */
.reveal-on .carousel__track[data-reveal="cards"] { opacity: 1; transform: none; }
.reveal-on .carousel__track[data-reveal="cards"] .card { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-on .carousel__track[data-reveal="cards"].is-in .card { opacity: 1; transform: none; }
.reveal-on .carousel__track[data-reveal="cards"].is-in .card:nth-child(2) { transition-delay: 0.12s; }
.reveal-on .carousel__track[data-reveal="cards"].is-in .card:nth-child(3) { transition-delay: 0.24s; }
.reveal-on .carousel__track[data-reveal="cards"].is-in .card:nth-child(4) { transition-delay: 0.36s; }

/* ---------- Interiores (a pantalla completa con JS; bloques normales sin JS) ---------- */
.exp-details { padding: 0; }
.exp-detail { display: block; margin: 0 0 clamp(4rem, 8vw, 8rem); }
.detail__back { display: inline-block; margin: 0 0 1.5rem var(--gutter); font-size: 0.9375rem; color: var(--text); }
.detail__close { display: none; }
.exp-js .detail__back { display: none; }
.exp-js .exp-details { padding: 0; }

.exp-js .exp-detail {
  position: fixed; inset: 0; z-index: 58; margin: 0; max-width: none; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); visibility: hidden; opacity: 0; transform: scale(0.985);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.exp-js .exp-detail.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.exp-detail:focus { outline: none; }
.exp-js .detail__close {
  position: fixed; z-index: 30; top: clamp(0.5rem, 1.2vw, 1.5rem); right: clamp(0.75rem, 2vw, 2rem); display: block;
  width: 48px; height: 48px; min-width: 44px; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink);
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.detail__close span { position: absolute; left: 14px; right: 14px; top: 23px; height: 1px; background: currentColor; }
.detail__close span:nth-child(1) { transform: rotate(45deg); }
.detail__close span:nth-child(2) { transform: rotate(-45deg); }
body.overlay-open { overflow: hidden; }

.slide__item.is-empty { background: #b3b8be; }
.slide__item { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.6s var(--ease); }
.slide__item.is-active { opacity: 1; }
.slide__item img, .slide__item video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Medios verticales: la imagen completa sobre una copia desenfocada de sí misma (la fija main.js) */
.slide__item[data-fit="contain"] { background: var(--soft); }
.slide__item[data-fit="contain"]::before {
  content: ""; position: absolute; inset: -8%; background: var(--bg, none) center / cover; filter: blur(26px) brightness(0.92);
}
.slide__item[data-fit="contain"] img, .slide__item[data-fit="contain"] video { object-fit: contain; }
.item__play { position: absolute; z-index: 5; right: 1.25rem; bottom: 1.25rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.item__play .watch__icon { background: rgba(0, 0, 0, 0.25); }
.watch { display: inline-flex; align-items: center; gap: 0.9rem; color: var(--white); }
.watch__label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.watch__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9); padding-left: 2px; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.watch:hover .watch__icon { background: var(--white); color: var(--ink); }


/* ---------- Componente .exp-screen: interior de experiencia en UNA pantalla fija ----------
   Fondo (video/foto) + velo + título grande a la derecha + lista .exp-list a la izquierda (4%–42% del ancho, desde 22vh).
   Desde 768 px: sin scroll de página; main.js (fitExpList) compacta la tipografía con data-density 1 y 2 si la lista no cabe y,
   solo si aun así no cabe, la columna de texto tiene su propio scroll fino (data-scroll="true"). Es el único scroll permitido.
   Menos de 768 px: se apila (fondo fijo, título arriba, lista debajo con velo más fuerte) y el interior sí se desplaza.
   Sin JS: el interior es un bloque más de la página (la barra "← Experiencias" vuelve a la lista). */
.exp-screen { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #2c2f33; color: var(--white); margin: 0; }
.exp-screen__bg { position: absolute; inset: 0; background: var(--soft); overflow: hidden; }
.exp-js .exp-screen__bg { position: fixed; }
.exp-screen__bg [data-todo].is-empty::after { color: var(--text); }
.exp-screen__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.38) 0%, rgba(12, 14, 18, 0.18) 30%, rgba(12, 14, 18, 0) 50%),
              linear-gradient(to right, rgba(12, 14, 18, 0.72) 0%, rgba(12, 14, 18, 0.5) 30%, rgba(12, 14, 18, 0) 55%);
}
.exp-js .exp-screen__veil { position: fixed; }
.exp-screen .detail__back { position: absolute; z-index: 5; top: 1.25rem; left: var(--gutter); margin: 0; color: var(--white); }
.exp-screen__title { pointer-events: none; position: relative; z-index: 4; padding: clamp(5rem, 22svh, 9rem) var(--gutter) 0; --display-min: 64px; }
.exp-list { position: relative; z-index: 4; padding: 2rem var(--gutter) 3rem; }
.exp-list__intro { margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.exp-item { margin: 0 0 1.5rem; }
.exp-item__title { margin: 0 0 0.35em; font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--white); }
.exp-item__text { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.exp-item__contact { margin: 0.55em 0 0; font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.exp-item__contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.exp-screen .todo { background: rgba(255, 255, 255, 0.14); outline-color: rgba(255, 255, 255, 0.7); }
.exp-list .link-cap { display: block; width: fit-content; margin-top: 0.4rem; color: var(--white); }
.exp-list .link-cap::after { color: currentColor; }
/* Móvil: velo parejo y más fuerte; el botón "Ver" queda después de la lista */
@media (max-width: 767px) {
  .exp-screen__veil { background: rgba(12, 14, 18, 0.62); }
  .exp-screen__title { text-align: right; }
  .exp-screen__watch { position: relative; margin: 0 var(--gutter) 2.5rem auto; z-index: 4; display: flex; width: fit-content; right: auto; bottom: auto; }
}
@media (min-width: 768px) {
  .exp-js .exp-detail.exp-screen { overflow: hidden; }
  .exp-screen { height: 100vh; height: 100svh; }
  .exp-screen__title {
    position: absolute; top: 22vh; top: 22svh; right: calc(clamp(0.75rem, 2vw, 2rem) + 9px); padding: 0;
    max-width: 50%; text-align: right;
  }
  .exp-list {
    --list-top: 22svh; position: absolute; top: 22vh; top: var(--list-top); left: 4%; width: 38%; padding: 0 1rem 0 0;
    max-height: calc(100vh - 22vh - 4vh); max-height: calc(100svh - var(--list-top) - 4svh);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
  }
  .exp-list::-webkit-scrollbar { width: 5px; }
  .exp-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.45); border-radius: 3px; }
  .exp-screen__watch { position: absolute; z-index: 5; right: 1.25rem; bottom: 1.25rem; }
  /* Densidad: la fija main.js según el alto disponible (0 = normal) */
  .exp-list[data-density="1"] .exp-list__intro, .exp-list[data-density="1"] .exp-item__text { font-size: 16px; line-height: 1.4; }
  .exp-list[data-density="1"] .exp-item__title { font-size: 18px; margin-bottom: 0.25em; }
  .exp-list[data-density="1"] .exp-item, .exp-list[data-density="1"] .exp-list__intro { margin-bottom: 1rem; }
  .exp-list[data-density="1"] .exp-item__contact { margin-top: 0.35em; font-size: 0.6875rem; }
  .exp-list[data-density="2"] .exp-list__intro, .exp-list[data-density="2"] .exp-item__text { font-size: 14px; line-height: 1.32; }
  .exp-list[data-density="2"] .exp-item__title { font-size: 16px; margin-bottom: 0.15em; }
  .exp-list[data-density="2"] .exp-item, .exp-list[data-density="2"] .exp-list__intro { margin-bottom: 0.7rem; }
  .exp-list[data-density="2"] .exp-item__contact { margin-top: 0.25em; font-size: 0.625rem; }
  .exp-list[data-density="2"] .link-cap { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slide__item, .exp-js .exp-detail { transition: none; }
  .reveal-on .carousel__track[data-reveal="cards"] .card { transition: none; }
}

/* ---------- Reservar: formulario (solo aspecto) ---------- */
.reserve__form { margin: clamp(2.5rem, 5vw, 4rem) 0 0 calc((100% - var(--cols-gap)) * 5 / 12 + var(--cols-gap)); }
.form { display: block; }
.field { margin: 0 0 1.6rem; padding: 0; border: 0; min-width: 0; }
.field > label, .choices legend { display: block; margin-bottom: 0.35rem; padding: 0; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--text); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; padding: 0.55rem 0 0.65rem; background: transparent; color: var(--ink);
  font: inherit; border: 0; border-bottom: 1px solid rgba(55, 55, 65, 0.4); border-radius: 0;
  -webkit-appearance: none; appearance: none; color-scheme: light; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.4; }
.field select {
  padding-right: 1.6rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23373741' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 0.2rem center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: rgba(108, 117, 127, 0.7); }
.field.has-error input:not([type="radio"]):not([type="checkbox"]), .field.has-error select, .field.has-error textarea { border-bottom-color: var(--error); }
.field__error { margin: 0.45rem 0 0; font-size: var(--fs-small); line-height: 1.35; color: var(--error); }
.field__error[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--cols-gap); }

/* Fechas: misma altura y línea que los demás campos, icono propio, fuente heredada */
.field input[type="date"] { min-width: 0; min-height: 2.9rem; line-height: 1.3; cursor: pointer; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-datetime-edit { padding: 0; }
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.55; padding: 0.25rem; margin-right: -0.25rem; border-radius: 2px; transition: opacity 0.2s;
}
.field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.field input[type="date"]:invalid::-webkit-datetime-edit { color: rgba(108, 117, 127, 0.75); }

/* Las dos opciones, como elecciones tranquilas */
.choices__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__body { display: block; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 2px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.choice__body strong { display: block; font-weight: 700; color: var(--ink); }
.choice__body small { display: block; margin-top: 0.25rem; font-size: var(--fs-small); line-height: 1.35; color: var(--text); }
.choice:hover .choice__body { border-color: rgba(55, 55, 65, 0.5); }
.choice input:checked + .choice__body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--accent); outline-offset: 3px; }
.field.has-error .choice__body { border-color: var(--error); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; margin: 0 !important; font-size: 0.9375rem !important; font-weight: 400 !important; line-height: 1.4; color: var(--text) !important; cursor: pointer; }
.consent input { width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; accent-color: var(--ink); }

.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.btn-submit { background: var(--ink); color: var(--white); font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1; padding: 1.05em 1.9em; border-radius: 2px; transition: background 0.3s var(--ease); }
.btn-submit:hover:not(:disabled) { background: var(--accent); }
.btn-submit:disabled { opacity: 0.55; cursor: progress; }
.form__status { margin: 0; font-size: 0.9375rem; color: var(--text); }
.form__status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Envío correcto */
.form-done { margin-top: 0.5rem; padding: 1.6rem 0 0; border-top: 1px solid var(--line); outline: none; }
.form-done[hidden] { display: none; }
.form-done h3 { margin: 0 0 0.5em; font-size: var(--fs-sub); font-weight: 400; line-height: 1.3; letter-spacing: 1px; text-transform: lowercase; color: var(--ink); }
.form-done p { margin: 0; max-width: 34rem; text-indent: 1.6em; }

/* Quién te recibe */

/* ---------- Language switcher (EN / ES) ---------- */
.lang { display: inline-flex; align-items: center; }
.lang[hidden] { display: none; }
.lang button { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; border-radius: 999px; color: inherit; transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s; }
.lang button[hidden] { display: none; }
/* En el header: junto al botón del menú; hereda el color de la barra (claro/oscuro). El idioma activo va subrayado. */
.lang--header { margin-left: auto; gap: 0; }
.lang--header button { min-width: 44px; min-height: 44px; padding: 0 0.3em; opacity: 0.7; }
.lang--header button:hover, .lang--header button:focus-visible { opacity: 1; }
.lang--header button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
body[data-tone="dark"]:not(.menu-open) .lang--header { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card { flex-basis: clamp(15rem, 68vw, 22rem); }
  .carousel__bar { gap: 1rem; }
}

@media (max-width: 720px) {
  .cols { display: block; }
  .cols > .title { margin-bottom: 1.2em; }
  .cols > .prose { padding-top: 0; }
  .reserve__form { margin-left: 0; }
  .prose p { max-width: none; }

}

@media (max-width: 560px) {
  .form__row, .choices__row { grid-template-columns: 1fr; }
  .form__row { row-gap: 0; }
}

@media (max-width: 400px) {
  .wordmark { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .menu__list li, .menu, .more::after, .card__title { transition: none; }
}

/* ---------- Reservar por WhatsApp ----------
   Fondo blanco, baja (~320-420 px en escritorio: padding vertical 72-88px), con una línea fina gris arriba. Dos columnas con el sistema
   de las demás secciones: título a la izquierda, texto a la derecha y, debajo, una fila con el botón y el número. */
.reserve-band { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(72px, 6vw, 88px) var(--gutter); }
.reserve-band__inner {
  display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  max-width: min(var(--measure), 70vw); margin: 0 auto;
}
.reserve-band__title {
  margin: 0; font-size: clamp(26px, 2.6vw, 37px); font-weight: 400; line-height: 1.2;
  letter-spacing: 1px; text-transform: lowercase; color: var(--ink);
}
.reserve-band__text { margin: 0 0 1.6rem; max-width: 36rem; text-indent: 1.6em; padding-top: 0.45em; }
.reserve-band__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; max-width: 100%;
  padding: 1.05em 1.6em; background: var(--ink); color: var(--white); border-radius: 2px;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.2;
  transition: background 0.3s var(--ease);
}
.wa-btn:hover, .wa-btn:focus-visible { background: var(--accent); }
.wa-btn__icon { flex: none; }
.reserve-band__number { display: inline-block; padding: 11px 0; margin: -11px 0; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }   /* zona táctil de 44 px sin mover nada */
.reserve-band__note { margin: 1rem 0 0; font-size: var(--fs-small); }

/* ---------- Títulos de lugar (interiores de la casa) y textos escalonados ---------- */
.place__title { margin: 0 0 0.55rem; font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.4rem); font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; color: var(--ink); }

/* Textos sueltos escalonados: uno a la izquierda, otro a la derecha, más abajo */
.stagger {
  display: grid; grid-template-columns: var(--gutter) minmax(0, 27rem) minmax(1rem, 1fr) minmax(0, 24rem) var(--gutter);
  padding: clamp(3rem, 7vw, 8rem) 0; row-gap: clamp(2.5rem, 6vw, 6rem);
}
.stagger__item:nth-child(odd) { grid-column: 2; }
.stagger__item:nth-child(even) { grid-column: 4; margin-top: clamp(3rem, 9vw, 10rem); }
.stagger__item p { margin: 0; text-indent: 1.6em; }
@media (max-width: 900px) {
  .stagger { display: block; padding: clamp(2rem, 6vw, 3rem) var(--gutter); }
  .stagger__item { margin: 0 0 2.6rem; max-width: 30rem; }
  .stagger__item:nth-child(even) { margin: 0 0 2.6rem 12%; max-width: none; }
}

/* ---------- Lo práctico: texto corrido y aireado ---------- */
.practical { padding: clamp(5rem, 10vw, 11rem) 0 clamp(4rem, 8vw, 8rem); }
.practical__eyebrow { margin: 0 0 clamp(2.5rem, 5vw, 5rem) var(--gutter); font-size: var(--fs-small); }
.bigquote { margin: 0 0 0 calc(var(--gutter) + 8%); max-width: 20em; padding-right: var(--gutter); }
.bigquote p {
  margin: 0; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.9rem); font-weight: 400; line-height: 1.18;
  letter-spacing: 0.5px; color: var(--ink);
}
.stagger--loose {
  grid-template-columns: calc(var(--gutter) * 2) minmax(0, 24rem) minmax(1rem, 1fr) minmax(0, 22rem) calc(var(--gutter) * 1.5);
  padding-top: clamp(4rem, 9vw, 10rem); row-gap: clamp(4rem, 9vw, 10rem);
}
.stagger--loose .stagger__item:nth-child(even) { margin-top: clamp(4rem, 10vw, 11rem); }
.practical__loc { margin: clamp(3rem, 7vw, 7rem) var(--gutter) 0 calc(var(--gutter) + 40%); max-width: 26rem; font-size: var(--fs-small); }
@media (max-width: 900px) {
  .practical { padding-inline: var(--gutter); }
  .practical__eyebrow, .bigquote, .practical__loc { margin-left: 0; padding-right: 0; }
  .practical .stagger { padding-inline: 0; }
  .stagger--loose .stagger__item:nth-child(even) { margin: 0 0 2.6rem 12%; }
  .practical__loc { margin-top: 1.5rem; }
}

/* ---------- Portada: la casa en valle de bravo (historia) ----------
   CSS grid por filas, sin position:absolute ni margen superior negativo. Rejilla de 6 columnas en % del ancho:
   fila 1: título (desde 21%) y texto (52% a 78%) arrancan juntos; el texto puede crecer sin límite y la fila crece con él;
   fila 2: foto pequeña apaisada (21% a 50%), SIEMPRE debajo del final del texto, con aire entre ambos;
   fila 3: foto grande (35% a 78%), en su propia fila; la pequeña baja hacia ella con margen inferior negativo (~10% de su alto,
           ~50% de su ancho de solape) y la grande va por encima (z-index). La grande nunca invade el texto. */
.story {
  display: grid; grid-template-columns: 21% 14% 15% 2% 26% 22%; grid-template-rows: auto auto auto; align-items: start;
  padding: clamp(5rem, 10vw, 11rem) 0 clamp(5rem, 9vw, 10rem);
}
.story__title {
  grid-column: 2 / 4; grid-row: 1; margin: 0; font-size: clamp(26px, 2.6vw, 37px); font-weight: 400;
  line-height: 1.1; letter-spacing: 1px; text-transform: lowercase; color: var(--ink);
}
.story__title span { display: block; }
.story__text { grid-column: 5; grid-row: 1; padding-top: 0.35em; }
.story__text p { max-width: none; }
.story__small { grid-column: 2 / 4; grid-row: 2; margin-top: clamp(2.5rem, 6vw, 7rem); margin-bottom: -5.6%; z-index: 1; }
.story__small .photo__media { aspect-ratio: 16 / 9; }
.story__big { grid-column: 3 / 6; grid-row: 3; z-index: 2; }
.story__big .photo__media { aspect-ratio: 3 / 2; }
@media (max-width: 1100px) {
  .story { grid-template-columns: 15% 13% 18% 4% 35% 15%; }   /* sigue entre 15% y 85% */
}
@media (max-width: 767px) {
  .story { display: flex; flex-direction: column; padding: clamp(3rem, 10vw, 5rem) var(--gutter); }
  .story__title { margin-bottom: 1.6rem; }
  .story__text { padding-top: 0; }
  .story__small { width: 100%; margin: 2.2rem 0 0; }
  .story__big { width: 100%; margin: 2rem 0 0; }
  .story__small .photo__media, .story__big .photo__media { aspect-ratio: 4 / 3; }   /* a todo el ancho útil y con buena altura */
}

/* ---------- Bandas pegajosas (tipo Andermatt): foto fija, el texto sube desde abajo ---------- */
.sband { position: relative; height: 200vh; margin: clamp(2rem, 4vw, 4rem) 0; --p: 1; }   /* --p: 1 = texto en reposo (sin JS se ve completo) */
.sband__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--soft); color: var(--white); }
.sband__media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.sband__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, rgba(12, 14, 18, 0.66) 0%, rgba(12, 14, 18, 0.4) 48%, rgba(12, 14, 18, 0.08) 100%);
}
.sband__text {
  position: absolute; top: 0; left: 50%; width: 40%; padding-right: var(--gutter);
  /* --end (px) = posición final del borde superior: 100px, o menos si el texto no cabe (lo calcula main.js); --p = progreso 0→1 */
  transform: translate3d(0, calc(var(--end, 100px) + (1 - var(--p)) * (100vh - var(--end, 100px))), 0); will-change: transform;
}
.sband__title { margin: 0 0 1.1em; font-size: var(--fs-title); font-weight: 400; line-height: 1.2; letter-spacing: 1px; text-transform: lowercase; color: var(--white); }
.sband__title span { display: block; }
.sband__text p { margin: 0 0 1.1em; max-width: 34rem; text-indent: 1.6em; color: rgba(255, 255, 255, 0.94); }
.sband .link-cap { display: block; width: fit-content; margin-top: 0.7rem; color: var(--white); }
.sband .link-cap::after { color: currentColor; }
.sband .todo { background: rgba(255, 255, 255, 0.14); outline-color: rgba(255, 255, 255, 0.7); }
.sband__sticky[data-todo].is-empty::after { color: var(--white); }

/* Móvil y reduced-motion: todo estático; el texto va sobre la imagen, con el velo */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .sband { height: auto; }
  .sband__sticky { position: relative; height: auto; min-height: min(80vh, 40rem); display: flex; align-items: flex-end; }
  .sband__veil { background: linear-gradient(to top, rgba(12, 14, 18, 0.76) 0%, rgba(12, 14, 18, 0.45) 55%, rgba(12, 14, 18, 0.12) 100%); }
  .sband__text { position: relative; top: auto; left: auto; width: 100%; transform: none; will-change: auto; padding: 8rem var(--gutter) 3rem; }
}

/* ---------- Bloques "About Us" (tipo Andermatt): foto alta + texto pegajoso ----------
   Dos columnas: foto de 4% a 49%, texto desde 54% (30% de ancho). La foto mide 140vh; el texto queda fijo (sticky) dentro de la fila
   mientras la foto sube, y al terminar la fila salen juntos. Alterna el lado. Ningún ancestro entre el texto y el scroll
   (ventana o .exp-detail) tiene overflow/clip/contain: si se agrega uno, el sticky deja de funcionar. */
.about { display: grid; grid-template-columns: 4% 45% 5% 30% 16%; align-items: start; padding: clamp(2rem, 4vw, 4rem) 0; }
.about--right { grid-template-columns: 16% 30% 5% 45% 4%; }
.about__photo { grid-column: 2; grid-row: 1; margin: 0; }
.about__text { grid-column: 4; grid-row: 1; position: sticky; top: max(120px, 25vh); align-self: start; }
.about--right .about__text { grid-column: 2; }
.about--right .about__photo { grid-column: 4; }
.about__photo .photo__media { aspect-ratio: auto; height: 140vh; }
.about__photo .photo__media.is-empty { height: 100vh; }   /* los bloques grises con TODO son más bajos para no ser enormes */
.about__text .prose p { max-width: none; }
.about__text .title { margin-bottom: 1.1em; }
@media (max-width: 1100px) {
  .about { grid-template-columns: 4% 40% 4% 46% 6%; }
  .about--right { grid-template-columns: 6% 46% 4% 40% 4%; }
}
@media (max-width: 767px) {
  .about, .about--right { display: block; padding: clamp(2rem, 8vw, 3rem) var(--gutter); }
  .about__photo .photo__media, .about__photo .photo__media.is-empty { height: auto; aspect-ratio: 4 / 5; }
  .about__text { position: static; padding: 2rem 0 1.5rem; }
}

/* ---------- Titular del hero (portada) ----------
   "Hospédate / en Valle / de Bravo" en tres líneas, blanco, bold, a la derecha, con el margen derecho del menú. Escala como en la v1:
   ~9.5vw, sin pasar de 17vh por línea; el bloque ocupa más o menos del 22% al 69% del alto del hero (top 22vh + 3 × 0.98 × 17vh ≈ 72vh).
   El mínimo es 52px (no 64px) para que "Hospédate" quepa en 320 px de ancho (≈ 4.95 em de ancho en bold → ~257px de 299px disponibles).
   Entra con fade-up al cargar. */
.hero__headline {
  position: absolute; z-index: 2; top: 22vh; right: calc(clamp(0.75rem, 2vw, 2rem) + 9px); text-align: right;
  animation: heroIn 0.9s var(--ease) 0.1s both;
}

/* Estilo compartido del titular grande (hero de la portada y portada de cada interior de experiencia). --display-min cambia el mínimo. */
.display-title {
  margin: 0; font-size: clamp(var(--display-min, 52px), min(9.5vw, 17vh), 260px); font-weight: 700; line-height: 0.98; letter-spacing: -0.03em;
  color: var(--white); text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}
.hero__headline h1 span { display: block; }
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__headline { animation: none; } }

@media (max-width: 767px) { .duo-sec { padding-inline: var(--gutter); } }

/* Pantallas bajas (de 768 px de ancho en adelante): texto de la banda un poco más compacto para que quepa */
@media (min-width: 768px) and (max-height: 800px) {
  .sband__text { width: 44%; }
  .sband__title { font-size: clamp(24px, 4.4vh, 32px); margin-bottom: 0.7em; }
  .sband__text p { font-size: 16px; line-height: 1.4; margin-bottom: 0.8em; }
  .sband .link-cap { margin-top: 0.4rem; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .cmp { padding-inline: 15%; }
}
@media (max-width: 767px) {
  .wrap { max-width: none; }
  .reserve-band__inner { display: block; max-width: none; }
  .reserve-band__title { margin-bottom: 1.2rem; }
  .reserve-band__text { padding-top: 0; }
  .reserve-band__row { flex-direction: column; align-items: stretch; }
  .wa-btn { width: 100%; }
  .reserve-band__number { text-align: center; }
}

@media (max-width: 767px) { .duo__text { font-size: var(--fs-body); } }

/* ============================================================================
   COMPONENTES REUTILIZABLES (página de la casa; bungalow/ usará los mismos)
   .hero-frame   hero enmarcado: marco con margen, etiqueta + h1 centrados, parallax de la foto
   .lede         frase de apertura centrada
   .space        bloque foto 4:3 (55%) + texto (37%), alterna con .space--flip; línea fina arriba del texto
   .gallery      galería de fotos dentro de .space__media (flechas, contador, fundido; ver PLAN.md)
   .band--tall   pausa de foto a todo el ancho (~70vh), junto a .band
   .interlude    franja de transición con título centrado
   .facts        "lo práctico": línea fina arriba, título a la izquierda y datos a la derecha
   .explore      "sigue explorando": título centrado + carrusel (.carousel--caps = pie en mayúsculas pequeñas)
   ============================================================================ */
:root { --title-size: clamp(26px, 2.6vw, 37px); }

/* Hero enmarcado */
.hero-frame { padding: clamp(4.5rem, 5.5vw, 5.75rem) 2.5vw 0; }
.hero-frame__media { position: relative; height: 88vh; height: 88svh; overflow: hidden; background: var(--soft); }
.hero-frame__media > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-frame__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.38)); }
.hero-frame__caption {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 6%; text-align: center; color: var(--white);
}
.hero-frame__label { margin: 0 0 1.2rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-frame__title {
  margin: 0; max-width: 16em; font-size: clamp(30px, 4.6vw, 68px); font-weight: 400; line-height: 1.1; letter-spacing: 1px;
  text-transform: lowercase; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-frame__media[data-todo].is-empty::after { color: var(--text); }

/* Frase de apertura */
.lede { padding: clamp(5rem, 9vw, 7.5rem) var(--gutter); text-align: center; }
.lede__text { margin: 0 auto; width: min(100%, 45vw); min-width: min(100%, 22rem); font-size: clamp(22px, 1.15rem + 0.55vw, 26px); line-height: 1.4; color: var(--ink); }
.lede__meta { margin: 1.8rem auto 0; max-width: 34rem; font-size: 0.9375rem; }
.lede .link-cap { margin-top: 1.4rem; }

/* Bloques de espacios (alternados) */
.space {
  display: grid; grid-template-columns: 55fr 37fr; column-gap: 4%; align-items: start; padding: 0 4%;
}
.space + .space, .interlude + .space { margin-top: 96px; }
.space--flip { grid-template-columns: 37fr 55fr; }
.space--flip .space__media { order: 2; }
.space--flip .space__text { order: 1; }
.space__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.space__media > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Galería (dentro de .space__media; reutilizable): diapositivas apiladas con fundido, flechas y contador.
   Sin JS se ve la foto con .is-active y no hay controles (se muestran con .is-ready, que pone gallery.js). */
.gallery__slides { position: absolute; inset: 0; }                /* el parallax mueve este contenedor, no cada foto */
.gallery__slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.gallery__slide.is-active { opacity: 1; }
.gallery__btn, .gallery__count { display: none; }
.gallery.is-ready { touch-action: pan-y; }
.gallery.is-ready .gallery__btn { display: grid; }
.gallery.is-ready .gallery__count { display: block; }
.gallery__btn {
  position: absolute; top: 50%; z-index: 2; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.72); color: var(--ink); cursor: pointer;
  transition: background 0.3s var(--ease);
}
.gallery__btn:hover { background: #fff; }
.gallery__btn--prev { left: 12px; }
.gallery__btn--prev svg { transform: scaleX(-1); }
.gallery__btn--next { right: 12px; }
.gallery__count {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; margin: 0; text-indent: 0; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); pointer-events: none;
}
.gallery:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 767px) { .gallery__btn { width: 44px; height: 44px; margin-top: -22px; } }
@media (prefers-reduced-motion: reduce) { .gallery__slide, .gallery__btn { transition: none; } }
.space__text { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.space__title { margin: 0 0 0.8em; font-size: var(--title-size); font-weight: 400; line-height: 1.2; letter-spacing: 1px; text-transform: lowercase; color: var(--ink); }
.space__text p { margin: 0 0 0.9em; max-width: 34rem; text-indent: 1.6em; }
.space__text .space__meta { margin: 1.4rem 0 0; text-indent: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }

/* Pausa de foto y transición */
.band--tall { height: clamp(18rem, 70vh, 64rem); height: clamp(18rem, 70svh, 64rem); margin: 96px 0 0; }
.interlude { padding: 96px 4% 0; text-align: center; }
.interlude__title { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--title-size); font-weight: 400; line-height: 1.2; letter-spacing: 1px; text-transform: lowercase; color: var(--ink); }

/* Lo práctico */
.facts { padding: 96px 4% clamp(5rem, 9vw, 8rem); }
.facts__inner { display: grid; grid-template-columns: 5fr 7fr; column-gap: 4%; align-items: start; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.facts__title { margin: 0; font-size: var(--title-size); font-weight: 400; line-height: 1.2; letter-spacing: 1px; text-transform: lowercase; color: var(--ink); }
.facts__list { max-width: 36rem; padding-top: 0.45em; }
.facts__list p { margin: 0 0 0.9em; text-indent: 1.6em; }
.facts__item { margin-top: 1.6rem; }
.facts__item p { margin: 0; text-indent: 1.6em; }

/* Sigue explorando */
.explore { padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.explore__title { margin: 0; text-align: center; font-size: var(--title-size); font-weight: 400; line-height: 1.2; letter-spacing: 1px; text-transform: lowercase; color: var(--ink); }
.carousel--caps .card__text { padding-top: 0.9rem; }
.carousel--caps .card__title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; }

@media (max-width: 767px) {
  .hero-frame { padding: 4.5rem 4vw 0; }
  .hero-frame__media { height: 70vh; height: 70svh; }
  .lede__text { width: 100%; min-width: 0; }
  .space, .space--flip { display: block; padding: 0 var(--gutter); }
  .space--flip .space__media, .space--flip .space__text { order: 0; }
  .space__text { margin-top: 1.4rem; }
  .space + .space, .interlude + .space { margin-top: 3.5rem; }
  .band--tall { height: clamp(14rem, 52svh, 26rem); margin-top: 3.5rem; }
  .interlude { padding: 3.5rem var(--gutter) 0; }
  .facts { padding: 3.5rem var(--gutter) 4rem; }
  .facts__inner { display: block; }
  .facts__title { margin-bottom: 1.2rem; }
  .facts__list { padding-top: 0; }
}

/* ---------- Visor de fotos (lightbox.js): pantalla completa sobre fondo oscuro ---------- */
[data-lb] { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 10, 12, 0.97); color: var(--white); touch-action: none; overscroll-behavior: contain; }
.lightbox[hidden] { display: none; }
.lightbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; cursor: zoom-in; }
.lightbox.is-zoomed .lightbox__img { cursor: grab; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; min-width: 44px; min-height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: rgba(12, 14, 18, 0.55); color: var(--white); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.lightbox__close[hidden], .lightbox__nav[hidden], .lightbox__count[hidden] { display: none; }
.lightbox__close { top: max(0.75rem, env(safe-area-inset-top)); right: max(0.75rem, env(safe-area-inset-right)); }
.lightbox__close span { position: absolute; left: 14px; right: 14px; top: 23px; height: 1px; background: currentColor; }
.lightbox__close span:nth-child(1) { transform: rotate(45deg); }
.lightbox__close span:nth-child(2) { transform: rotate(-45deg); }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: max(0.75rem, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(0.75rem, env(safe-area-inset-right)); }
.lightbox__nav--prev svg { transform: scaleX(-1); }
.lightbox__close:hover, .lightbox__nav:hover, .lightbox__close:focus-visible, .lightbox__nav:focus-visible { background: rgba(255, 255, 255, 0.92); color: #111; outline: none; }
.lightbox__count { position: absolute; z-index: 2; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); margin: 0; transform: translateX(-50%); padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba(12, 14, 18, 0.55); font-size: 0.8125rem; letter-spacing: 0.08em; }
@media (max-width: 767px) { .lightbox__nav { top: auto; bottom: max(0.75rem, env(safe-area-inset-bottom)); margin-top: 0; } }

/* Zona táctil de los enlaces en mayúsculas (.link-cap): 44 px de alto sin cambiar el diseño (el área extra es un pseudo-elemento) */
.link-cap { position: relative; }
.link-cap:not(.link-cap--back)::before { content: ""; position: absolute; inset: -14px -8px; }
.link-cap--back::after { content: ""; position: absolute; inset: -14px -8px; }
/* Botón "Play" de los interiores en móvil: justo debajo del título (no flota sobre el texto al desplazarse) */
@media (max-width: 767px) {
  .exp-screen__play, .exp-screen__play.is-beside-watch { position: relative; right: auto; bottom: auto; z-index: 6; margin: 0.9rem var(--gutter) 0 auto; }
}
@media (min-width: 768px) { .exp-screen__play.is-beside-watch { right: 8.5rem; } }
