/* ═══════════════════════════════════════════════════════════════
   CASA NORA — Editorial luxury landing
   Paleta:  #F2EEE5 parchment · #1A1814 ink · #8B6F47 clay · #6B6358 stone
   ═══════════════════════════════════════════════════════════════ */

:root {
  --c-parchment: #F2EEE5;
  --c-parchment-soft: #ECE7DB;
  --c-ink: #1A1814;
  --c-ink-soft: #2A2722;
  --c-clay: #7B6035;          /* base — fondos claros (AA ≥4.5 sobre parchment) */
  --c-clay-soft: #C9A968;     /* más luminoso — para fondos oscuros (hero, residencias, testimonio) */
  --c-stone: #6B6358;
  --c-stone-dim: #9A9388;
  --c-line: rgba(26, 24, 20, 0.12);
  --c-line-soft: rgba(26, 24, 20, 0.06);

  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "Menlo", monospace;

  --container: 1320px;
  --container-narrow: 880px;
  --gutter: 32px;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-editorial: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--c-ink); color: var(--c-parchment); }

/* Web components (light-DOM) son display:inline por defecto; eso genera un
   line-box gap bajo su contenido en bloque (sliver del fondo body visible,
   p.ej. la franja blanca bajo el footer en móvil). Forzar block lo elimina. */
galar-header, galar-footer, galar-floating-cta { display: block; }

/* overflow-x: clip preserves position: sticky behavior (hidden would break it) */
html, body { overflow-x: clip; }

html {
  scroll-behavior: auto; /* lenis handles smoothing */
  background: var(--c-parchment);
}

body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.005em;
}

img { max-width: 100%; height: auto; display: block; }

/* ─── utilities ─── */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.italic { font-style: italic; font-weight: 300; }
.dim { color: var(--c-stone); opacity: 0.7; }
.mt { margin-top: 18px; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }

/* ═══════════════════════════════════════════════════════════════
   PAGE TRANSITION CURTAIN
   El sistema completo vive en el CSS crítico inline (<head> de cada
   página) + css/galar.css (estados is-falling/is-rising + keyframes) +
   js/page-transition.js. Aquí sólo queda el guard de reduced-motion:
   en ese modo page-transition.js navega directo sin animar, así que el
   overlay debe ocultarse para no quedar cubriendo la vista.
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .page-curtain { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PRE-ROLL — 1.8s ceremonial brand reveal before hero
   ═══════════════════════════════════════════════════════════════ */
.preroll {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--c-ink);
  color: var(--c-parchment);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
  /* fade out after wordmark reveal completes */
  animation: preroll-exit 0.9s var(--ease-editorial) 1.9s forwards;
}
.preroll-wordmark {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.32em;
  display: flex;
  align-items: center;
  color: var(--c-parchment);
}
.preroll-wordmark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: preroll-letter 0.7s var(--ease-soft) forwards;
}
.preroll-wordmark span:nth-child(1) { animation-delay: 0.10s; }
.preroll-wordmark span:nth-child(2) { animation-delay: 0.16s; }
.preroll-wordmark span:nth-child(3) { animation-delay: 0.22s; }
.preroll-wordmark span:nth-child(4) { animation-delay: 0.28s; }
.preroll-wordmark span:nth-child(6) { animation-delay: 0.50s; }
.preroll-wordmark span:nth-child(7) { animation-delay: 0.56s; }
.preroll-wordmark span:nth-child(8) { animation-delay: 0.62s; }
.preroll-wordmark span:nth-child(9) { animation-delay: 0.68s; }
.preroll-space { width: 0.6em; }

.preroll-meta {
  opacity: 0;
  color: var(--c-clay-soft);
  letter-spacing: 0.24em;
  animation: preroll-fade 0.9s var(--ease-soft) 0.95s forwards;
}
.preroll-line {
  width: 0;
  height: 1px;
  background: rgba(244, 239, 230, 0.4);
  animation: preroll-line 1.0s var(--ease-editorial) 1.25s forwards;
}
@keyframes preroll-letter {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes preroll-fade {
  to { opacity: 1; }
}
@keyframes preroll-line {
  to { width: clamp(80px, 12vw, 140px); }
}
@keyframes preroll-exit {
  to { opacity: 0; visibility: hidden; transform: translateY(-2vh); }
}
.preroll.skip { animation: none; opacity: 0; visibility: hidden; }

/* hero entrance: hold reveals until preroll completes */
.preroll-active .hero-title .line > span,
.preroll-active .hero-sub p,
.preroll-active .hero-coords {
  animation-play-state: paused;
}

/* ═══════════════════════════════════════════════════════════════
   GRAIN OVERLAY (constant, very subtle film grain)
   ═══════════════════════════════════════════════════════════════ */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grain-shift 8s steps(8) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(-4%, 2%); }
  30%  { transform: translate(2%, -4%); }
  40%  { transform: translate(-2%, 5%); }
  50%  { transform: translate(-4%, 2%); }
  60%  { transform: translate(3%, 0%); }
  70%  { transform: translate(0%, 3%); }
  80%  { transform: translate(-3%, 6%); }
  90%  { transform: translate(2%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--c-line-soft);
  z-index: 200;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--c-ink);
  transition: width 0.05s linear;
}

/* ═══════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px var(--gutter);
  font-size: 11px;
  color: var(--c-parchment);
  transition: background 0.6s var(--ease-soft), color 0.5s var(--ease-soft);
}
.nav.scrolled {
  background: rgba(242, 238, 229, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--c-line-soft);
  color: var(--c-ink);
}
/* secondary pages with a light (cream) hero — nav must be ink from the top */
.nav.nav-light { color: var(--c-ink); }
.nav.nav-light .locale.dim { color: var(--c-stone); opacity: 0.55; }
.nav-logo {
  text-decoration: none;
  color: inherit;
  justify-self: start;
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.22em;
  font-variation-settings: "opsz" 60;
}
.nav-links {
  display: flex;
  gap: 36px;
  justify-self: center;
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.4s var(--ease-soft);
  opacity: 0.85;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease-soft);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-meta {
  justify-self: end;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: inherit;
  display: flex;
  gap: 8px;
}
.locale-sep { opacity: 0.5; }
.locale.dim { opacity: 0.5; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — hamburger toggle + overlay ink full-screen
   Sólo ≤960px (donde .nav-links se oculta). Overlay oscuro con
   tipografía editorial Fraunces, coherente con curtain/footer.
   Baja como persiana vertical en ink — eco del lenguaje de
   transición de la marca, distinto del curtain dorado de página.
   ═══════════════════════════════════════════════════════════════ */
.nav-toggle {
  display: none;                 /* desktop: oculto */
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -10px;           /* alinea ópticamente la línea al borde */
  padding: 0; border: 0; background: none;
  color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-box { position: relative; width: 26px; height: 11px; }
.nav-toggle-line {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor;
  transition: width 0.45s var(--ease-soft);
}
.nav-toggle-line:nth-child(1) { top: 0; }
.nav-toggle-line:nth-child(2) { bottom: 0; width: 64%; }  /* detalle: 2ª línea más corta */
.nav-toggle:hover .nav-toggle-line:nth-child(2) { width: 100%; }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 9995;                 /* sobre el CTA flotante (9990), bajo el curtain (10050) */
  background: var(--c-ink);
  color: var(--c-parchment);
  display: flex; flex-direction: column;
  padding: 18px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 30px);
  transform: translateY(-100%);  /* persiana: oculta arriba */
  transition: transform 0.8s var(--ease-editorial);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html.is-menu-open .mobile-menu { transform: translateY(0); }

.mobile-menu-top {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu-top .wordmark { color: var(--c-parchment); }
.mobile-menu-close {
  position: relative;
  width: 44px; height: 44px; margin-right: -10px;
  padding: 0; border: 0; background: none;
  color: var(--c-parchment); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mm-close-line {
  position: absolute; top: 50%; left: 50%;
  width: 24px; height: 1.5px; background: currentColor;
}
.mm-close-line:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.mm-close-line:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu-nav {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0;
}
.mm-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: clamp(14px, 2.4vh, 22px) 0;
  text-decoration: none; color: var(--c-parchment);
  border-top: 1px solid rgba(242, 238, 229, 0.1);
  opacity: 0; transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-soft),
    transform 0.6s var(--ease-soft),
    color 0.3s var(--ease-soft);
}
.mm-link:last-child { border-bottom: 1px solid rgba(242, 238, 229, 0.1); }
html.is-menu-open .mm-link { opacity: 1; transform: translateY(0); }
html.is-menu-open .mm-link:nth-child(1) { transition-delay: 0.20s, 0.20s, 0s; }
html.is-menu-open .mm-link:nth-child(2) { transition-delay: 0.28s, 0.28s, 0s; }
html.is-menu-open .mm-link:nth-child(3) { transition-delay: 0.36s, 0.36s, 0s; }
html.is-menu-open .mm-link:nth-child(4) { transition-delay: 0.44s, 0.44s, 0s; }
.mm-num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--c-clay-soft); min-width: 2ch;
}
.mm-label {
  font-family: var(--f-display); font-weight: 300;
  font-variation-settings: "opsz" 120;
  font-size: clamp(34px, 10vw, 58px); line-height: 1.04;
  letter-spacing: -0.01em;
}
.mm-link.active .mm-label,
.mm-link:active .mm-label { font-style: italic; color: var(--c-clay-soft); }

.mobile-menu-foot {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 26px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}
html.is-menu-open .mobile-menu-foot { opacity: 1; transition-delay: 0.5s; }
.mm-wa {
  display: inline-flex; align-items: center; gap: 12px;
  align-self: flex-start;
  padding: 16px 22px;
  border: 1px solid rgba(242, 238, 229, 0.22);
  color: var(--c-parchment); text-decoration: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), color 0.35s var(--ease-soft);
}
.mm-wa svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mm-wa:hover, .mm-wa:active {
  background: var(--galar-gold); border-color: var(--galar-gold); color: #fff;
}
.mm-contact { display: flex; flex-direction: column; gap: 9px; }
.mm-contact a {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(242, 238, 229, 0.55); text-decoration: none;
  transition: color 0.3s var(--ease-soft);
}
.mm-contact a:hover { color: var(--c-parchment); }

/* nunca en desktop, aunque quede markup en el DOM */
@media (min-width: 961px) { .mobile-menu { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: transform 0.01ms; }
  .mm-link, .mobile-menu-foot { transition: none; opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   SIDE INDEX (vertical, left)
   ═══════════════════════════════════════════════════════════════ */
.side-index {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 90;
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--c-ink);
  white-space: nowrap;
  transition: opacity 0.6s var(--ease-soft);
}
.side-num {
  font-weight: 500;
}
.side-label::before {
  content: "— ";
  color: var(--c-stone-dim);
  margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   01 — HERO / PROEMIO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--c-ink);
  color: var(--c-parchment);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-inner {
  position: absolute;
  inset: 0;
  will-change: transform;  /* GSAP scroll parallax target */
}
.hero-bg-mouse {
  position: absolute;
  inset: -3.5%;   /* oversized so mouse parallax doesn't expose edges */
  will-change: transform;  /* mouse parallax target */
}
.hero-video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s var(--ease-soft);
  will-change: opacity;
}
.hero-video-slide.is-active { opacity: 1; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) contrast(0.96) brightness(0.74) saturate(0.9);
  /* subtle continuous ken burns on top of the video's own motion */
  animation: hero-kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-video-slide:nth-child(2) .hero-video { animation-delay: -9s; }
.hero-video-slide:nth-child(3) .hero-video { animation-delay: -18s; }

@keyframes hero-kenburns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.10) translate3d(-1%, -0.8%, 0); }
  100% { transform: scale(1.06) translate3d(0.8%, 0.5%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,24,20,0.55) 0%, rgba(26,24,20,0.18) 35%, rgba(26,24,20,0.7) 100%),
    radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(26,24,20,0.45) 100%);
  pointer-events: none;
}

/* hero pagination — minimal dots, bottom right */
.hero-pagination {
  position: absolute;
  bottom: 36px;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-page {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(244, 239, 230, 0.3);
  transition: background 0.6s var(--ease-soft), width 0.6s var(--ease-soft);
}
.hero-page.is-active {
  background: var(--c-clay-soft);
  width: 32px;
}

/* hero coords — smooth crossfade when updating */
.hero-coords > span {
  transition: opacity 0.4s var(--ease-soft);
}
.hero-coords.is-updating > span {
  opacity: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* padding-top respeta el header fijo (~80px) + margen.
     padding-bottom apretado para que el hero-bottom siempre quede dentro. */
  padding: clamp(88px, 10vh, 110px) var(--gutter) clamp(28px, 4vh, 48px);
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-parchment);
  opacity: 0;
  animation: fade-up 1.4s var(--ease-soft) 0.3s forwards;
}
.hero-eyebrow .dot { color: var(--c-clay-soft); }

.hero-title {
  align-self: end;
  margin-top: auto;
  margin-bottom: clamp(20px, 3vh, 40px);
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  /* font-size: respeta el ancho (vw) Y la altura (vh) del viewport.
     min() toma la menor de las dos referencias para que en laptops cortas
     (Ej. 1440×800) el título no exceda el alto del hero. */
  font-size: clamp(56px, min(9.5vw, 17vh), 168px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--c-parchment);
  /* type-as-video — letras se mezclan con el video del fondo */
  mix-blend-mode: difference;
  isolation: isolate;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}
.hero-title .italic > span {
  font-style: italic;
  font-weight: 300;
  padding-left: 0.15em;
  /* italic accent — un poco más cálido para que se diferencie del difference */
  color: var(--c-clay-soft);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
}
.hero-sub p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 46ch;
  color: rgba(244, 239, 230, 0.85);
  opacity: 0;
  transform: translateY(12px);
}
.hero-coords {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10.5px;
  align-items: flex-end;
  text-align: right;
  opacity: 0;
  transform: translateY(12px);
}
.hero-coords .mono { color: rgba(244, 239, 230, 0.9); }
.hero-coords .dim { color: rgba(244, 239, 230, 0.5); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEAD (shared)
   ═══════════════════════════════════════════════════════════════ */
.section-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 96px;
}
.section-num {
  color: var(--c-ink);
  font-weight: 500;
}
.section-name {
  color: var(--c-stone);
}

.display-2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--c-ink);
}
.display-2 .line {
  display: block;
  overflow: hidden;
}
.display-2 .line > span {
  display: block;
  transform: translateY(110%);
}
.display-2 .italic {
  font-style: italic;
  color: var(--c-clay);
}

/* ═══════════════════════════════════════════════════════════════
   02 — UMBRAL — letterhead-style editorial layout
   ═══════════════════════════════════════════════════════════════ */
.umbral {
  padding: 200px 0 200px;
  background: var(--c-parchment);
}
.umbral-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 88px;
  margin: 32px auto 0;
  max-width: 1080px;
}
.umbral-meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-row .dim { color: var(--c-stone); opacity: 0.65; }

.umbral-text {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.45;
  color: var(--c-ink);
  letter-spacing: -0.003em;
  max-width: 38ch;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.umbral-text p {
  margin-bottom: 1.05em;
}
.umbral-text p em {
  font-style: italic;
  color: var(--c-clay);
  font-weight: 400;
}
.umbral-text .umbral-lede {
  font-style: italic;
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.28;
  margin-bottom: 0.9em;
  color: var(--c-clay);
}
.umbral-text .umbral-lede em {
  color: var(--c-ink);
  font-style: normal;
}
.umbral-sign {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-body);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.umbral-sign .italic {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--c-ink);
}

/* ═══════════════════════════════════════════════════════════════
   03 — RESIDENCIAS (sticky gallery)
   ═══════════════════════════════════════════════════════════════ */
.residencias {
  background: var(--c-ink);
  color: var(--c-parchment);
  position: relative;
}
.residencias-intro {
  padding: 160px 0 100px;
  text-align: center;
}
.residencias-intro .section-head {
  border-bottom-color: rgba(244, 239, 230, 0.14);
}
.residencias-intro .section-num { color: var(--c-parchment); }
.residencias-intro .section-name { color: rgba(244, 239, 230, 0.55); }
.residencias-intro .display-2 {
  color: var(--c-parchment);
  text-align: center;
}
.residencias-intro .display-2 .italic { color: var(--c-clay-soft); }
.residencias-lead {
  max-width: 56ch;
  margin: 40px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.72);
  text-align: center;
}

.gallery-pin {
  position: relative;
}
.gallery-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 80px;
  /* grid items stretch to row height (default) — gives sticky room to scroll */
}

.gallery-panels {
  display: flex;
  flex-direction: column;
}
.panel {
  min-height: 100vh;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
}
.panel:first-child { border-top: 0; }

.panel-num {
  color: var(--c-clay-soft);
}
.panel-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 120;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--c-parchment);
}
.panel-title .italic {
  color: var(--c-clay-soft);
}
.panel-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}
.panel-meta .mono { color: rgba(244, 239, 230, 0.9); }
.panel-meta .dim { color: rgba(244, 239, 230, 0.5); }
.panel-body {
  max-width: 44ch;
  color: rgba(244, 239, 230, 0.76);
  line-height: 1.7;
}
.panel-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}
.panel-specs > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.panel-specs .dim { color: rgba(244, 239, 230, 0.46); }
.panel-specs .mono:last-child {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-parchment);
}

.gallery-media {
  position: sticky;
  /* Ancla el pin POR DEBAJO del header fijo (~90px) dejando aire en la
     parte superior antes de que la imagen se congele. El alto se reduce
     en la misma medida (top) para que el box termine exactamente en el
     borde inferior del viewport — la imagen nunca se desborda ni se
     recorta por abajo. Resultado: más espacio arriba que abajo. */
  top: clamp(72px, 8vh, 104px);
  height: calc(100vh - clamp(72px, 8vh, 104px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 80px 0;
}
.media-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 76vh;
  overflow: hidden;
  background: var(--c-ink-soft);
}
.media-img {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-editorial);
  will-change: clip-path;
}
.media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.94);
  transform: scale(1.08);
  transition: transform 8s var(--ease-soft);
}
.media-img.is-active {
  clip-path: inset(0 0 0 0);
  z-index: 2;
}
.media-img.is-active img {
  transform: scale(1);
}
.media-img.is-past {
  clip-path: inset(0 0 100% 0);
  z-index: 1;
}

.media-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(244, 239, 230, 0.75);
}
.pagination-line {
  position: relative;
  display: block;
  width: 90px;
  height: 1px;
  background: rgba(244, 239, 230, 0.2);
}
.pagination-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--c-clay-soft);
  transition: width 0.8s var(--ease-editorial);
}
.media-pagination .current {
  color: var(--c-parchment);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   04 — FILOSOFÍA
   ═══════════════════════════════════════════════════════════════ */
.filosofia {
  padding: 200px 0;
  background: var(--c-parchment);
}
.filosofia-title { margin-bottom: 120px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
  position: relative;
}
.pillar-num {
  font-size: 14px;
  color: var(--c-clay);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.pillar-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 60;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.pillar-title .italic { color: var(--c-clay); }
.pillar-body {
  color: var(--c-stone);
  line-height: 1.7;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════
   05 — TESTIMONIO carousel — 5 quotes that fade in sequence
   ═══════════════════════════════════════════════════════════════ */
.testimonio {
  padding: 200px 0;
  background: var(--c-ink);
  color: var(--c-parchment);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.testimonio-quotemark {
  display: block;
  font-family: var(--f-display);
  font-size: 80px;
  line-height: 1;
  color: var(--c-clay-soft);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonio-stack {
  position: relative;
  min-height: 360px;
}
.testimonio-quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft);
  pointer-events: none;
}
.testimonio-quote.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testimonio-text {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.016em;
  font-style: italic;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--c-parchment);
}
.testimonio-text .gold {
  color: var(--c-clay-soft);
  font-style: italic;
}
.testimonio-attribution {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.testimonio-attribution .italic {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--c-clay-soft);
}
.testimonio-nav {
  margin: 64px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(244, 239, 230, 0.55);
}
.testimonio-nav .testimonio-current {
  color: var(--c-parchment);
  font-weight: 500;
}
.testimonio-line {
  position: relative;
  display: block;
  width: 100px;
  height: 1px;
  background: rgba(244, 239, 230, 0.18);
}
.testimonio-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: var(--c-clay-soft);
  transition: width 6s linear;
}

/* ═══════════════════════════════════════════════════════════════
   06 — NUMERALS
   ═══════════════════════════════════════════════════════════════ */
.numerals {
  padding: 160px 0;
  background: var(--c-parchment-soft);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.numerals-head {
  text-align: center;
  margin-bottom: 80px;
}
.numerals-head .mono {
  color: var(--c-clay);
  letter-spacing: 0.32em;
}
.numerals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.numeral-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 32px;
  border-left: 1px solid var(--c-line);
}
.numeral-block:first-child { border-left: 0; padding-left: 0; }
.numeral {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 7vw, 116px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.numeral-label {
  color: var(--c-stone);
  line-height: 1.7;
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   07 — DIARIO
   ═══════════════════════════════════════════════════════════════ */
.diario {
  padding: 200px 0;
  background: var(--c-parchment);
}
.diario-title { margin-bottom: 120px; }
.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.journal-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}
.journal-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-parchment-soft);
  margin-bottom: 8px;
}
.journal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18);
  transition: transform 2s var(--ease-soft), filter 1.2s var(--ease-soft);
}
.journal-card:hover .journal-img img {
  transform: scale(1.04);
  filter: grayscale(0);
}
.journal-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10.5px;
}
.journal-meta .dim { color: var(--c-stone); opacity: 0.7; }
.journal-headline {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--c-ink);
}
.journal-headline .italic { color: var(--c-clay); }
.journal-kicker {
  color: var(--c-stone);
  font-size: 14.5px;
  line-height: 1.65;
}
.journal-cta {
  margin-top: 12px;
  color: var(--c-ink);
  position: relative;
  width: fit-content;
  transition: letter-spacing 0.5s var(--ease-soft);
}
.journal-card:hover .journal-cta { letter-spacing: 0.22em; }

/* ═══════════════════════════════════════════════════════════════
   08 — CONTACTO
   ═══════════════════════════════════════════════════════════════ */
.contacto {
  padding: 200px 0;
  background: var(--c-parchment);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.contacto-intro { display: flex; flex-direction: column; }
.contacto-eyebrow {
  display: block;
  margin-bottom: 32px;
  color: var(--c-clay);
  letter-spacing: 0.24em;
}
.contacto-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--c-ink);
  margin-bottom: 32px;
}
.contacto-title .line {
  display: block;
  overflow: hidden;
}
.contacto-title .line > span {
  display: block;
  transform: translateY(110%);
}
.contacto-title .italic { color: var(--c-clay); font-style: italic; }
.contacto-body {
  max-width: 44ch;
  color: var(--c-stone);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 40px;
}
.contacto-intro-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.contacto-intro-meta .meta-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contacto-intro-meta .dim { color: var(--c-stone); opacity: 0.65; }
.contacto-form {
  display: grid;
  gap: 36px;
  text-align: left;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 14px;
}
.field label {
  color: var(--c-stone);
  font-size: 10px;
}
.field input,
.field textarea {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 300;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  outline: none;
  resize: none;
  padding: 4px 0;
  letter-spacing: -0.005em;
  width: 100%;
  max-width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-stone-dim);
  font-style: italic;
  font-size: 16px;
}
.submit {
  margin-top: 32px;
  background: transparent;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  padding: 22px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  justify-self: center;
  width: fit-content;
  transition: color 0.6s var(--ease-soft);
  isolation: isolate;
}
.submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-ink);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease-editorial);
  z-index: -1;
}
.submit:hover { color: var(--c-parchment); }
.submit:hover::before { transform: translateY(0); }
.submit-sent { display: none; }
.submit-arrow { transition: transform 0.6s var(--ease-soft); }
.submit:hover .submit-arrow { transform: translateX(6px); }

.contacto-form.sent .submit { pointer-events: none; color: var(--c-parchment); }
.contacto-form.sent .submit::before { transform: translateY(0); }
.contacto-form.sent .submit-label,
.contacto-form.sent .submit-arrow { display: none; }
.contacto-form.sent .submit-sent { display: inline; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--c-ink);
  color: var(--c-parchment);
  padding: 120px var(--gutter) 32px;
  position: relative;
}
.footer-wordmark {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(120px, 22vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.035em;
  color: var(--c-parchment);
  margin-bottom: 80px;
  text-align: center;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
  border-bottom: 1px solid rgba(244, 239, 230, 0.18);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Más aire entre CONTACTO (col 2, con el email ancho) y REDES (col 3).
   El gap del grid es uniforme, así que sumamos margen sólo a la izquierda
   de REDES. Scopeado al layout de 4 columnas — en móvil se apilan. */
@media (min-width: 961px) {
  .footer-col:nth-child(3) { margin-left: 40px; }
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 300;
  color: var(--c-parchment);
}
.footer-col li a {
  color: var(--c-parchment);
  text-decoration: none;
  transition: color 0.4s var(--ease-soft);
}
.footer-col li a:hover { color: var(--c-clay-soft); }
.footer-col .dim { color: rgba(244, 239, 230, 0.5); }
.footer-baseline {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: rgba(244, 239, 230, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   COMMERCIAL — Floating CTAs (WhatsApp + Call)
   ═══════════════════════════════════════════════════════════════ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
.floating-cta.is-visible { opacity: 1; transform: translateY(0); }

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--c-ink);
  color: var(--c-clay-soft);
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid rgba(244, 239, 230, 0.14);
  box-shadow: 0 10px 34px -8px rgba(26, 24, 20, 0.45),
              0 2px 10px -2px rgba(26, 24, 20, 0.25);
  transition: transform 0.5s var(--ease-soft),
              background 0.5s var(--ease-soft),
              border-color 0.5s var(--ease-soft),
              color 0.4s var(--ease-soft),
              box-shadow 0.5s var(--ease-soft);
  cursor: pointer;
}
.fab svg { flex-shrink: 0; transition: transform 0.5s var(--ease-soft); }
.fab:hover {
  background: var(--c-clay);
  color: var(--c-parchment);
  border-color: var(--c-clay-soft);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px -8px rgba(139, 111, 71, 0.5),
              0 4px 14px -2px rgba(26, 24, 20, 0.3);
}
.fab:hover svg { transform: scale(1.08); }
.fab .fab-label { display: none; }

@media (max-width: 640px) {
  .fab { width: 54px; height: 54px; }
  .floating-cta { bottom: 20px; right: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   COMMERCIAL — PRENSA (trust signals)
   ═══════════════════════════════════════════════════════════════ */
.prensa {
  padding: 160px 0;
  background: var(--c-parchment-soft);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}
.prensa-head { margin-bottom: 56px; }
.prensa-eyebrow {
  display: block;
  color: var(--c-clay);
  letter-spacing: 0.32em;
}
/* featured pull-quote */
.prensa-quote {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--c-ink);
  max-width: 20ch;
  margin: 0 auto 36px;
}
.prensa-quote-source {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--c-line);
}
.prensa-quote-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--c-clay);
}
/* logo strip */
.prensa-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 96px;
}
.prensa-strip-label {
  color: var(--c-stone);
  letter-spacing: 0.32em;
}
.prensa-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.prensa-logo {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: clamp(15px, 1.5vw, 21px);
  letter-spacing: 0.01em;
  color: var(--c-ink);
  opacity: 0.55;
  transition: opacity 0.5s var(--ease-soft);
  white-space: nowrap;
}
.prensa-logo:hover { opacity: 1; }
/* credibility stats */
.prensa-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}
.prensa-stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 0 24px;
  border-left: 1px solid var(--c-line);
}
.prensa-stat:first-child { border-left: 0; }
.prensa-stat-num {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-clay);
}
.prensa-stat-label {
  color: var(--c-stone);
  letter-spacing: 0.16em;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   COMMERCIAL — DOSSIER (lead magnet, email capture)
   ═══════════════════════════════════════════════════════════════ */
.dossier {
  padding: 180px 0;
  background: var(--c-parchment);
  position: relative;
}
.dossier-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.dossier-visual {
  position: relative;
}
.dossier-cover {
  aspect-ratio: 3 / 4;
  background: var(--c-ink);
  color: var(--c-parchment);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(26, 24, 20, 0.5),
              0 8px 24px -8px rgba(26, 24, 20, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.8s var(--ease-soft);
}
.dossier:hover .dossier-cover {
  transform: rotate(-2deg) translateY(-6px);
}
.dossier-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 169, 104, 0.35);
  pointer-events: none;
}
.dossier-cover-label {
  color: var(--c-clay-soft);
  letter-spacing: 0.24em;
}
.dossier-cover-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--c-parchment);
  text-align: left;
}
.dossier-cover-title .italic {
  color: var(--c-clay-soft);
  font-style: italic;
}
.dossier-cover-meta {
  color: rgba(244, 239, 230, 0.55);
  letter-spacing: 0.24em;
  text-align: right;
  align-self: flex-end;
}

.dossier-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.dossier-eyebrow {
  color: var(--c-clay);
  letter-spacing: 0.24em;
}
.dossier-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.dossier-title .line {
  display: block;
  overflow: hidden;
  /* El overflow:hidden (necesario para el reveal) recortaba la descendente
     de la "g"/"á" por el line-height ajustado. El padding extiende la caja
     de recorte hacia abajo y el margen negativo conserva el interlineado. */
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}
.dossier-title .line > span {
  display: block;
  transform: translateY(110%);
}
.dossier-title .italic { color: var(--c-clay); font-style: italic; }
.dossier-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--c-stone);
  max-width: 42ch;
}
.dossier-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.dossier-field {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--c-ink);
}
.dossier-field input {
  flex: 1;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 300;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 0;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}
.dossier-field input::placeholder {
  color: var(--c-stone-dim);
  font-style: italic;
}
.dossier-submit {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--c-line);
  margin-left: 18px;
  padding: 0 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.5s var(--ease-soft), color 0.5s var(--ease-soft);
  white-space: nowrap;
}
.dossier-submit:hover { gap: 18px; color: var(--c-clay); }
.dossier-submit-sent { display: none; }
.dossier-form.sent .dossier-submit-label,
.dossier-form.sent .dossier-submit-arrow { display: none; }
.dossier-form.sent .dossier-submit-sent { display: inline; color: var(--c-clay); }
.dossier-form.sent .dossier-field { border-bottom-color: var(--c-clay); }
.dossier-fineprint {
  color: var(--c-stone);
  opacity: 0.75;
  letter-spacing: 0.14em;
  font-size: 10px;
  max-width: 50ch;
}

/* ═══════════════════════════════════════════════════════════════
   COMMERCIAL — FAQ accordion (editorial)
   ═══════════════════════════════════════════════════════════════ */
.faq {
  padding: 200px 0;
  background: var(--c-parchment);
}
.faq-title {
  margin-bottom: 96px;
}
.faq-list {
  max-width: 920px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--c-line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--c-line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: baseline;
  gap: 24px;
  transition: color 0.4s var(--ease-soft);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num {
  color: var(--c-clay);
  font-weight: 500;
}
.faq-question {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 60;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}
.faq-toggle {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--c-clay);
  text-align: right;
  transition: transform 0.5s var(--ease-soft);
  line-height: 1;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item[open] summary .faq-question { color: var(--c-clay); }

.faq-answer {
  padding: 0 64px 36px 84px;
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--c-stone);
  max-width: 60ch;
}
.faq-answer p { margin: 0; }

.faq-after-cta {
  margin-top: 80px;
  text-align: center;
  color: var(--c-stone);
}
.faq-after-cta p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  margin-bottom: 18px;
  color: var(--c-ink);
}
.faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-clay);
  padding: 14px 0;
  border-bottom: 1px solid var(--c-clay);
  transition: gap 0.5s var(--ease-soft), color 0.4s var(--ease-soft);
}
.faq-cta:hover { gap: 22px; color: var(--c-ink); border-bottom-color: var(--c-ink); }

/* ═══════════════════════════════════════════════════════════════
   FADE / REVEAL HELPERS (CSS-only, triggered by IO adding .is-in)
   Using opacity + translate for reliability across browsers.
   ═══════════════════════════════════════════════════════════════ */
[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease-soft), transform 1.2s var(--ease-soft);
  will-change: opacity, transform;
}
[data-fade].is-in { opacity: 1; transform: translateY(0); }

/* staggered cascade for sibling cards in a grid (premium rhythm) */
.journal [data-fade]:nth-child(2),
.numerals-grid [data-fade]:nth-child(2),
.journal-card:nth-child(2) { transition-delay: 0.12s; }
.journal [data-fade]:nth-child(3),
.numerals-grid [data-fade]:nth-child(3),
.journal-card:nth-child(3) { transition-delay: 0.24s; }
.numerals-grid [data-fade]:nth-child(4) { transition-delay: 0.36s; }

[data-reveal-text] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease-soft), transform 1.2s var(--ease-soft);
}
[data-reveal-text].is-in { opacity: 1; transform: translateY(0); }

/* data-reveal: line/word reveal — slide-up via transform.
   Hero is excluded because gsap timeline animates it directly. */
[data-reveal] > span {
  display: inline-block;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.hero [data-reveal] > span {
  transition: none; /* gsap handles hero */
}
[data-reveal].is-in > span {
  transform: translate(0, 0) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --gutter: 22px; }
  .nav { grid-template-columns: 1fr auto; padding: 18px var(--gutter); }
  .nav-links { display: none; }
  .nav-wa { display: none; }          /* WhatsApp vive en el menú + CTA flotante */
  .nav-toggle { display: inline-flex; }
  .side-index { display: none; }
  .wordmark { font-size: 14px; }

  .hero-inner { padding: 90px var(--gutter) 36px; }
  .hero-eyebrow {
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 9.5px;
    letter-spacing: 0.18em;
  }
  .hero-title { font-size: clamp(54px, 14vw, 92px); margin-bottom: 32px; }
  .hero-sub p { font-size: 14px; max-width: 100%; }
  .hero-bottom { grid-template-columns: 1fr; gap: 26px; padding-top: 18px; padding-bottom: 18px; }
  .hero-coords { align-items: flex-start; text-align: left; font-size: 10px; }

  .section-head { margin-bottom: 56px; }
  .umbral, .filosofia, .testimonio, .diario, .contacto { padding: 110px 0; }
  .umbral-grid { grid-template-columns: 1fr; gap: 36px; }
  .umbral-meta { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .umbral-meta .mt { display: inline; margin-top: 0; }

  .residencias-intro { padding: 110px 0 60px; }
  .gallery-track { grid-template-columns: 1fr; gap: 0; padding: 0 var(--gutter); }
  .gallery-media { position: relative; height: auto; padding: 40px 0; }
  .media-stack { aspect-ratio: 4 / 5; max-height: 70vh; }
  .panel { min-height: auto; padding: 60px 0; }
  .panel-specs { grid-template-columns: 1fr 1fr; gap: 22px; }

  .pillars { grid-template-columns: 1fr; gap: 44px; }
  .numerals-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .numeral-block { padding: 16px 22px; }
  .numeral-block:nth-child(3) { border-left: 0; padding-left: 0; }
  .numerals { padding: 96px 0; }

  .journal { grid-template-columns: 1fr; gap: 64px; }

  /* commercial sections — mobile */
  .prensa { padding: 100px 0; }
  .prensa-logos { gap: 14px 28px; }
  .prensa-quote-source { margin-bottom: 64px; padding-bottom: 64px; }
  .prensa-strip { margin-bottom: 64px; }
  .prensa-stats { grid-template-columns: 1fr; gap: 40px; max-width: 280px; }
  .prensa-stat { border-left: 0; }

  .contacto { padding: 110px 0; }
  .contacto-grid { grid-template-columns: 1fr; gap: 56px; }
  .contacto-title { font-size: clamp(48px, 14vw, 84px); }

  .dossier { padding: 110px 0; }
  .dossier-grid { grid-template-columns: 1fr; gap: 56px; max-width: 100%; }
  .dossier-visual { max-width: 260px; margin: 0 auto; }
  .dossier-field { flex-direction: column; align-items: stretch; gap: 16px; border-bottom: 0; }
  .dossier-field input { border-bottom: 1px solid var(--c-ink); padding: 12px 0; }
  .dossier-submit { border-left: 0; margin-left: 0; padding: 16px 0; justify-content: flex-start; border: 1px solid var(--c-ink); padding: 18px 24px; }

  .faq { padding: 96px 0; }
  .faq-title { margin-bottom: 56px; }
  .faq-item summary { grid-template-columns: 36px 1fr 28px; gap: 16px; padding: 22px 0; }
  .faq-answer { padding: 0 0 28px 52px; font-size: 14.5px; }
  .faq-num { font-size: 10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-baseline { flex-direction: column; gap: 8px; }
  .footer-wordmark { font-size: clamp(90px, 26vw, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .grain { display: none; }
}
