/* =========================================================
   José Luis Cantilo 5465 · Landing
   Sistema de forma: fotos, paneles y campos con radio 0 (lenguaje arquitectónico).
   Botones, tabs, chips de nivel e íconos interactivos en pill.
   Escala z: nav 50 · menú 60 · planos 80 · lightbox 85 · grano 90 · loader 100
   ========================================================= */

@font-face {
  font-family: 'Jost';
  src: url(assets/fonts/jost-latin.woff2) format('woff2');
  font-weight: 200 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0c0c;
  --bg-2: #111212;
  --surface: #161818;
  --line: rgba(236, 233, 226, .12);
  --line-2: rgba(236, 233, 226, .24);
  --text: #ecebe6;
  --text-2: #b3b2ab;
  --text-3: #8a8983;
  --accent: #d3b58f;
  --on-light: #0e0f0f;
  --err: #f0a497;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 350;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-light); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Grano fotográfico: capa fija, sin repintados en scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía ---------- */
.h1 {
  font-weight: 300;
  font-size: clamp(2.9rem, 6.6vw, 6.2rem);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.h2 {
  font-weight: 300;
  font-size: clamp(2rem, 4.1vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.03rem, 1.2vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 46ch;
}
.eyebrow {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.rule { display: block; width: 48px; height: 1px; background: var(--line-2); margin: 30px 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s;
}
.btn:active { transform: scale(.98); }
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--on-light); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  border: 1px solid rgba(236, 233, 226, .38);
  color: var(--text);
  background: rgba(11, 12, 12, .28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .72rem; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(17, 18, 18, .7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(.96); }
.icon-btn .ico { width: 20px; height: 20px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease);
}
.loader.done { clip-path: inset(0 0 100% 0); }
/* Logo FNV Group en la portada (PNG "Footer Cantilo-03" como máscara); entra desenfocado y un brillo lo cruza */
.loader-inner { display: grid; justify-items: center; }
.loader-logo {
  width: clamp(180px, 22vw, 270px);
  aspect-ratio: 1000 / 90;
  margin-bottom: 34px;
  background: linear-gradient(105deg, var(--text) 36%, #fff 47%, var(--accent) 52%, var(--text) 64%) 100% 0 / 260% 100% no-repeat, var(--text);
  -webkit-mask: url(assets/img/fnv-group.png) center / contain no-repeat;
  mask: url(assets/img/fnv-group.png) center / contain no-repeat;
  animation: logoIn 1.4s var(--ease) both, shine 2.4s cubic-bezier(.4, 0, .2, 1) .9s 1 both;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shine { from { background-position: 100% 0, 0 0; } to { background-position: 0 0, 0 0; } }
.loader-mark {
  display: flex;
  gap: .6em;
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  font-weight: 300;
  letter-spacing: .42em;
  text-transform: uppercase;
  overflow: hidden;
  padding: .2em 0;
}
.loader-mark span { display: block; animation: rise 1s var(--ease) both; }
.loader-mark span + span { animation-delay: .1s; color: var(--accent); }
.loader-bar { width: 180px; height: 1px; margin: 20px auto 0; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: load 1.2s var(--ease) both; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Portada de entrada: aparece siempre; el clic en "Ver desarrollo" habilita la música */
.loader-gate { display: none; }
.loader.gate .loader-bar { display: none; }
.loader.gate .loader-gate { display: grid; justify-items: center; gap: 10px; margin-top: 32px; animation: gateIn .8s var(--ease) .5s both; }
@keyframes gateIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: background-color .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 12, 12, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav.hide { transform: translateY(-100%); }
.brand { font-size: .8rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-links a {
  position: relative;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); }
.menu-btn .ico { width: 20px; height: 20px; }

/* Música de fondo: barras en movimiento mientras suena, planas cuando está detenida. Abren el panel */
.sound-btn { display: none; width: 40px; height: 40px; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); transition: border-color .3s; }
.js .sound-btn { display: inline-grid; }
.sound-btn:hover, .sound-btn[aria-expanded="true"] { border-color: var(--text-3); }
.eq { display: flex; align-items: center; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 100%; background: var(--text-3); transform: scaleY(.15); transition: transform .5s var(--ease), background-color .3s; }
.sound-btn.playing .eq i { background: var(--accent); transform: scaleY(.45); animation: eq .9s ease-in-out infinite alternate; }
.sound-btn.playing .eq i:nth-child(2) { animation-duration: .65s; animation-delay: -.3s; }
.sound-btn.playing .eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
.sound-btn.playing .eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.15s; }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

/* Panel de música (Play/Stop + volumen), colgado del nav */
.player {
  position: absolute;
  top: calc(100% + 8px);
  right: var(--gutter);
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(17, 18, 18, .94);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--line);
}
.player-track { font-size: .9rem; line-height: 1.4; }
.player-track span { display: block; margin-bottom: 6px; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.player-row { display: flex; align-items: center; gap: 16px; }
.player-toggle { width: 42px; height: 42px; flex: none; }
.player-toggle .ico { width: 18px; height: 18px; }
.player-toggle .ico:last-child, .player.is-playing .player-toggle .ico:first-child { display: none; }
.player.is-playing .player-toggle .ico:last-child { display: block; }
.player-vol { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.player-vol output { width: 3ch; text-align: right; font-size: .8rem; letter-spacing: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.player-vol input { --p: 50%; -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.player-vol input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p)); }
.player-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--text); }
.player-vol input::-moz-range-track { height: 2px; background: var(--line-2); }
.player-vol input::-moz-range-progress { height: 2px; background: var(--accent); }
.player-vol input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--text); }
.nav-progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: var(--bg);
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 300;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  animation: menuIn .7s var(--ease) forwards;
}
.menu nav a:nth-child(2) { animation-delay: .05s; }
.menu nav a:nth-child(3) { animation-delay: .1s; }
.menu nav a:nth-child(4) { animation-delay: .15s; }
.menu nav a:nth-child(5) { animation-delay: .2s; }
.menu-foot { font-size: .85rem; color: var(--text-3); }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* ---------- Revelados ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-hero] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(.45s + var(--d, 0) * 110ms);
}
.js [data-hero].in { opacity: 1; transform: none; }

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .16em .03em .06em;
  margin: -.16em -.03em -.06em;
}
.js .split .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.25s var(--ease);
  transition-delay: calc(var(--base, 0s) + var(--i) * 55ms);
}
.js .split.in .w > span { transform: none; }
.hero .split { --base: .25s; }

.js .reveal-img { clip-path: inset(12% 7% 12% 7%); transition: clip-path 1.5s var(--ease); }
.js .reveal-img img { scale: 1.16; transition: scale 1.9s var(--ease); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); }
.js .reveal-img.in img { scale: 1; }

/* ---------- Layout base ---------- */
.section { padding-block: clamp(96px, 13vw, 200px); padding-inline: var(--gutter); }
.wrap { max-width: var(--maxw); margin-inline: auto; }
.pin { position: relative; }
.js .pin { height: var(--pin-h, 240vh); }
.sticky { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.js .pin > .sticky { position: sticky; top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
}
.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 64vw;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28%);
}
.hero-par, .hero-move { position: absolute; inset: 0; will-change: transform; }
.hero-move { inset: -3%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 64%;
}
.js .hero-media img { scale: 1.14; transition: scale 2.6s var(--ease); }
.ready .hero-media img { scale: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(0deg, var(--bg), transparent);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(180deg, rgba(11, 12, 12, .72), rgba(11, 12, 12, 0));
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: clamp(56px, 11vh, 120px);
  width: min(600px, 44vw);
  will-change: transform, opacity;
}
.hero-lead { margin: 30px 0 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Arquitectura ---------- */
.arq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.arq-text { grid-column: 1 / span 5; position: sticky; top: 22vh; }
.arq-media { grid-column: 7 / span 6; aspect-ratio: 7 / 10; overflow: hidden; }
.arq-media img { width: 100%; height: 114%; margin-top: -7%; object-fit: cover; cursor: zoom-in; will-change: transform; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding-top: 24px; }
.stats dd { font-size: clamp(2.3rem, 3.6vw, 3.4rem); font-weight: 250; line-height: 1; }
.stats dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Interiores / hotspots ---------- */
.interiores { padding-top: clamp(40px, 6vw, 80px); }
.section-intro { padding-inline: var(--gutter); padding-bottom: clamp(24px, 3vw, 40px); box-sizing: content-box; }
.expand { --pin-h: 240vh; }
.expand-sticky { display: grid; place-items: center; background: var(--bg); }
.expand-frame { position: absolute; inset: 0; clip-path: inset(18% 24% 18% 24%); will-change: clip-path; }
.cover-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 56.25vw;
  transform: translate(-50%, -50%) scale(var(--s, 1.12));
  will-change: transform;
}
.cover-box > img { width: 100%; height: 100%; object-fit: cover; }
.hotspots { position: absolute; inset: 0; }
.hs {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(11, 12, 12, .3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(.4);
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .3s, border-color .3s;
}
.hs::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: #fff;
  transition: transform .4s var(--ease);
}
.hs::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6);
  animation: ping 2.4s var(--ease) infinite;
}
.hs:hover, .hs.open { background: var(--text); border-color: var(--text); }
.hs:hover::before, .hs.open::before { background: var(--on-light); transform: scale(1.2); }
.hs.open::after { animation: none; opacity: 0; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.hs-on .hs, .no-pin .hs { opacity: 1; transform: none; pointer-events: auto; }
.hs-on .hs:nth-child(2) { transition-delay: .06s; }
.hs-on .hs:nth-child(3) { transition-delay: .12s; }
.hs-on .hs:nth-child(4) { transition-delay: .18s; }
.hs-on .hs:nth-child(5) { transition-delay: .24s; }
.hs-on .hs:nth-child(6) { transition-delay: .3s; }
.hs-tip {
  position: absolute;
  width: 280px;
  padding: 18px 20px 20px;
  background: rgba(14, 15, 15, .78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .45);
  transform: translate(28px, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.hs-tip.show { opacity: 1; }
.hs-tip.left { transform: translate(calc(-100% - 28px), -50%); }
.hs-tip h3, .hs-detail h3 { font-size: .8rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hs-tip p, .hs-detail p { font-size: .95rem; line-height: 1.55; color: var(--text-2); }
.expand-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(11, 12, 12, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--text-2);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  white-space: nowrap;
}
.hs-on .expand-hint { opacity: 1; transform: translate(-50%, 0); }
.hs-detail { display: none; }

/* ---------- Balcón ---------- */
.balcon { --pin-h: 230vh; }
.js .balcon { --t1: 0; --t2: 0; --t3: 0; }
.bal-media { position: absolute; inset: 0; overflow: hidden; }
.bal-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.18); will-change: transform; }
.balcon .sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 12, .82) 0%, rgba(11, 12, 12, .45) 34%, rgba(11, 12, 12, 0) 62%),
    linear-gradient(0deg, rgba(11, 12, 12, .7) 0%, rgba(11, 12, 12, 0) 40%);
  pointer-events: none;
}
.bal-content { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(48px, 12vh, 130px); max-width: 560px; }
.bal-t1, .bal-t2, .bal-t3 { opacity: var(--t1, 1); transform: translateY(calc((1 - var(--t1, 1)) * 36px)); }
.bal-t2 { opacity: var(--t2, 1); transform: translateY(calc((1 - var(--t2, 1)) * 36px)); margin-top: 28px; }
.bal-t3 { opacity: var(--t3, 1); transform: translateY(calc((1 - var(--t3, 1)) * 36px)); }
.bal-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.bal-facts li { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.bal-facts .ico { color: var(--accent); width: 20px; height: 20px; }

/* ---------- Materiales ---------- */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.mat-text { grid-column: 1 / span 4; align-self: center; }
.mat-a { grid-column: 6 / span 4; aspect-ratio: 3 / 5; overflow: hidden; will-change: transform; }
.mat-b { grid-column: 10 / span 3; aspect-ratio: 3 / 5; margin-top: 34%; overflow: hidden; will-change: transform; }
.mat-a img, .mat-b img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line-2); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Cocinas ---------- */
.coc { padding-top: 0; }
.coc-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.coc-main { aspect-ratio: 16 / 9; overflow: hidden; }
.coc-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; will-change: transform; }
.coc-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.specs-list { grid-column: 1 / span 5; padding-top: clamp(40px, 5vw, 72px); }
.specs-list div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 9rem 1fr; gap: 16px; }
.specs-list dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.specs-list dd { color: var(--text-2); }
.coc-sec { grid-column: 8 / span 5; margin-top: -12vw; position: relative; z-index: 1; }
.coc-sec img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 80%; cursor: zoom-in; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.coc-sec figcaption { margin-top: 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.js .coc-sec.reveal-img { clip-path: inset(10% 0 0 0); }
.js .coc-sec.reveal-img.in { clip-path: inset(0 0 -30% 0); }

/* ---------- Dormitorio ---------- */
.dorm { --pin-h: 260vh; }
.pan { position: absolute; top: 0; left: 0; height: 100%; width: 135vw; will-change: transform; }
.pan img { width: 100%; height: 100%; object-fit: cover; }
.dorm .sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 12, .85) 0%, rgba(11, 12, 12, .4) 30%, rgba(11, 12, 12, 0) 55%),
    linear-gradient(0deg, rgba(11, 12, 12, .55) 0%, rgba(11, 12, 12, 0) 35%);
  pointer-events: none;
}
.dorm-content { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(48px, 12vh, 130px); max-width: 520px; }
.dorm-content .lead { margin-top: 26px; }

/* ---------- Bento cotidiano ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.b-a { grid-column: 1 / span 6; grid-row: 1 / span 2; min-height: 600px; overflow: hidden; }
.b-a img, .b-c img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.b-text { grid-column: 8 / span 5; grid-row: 1; align-self: end; padding-bottom: clamp(24px, 4vw, 64px); }
.b-c { grid-column: 7 / span 3; grid-row: 2; aspect-ratio: 3 / 4.4; overflow: hidden; }
.b-d {
  grid-column: 10 / span 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(211, 181, 143, .16) 0%, rgba(211, 181, 143, 0) 60%),
    linear-gradient(170deg, #1a1a18 0%, #121313 100%);
}
.b-d > .ico { width: 34px; height: 34px; color: var(--accent); }
.b-d li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; color: var(--text-2); }

/* ---------- Contrafrente ---------- */
.ident { --pin-h: 240vh; }
.ident-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  column-gap: clamp(32px, 5vw, 96px);
  padding: calc(var(--nav-h) + 10px) var(--gutter) 24px;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
}
.ident-frame { position: relative; height: min(82svh, 980px); overflow: hidden; }
.ident-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ident-a { transform-origin: 50% 70%; will-change: transform; }
.ident-b { clip-path: inset(0 0 0 100%); will-change: clip-path; }
.ident-line { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--accent); opacity: 0; box-shadow: 0 0 0 .5px rgba(211, 181, 143, .4); }
.ident-text .lead { margin-top: 28px; }
.ident-steps { margin-top: 44px; display: grid; gap: 0; }
.ident-steps li {
  position: relative;
  padding: 16px 0 16px 22px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color .5s;
}
.ident-steps li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 1px;
  background: var(--text-3);
  transition: width .5s var(--ease), background-color .5s;
}
.ident-steps li.on { color: var(--text); }
.ident-steps li.on::before { width: 14px; background: var(--accent); }

/* ---------- Edificio 3D ---------- */
.edificio { --pin-h: 280vh; }
.edificio .sticky { background: radial-gradient(90% 70% at 38% 58%, #191a19 0%, var(--bg) 70%); }
.b3d-stage { position: absolute; inset: 0; }
.b3d-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.b3d-canvas:active { cursor: grabbing; }
.b3d-canvas.hovering { cursor: pointer; }
.b3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lvl-label {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  transition: opacity .5s, color .3s;
  will-change: transform;
}
.lvl-label::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.lvl-label em { font-style: normal; color: var(--text-3); }
.lvl-label.show { opacity: 1; }
.lvl-label:hover, .lvl-label.active { color: var(--accent); }
.b3d-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center; color: var(--text-2); }
.b3d-head { position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--nav-h) + 28px); width: max-content; max-width: 440px; pointer-events: none; }
.b3d-hint { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: .88rem; color: var(--text-2); }
.b3d-hint .ico { width: 22px; height: 22px; color: var(--accent); }
.b3d-panel {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: calc(var(--nav-h) + 28px);
  bottom: 32px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px;
  background: rgba(15, 16, 16, .62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: auto;
}
.lvl-list { display: flex; flex-direction: column; }
.lvl-btn {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 13px 18px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: left;
  transition: color .3s;
}
.lvl-btn:last-child { border-bottom: 1px solid var(--line); }
.lvl-btn::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 1px;
  background: var(--text-3);
  transition: width .4s var(--ease), background-color .3s;
}
.lvl-btn em { font-style: normal; font-size: .74rem; color: var(--text-3); letter-spacing: .08em; }
.lvl-btn:hover, .lvl-btn.active { color: var(--text); }
.lvl-btn.active::before { width: 12px; background: var(--accent); }
.lvl-btn.active em { color: var(--accent); }
.lvl-cota { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.lvl-name { font-size: 1.6rem; font-weight: 300; text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 16px; }
.lvl-items li { position: relative; padding: 7px 0 7px 18px; font-size: .92rem; line-height: 1.45; color: var(--text-2); }
.lvl-items li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--accent); }
.lvl-plan { margin-top: 22px; }
.lvl-detail.swap { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Terminaciones ---------- */
.specs-lead { margin-top: 28px; }
.highlights {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.highlights li {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 22px 30px 0;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--text);
}
.highlights li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.highlights .ico { width: 30px; height: 30px; color: var(--accent); }
.tabs { display: flex; gap: 8px; margin-top: clamp(64px, 8vw, 112px); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color .35s, color .35s, border-color .35s;
}
.tabs [role="tab"]:hover { border-color: var(--text); color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--text); color: var(--on-light); border-color: var(--text); }
.tab-panels { margin-top: 40px; }
.tab-panel[hidden] { display: none; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); }
.spec { padding: 28px 0 34px; border-top: 1px solid var(--line); }
.tab-panel.enter .spec { animation: fadeUp .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.spec-n { font-size: .72rem; letter-spacing: .22em; color: var(--accent); }
.spec h3 { font-size: 1.2rem; font-weight: 400; margin: 10px 0 10px; }
.spec p { color: var(--text-2); max-width: 54ch; }
.spec-note { margin-top: 56px; max-width: 90ch; font-size: .82rem; line-height: 1.6; color: var(--text-3); }

/* ---------- Contacto ---------- */
.contacto {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 12vw, 180px) var(--gutter) clamp(72px, 8vw, 120px);
  overflow: hidden;
}
.ct-media { position: absolute; inset: 0; }
.ct-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.16); will-change: transform; }
.ct-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 12, .88) 0%, rgba(11, 12, 12, .5) 48%, rgba(11, 12, 12, .78) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 12, 12, 0) 26%, rgba(11, 12, 12, 0) 70%, var(--bg) 100%);
}
.ct-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.ct-text { grid-column: 1 / span 6; }
.ct-title { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.ct-text .lead { margin-top: 28px; }
.ct-form {
  grid-column: 8 / span 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  padding: clamp(24px, 2.6vw, 36px);
  background: rgba(12, 13, 13, .7);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .4);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(8, 9, 9, .6);
  border: 1px solid rgba(236, 233, 226, .26);
  border-radius: 0;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field.invalid input { border-color: var(--err); }
.field-err { font-size: .8rem; color: var(--err); min-height: 0; }
.field-err:empty { display: none; }
.form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form-status { font-size: .9rem; color: var(--text-2); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--err); }

/* ---------- Footer ---------- */
.footer { padding: 72px var(--gutter) 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); row-gap: 40px; }
.foot-brand { grid-column: 1 / span 4; }
.foot-addr { margin-top: 16px; color: var(--text-2); }
.foot-nav { grid-column: 6 / span 2; display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); transition: color .3s; }
.foot-nav a:hover { color: var(--text); }
.foot-legal { grid-column: 9 / span 4; font-size: .84rem; color: var(--text-3); }
/* Desarrollo / Comercializa: logos en gris (máscara + color) para contrastar con el fondo */
/* Pie de marcas: la pieza "Footer Cantilo-01" tal cual (logos + leyendas), centrada y al ~48 % del ancho como en la referencia */
.foot-partners { display: grid; justify-items: center; margin-top: 64px; padding: 44px 0 4px; border-top: 1px solid var(--line); }
.foot-partners-art {
  display: block;
  width: min(48vw, 640px);
  aspect-ratio: 1800 / 378;
  background: var(--text-3);
  -webkit-mask: url(assets/img/fnv-footer.png) center / contain no-repeat;
  mask: url(assets/img/fnv-footer.png) center / contain no-repeat;
}
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-3); }
.foot-bottom a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.foot-bottom a:hover { color: var(--text); }
.foot-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; text-align: center; }
.foot-credit strong { font-weight: 400; color: var(--text-2); }
.foot-credit a { display: inline; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px var(--gutter);
  background: rgba(8, 9, 9, .96);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-fig { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; height: calc(100svh - 48px); justify-content: center; touch-action: pan-y; }
.lb-fig img { max-height: calc(100svh - 110px); width: auto; max-width: 100%; object-fit: contain; transform: scale(.97); transition: transform .6s var(--ease), opacity .4s; user-select: none; -webkit-user-drag: none; }
.lightbox.open .lb-fig img { transform: none; }
.lb-fig figcaption { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.lb-close { position: absolute; top: max(20px, env(safe-area-inset-top)); right: var(--gutter); z-index: 2; }

/* ---------- Visor de planos ---------- */
.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.plan-modal.open { opacity: 1; }
.plan-modal[hidden] { display: none; }
.pm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
}
.pm-cota { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.pm-title { font-size: 1.3rem; font-weight: 300; text-transform: uppercase; letter-spacing: .04em; }
.pm-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tabs button {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.pm-tabs button[aria-selected="true"] { background: var(--text); color: var(--on-light); border-color: var(--text); }
.pm-view { position: relative; overflow: hidden; touch-action: none; cursor: grab; }
.pm-view:active { cursor: grabbing; }
.pm-canvas { position: absolute; left: 0; top: 0; width: 1455px; height: 2896px; transform-origin: 0 0; will-change: transform; }
.pm-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; user-select: none; -webkit-user-drag: none; }
.pm-canvas img.on { opacity: 1; }
.plan-modal:not(.original) .pm-canvas img { filter: invert(.9) hue-rotate(180deg) contrast(1.08); }
.plan-modal.original .pm-view { background: #f3f2ee; }
.pm-tools {
  position: absolute;
  right: var(--gutter);
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Mobile y tablet
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .highlights li:nth-child(4) { padding-left: 0; border-left: 0; }
  .highlights li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .b3d-panel { width: 320px; }
}

@media (max-width: 899px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .nav .btn-sm { height: 38px; padding: 0 16px; }

  .hero { min-height: 560px; }
  .hero-media {
    width: 100%;
    bottom: auto;
    height: 76%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-media img { object-position: 50% 40%; }
  .hero::after { height: 55%; background: linear-gradient(0deg, var(--bg) 35%, rgba(11, 12, 12, 0)); }
  .hero-content { left: var(--gutter); right: var(--gutter); width: auto; bottom: max(28px, env(safe-area-inset-bottom)); }
  .hero .h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-lead { margin: 18px 0 24px; }
  .hero-ctas .btn { flex: 1 1 auto; }

  .arq-grid, .mat-grid, .coc-row, .ct-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .arq-text { grid-column: 1; position: static; }
  .arq-media { grid-column: 1; margin-top: 56px; aspect-ratio: 4 / 5; }
  .stats { margin-top: 44px; gap: 12px; }

  /* Interiores: sin pin, imagen completa con puntos */
  .js .expand { height: auto; }
  .js .expand > .sticky { position: relative; }
  .expand-sticky { height: auto; display: block; }
  .expand-frame { position: relative; inset: auto; clip-path: none; }
  .cover-box { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; transform: none; }
  .hs { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .hs-tip { display: none; }
  .expand-hint { display: none; }
  .hs-detail {
    display: block;
    margin: 20px var(--gutter) 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    min-height: 112px;
  }

  .balcon { --pin-h: 200vh; }
  .balcon .sticky::after {
    background: linear-gradient(0deg, rgba(11, 12, 12, .92) 0%, rgba(11, 12, 12, .55) 38%, rgba(11, 12, 12, 0) 62%);
  }
  .bal-content { right: var(--gutter); bottom: max(36px, env(safe-area-inset-bottom)); }
  .bal-media img { object-position: 50% 50%; }

  .mat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 12px; }
  .mat-text { grid-column: 1 / -1; margin-bottom: 48px; }
  .mat-a { grid-column: 1 / span 3; }
  .mat-b { grid-column: 4 / span 2; margin-top: 45%; }

  .coc-main { aspect-ratio: 4 / 3; }
  .specs-list { grid-column: 1; order: 2; padding-top: 32px; }
  .specs-list div { grid-template-columns: 1fr; gap: 6px; }
  .coc-sec { grid-column: 1; margin-top: -48px; width: 70%; margin-left: auto; }

  .dorm { --pin-h: 240vh; }
  .dorm .sticky::after { background: linear-gradient(0deg, rgba(11, 12, 12, .9) 0%, rgba(11, 12, 12, .45) 40%, rgba(11, 12, 12, 0) 65%); }
  .dorm-content { right: var(--gutter); bottom: max(36px, env(safe-area-inset-bottom)); }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .b-a { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .b-text { grid-column: 1 / -1; grid-row: auto; padding: 32px 0 20px; }
  .b-c { grid-column: 1; grid-row: auto; }
  .b-d { grid-column: 2; grid-row: auto; gap: 16px; padding: 16px; }
  .b-d li { font-size: .84rem; padding: 9px 0; }

  .ident { --pin-h: 220vh; }
  .ident-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    row-gap: 22px;
    padding-top: calc(var(--nav-h) + 12px);
  }
  .ident-frame { height: 50svh; }
  .ident .h2 { font-size: 1.65rem; }
  .ident-text .lead { margin-top: 12px; font-size: .95rem; }
  .ident-steps { margin-top: 16px; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .ident-steps li { padding: 12px 0 0 18px; font-size: .68rem; }

  .edificio { --pin-h: 240vh; }
  .b3d-stage { bottom: 42%; }
  .b3d-head { top: calc(var(--nav-h) + 14px); right: var(--gutter); }
  .b3d-head .h2 { font-size: 1.7rem; }
  .b3d-hint { margin-top: 8px; font-size: .8rem; }
  .b3d-panel {
    left: 0; right: 0; bottom: 0; top: auto;
    width: auto;
    height: 42%;
    padding: 16px var(--gutter) max(16px, env(safe-area-inset-bottom));
    gap: 14px;
    border-width: 1px 0 0;
  }
  .lvl-list { flex-direction: row-reverse; justify-content: flex-end; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; }
  .lvl-list::-webkit-scrollbar { display: none; }
  .lvl-btn {
    flex: none;
    padding: 0 14px;
    height: 36px;
    align-items: center;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: .68rem;
  }
  .lvl-btn:last-child { border-bottom: 1px solid var(--line-2); }
  .lvl-btn::before, .lvl-btn em { display: none; }
  .lvl-btn.active { background: var(--text); color: var(--on-light); border-color: var(--text); }
  .lvl-detail { display: flex; flex-direction: column; min-height: 0; }
  .lvl-name { font-size: 1.25rem; margin: 2px 0 8px; }
  .lvl-items { display: flex; flex-direction: column; overflow: hidden; }
  .lvl-items li { padding: 3px 0 3px 16px; font-size: .84rem; }
  .lvl-items li:nth-child(n + 4) { display: none; }
  .lvl-plan { margin-top: 12px; align-self: flex-start; }
  .lvl-label { font-size: .6rem; letter-spacing: .14em; gap: 6px; }
  .lvl-label::before { width: 14px; }
  .lvl-label em { display: none; }
  .b3d-head { width: auto; }
  .b3d-head br { display: none; }

  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights li { padding: 22px 14px 22px 0; }
  .highlights li:nth-child(n) { padding-left: 14px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .highlights li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .highlights li:nth-child(-n + 2) { border-top: 0; }

  .contacto { align-items: flex-end; }
  .ct-media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 12, 12, .35) 30%, rgba(11, 12, 12, .85) 62%, var(--bg) 100%); }
  .ct-text { grid-column: 1; margin-bottom: 36px; }
  .ct-form { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .ct-form .field { grid-column: 1; }

  .foot-brand, .foot-nav, .foot-legal { grid-column: 1; }
  .foot-bottom { flex-direction: column; }
  .foot-partners-art { width: 80vw; }
  .foot-credits { justify-content: flex-start; text-align: left; }

  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lb-fig { grid-column: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 2; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-fig img { max-height: calc(100svh - 170px); }

  .pm-head { flex-wrap: wrap; }
  .pm-titles { order: 1; }
  .pm-close { order: 2; }
  .pm-tabs { order: 3; width: 100%; }
}

@media (max-width: 420px) {
  .nav { gap: 12px; }
  .nav .brand { letter-spacing: .2em; }
  .nav-right { gap: 6px; }
  .nav .btn-sm { padding: 0 12px; }
  .sound-btn { width: 34px; border-color: transparent; }
  .hero-ctas .btn-ghost { display: none; }
  .loader-logo { width: 56vw; }
  .stats dd { font-size: 2rem; }
}

/* =========================================================
   Movimiento reducido: estados finales, sin pins ni loops
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .pin { height: auto; }
  .js .pin > .sticky { position: relative; }
  .js .balcon { --t1: 1; --t2: 1; --t3: 1; }
  .expand-frame { clip-path: none; }
  .cover-box { --s: 1; }
  .hs { opacity: 1; transform: none; pointer-events: auto; }
  .hs::after { display: none; }
  .ident-b { clip-path: inset(0 0 0 50%); }
  .edificio .sticky { height: 100svh; }
}
