/* =========================================================
   ABUD — Agencia inmobiliaria
   Hoja de estilos principal
   ========================================================= */

:root {
  --paper: #f3f0e9;
  --paper-2: #ebe6dc;
  --card: #faf8f3;
  --ink: #262825;
  --ink-2: #34352f;
  --muted: #68665e;
  --copper: #87654c;
  --copper-ink: #625444;
  --line: rgba(83, 77, 67, .18);
  --line-light: rgba(241, 233, 223, .16);

  --cream: #f6f0e5;
  --cream-2: #f1e9df;
  --cream-3: #e0d0b7;
  --bronze: #ccb494;
  --sand: #d1c0aa;

  --forest: #16231e;
  --char: #1d221f;
  --earth: #2b2824;
  --foot: #1e2421;
  --void: #0b0f0e;

  --gutter: 6.25vw;
  --gutter-s: 2.8vw;
  --header-h: 96px;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Marcellus', Georgia, serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.intro-active, html.intro-active body { overflow: hidden; }
html.menu-open, html.menu-open body, html.viewer-open, html.viewer-open body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
ol { margin: 0; padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 12px 18px; background: var(--ink); color: var(--cream); font-size: 14px; border-radius: 2px; transition: top .3s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

.section-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream-3);
  line-height: 1.6;
}
.eyebrow--dark { color: var(--copper-ink); }

svg path { vector-effect: none; }
.icon-stroke, .photo-open svg, .journey__next svg, .journey__nav svg, .icon-btn svg, .hero__cta svg, .contact-link svg, .replay svg, .skip-intro svg, .plan-card svg, .cinema__hint svg {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1 !important; transform: none !important; }

/* =========================================================
   CRISTAL (atmósfera de la intro y del manifiesto de marca)
   ========================================================= */
.crystal {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 55% at 56% 46%, rgba(204, 180, 148, .16) 0%, rgba(204, 180, 148, 0) 60%),
    radial-gradient(120% 90% at 50% 40%, #18201d 0%, #0d1211 55%, #070909 100%);
}
.crystal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crystal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
.crystal::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(246, 240, 229, 0) 0%, rgba(246, 240, 229, .07) 45%, rgba(255, 248, 236, .16) 50%, rgba(246, 240, 229, .07) 55%, rgba(246, 240, 229, 0) 100%);
  transform: skewX(-12deg);
  animation: crystalSweep 7.5s var(--ease-io) infinite;
}
@keyframes crystalSweep { 0% { left: -45%; } 60%, 100% { left: 120%; } }
.crystal__glow { animation: crystalBreath 6s ease-in-out infinite alternate; transform-origin: 56% 47%; }
@keyframes crystalBreath { from { opacity: .75; } to { opacity: 1; } }
.crystal__fins { animation: crystalDrift 18s ease-in-out infinite alternate; transform-origin: 56% 47%; }
@keyframes crystalDrift { from { transform: scale(1); } to { transform: scale(1.045); } }

/* =========================================================
   INTRO
   ========================================================= */
.entrance {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--void);
  color: var(--cream);
  animation: entranceAuto 1s ease 8.5s forwards; /* red de seguridad sin JS */
}
.entrance.is-controlled { animation: none; }
@keyframes entranceAuto { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.entrance.is-leaving { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 0s linear 1s; }
.entrance[hidden] { display: none; }

.entrance__identity {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 22px;
  transform: translateY(-4vh);
}
.entrance__eyebrow { font-size: 10px; letter-spacing: .32em; color: #e0d0b7; }
.entrance__logo { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.entrance__symbol { width: clamp(70px, 8vw, 118px); height: auto; filter: drop-shadow(0 0 22px rgba(204, 180, 148, .25)); }
.entrance__word { width: clamp(220px, 30vw, 440px); height: auto; filter: drop-shadow(0 0 30px rgba(204, 180, 148, .22)); }
.entrance__caption { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #d5c6b0; }

/* coreografía */
html.js .entrance__eyebrow,
html.js .entrance__caption { opacity: 0; transform: translateY(10px); }
html.js .entrance__symbol { clip-path: inset(100% 0 0 0); }
html.js .entrance__word { clip-path: inset(0 100% 0 0); opacity: .2; }
.entrance.is-playing .entrance__eyebrow { animation: fadeUp 1.2s var(--ease-out) .35s forwards; }
.entrance.is-playing .entrance__symbol { animation: riseClip 1.9s var(--ease-out) .8s forwards; }
.entrance.is-playing .entrance__word { animation: wipeClip 1.6s var(--ease-out) 1.7s forwards; }
.entrance.is-playing .entrance__caption { animation: fadeUp 1.3s var(--ease-out) 2.7s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes riseClip { to { clip-path: inset(0 0 0 0); } }
@keyframes wipeClip { to { clip-path: inset(0 0 0 0); opacity: 1; } }
/* sin JS: todo visible */
html:not(.js) .entrance__eyebrow, html:not(.js) .entrance__caption { opacity: 1; }

.entrance__sound {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(224, 208, 183, .35);
  border-radius: 999px;
  font-size: 12px; letter-spacing: .08em;
  color: var(--cream);
  background: rgba(246, 240, 229, .06);
  backdrop-filter: blur(8px);
  animation: soundPulse 2.2s ease-in-out infinite;
}
.entrance__sound[hidden] { display: none; }
@keyframes soundPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(204, 180, 148, .0); } 50% { box-shadow: 0 0 0 8px rgba(204, 180, 148, .12); } }

.skip-intro {
  position: absolute; right: var(--gutter); bottom: 5.5vh; z-index: 3;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; color: #ddccb5;
  padding: 12px 0;
}
.skip-intro svg { width: 16px; height: 16px; }
.skip-intro span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.skip-intro:hover span { background-size: 100% 1px; }

/* barras de sonido */
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; background: currentColor; border-radius: 1px; height: 5px; }
.sound-bars i:nth-child(2) { height: 11px; }
.sound-bars i:nth-child(3) { height: 7px; }
.is-sounding .sound-bars i { animation: bar 1s ease-in-out infinite; }
.is-sounding .sound-bars i:nth-child(2) { animation-delay: .2s; }
.is-sounding .sound-bars i:nth-child(3) { animation-delay: .4s; }
.entrance__sound .sound-bars i { animation: bar 1s ease-in-out infinite; }
.entrance__sound .sound-bars i:nth-child(2) { animation-delay: .2s; }
.entrance__sound .sound-bars i:nth-child(3) { animation-delay: .4s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: #fff7ed;
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease), transform .8s var(--ease-out), opacity .8s var(--ease);
  border-bottom: 1px solid transparent;
}
html.intro-active .header { opacity: 0; transform: translateY(-20px); }
.header.is-scrolled { background: rgba(18, 23, 21, .42); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border-bottom-color: rgba(246, 240, 229, .08); }
.header.is-light { background: rgba(243, 240, 233, .9); color: var(--ink); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.wordmark { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.wordmark__symbol { width: 30px; height: auto; fill: currentColor; }
.wordmark__lockup { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wordmark__word { width: 104px; height: auto; fill: currentColor; }
.wordmark__sub { font-family: var(--display); font-size: 7.5px; letter-spacing: .34em; text-transform: uppercase; line-height: 1; opacity: .85; padding-left: .34em; }
.header .wordmark__symbol use, .header .wordmark__word use { fill: currentColor; }

.nav { display: flex; gap: clamp(14px, 1.9vw, 30px); }
.nav a { position: relative; font-size: 14px; padding: 10px 0; opacity: .92; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.signature { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.signature strong { font-family: var(--sans); font-weight: 400; font-size: 24px; letter-spacing: -.04em; }
.signature span { font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }
.signature:hover strong { font-family: var(--serif); font-style: italic; letter-spacing: -.01em; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
html.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
html.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: calc(var(--header-h) + 20px) 28px 40px;
  background: var(--forest); color: var(--cream);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
html.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
html.menu-open .header { color: var(--cream); background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(40px, 11vw, 56px); line-height: 1.12; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 16px; }
.mobile-menu small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--bronze); }
.mobile-menu__foot { margin-top: 28px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 290vh; background: var(--void); color: #fff7ec; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transform: scale(calc(1.08 - var(--zoom, 0) * .08));
  will-change: transform;
}
html.js .hero__media { transform: scale(1.07); filter: brightness(.6); transition: transform 3.2s var(--ease-out), filter 2.4s var(--ease); }
html.js .is-intro-done .hero__media { transform: none; filter: none; }
.hero__img--night {
  opacity: var(--night, 0);
  filter: brightness(.42) saturate(.75) contrast(1.12) hue-rotate(-12deg);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 11, .55) 0%, rgba(9, 12, 11, 0) 22%, rgba(9, 12, 11, 0) 48%, rgba(9, 12, 11, .62) 100%),
    linear-gradient(90deg, rgba(9, 12, 11, .45) 0%, rgba(9, 12, 11, 0) 55%),
    linear-gradient(180deg, rgba(14, 24, 36, calc(var(--night, 0) * .45)) 0%, rgba(14, 24, 36, calc(var(--night, 0) * .25)) 100%);
}
.hero__note { position: absolute; right: var(--gutter); bottom: 9vh; font-size: 10px; letter-spacing: .04em; color: rgba(246, 240, 229, .78); }

.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 11vh;
  opacity: var(--content, 1);
  transform: translate3d(0, calc((1 - var(--content, 1)) * -60px), 0);
}
.hero__location { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: .15em; color: #f1e6d5; margin-bottom: 14px; padding-left: 6.25vw; }
.hero__location::before { content: ""; width: 4.5vw; height: 1px; background: rgba(241, 230, 213, .6); margin-left: -6.25vw; }
.hero__title { font-family: var(--serif); font-weight: 400; color: #fff7ec; line-height: .9; letter-spacing: -.025em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line > span { display: block; }
.hero__title > .hero__line:first-child > span { font-size: clamp(40px, 6.1vw, 90px); letter-spacing: .005em; line-height: .94; }
.hero__title em { color: #f6f0e5; padding-left: clamp(36px, 4.5vw, 72px); margin-top: -.05em; }
.hero__title em > span { font-size: clamp(58px, 8.6vw, 136px); line-height: .9; letter-spacing: -.025em; padding-right: .08em; }
html.js .hero__line > span { transform: translate3d(0, 105%, 0); transition: transform 1.5s var(--ease-out); }
html.js .is-intro-done .hero__line > span { transform: none; }
html.js .is-intro-done .hero__line:nth-child(2) > span { transition-delay: .14s; }
html.js .hero__location, html.js .hero__bottom, html.js .hero__scroll { opacity: 0; transition: opacity 1.4s var(--ease) .5s; }
html.js .is-intro-done .hero__location, html.js .is-intro-done .hero__bottom, html.js .is-intro-done .hero__scroll { opacity: 1; }
/* red de seguridad si el JS no carga */
html.js:not(.is-ready) .hero__line > span { animation: heroSafety 0s linear 9.5s forwards; }
html.js:not(.is-ready) .hero__location, html.js:not(.is-ready) .hero__bottom { animation: heroSafetyFade 0s linear 9.5s forwards; }
@keyframes heroSafety { to { transform: none; } }
@keyframes heroSafetyFade { to { opacity: 1; } }

.hero__bottom { display: flex; align-items: center; gap: clamp(28px, 6vw, 96px); margin-top: clamp(22px, 3.2vh, 34px); }
.hero__bottom p { font-size: 16px; line-height: 1.7; color: #f3e6d5; max-width: 300px; }
.hero__cta { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; }
.hero__cta i { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 247, 236, .45); display: grid; place-items: center; transition: background .5s var(--ease), border-color .5s; }
.hero__cta svg { width: 18px; height: 18px; }
.hero__cta:hover i { background: rgba(255, 247, 236, .14); border-color: #fff7ec; }

.hero__reframe {
  position: absolute; right: var(--gutter); top: 50%; width: min(330px, 30vw);
  transform: translate3d(0, calc(-50% + (1 - var(--reframe, 0)) * 40px), 0);
  opacity: var(--reframe, 0);
  display: flex; flex-direction: column; gap: 18px;
}
.hero__reframe-rule { width: 56px; height: 1px; background: rgba(246, 240, 229, .6); }
.hero__reframe p { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.02em; color: #fff7ec; }
.hero__reframe em { color: var(--bronze); }
.hero__reframe-index { font-size: 11px; letter-spacing: .2em; color: var(--cream-3); }

.hero__scroll { position: absolute; left: var(--gutter); bottom: 4vh; display: flex; align-items: center; gap: 18px; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: #f1e6d5; opacity: var(--content, 1); }
.hero__scroll i { width: 1px; height: 34px; background: rgba(241, 230, 213, .35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff7ec; animation: scrollLine 2.4s var(--ease-io) infinite; }
@keyframes scrollLine { to { top: 110%; } }

.hero__brand { position: absolute; inset: 0; display: grid; place-items: center; opacity: var(--brand, 0); visibility: hidden; color: var(--cream); }
.hero__brand.is-on { visibility: visible; }
.hero__brand-identity { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; transform: translate3d(0, calc((1 - var(--brand, 0)) * 30px), 0); }
.hero__brand-identity .eyebrow { font-size: 10px; letter-spacing: .32em; }
.hero__brand-logo { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2vw, 26px); }
.hero__brand-symbol { width: clamp(64px, 7vw, 104px); height: auto; clip-path: inset(calc((1 - var(--brand-logo, 0)) * 100%) 0 0 0); }
.hero__brand-word { width: clamp(260px, 42vw, 640px); height: auto; filter: drop-shadow(0 0 40px rgba(204, 180, 148, .2)); clip-path: inset(0 calc((1 - var(--brand-word, 0)) * 100%) 0 0); }
.hero__brand-caption { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #d5c6b0; opacity: var(--brand-word, 0); }

/* =========================================================
   CAPÍTULOS (papel)
   ========================================================= */
.chapter--paper { background: var(--paper); }
.chapter-label { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: #625e55; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.intro-block { padding-top: calc(var(--header-h) + 9vh); padding-bottom: 12vh; }
.intro-block__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 5vw; align-items: end; margin-top: 10vh; }
.display { font-family: var(--serif); font-weight: 400; line-height: .9; letter-spacing: -.015em; color: #272925; }
.display__caps { display: block; font-size: clamp(50px, 8.6vw, 132px); }
.display em { display: block; font-size: clamp(56px, 9.4vw, 146px); color: var(--copper); padding-left: .55em; letter-spacing: -.02em; line-height: .92; }
.intro-block__text { display: flex; flex-direction: column; gap: 22px; padding-bottom: 1.4vw; max-width: 400px; }
.intro-block__text .lead { font-size: 17.5px; line-height: 1.5; color: #34352f; }
.intro-block__text p:not(.lead) { font-size: 15px; line-height: 1.75; color: var(--muted); }
.intro-block__sign { padding-top: 18px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-ink); }

/* =========================================================
   RECORRIDOS (photo journeys)
   ========================================================= */
.journey { position: relative; height: calc(var(--count) * 62vh + 100vh); }
.journey__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 3.2vh;
  overflow: hidden;
}
.journey__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; padding-left: var(--gutter-s); }
.journey__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #625e55; }
.journey__next { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line); }
.journey__next svg { width: 15px; height: 15px; transition: transform .5s var(--ease-out); }
.journey__next:hover svg { transform: translateY(3px); }

.journey__stage { position: relative; margin-left: var(--gutter-s); min-height: 0; }
.journey__frame { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #d9d2c5; }
.journey__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.07);
  clip-path: inset(0 0 0 100%);
  transition: opacity 1s var(--ease), transform 1.8s var(--ease-out), clip-path 1.2s var(--ease-io);
}
.journey__img.is-active { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); z-index: 2; }
.journey__img.is-leaving { opacity: 1; clip-path: inset(0 0 0 0); z-index: 1; transform: scale(1.02); }
.journey__img.is-back { clip-path: inset(0 100% 0 0); }
.journey__img.is-back.is-active { clip-path: inset(0 0 0 0); }

.photo-open {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 5;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  font-size: 13px; color: #f6f0e5;
  background: rgba(32, 36, 33, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 2px;
  transition: background .4s var(--ease);
}
.photo-open svg { width: 15px; height: 15px; }
.photo-open:hover { background: rgba(32, 36, 33, .96); }
.photo-open--left { right: auto; left: var(--gutter-s); }

.journey__caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 22px; padding-left: calc(var(--gutter-s) + 1vw); }
.journey__meta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.1; letter-spacing: -.025em; color: #292b27; min-height: 1.1em; }
.journey__meta h3.is-swap { animation: titleSwap .8s var(--ease-out); }
@keyframes titleSwap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.journey__meta > p { margin-top: 6px; font-size: 12px; letter-spacing: .06em; color: #625e55; }
.journey__note { margin-left: 18px; letter-spacing: 0; }
.journey__bars { display: flex; gap: 6px; margin-top: 14px; }
.journey__bars i { width: 34px; height: 2px; background: rgba(41, 43, 39, .14); position: relative; overflow: hidden; }
.journey__bars i::after { content: ""; position: absolute; inset: 0; background: #292b27; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.journey__bars i.is-on::after { transform: scaleX(1); }
.journey__hint { margin-top: 12px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #6c675d; }
.journey__nav { display: flex; gap: 10px; }
.journey__nav button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: background .4s var(--ease), color .4s, border-color .4s, opacity .4s; }
.journey__nav button svg { width: 19px; height: 19px; }
.journey__nav button:hover:not(:disabled) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.journey__nav button:disabled { opacity: .3; cursor: default; }

/* versión oscura */
.journey--dark .journey__label, .journey--dark .journey__meta > p, .journey--dark .journey__hint { color: #c9bba6; }
.journey--dark .journey__next { color: var(--cream-2); border-bottom-color: var(--line-light); }
.journey--dark .journey__meta h3 { color: var(--cream-2); }
.journey--dark .journey__bars i { background: rgba(241, 233, 223, .16); }
.journey--dark .journey__bars i::after { background: var(--cream-2); }
.journey--dark .journey__nav button { border-color: var(--line-light); color: var(--cream-2); }
.journey--dark .journey__nav button:hover:not(:disabled) { background: var(--cream-2); color: var(--ink); border-color: var(--cream-2); }
.journey--dark .journey__frame { background: #36322c; }

/* =========================================================
   PERSPECTIVA — recorrido cinematográfico
   ========================================================= */
.cinema { position: relative; height: calc(var(--count) * 58vh + 100vh); background: var(--char); color: #eee8de; }
.cinema__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cinema__frame {
  position: absolute; top: calc(var(--header-h) + 4px); left: var(--gutter-s); right: var(--gutter-s); bottom: var(--gutter-s);
  overflow: hidden; border-radius: 4px; background: #121614;
}
.cinema__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(calc(1.04 + var(--local, 0) * .07));
  transition: opacity 1.1s var(--ease);
  will-change: opacity, transform;
}
.cinema__img.is-active { opacity: 1; z-index: 1; }
.cinema__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 15, 14, calc(.62 * var(--copy, 1))) 0%, rgba(12, 15, 14, 0) 55%),
    linear-gradient(180deg, rgba(12, 15, 14, .45) 0%, rgba(12, 15, 14, 0) 22%, rgba(12, 15, 14, 0) 62%, rgba(12, 15, 14, .78) 100%);
}
.cinema__top { position: absolute; top: calc(var(--header-h) + 22px); left: var(--gutter-s); right: var(--gutter-s); z-index: 3; display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #e5dccd; padding: 0 2.4vw; }
.cinema__hint { display: inline-flex; align-items: center; gap: 10px; }
.cinema__hint svg { width: 15px; height: 15px; }
.cinema__copy {
  position: absolute; z-index: 3; left: calc(var(--gutter-s) + 2.4vw); top: calc(var(--header-h) + 9vh);
  padding: 0;
  opacity: var(--copy, 1); transform: translate3d(0, calc((1 - var(--copy, 1)) * -24px), 0);
}
.cinema__copy .eyebrow { font-size: 10.5px; letter-spacing: .2em; color: #e2d6c4; margin-bottom: 18px; }
.cinema__copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6vw, 92px); line-height: .97; letter-spacing: -.045em; color: #eee8de; }
.cinema__copy h2 em { color: #f3ead9; }
.cinema__lead { margin-top: 18px; font-size: 15px; line-height: 1.6; color: #e2d9cb; }

.cinema__controls { position: absolute; z-index: 3; left: calc(var(--gutter-s) + 2.4vw); right: calc(var(--gutter-s) + 2.4vw); bottom: calc(var(--gutter-s) + 22px); padding: 0; display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 28px; row-gap: 14px; }
.cinema__caption { display: flex; align-items: baseline; gap: 18px; white-space: nowrap; }
.cinema__caption span { font-size: 11px; letter-spacing: .14em; color: #d8cdbd; }
.cinema__caption strong { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; color: #f6f0e5; }
.cinema__progress { height: 1px; background: rgba(246, 240, 229, .22); position: relative; }
.cinema__progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #f6f0e5; transform-origin: left; transform: scaleX(var(--cp, .06)); transition: transform .5s var(--ease-out); }
.cinema__actions { display: flex; gap: 8px; align-items: center; }
.cinema__skip { grid-column: 1 / -1; justify-self: start; font-size: 12.5px; color: #e5dccd; border-bottom: 1px solid rgba(229, 220, 205, .35); padding-bottom: 3px; }
.cinema__skip:hover { border-bottom-color: #e5dccd; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(246, 240, 229, .26); color: #f6f0e5; border-radius: 2px; background: rgba(18, 22, 20, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .4s var(--ease), color .4s, border-color .4s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--grid svg { width: 15px; height: 15px; }
.icon-btn:hover { background: #f6f0e5; color: var(--ink); border-color: #f6f0e5; }
.icon-btn--light { color: var(--ink); border-color: var(--line); background: transparent; backdrop-filter: none; }
.icon-btn--light:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pill-btn { height: 44px; padding: 0 18px; font-size: 12.5px; color: #f6f0e5; border: 1px solid rgba(246, 240, 229, .26); border-radius: 2px; background: rgba(18, 22, 20, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .4s, color .4s; }
.pill-btn:hover { background: #f6f0e5; color: var(--ink); }

.cinema__picker {
  position: absolute; z-index: 6; right: calc(var(--gutter-s) + 2.4vw); bottom: calc(var(--gutter-s) + 140px);
  width: min(380px, 86vw); max-height: 58vh; overflow: auto;
  padding: 22px 22px 14px;
  background: rgba(18, 22, 20, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(246, 240, 229, .12); border-radius: 4px;
}
.cinema__picker[hidden] { display: none; }
.cinema__picker .eyebrow { font-size: 10px; letter-spacing: .2em; margin-bottom: 10px; }
.cinema__picker button { display: flex; gap: 14px; width: 100%; text-align: left; padding: 9px 0; border-bottom: 1px solid rgba(246, 240, 229, .08); font-size: 14px; color: #e9e1d4; transition: color .3s, padding .4s var(--ease-out); }
.cinema__picker button small { font-size: 11px; color: var(--bronze); min-width: 22px; padding-top: 2px; }
.cinema__picker button:hover, .cinema__picker button.is-current { color: #fff; padding-left: 6px; }

/* =========================================================
   ESENCIA
   ========================================================= */
.essence { position: relative; height: 320vh; background: var(--forest); color: #f3ece2; }
.essence__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: calc(var(--header-h) + 6px) var(--gutter-s) 18px; }
.essence__frame { position: relative; overflow: hidden; border-radius: 4px; background: #101915; }
.essence__photos { position: absolute; inset: 0; }
.essence__panel { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.essence__panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s var(--ease-out); }
.essence__panel.is-active { opacity: 1; }
.essence__panel.is-active img { transform: scale(1); }
.essence__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 13, .72) 0%, rgba(10, 16, 13, .25) 45%, rgba(10, 16, 13, 0) 70%), linear-gradient(0deg, rgba(10, 16, 13, .5) 0%, rgba(10, 16, 13, 0) 30%); }
.essence__refraction { position: absolute; inset: 0; pointer-events: none; }
.essence__refraction i { position: absolute; top: 0; bottom: 0; width: 7vw; backdrop-filter: blur(5px) brightness(1.06) saturate(1.08); -webkit-backdrop-filter: blur(5px) brightness(1.06) saturate(1.08); background: linear-gradient(90deg, rgba(255, 248, 236, .0), rgba(255, 248, 236, .04) 40%, rgba(255, 248, 236, .1) 49%, rgba(255, 248, 236, .02) 52%, rgba(255, 248, 236, 0)); border-right: 1px solid rgba(255, 248, 236, .12); transform: translateX(calc(var(--ep, 0) * -6vw)); transition: transform .8s var(--ease-out); }
.essence__refraction i:nth-child(1) { left: 54%; }
.essence__refraction i:nth-child(2) { left: 61%; width: 3.2vw; opacity: .8; }
.essence__refraction i:nth-child(3) { left: 82%; width: 5vw; opacity: .7; }
.essence__copy { position: absolute; left: 6%; top: 50%; transform: translateY(-52%); z-index: 3; max-width: 640px; }
.essence__copy .eyebrow { font-size: 10px; letter-spacing: .24em; color: #e6dccb; margin-bottom: 20px; }
.essence__copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.4vw, 108px); line-height: .94; letter-spacing: -.045em; color: #f3ece2; }
.essence__line { margin-top: 26px; font-size: 15px; line-height: 1.6; color: #efe6d8; max-width: 300px; min-height: 3.2em; transition: opacity .5s var(--ease); }
.essence__line.is-fading { opacity: 0; }
.essence__signature { display: flex; align-items: center; gap: 16px; margin-top: 30px; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: #d9cdb9; }
.essence__signature::before { content: ""; width: 34px; height: 1px; background: rgba(217, 205, 185, .55); }
.essence__switcher { position: absolute; z-index: 4; right: 2.4vw; bottom: 2.4vw; display: flex; background: rgba(16, 24, 20, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(246, 240, 229, .1); border-radius: 2px; }
.essence__switcher button { display: flex; align-items: center; gap: 14px; min-width: 150px; padding: 18px 24px; font-size: 12px; color: #fff8ed; opacity: .7; border-right: 1px solid rgba(246, 240, 229, .08); position: relative; transition: opacity .4s, background .4s; }
.essence__switcher button:last-child { border-right: 0; }
.essence__switcher button small { font-size: 9px; letter-spacing: .14em; color: var(--bronze); }
.essence__switcher button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.essence__switcher button.is-active { opacity: 1; background: rgba(246, 240, 229, .07); }
.essence__switcher button.is-active::after { transform: scaleX(1); }
.essence__caption { display: flex; justify-content: space-between; padding-top: 14px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #b9ad99; }

/* =========================================================
   02 PROPIEDADES
   ========================================================= */
.residences { position: relative; background: var(--paper); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 5vw; align-items: start; padding-top: 14vh; padding-bottom: 14vh; }
.residences__intro h2 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4vw, 60px); line-height: 1.12; letter-spacing: -.035em; color: #272925; }
.residences__intro em { color: var(--copper); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 6px 2.4vw 8px; border-left: 1px solid var(--line); }
.fact__num { display: block; font-family: var(--serif); font-size: clamp(46px, 3.9vw, 58px); line-height: 1.05; color: #262825; letter-spacing: -.01em; white-space: nowrap; }
.fact__num small { font-size: .38em; letter-spacing: .02em; color: var(--copper); vertical-align: .55em; }
.fact__label { margin-top: 18px; font-size: 14px; color: #34352f; }
.fact__small { margin-top: 4px; font-size: 13px; line-height: 1.6; color: #625444; }

/* =========================================================
   DENTRO & FUERA
   ========================================================= */
.outdoor { background: var(--earth); color: #f1e9df; }
.outdoor__intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 4vw; align-items: start; padding-top: 16vh; padding-bottom: 6vh; }
.outdoor__intro .eyebrow { font-size: 10.5px; letter-spacing: .2em; color: #c9bba6; padding-top: 1.4em; }
.outdoor__intro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.8vw, 84px); line-height: 1.02; letter-spacing: -.045em; color: #f1e9df; }
.outdoor__intro h2 em { color: var(--bronze); }
.outdoor__copy { padding-top: 1.2em; font-size: 15px; line-height: 1.75; color: #ddd1bf; }

/* =========================================================
   03 ENCUENTROS
   ========================================================= */
.living__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 5vw; padding-top: 16vh; padding-bottom: 4vh; }
.living__intro h2 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.8vw, 84px); line-height: 1.02; letter-spacing: -.045em; color: #272925; }
.living__intro h2 em { color: var(--copper); }
.living__copy { max-width: 330px; font-size: 15px; line-height: 1.75; color: var(--muted); padding-bottom: 1vw; }

/* =========================================================
   04 ESPACIOS — planos + galería
   ========================================================= */
.spaces { padding-top: 16vh; padding-bottom: 10vh; }
.spaces__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; }
.spaces__heading h2 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.8vw, 84px); line-height: 1.02; letter-spacing: -.045em; color: #272925; }
.spaces__heading h2 em { color: var(--copper); }
.spaces__aside { text-align: right; font-size: 13.5px; line-height: 1.65; color: var(--muted); padding-bottom: .8vw; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2vw; margin-top: 7vh; }
.plan-card { display: flex; flex-direction: column; gap: 14px; text-align: left; padding: 18px 18px 22px; background: var(--card); border: 1px solid rgba(83, 77, 67, .1); transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(38, 40, 37, .4); }
.plan-card__tag { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #625e55; }
.plan-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #f3efe7; }
.plan-card em { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-style: normal; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.02em; color: #2a2b27; }
.plan-card em svg { width: 16px; height: 16px; color: var(--copper); }
.plan-note { margin-top: 26px; text-align: center; font-size: 12.5px; color: #6c675d; }

.gallery { margin-top: 10vh; }
.gallery__filters { display: flex; flex-wrap: wrap; gap: 6px 30px; border-bottom: 1px solid var(--line); }
.gallery__filters button { position: relative; padding: 14px 0; font-size: 14px; color: #6a665d; transition: color .3s; }
.gallery__filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .6s var(--ease-out); transform-origin: left; }
.gallery__filters button.is-active { color: var(--ink); }
.gallery__filters button.is-active::after { transform: scaleX(1); }
.gallery__caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 20px; }
.gallery__title { display: flex; align-items: baseline; gap: 22px; min-width: 0; }
.gallery__title span { font-size: 11.5px; letter-spacing: .1em; color: #6a665d; white-space: nowrap; }
.gallery__title strong { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.025em; color: #272925; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery__controls { display: flex; gap: 8px; }
.gallery__controls .i-pause { display: none; }
.gallery__controls [aria-pressed="true"] .i-play { display: none; }
.gallery__controls [aria-pressed="true"] .i-pause { display: block; }
.gallery__controls .i-play { fill: currentColor; stroke: none; width: 14px; height: 14px; }

.gallery__stage { position: relative; height: min(78vh, 56vw); overflow: hidden; background: #e2dccf; }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 1s var(--ease), transform 2.2s var(--ease-out); }
.gallery__img.is-active { opacity: 1; transform: scale(1); }
.gallery__img.is-plan { object-fit: contain; background: #f3efe7; padding: 2vw; }
.gallery__stage .photo-open { bottom: 22px; }
.gallery__note { position: absolute; right: var(--gutter-s); bottom: 26px; z-index: 4; font-size: 11px; color: #f6f0e5; padding: 6px 10px; background: rgba(32, 36, 33, .55); border-radius: 2px; }
.gallery__stage.is-plan .gallery__note { display: none; }

/* =========================================================
   CONTACTO / FOOTER
   ========================================================= */
.footer { background: var(--foot); color: #f1e9df; padding-top: 16vh; padding-bottom: 5vh; }
.footer__invitation { font-family: var(--serif); font-size: clamp(46px, 5.5vw, 80px); line-height: 1.12; letter-spacing: -.028em; color: #f1e9df; }
.footer__invitation em { color: var(--bronze); }
.contact-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 9vh; padding-bottom: 6vh; border-bottom: 1px solid var(--line-light); }
.contact-cta p { font-size: 15px; line-height: 1.75; color: #ddd1bf; }
.contact-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: min(380px, 100%); padding: 24px 26px; font-size: 15px; color: #20251f; background: var(--sand); border-radius: 2px; transition: background .5s var(--ease), transform .6s var(--ease-out); }
.contact-link svg { width: 17px; height: 17px; transition: transform .5s var(--ease-out); }
.contact-link:hover { background: #e3d3bd; }
.contact-link:hover svg { transform: translate(3px, -3px); }
.footer__top { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; padding: 6vh 0; border-bottom: 1px solid var(--line-light); }
.wordmark--footer { color: #f1e9df; }
.wordmark--footer .wordmark__symbol { width: 44px; }
.wordmark--footer .wordmark__word { width: 150px; }
.wordmark--footer .wordmark__sub { font-size: 9px; }
.footer__top p { font-size: 13.5px; line-height: 1.7; color: #d4c8b5; }
.replay { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: #f1e9df; padding: 12px 0; }
.replay svg { width: 15px; height: 15px; }
.replay span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.replay:hover span { background-size: 100% 1px; }
.footer__note { padding-top: 4vh; font-size: 11.5px; line-height: 1.7; color: #9f9583; max-width: 980px; }

/* =========================================================
   VISOR
   ========================================================= */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 14, 13, .97); color: #f1e9df; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewerIn .5s var(--ease-out); }
.viewer::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes viewerIn { from { opacity: 0; } to { opacity: 1; } }
.viewer__top { display: flex; align-items: center; gap: 24px; padding: 20px var(--gutter-s); border-bottom: 1px solid rgba(246, 240, 229, .08); }
.viewer__top p { flex: 1; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__formats { display: flex; border: 1px solid rgba(246, 240, 229, .16); border-radius: 2px; }
.viewer__formats button { padding: 9px 14px; font-size: 12px; color: #cfc4b2; }
.viewer__formats button.is-active { background: #f1e9df; color: var(--ink); }
.viewer__close { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; padding: 9px 0; }
.viewer__close span { font-size: 22px; line-height: 1; }
.viewer__img { width: 100%; height: 100%; object-fit: contain; padding: 2.4vh var(--gutter-s); }
.viewer.is-cover .viewer__img { object-fit: cover; padding: 0; }
.viewer.is-plan .viewer__img { background: #f3efe7; }
.viewer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--gutter-s) 20px; }
.viewer__note { font-size: 12px; color: #b9ad99; letter-spacing: .04em; }

/* =========================================================
   CONTROLES FLOTANTES
   ========================================================= */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; gap: 8px; transition: opacity .6s var(--ease); }
html.intro-active .floating { opacity: 0; pointer-events: none; }
.float-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; font-size: 12px; color: #eadfce; background: rgba(26, 30, 28, .86); border: 1px solid rgba(246, 240, 229, .1); border-radius: 2px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s; }
.float-btn:hover { background: rgba(26, 30, 28, .98); }
.motion-icon { position: relative; width: 10px; height: 11px; }
.motion-icon::before, .motion-icon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: currentColor; }
.motion-icon::before { left: 1px; }
.motion-icon::after { right: 1px; }
[data-motion-toggle][aria-pressed="false"] .motion-icon::before { left: 1px; width: 0; height: 0; background: none; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
[data-motion-toggle][aria-pressed="false"] .motion-icon::after { display: none; }

/* Animaciones desactivadas por el usuario */
html.fx-off *, html.fx-off *::before, html.fx-off *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
html.fx-off .journey__img, html.fx-off .cinema__img, html.fx-off .gallery__img, html.fx-off .essence__panel, html.fx-off .essence__panel img { transition-duration: .35s !important; transform: none !important; }
html.fx-off .crystal::after { display: none; }

/* =========================================================
   EXCLUSIVAS ABUD — catálogo de proyectos
   ========================================================= */
.projects { padding-top: 14vh; padding-bottom: 14vh; border-top: 1px solid var(--line); }
.projects__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 5vw; margin-top: 8vh; }
.projects__intro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7vw, 108px); line-height: .96; letter-spacing: -.045em; color: #272925; }
.projects__intro h2 em { color: var(--copper); }
.projects__intro p { max-width: 380px; font-size: 15px; line-height: 1.75; color: var(--muted); padding-bottom: 1vw; }
.projects__filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 7vh; border-bottom: 1px solid var(--line); }
.projects__filters button { position: relative; padding: 14px 0; font-size: 14px; color: #6a665d; transition: color .3s; white-space: nowrap; }
.projects__filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.projects__filters button.is-active { color: var(--ink); }
.projects__filters button.is-active::after { transform: scaleX(1); }

.projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 2.2vw; margin-top: 6vh; }
.project-card { min-width: 0; }
.project-card.is-hidden { display: none; }
.project-card.is-filtered-in { animation: cardIn .8s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.project-card__open { display: flex; flex-direction: column; width: 100%; text-align: left; }
.project-card__media { position: relative; margin: 0; aspect-ratio: 4 / 3.15; overflow: hidden; background: #ddd5c7; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease-out), filter 1s var(--ease); }
.project-card__open:hover .project-card__media img { transform: scale(1.07); }
.project-card__count { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; font-size: 11px; letter-spacing: .04em; color: #f6f0e5; background: rgba(32, 36, 33, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 2px; }
.project-card__index { position: absolute; right: 14px; top: 12px; font-family: var(--serif); font-size: 22px; color: #fff7ec; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.project-card__body { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.project-card__dev { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); }
.project-card__name { font-family: var(--serif); font-size: clamp(28px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.03em; color: #272925; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.project-card__meta span + span::before { content: "·"; margin-right: 16px; color: var(--bronze); }
.project-card__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--line); align-self: flex-start; transition: border-color .4s; }
.project-card__cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.project-card__open:hover .project-card__cta { border-bottom-color: var(--ink); }
.project-card__open:hover .project-card__cta svg { transform: translate(3px, -3px); }

/* ---------- Ficha de proyecto ---------- */
.dossier { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.dossier[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: dossierIn .7s var(--ease-out); }
.dossier::backdrop { background: rgba(11, 14, 13, .55); }
@keyframes dossierIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
html.dossier-open, html.dossier-open body { overflow: hidden; }
.dossier__bar { display: flex; align-items: center; gap: 20px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); background: rgba(243, 240, 233, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dossier__back { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 0; }
.dossier__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dossier__crumb { flex: 1; text-align: center; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dossier .viewer__close { color: var(--ink); }
.dossier__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dossier__hero { position: relative; height: 62vh; min-height: 380px; overflow: hidden; background: #1d221f; }
.dossier__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: dossierZoom 9s var(--ease-out) both; }
@keyframes dossierZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.dossier__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 12, 11, .1) 0%, rgba(9, 12, 11, .05) 40%, rgba(9, 12, 11, .7) 100%); }
.dossier__hero-copy { position: absolute; left: 0; right: 0; bottom: 6vh; color: #fff7ec; }
.dossier__hero-copy .eyebrow { color: #eadfce; font-size: 11px; letter-spacing: .18em; }
.dossier__hero-copy h2 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 8vw, 124px); line-height: .92; letter-spacing: -.04em; }
.dossier__loc { margin-top: 12px; font-size: 15px; color: #efe4d3; }

.dossier__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 5vw; padding-top: 8vh; padding-bottom: 10vh; align-items: start; }
.dossier__info { position: sticky; top: 4vh; display: flex; flex-direction: column; gap: 26px; }
.dossier__status { align-self: flex-start; padding: 7px 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); border: 1px solid rgba(135, 101, 76, .35); border-radius: 999px; }
.dossier__summary { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: 1.22; letter-spacing: -.02em; color: #2a2b27; }
.dossier__facts { margin: 0; border-top: 1px solid var(--line); }
.dossier__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dossier__facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6a665d; padding-top: 2px; }
.dossier__facts dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: #34352f; }
.dossier__amen ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.dossier__amen li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: #34352f; }
.dossier__amen li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border: 1px solid var(--copper); transform: rotate(45deg); }
.dossier__amen[hidden] { display: none; }
.dossier__cta { min-width: 0; width: 100%; }
.dossier__note { font-size: 11.5px; line-height: 1.6; color: #8a8478; }

.dossier__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dossier__chips button { padding: 9px 14px; font-size: 12.5px; color: #4b483f; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.dossier__chips button small { margin-left: 6px; color: var(--copper); font-size: 11px; }
.dossier__chips button.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.dossier__chips button.is-active small { color: var(--bronze); }
.dossier__grid { columns: 2; column-gap: 14px; }
.dossier__item { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: #e2dccf; position: relative; }
.dossier__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out), opacity .6s; }
.dossier__item:hover img { transform: scale(1.04); }
.dossier__item.is-plan { background: #f7f4ee; }
.dossier__item.is-plan img { padding: 10px; }
.dossier__item span { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; font-size: 10.5px; color: #f6f0e5; background: rgba(32, 36, 33, .66); border-radius: 2px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out); }
.dossier__item:hover span { opacity: 1; transform: none; }
.dossier__next { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 0; padding-bottom: 6vh; }
.dossier__next button { display: flex; flex-direction: column; gap: 6px; padding: 5vh 0 0; text-align: left; }
.dossier__next button + button { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); }
.dossier__next small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #6a665d; }
.dossier__next span { font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; color: #272925; transition: color .3s; }
.dossier__next button:hover span { color: var(--copper); }

@media (max-width: 960px) {
  .projects { padding-top: 10vh; padding-bottom: 10vh; }
  .projects__intro { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 5vh; }
  .projects__filters { flex-wrap: nowrap; overflow-x: auto; gap: 24px; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .projects__filters::-webkit-scrollbar { display: none; }
  .projects__grid { grid-template-columns: 1fr; gap: 40px; }
  .dossier__bar { padding: 12px var(--gutter); }
  .dossier__crumb { display: none; }
  .dossier__hero { height: 54vh; min-height: 320px; }
  .dossier__body { grid-template-columns: 1fr; padding-top: 5vh; }
  .dossier__info { position: static; }
  .dossier__facts div { grid-template-columns: 100px 1fr; }
  .dossier__amen ul { grid-template-columns: 1fr; }
  .dossier__grid { columns: 1; }
  .dossier__item span { opacity: 1; transform: none; }
  .dossier__next span { font-size: 26px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   ESPACIOS DISPONIBLES (Visualiza tu próximo hogar)
   ========================================================= */
.spaces__aside strong { font-family: var(--serif); font-weight: 400; font-size: 1.6em; color: var(--copper); letter-spacing: -.02em; }
.avail { margin-top: 7vh; }
.avail__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--line); }
.avail__filters { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.avail__filters button { position: relative; padding: 14px 0; font-size: 14px; color: #6a665d; white-space: nowrap; transition: color .3s; }
.avail__filters button small { margin-left: 6px; font-size: 11px; color: var(--copper); }
.avail__filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.avail__filters button.is-active { color: var(--ink); }
.avail__filters button.is-active::after { transform: scaleX(1); }
.avail__count { padding-bottom: 15px; font-size: 12px; letter-spacing: .04em; color: #6a665d; white-space: nowrap; }
.avail__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 1.6vw; margin-top: 4.5vh; }
.unit { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid rgba(83, 77, 67, .1); transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.unit.is-hidden { display: none; }
.unit.is-new { animation: cardIn .7s var(--ease-out) both; }
.unit:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(38, 40, 37, .45); }
.unit__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e2dccf; }
.unit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.unit__media--plan { background: #fff; }
.unit__media--plan img { object-fit: contain; padding: 12px; }
.unit:hover .unit__media img { transform: scale(1.04); }
.unit__status { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #2f3a2c; background: rgba(243, 240, 233, .95); border: 1px solid rgba(83, 77, 67, .12); border-radius: 999px; }
.unit__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5f7a4e; box-shadow: 0 0 0 3px rgba(95, 122, 78, .18); }
.unit__status--reventa::before { background: var(--copper); box-shadow: 0 0 0 3px rgba(135, 101, 76, .18); }
.unit__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 16px 18px; }
.unit__proj { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--copper-ink); }
.unit__name { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.05; letter-spacing: -.025em; color: #272925; }
.unit__spec { font-size: 13.5px; line-height: 1.45; color: #34352f; }
.unit__detail { font-size: 12px; line-height: 1.5; color: #6a665d; }
.unit__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.unit__link { font-size: 12.5px; color: var(--ink-2); padding-bottom: 2px; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.unit__link:hover { border-bottom-color: var(--ink); }
.unit__cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12px; color: #20251f; background: var(--sand); border-radius: 2px; transition: background .4s var(--ease); }
.unit__cta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.unit__cta:hover { background: #e3d3bd; }
.avail__more { display: flex; justify-content: center; margin-top: 5vh; }
.avail__more[hidden] { display: none; }
.avail__more-btn { padding: 16px 26px; font-size: 13.5px; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; transition: background .4s var(--ease), color .4s; }
.avail__more-btn:hover { background: var(--ink); color: var(--cream); }
.avail .plan-note { margin-top: 4vh; }
.spaces .gallery { margin-top: 12vh; }

/* Proyecto en el recorrido cinematográfico */
.cinema__project { font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #cfc2ad; }

/* Contacto */
.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 3vw; padding: 5vh 0; border-bottom: 1px solid var(--line-light); }
.contact-list a { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-list small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #b9ad99; }
.contact-list span { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -.01em; color: #f1e9df; overflow-wrap: anywhere; transition: color .3s; }
.contact-list a:hover span { color: var(--bronze); }

/* Botón flotante de WhatsApp */
.float-btn--wa { background: var(--sand); color: #20251f; border-color: rgba(32, 37, 31, .12); }
.float-btn--wa:hover { background: #e3d3bd; }
.float-btn--wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Encuadre de imágenes de Esencia */
.essence__panel:nth-child(3) img { object-position: 50% 72%; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .signature span { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; --gutter: 22px; --gutter-s: 16px; }
  .header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .signature span { display: none; }
  .signature strong { font-size: 20px; }
  .wordmark__symbol { width: 26px; }
  .wordmark__word { width: 88px; }

  .hero { height: 260vh; }
  .hero__content { bottom: 14vh; }
  .hero__location { padding-left: 0; }
  .hero__location::before { margin-left: 0; width: 34px; }
  .hero__title em { padding-left: 18px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__cta { width: 100%; justify-content: space-between; }
  .hero__note { bottom: 4.2vh; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .hero__scroll { display: none; }
  .hero__reframe { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 16vh; transform: translate3d(0, calc((1 - var(--reframe, 0)) * 40px), 0); }

  .intro-block { padding-top: calc(var(--header-h) + 6vh); padding-bottom: 8vh; }
  .chapter-label span:last-child { display: none; }
  .intro-block__grid { grid-template-columns: 1fr; margin-top: 6vh; gap: 36px; }
  .display em { padding-left: .3em; }
  .intro-block__text { max-width: none; }

  .journey { height: calc(var(--count) * 58vh + 100vh); }
  .journey__head { padding-left: var(--gutter); }
  .journey__stage { margin-left: var(--gutter-s); margin-right: var(--gutter-s); }
  .journey__caption { padding-left: var(--gutter); align-items: flex-start; }
  .journey__nav button { width: 46px; height: 46px; }
  .journey__bars i { width: 22px; }
  .journey__note { display: none; }
  .photo-open { right: 14px; bottom: 14px; font-size: 12px; padding: 11px 14px; }
  .photo-open--left { left: 14px; right: auto; }

  .cinema__top { padding: 0 14px; }
  .cinema__top span:first-child { display: none; }
  .cinema__copy { left: calc(var(--gutter-s) + 18px); right: calc(var(--gutter-s) + 18px); top: calc(var(--header-h) + 8vh); }
  .cinema__controls { left: calc(var(--gutter-s) + 14px); right: calc(var(--gutter-s) + 14px); bottom: calc(var(--gutter-s) + 14px); grid-template-columns: 1fr; row-gap: 12px; }
  .cinema__caption { flex-wrap: wrap; gap: 10px; white-space: normal; }
  .cinema__actions { flex-wrap: wrap; }
  .pill-btn { padding: 0 14px; }
  .cinema__picker { right: 50%; transform: translateX(50%); bottom: calc(var(--gutter-s) + 170px); }

  .essence { height: 300vh; }
  .essence__copy { left: 22px; right: 22px; top: 42%; }
  .essence__switcher { left: 12px; right: 12px; bottom: 12px; }
  .essence__switcher button { min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px; }
  .essence__refraction i:nth-child(1) { left: 74%; width: 12vw; }
  .essence__refraction i:nth-child(2) { left: 88%; width: 6vw; }
  .essence__refraction i:nth-child(3) { display: none; }
  .essence__copy h2 { font-size: clamp(50px, 14vw, 64px); }
  .essence__caption span:last-child { display: none; }

  .residences { grid-template-columns: 1fr; gap: 6vh; padding-top: 10vh; padding-bottom: 10vh; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center; }
  .fact__num { grid-row: span 2; min-width: 4.2ch; }
  .fact__label { margin-top: 0; }

  .outdoor__intro { grid-template-columns: 1fr; gap: 22px; padding-top: 12vh; }
  .outdoor__intro .eyebrow, .outdoor__copy { padding-top: 0; }
  .living__intro { flex-direction: column; align-items: flex-start; padding-top: 12vh; }

  .spaces { padding-top: 12vh; }
  .spaces__heading { flex-direction: column; align-items: flex-start; }
  .spaces__aside { text-align: left; }
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .gallery__filters { flex-wrap: nowrap; overflow-x: auto; gap: 24px; scrollbar-width: none; }
  .gallery__filters::-webkit-scrollbar { display: none; }
  .gallery__filters button { white-space: nowrap; }
  .gallery__caption { flex-direction: column; align-items: flex-start; }
  .gallery__title { flex-direction: column; gap: 4px; max-width: 100%; }
  .gallery__stage { height: 62vh; }

  .footer { padding-top: 12vh; }
  .contact-cta { flex-direction: column; align-items: stretch; }
  .contact-link { min-width: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 22px; }

  .viewer__top { flex-wrap: wrap; gap: 12px; }
  .viewer__top p { flex-basis: 100%; order: -1; }
  .float-btn__label { display: none; }
  .float-btn { padding: 0 13px; }
  .floating { right: 12px; bottom: 12px; }
}

@media (max-width: 420px) {
  .entrance__word { width: 64vw; }
  .skip-intro { bottom: 4vh; }
}

.dossier__scroll:focus { outline: none; }

@media (max-width: 1200px) {
  .avail__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__title > .hero__line:first-child > span { font-size: 8.6vw; }
  .hero__title em > span { font-size: clamp(50px, 14.5vw, 76px); }
  .avail__top { flex-direction: column; align-items: stretch; gap: 0; }
  .avail__filters { flex-wrap: nowrap; overflow-x: auto; gap: 24px; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .avail__filters::-webkit-scrollbar { display: none; }
  .avail__count { padding: 12px 0; }
  .avail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 3vh; }
  .unit__body { padding: 12px 12px 14px; }
  .unit__actions { flex-direction: column; align-items: stretch; }
  .unit__link { align-self: flex-start; }
  .unit__cta { justify-content: center; }
  .contact-list { grid-template-columns: 1fr; }
  .float-btn--wa .float-btn__label { display: none; }
}
@media (max-width: 520px) {
  .avail__grid { grid-template-columns: 1fr; }
}
