/* ============================================================
   ALTOS DEL RIACHUELO — Estancia frente al río
   Design language: monochrome estancia luxury — ink, bone,
   brass; the photography carries the color. Sister site of
   Terrazas de Colonia.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* ---------- BRAND PALETTE — from the black & white identity ----------
     The logo is white on black: the site keeps that restraint.
       #14171A  ink (near-black, cool)
       #F2EFE7  bone (paper)
       #B08D57  brass (single warm accent, from the sunset photography)
   */
  --brand-ink:       #14171A;
  --brand-ink-deep:  #0E1113;   /* dark sections */
  --brand-ink-2:     #1D2124;
  --brand-brass:     #A9853F;   /* brass on light (accessible) */
  --brand-brass-warm:#C7A664;   /* brass on dark */
  --brand-bone:      #E9E4D5;
  --brand-paper:     #F2EFE7;
  --brand-ivory:     #FAF8F1;

  /* Working aliases (same contract as the family stylesheet) */
  --brand-dark:      var(--brand-ink);
  --brand-dark-deep: var(--brand-ink-deep);
  --brand-sand:      var(--brand-brass-warm);
  --brand-sand-soft: var(--brand-bone);

  --river-deep:  var(--brand-ink);
  --river:       var(--brand-ink-2);
  --gold:        var(--brand-brass);
  --gold-warm:   var(--brand-brass-warm);
  --gold-soft:   var(--brand-bone);
  --sand:        var(--brand-bone);
  --paper:       var(--brand-paper);
  --paper-cream: #EAE6D9;
  --ivory:       var(--brand-ivory);

  --ink: #1C1F1D;
  --ink-soft: #3D423E;
  --ink-mute: #63685F;
  --rule: rgba(28, 31, 29, 0.12);
  --rule-strong: rgba(28, 31, 29, 0.26);

  --bg: var(--paper);
  --fg: var(--ink);

  /* Typography — ALTOS DEL RIACHUELO:
     - Wordmark: the white logo PNG (Trajan-style caps); CINZEL echoes it.
     - Display: CORMORANT GARAMOND light — classic, restrained.
     - UI/body: MONTSERRAT light — the family voice. */
  --font-logo: 'Cinzel', 'Cormorant Garamond', serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-italic: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;

  /* Type scale */
  --fs-xs:   clamp(0.68rem, 0.64rem + 0.2vw, 0.74rem);
  --fs-sm:   clamp(0.80rem, 0.76rem + 0.2vw, 0.88rem);
  --fs-base: clamp(0.94rem, 0.90rem + 0.2vw, 1.02rem);
  --fs-lg:   clamp(1.04rem, 0.98rem + 0.35vw, 1.18rem);
  --fs-xl:   clamp(1.22rem, 1.10rem + 0.5vw, 1.45rem);
  --fs-2xl:  clamp(1.7rem, 1.45rem + 1.0vw, 2.25rem);
  --fs-3xl:  clamp(2.15rem, 1.75rem + 1.5vw, 3.0rem);
  --fs-4xl:  clamp(2.5rem, 2.0rem + 2.0vw, 3.7rem);
  --fs-display: clamp(2.8rem, 2.2rem + 2.6vw, 4.6rem);

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;
  --s-10: 9rem;
  --s-11: 12rem;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(1.25rem, 3vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0.18, 1);

  --d-fast: 220ms;
  --d-base: 600ms;
  --d-slow: 1100ms;
  --d-cinematic: 1600ms;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--brand-brass-warm); color: var(--brand-ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav.is-hero :focus-visible,
.hero :focus-visible { outline-color: var(--gold-soft); }
.btn:focus-visible { outline-offset: 5px; }

/* ---------- PAPER ATMOSPHERE ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(169, 133, 63, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(20, 23, 26, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><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 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 5;
}

.section {
  padding: var(--s-10) 0;
  position: relative;
  z-index: 5;
}
@media (max-width: 680px) {
  .section { padding: var(--s-8) 0; }
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.eyebrow-center { justify-content: center; }

/* Display headings — Cormorant Garamond light */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- BRAND MARK (the wave of the A) ---------- */
.arch {
  display: inline-block;
  width: 84px; height: 22px;
  position: relative;
  color: var(--gold-warm);
}
.arch svg { width: 100%; height: 100%; display: block; overflow: visible; color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: var(--s-5) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: background var(--d-base) var(--ease-out), backdrop-filter var(--d-base);
}
.nav > * { pointer-events: auto; }
.nav.is-scrolled {
  background: rgba(14, 17, 19, 0.90);
  background: color-mix(in srgb, var(--brand-ink-deep) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: rgba(14, 17, 19, 0.98); }
}
.nav .nav-list a,
.nav .lang-btn,
.nav .nav-burger { color: var(--ivory); }

.nav-brand { display: inline-flex; align-items: center; gap: var(--s-3); }
.nav-logo {
  height: 62px; width: auto; display: block;
  filter: drop-shadow(0 1px 6px rgba(8,10,12,0.5));
}
@media (max-width: 680px) { .nav-logo { height: 48px; } }

.nav-list {
  display: flex;
  gap: var(--s-6);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--d-base);
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width var(--d-base) var(--ease-out);
}
.nav-list a:hover::after { width: 100%; }

/* "Ver el film" — pill CTA in the nav */
.nav-list .nav-film {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.5em 1.05em;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--d-base), border-color var(--d-base), color var(--d-base);
}
.nav-list .nav-film::after { display: none; }
.nav-list .nav-film .nav-film-ic { font-size: 0.6em; transform: translateY(-0.06em); }
.nav-list .nav-film:hover {
  background: var(--brand-brass-warm);
  border-color: var(--brand-brass-warm);
  color: var(--brand-ink);
}

.nav-burger {
  display: none;
  position: relative;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  color: var(--ivory);
  transition: border-color var(--d-base);
}
.nav-burger .bars { position: relative; width: 16px; height: 10px; }
.nav-burger .bars::before,
.nav-burger .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px;
  background: currentColor; transition: transform 350ms var(--ease-out), top 350ms var(--ease-out);
}
.nav-burger .bars::before { top: 1px; }
.nav-burger .bars::after  { top: 8px; }
body.nav-open .nav-burger .bars::before { top: 4.5px; transform: rotate(45deg); }
body.nav-open .nav-burger .bars::after  { top: 4.5px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0;
  z-index: 49;
  background: var(--brand-ink-deep);
  color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-9) var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease-out), visibility 0s 500ms;
}
.nav-drawer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 50% 60%, rgba(199,166,100,0.10), transparent 70%);
  pointer-events: none;
}
body.nav-open .nav-drawer {
  opacity: 1; visibility: visible;
  transition: opacity 500ms var(--ease-out);
}
.nav-drawer-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-5);
  position: relative; z-index: 1;
}
.nav-drawer-list a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-3xl);
  letter-spacing: -0.005em;
  color: var(--ivory);
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
body.nav-open .nav-drawer-list a { opacity: 1; transform: translateY(0); }
body.nav-open .nav-drawer-list li:nth-child(1) a { transition-delay: 80ms; }
body.nav-open .nav-drawer-list li:nth-child(2) a { transition-delay: 160ms; }
body.nav-open .nav-drawer-list li:nth-child(3) a { transition-delay: 240ms; }
body.nav-open .nav-drawer-list li:nth-child(4) a { transition-delay: 320ms; }
body.nav-open .nav-drawer-list li:nth-child(5) a { transition-delay: 400ms; }
body.nav-open .nav-drawer-list li:nth-child(6) a { transition-delay: 480ms; }
.nav-drawer-footer {
  margin-top: var(--s-8);
  display: flex; flex-direction: column; gap: var(--s-3);
  font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,248,241,0.55);
  position: relative; z-index: 1;
}
.nav-drawer-footer a { color: var(--gold-warm); }

body.nav-open { overflow: hidden; }

@media (max-width: 880px) {
  .nav-list { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 881px) {
  .nav-drawer, .nav-burger { display: none !important; }
}

.nav-right { display: flex; align-items: center; gap: var(--s-3); }

/* Language switcher */
.lang { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); }
.lang-btn {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: var(--s-2) var(--s-3);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  transition: all var(--d-base);
  display: inline-flex; align-items: center; gap: 0.5em;
}
.lang-btn:hover { border-color: currentColor; }
.lang-btn .caret { width: 10px; height: 10px; transition: transform var(--d-base); }
.lang.is-open .lang-btn .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.4rem;
  min-width: 160px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--d-base) var(--ease-out);
  box-shadow: 0 24px 80px -30px rgba(20, 23, 26, 0.35);
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: background var(--d-fast), color var(--d-fast);
}
.lang-menu button .iso {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-brass);
  width: 26px;
}
.lang-menu button:hover { background: var(--paper-cream); color: var(--ink); }
.lang-menu button.is-active { background: var(--brand-ink-deep); color: var(--ivory); }
.lang-menu button.is-active .iso { color: var(--gold-warm); }

/* ---------- HERO — sunset over the river ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  background: var(--brand-ink);
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.03);
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}
/* Video: no Ken Burns (animating <video> transform is expensive) */
.hero-media video { backface-visibility: hidden; animation: none; transform: scale(1.05); object-position: center; }
@keyframes hero-kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(0, -2%, 0); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,12,0.55) 0%, rgba(8,10,12,0.16) 18%, rgba(8,10,12,0) 32%),
    linear-gradient(0deg,   rgba(8,10,12,0.62) 0%, rgba(8,10,12,0.16) 22%, rgba(8,10,12,0) 40%);
}
.hero-top, .hero-bottom {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-top    { padding-top: calc(var(--s-8) + 2.0rem); }
.hero-bottom { padding-bottom: var(--s-7); }

.hero-logo, .hero-place, .hero-claim, .hero-ctas {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.is-loaded .hero-logo   { opacity: 1; transform: none; transition-delay: 0.20s; }
.is-loaded .hero-place  { opacity: 1; transform: none; transition-delay: 0.40s; }
.is-loaded .hero-claim  { opacity: 1; transform: none; transition-delay: 0.55s; }
.is-loaded .hero-ctas   { opacity: 1; transform: none; transition-delay: 0.85s; }

.hero-logo {
  height: clamp(110px, 16vw, 170px);
  width: auto;
  margin: 0 0 var(--s-4);
  filter: drop-shadow(0 2px 24px rgba(8,10,12,0.55));
}
.hero-place {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250,248,241,0.82);
  margin: 0;
  display: inline-flex; align-items: center; gap: var(--s-4);
  text-shadow: 0 1px 12px rgba(8,10,12,0.5);
}
.hero-place::before, .hero-place::after {
  content: ""; width: 26px; height: 1px;
  background: var(--brand-brass-warm); opacity: 0.65;
}

.hero-claim {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.1rem);
  color: var(--ivory);
  margin: var(--s-5) 0 var(--s-4);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 28px rgba(8,10,12,0.6), 0 1px 4px rgba(8,10,12,0.5);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-media video { animation: none; }
}

/* ---------- NIGHT INTERSTITIAL ---------- */
.interstitial {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
  background: #06080B;
}
.interstitial-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.interstitial-media img {
  width: 100%; height: 100%; object-fit: cover;
  /* Anclado abajo: el portón entra en cuadro (recortado por los bordes),
     con la Vía Láctea abriéndose arriba. */
  object-position: center 88%;
  transform: scale(1.05);
  will-change: transform;
}
.interstitial-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 50% 55%, rgba(4,6,9,0.05) 0%, rgba(4,6,9,0.45) 70%, rgba(4,6,9,0.7) 100%);
}
.interstitial-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.interstitial-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.5rem + 3.6vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ivory);
  margin: 0;
  text-shadow: 0 2px 40px rgba(4,6,9,0.65);
}
.interstitial-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: var(--fs-xl);
  color: rgba(250,248,241,0.88);
  max-width: 40ch;
  margin: var(--s-4) auto 0;
  line-height: 1.5;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 1.05rem 1.6rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform var(--d-base) var(--ease-out), color var(--d-base), background var(--d-base);
  will-change: transform;
}
.btn .ic {
  width: 18px; height: 12px;
  position: relative;
  transition: transform var(--d-base) var(--ease-out);
}
.btn .ic::before {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1px; background: currentColor; transform: translateY(-50%);
}
.btn .ic::after {
  content: ""; position: absolute; top: 50%; right: 0;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .ic { transform: translateX(6px); }

.btn-primary { background: var(--brand-brass-warm); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-bone); }

.btn-ghost { color: var(--ink); border: 1px solid var(--rule-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* ---------- CONCEPT SECTION ---------- */
.concept .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: start;
}
.concept .title { font-size: var(--fs-4xl); }
.concept-title { margin-top: var(--s-5); }
.concept .body {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.6;
}
.concept .aside {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-xl);
  color: var(--brand-brass);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
  margin-top: var(--s-6);
  max-width: 30ch;
  line-height: 1.4;
}
@media (max-width: 880px) {
  .concept .container { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ---------- LA TIERRA (experience pattern) ---------- */
.experience { background: var(--paper-cream); overflow: hidden; padding: 0 0 var(--s-10); }
.experience-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: start;
  padding-top: var(--s-9);
}
@media (max-width: 880px) {
  .experience-intro { grid-template-columns: 1fr; gap: var(--s-6); }
}
.experience-title { font-size: var(--fs-4xl); margin-top: var(--s-5); }
.experience-list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.experience-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding var(--d-base) var(--ease-out);
}
.experience-list li:hover { padding-left: var(--s-4); }
.experience-list .num {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--brand-brass);
  font-size: var(--fs-lg);
  letter-spacing: 0.01em;
}
.experience-list .key {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-lg);
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ---------- RÍO · TIERRA · CIELO (towers pattern) ---------- */
.towers { background: var(--ivory); padding-bottom: 0; }
.towers-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-8);
}
.towers-head .title { font-size: var(--fs-4xl); }
.towers-head .intro {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-xl);
  color: var(--ink-mute);
  max-width: 30ch;
  line-height: 1.45;
}
@media (max-width: 880px) {
  .towers-head { grid-template-columns: 1fr; gap: var(--s-5); }
}

.tower { position: relative; }
.tower-caption {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-top: var(--s-7);
  padding-bottom: var(--s-9);
}
.tower-caption::before {
  content: "";
  width: 56px; height: 1px;
  background: var(--rule-strong);
  margin-bottom: var(--s-6);
}
.tower-caption > * { max-width: 60ch; }
.tower-num {
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1;
  color: var(--brand-brass); opacity: 0.92; margin-bottom: var(--s-3);
}
.tower-tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}
.tower-cap-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-3xl); line-height: 1.16; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: var(--s-5); max-width: 24ch;
}
.tower-caption p { color: var(--ink-mute); margin-bottom: var(--s-6); max-width: 46ch; }
.tower-caption .tower-cta { align-self: center; }

/* ---------- UBICACIÓN (location pattern) ---------- */
.location {
  position: relative;
  background: var(--paper-cream);
  color: var(--ink);
  overflow: hidden;
  padding: 0 0 var(--s-10);
}
.location-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-9);
  align-items: start;
  padding-top: var(--s-9);
}
.location-title {
  font-size: var(--fs-4xl);
  margin: var(--s-5) 0 var(--s-6);
  color: var(--ink);
}
.location-body {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: var(--s-4);
  line-height: 1.7;
}
.location-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.location-facts > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
}
.location-facts .k {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-xl);
  color: var(--brand-brass);
  line-height: 1;
  letter-spacing: -0.005em;
}
.location-facts .v {
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.location-cta { margin-top: var(--s-6); justify-self: start; }
@media (max-width: 980px) {
  .location-intro { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ---------- CLOSING SECTION ---------- */
.closing {
  text-align: center;
  background: var(--brand-ink);
  color: var(--ivory);
  padding: var(--s-10) 0 var(--s-9);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 30%, rgba(199,166,100,0.10), transparent 70%);
  pointer-events: none;
}
.closing .container { position: relative; z-index: 1; }
.closing .eyebrow { color: rgba(250,248,241,0.6); }
.closing .eyebrow::before { background: var(--brand-sand); opacity: 0.7; }
.closing .arch {
  margin-bottom: var(--s-5);
  color: var(--brand-brass-warm);
}
.closing-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-3xl);
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--ivory);
  margin-bottom: var(--s-6);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.closing-title .l { display: block; }
.closing-title .accent {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-sand);
  letter-spacing: 0.005em;
}
.closing-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-sm);
  color: rgba(250,248,241,0.78);
  max-width: 46ch;
  letter-spacing: 0.02em;
  line-height: 1.75;
  margin: 0 auto var(--s-6);
}
.closing-kicker {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-xl);
  letter-spacing: 0.03em;
  color: var(--brand-sand);
  margin: 0 auto var(--s-7);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--brand-ink-deep);
  color: rgba(250,248,241,0.7);
  padding: var(--s-8) 0 var(--s-6);
  font-size: var(--fs-sm);
  position: relative;
  z-index: 6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer-credits li {
  display: flex; flex-direction: column; gap: 0.15em;
  padding: 0.35em 0;
  border-bottom: 1px solid rgba(250,248,241,0.08);
}
.footer-credits li:last-child { border-bottom: 0; }
.footer-credits .role {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,248,241,0.42);
}
.footer-credits a { color: rgba(250,248,241,0.85); }
.footer-credits a:hover { color: var(--brand-brass-warm); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-warm);
  margin-bottom: var(--s-4);
}
.footer-brand { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer-logo { height: 96px; width: auto; display: block; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.footer ul a:hover { color: var(--gold-warm); }
.footer-rule {
  height: 1px; background: rgba(250,248,241,0.12);
  margin: var(--s-5) 0;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: rgba(250,248,241,0.5);
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: var(--s-3);
}

/* ---------- FLOATING WHATSAPP CTA ---------- */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  background: var(--brand-ink);
  color: var(--ivory);
  border-radius: 999px;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  box-shadow: 0 20px 60px -20px rgba(8, 10, 12, 0.6);
  transition: transform var(--d-base) var(--ease-out), background var(--d-base);
}
.wa-fab:hover {
  transform: translateY(-3px);
  background: var(--brand-ink-2);
}
.wa-fab .wa-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-brass-warm);
  display: grid; place-items: center;
  color: var(--brand-ink);
}
.wa-fab .wa-ic svg { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .wa-fab span { display: none; }
  .wa-fab { padding: 0.5rem; }
}

/* ---------- REVEAL ANIMATIONS (GSAP-driven; CSS = fallback) ---------- */
.no-gsap .reveal,
.no-gsap .reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity var(--d-slow), transform var(--d-slow); }
.no-gsap .reveal.is-in,
.no-gsap .reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  line-height: 1;
}
.word-inner {
  display: inline-block;
  will-change: transform;
  line-height: 1.12;
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background 0.35s var(--ease-out);
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor.is-active {
  width: 40px; height: 40px;
  background: var(--gold-warm);
}
@media (max-width: 980px), (hover: none) {
  .cursor { display: none; }
}

/* Image reveal with mask */
.reveal-img {
  position: relative;
  overflow: hidden;
}
.reveal-img::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1400ms var(--ease-inout);
  z-index: 4;
}
.reveal-img.is-in::after { transform: scaleX(0); }

/* ---------- ACCESSIBILITY / REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- SHOWCASE (portón histórico, sin texto) ---------- */
.facade-showcase {
  position: relative;
  width: 100%;
  height: 86vh;
  height: 86svh;
  min-height: 560px;
  background: var(--brand-ink);
  overflow: hidden;
}
.facade-media {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.facade-media img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.facade-showcase::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,10,12,0.30) 0%, rgba(8,10,12,0) 20%),
    linear-gradient(0deg, rgba(8,10,12,0.45) 0%, rgba(8,10,12,0) 26%);
}
@media (max-width: 768px) {
  .facade-showcase { height: 64vh; height: 64svh; min-height: 420px; }
}

/* ============================================================
   CINEMATIC FULL-BLEED BANDS
   ============================================================ */
.cine { position: relative; width: 100%; }

.cine-media {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 86vh;
  height: 86svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--brand-ink);
}
.cine-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.03);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .cine-media img { transform: scale(1.04); }
}
.cine--clean .cine-media::after,
.cine--amenities .cine-media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,10,12,0.20) 0%, rgba(8,10,12,0) 15%);
}
/* Night sky band (vertical shot) — taller so the stars breathe */
.cine--tall .cine-media { height: 96vh; height: 96svh; }
.cine--tall .cine-media img { object-position: center 38%; }

@media (max-width: 768px) {
  .cine-media { height: 72vh; height: 72svh; min-height: 460px; }
}

/* ---------- RECORRIDO VIRTUAL 360 (MP360, embebido) ---------- */
.tour { background: var(--ivory); }
.tour-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: var(--s-7);
}
.tour-title { font-size: var(--fs-3xl); margin-top: var(--s-5); }
.tour-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-ink);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(8, 10, 12, 0.45);
}
.tour-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
@media (max-width: 680px) {
  .tour-frame { aspect-ratio: 4 / 5; }
}

/* ---------- FILM (lite YouTube — el iframe recién se carga al click) ---------- */
.film { background: var(--ivory); }
.film-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: var(--s-7);
}
.film-title { font-size: var(--fs-3xl); margin-top: var(--s-5); }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-ink);
  overflow: hidden;
  cursor: pointer;
}
.film-frame > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1400ms var(--ease-out);
}
.film-frame:hover > img { transform: scale(1.06); }
.film-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(95% 75% at 50% 50%, rgba(8,10,12,0.06) 0%, rgba(8,10,12,0.46) 100%);
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.film-frame.is-playing { cursor: default; }
.film-frame.is-playing::after { opacity: 0; }
.film-play {
  position: absolute; inset: 0; z-index: 3;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-4);
  color: var(--ivory);
}
.film-play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 10, 12, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 248, 241, 0.55);
  transition: transform var(--d-base) var(--ease-out), background var(--d-base), border-color var(--d-base), color var(--d-base);
}
.film-frame:hover .film-play-btn {
  transform: scale(1.08);
  background: var(--brand-brass-warm);
  border-color: var(--brand-brass-warm);
  color: var(--brand-ink);
}
.film-play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.film-play-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(8,10,12,0.6);
}
.film-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 680px) {
  .film-play-btn { width: 64px; height: 64px; }
}

/* ---------- BRIDGE ---------- */
.bridge { background: var(--paper-cream); text-align: center; padding: var(--s-9) 0; }
.bridge-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-2xl);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto;
}

/* Anchor offset under the fixed nav */
section[id], footer[id] { scroll-margin-top: 96px; }
