/* ==========================================================================
   Costa Narello II, página del proyecto
   Marca: pizarra #475B66 / #3D515E, acero #7697AA, bruma #CEDCDD (book y flyer).
   Tipografías: Jost (sustituto libre de LEMON MILK para títulos) y Montserrat (cuerpo, como en el book).
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #22313a;
  --slate-950: #1f2b33;
  --slate-900: #2a3842;
  --slate-800: #33444f;
  --slate-700: #3d515e;
  --slate-600: #475b66;
  --steel-600: #4f6f82;
  --steel-500: #7697aa;
  --steel-300: #b4c9d3;
  --mist-300: #b9ccd0;
  --mist-200: #cedcdd;
  --mist-100: #e7eeee;
  --paper: #f7f5f0;
  --white: #fff;
  --land: #e94f1b;
  --f1: #7697aa;
  --f2: #c9a86a;
  --f3: #8fae8b;
  --tx: #c66a3d;
  --ty: #7697aa;
  --tz: #9db7a0;

  --font-display: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1320px;
  --header-h: 64px;
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --section-pad: clamp(88px, 11vw, 168px);
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, .3vw + 14px, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 3px; }
/* el foco que deja un toque o un clic no se dibuja; con el teclado sí (:focus-visible) */
[tabindex]:focus:not(:focus-visible), svg:focus:not(:focus-visible) { outline: none; }
[data-theme="dark"] :focus-visible { outline-color: var(--mist-200); }
[hidden] { display: none !important; }
::selection { background: var(--slate-600); color: var(--white); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--white); color: var(--slate-700); border-radius: var(--radius); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }

/* --------------------------------------------------------------- tipografía */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.02;
  color: var(--slate-600);
  text-wrap: balance;
}
.display em { font-style: normal; color: #688a9e; }
.display--xl { font-size: clamp(40px, 6.4vw, 96px); }
.display--lg { font-size: clamp(32px, 4.6vw, 68px); }
.display--md { font-size: clamp(24px, 2.6vw, 38px); }
.display--sm { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: .04em; }
[data-theme="dark"] .display { color: var(--white); }
[data-theme="dark"] .display em { color: var(--steel-300); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--steel-600);
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
.eyebrow__num {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 6px;
  font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: 0;
  color: var(--white); background: #557689;
  position: relative;
}
.eyebrow__num::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow--light { color: var(--mist-300); }
.eyebrow--light .eyebrow__num { background: var(--slate-600); }

.lead {
  font-size: clamp(19px, 1.5vw + 10px, 30px);
  line-height: 1.42;
  font-weight: 400;
  color: var(--slate-700);
  max-width: 30ch;
}
.lead--light { color: var(--mist-200); }

/* --------------------------------------------------------------- botones */
.btn {
  --bg: var(--slate-600); --fg: var(--white); --bd: var(--slate-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: 2px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover-bg, var(--slate-800));
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { color: var(--hover-fg, var(--white)); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn--light { --bg: var(--white); --fg: var(--slate-700); --bd: var(--white); --hover-bg: var(--mist-200); --hover-fg: var(--slate-800); }
.btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.6); --hover-bg: var(--white); --hover-fg: var(--slate-700); }
.btn--dark { --bg: var(--slate-600); --fg: var(--white); --bd: var(--slate-600); --hover-bg: var(--slate-900); }
.btn--line { --bg: transparent; --fg: var(--slate-600); --bd: var(--slate-600); --hover-bg: var(--slate-600); --hover-fg: var(--white); }
.btn--whatsapp { --bg: transparent; --fg: var(--slate-700); --bd: var(--slate-600); --hover-bg: var(--slate-600); --hover-fg: var(--white); }
.btn--whatsapp svg { width: 20px; height: 20px; fill: currentColor; }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------- precargador */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 120;
  background: var(--slate-700); color: var(--white);
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__mark { width: 74px; height: 74px; fill: currentColor; clip-path: inset(100% 0 0 0); }
.preloader__name { font-family: var(--font-display); font-size: 13px; letter-spacing: .5em; text-transform: uppercase; opacity: 0; padding-left: .5em; }
.preloader__bar { width: 140px; height: 1px; background: rgba(255,255,255,.18); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }
.is-ready .preloader, .reduced .preloader { display: none; }
.js .preloader { animation: pre-failsafe .4s 5s forwards; }
@keyframes pre-failsafe { to { opacity: 0; visibility: hidden; } }

/* --------------------------------------------------------------- cursor */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 150; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--steel-500); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(118,151,170,.7);
    display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s;
  }
  .cursor__label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity .2s; }
  .cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--steel-500); background: rgba(118,151,170,.12); }
  .cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--slate-600); border-color: var(--slate-600); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
  .cursor.is-hidden { opacity: 0; }
}

/* --------------------------------------------------------------- cabecera */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h);
  color: var(--white);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s, color .4s;
}
.header__bar {
  height: 100%; width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.header__brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; margin-right: auto; }
.header__mono { width: 34px; height: 34px; fill: currentColor; }
.header__name { font-family: var(--font-display); font-size: 15px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.header__name span { letter-spacing: .1em; }
.header__nav { display: none; gap: clamp(16px, 2vw, 34px); }
.header__nav a { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; position: relative; padding-block: 6px; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.header__nav a:hover::after, .header__nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: none; }
.header.is-solid { background: rgba(61, 81, 94, .88); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header.is-hidden { transform: translateY(-100%); }
.header__burger {
  width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 7px; margin-right: -8px;
}
.burger__line { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.menu-open .burger__line:nth-of-type(2) { transform: translateY(4.25px) rotate(45deg); }
.menu-open .burger__line:nth-of-type(3) { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 1100px) {
  .header__nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}

.menu-movil {
  position: fixed; inset: 0; z-index: 80; background: var(--slate-700); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
}
.menu-movil ol { display: grid; gap: 6px; }
.menu-movil a { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 8.5vw, 46px); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; line-height: 1.25; }
.menu-movil a span { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--steel-300); letter-spacing: .14em; }
.menu-movil__pie { margin-top: auto; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist-300); }
.menu-open { overflow: hidden; }

/* --------------------------------------------------------------- portada */
.intro-wrap { position: relative; }
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 600px;
  color: var(--white); overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
}
.hero__media { position: absolute; inset: -6% 0 -6% 0; z-index: -3; will-change: transform; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 45%; }
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(42,56,66,.55) 0%, rgba(42,56,66,.06) 26%, rgba(42,56,66,.10) 52%, rgba(31,43,51,.86) 100%),
    radial-gradient(120% 70% at 50% 42%, rgba(42,56,66,.40), rgba(42,56,66,0) 70%);
}
.hero__pattern {
  position: absolute; left: 50%; bottom: 104px; z-index: -1; width: max(1000px, 110vw); height: auto;
  margin-left: calc(max(1000px, 110vw) / -2); fill: rgba(255,255,255,.075); color: rgba(255,255,255,.075);
  display: none;
}
@media (min-width: 768px) { .hero__pattern { display: block; } }
.hero__content {
  align-self: center; justify-self: center; text-align: center;
  display: grid; justify-items: center; gap: clamp(18px, 2.6vh, 30px);
  padding: calc(var(--header-h) + 8px) var(--gutter) 24px; width: 100%; max-width: 980px;
}
.hero__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.92); text-wrap: balance; }
@media (min-width: 768px) { .hero__eyebrow { font-size: 11.5px; letter-spacing: .3em; } }
.hero__logo { width: min(74vw, 520px); height: auto; aspect-ratio: 508.3 / 245.9; fill: var(--white); color: var(--white); filter: drop-shadow(0 6px 30px rgba(20,30,36,.35)); }
.hero__tagline { width: min(68vw, 360px); height: auto; aspect-ratio: 235.9 / 41; fill: var(--white); color: var(--white); filter: drop-shadow(0 4px 18px rgba(20,30,36,.45)); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 0 auto clamp(18px, 3vh, 34px);
  border-top: 1px solid rgba(255,255,255,.28);
}
.hero__facts > div { padding: 14px 10px 4px 0; }
.hero__facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero__facts dd { font-family: var(--font-display); font-size: clamp(19px, 2vw, 28px); font-weight: 300; letter-spacing: .03em; white-space: nowrap; }
.hero__scroll { display: none; }
@media (min-width: 768px) {
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__facts > div { padding: 18px 16px 0 0; }
  .hero__scroll {
    display: block; position: absolute; right: var(--gutter); bottom: 120px; width: 1px; height: 64px; background: rgba(255,255,255,.3); overflow: hidden;
  }
  .hero__scroll span { position: absolute; inset: 0; background: var(--white); transform: translateY(-100%); animation: scrollcue 2.2s var(--ease-in-out) infinite; }
}
@media (max-height: 640px) and (max-width: 767px) { .hero__eyebrow { display: none; } }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* --------------------------------------------------------------- 01 proyecto */
.proyecto { position: relative; z-index: 1; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 60px -30px rgba(20,30,36,.35); }
.proyecto__head { display: grid; gap: 28px; }
.proyecto .lead { max-width: 34ch; }
.proyecto .display--xl { max-width: 13ch; }
@media (min-width: 1024px) { .proyecto .display--xl { font-size: clamp(56px, 5.4vw, 84px); max-width: none; } }
@media (min-width: 1024px) {
  .proyecto__head { grid-template-columns: 1.05fr 1fr; column-gap: 72px; align-items: end; }
  .proyecto .lead { font-size: clamp(19px, .9vw + 11px, 25px); max-width: 40ch; }
}
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px;
  margin-top: clamp(52px, 7vw, 100px); padding-top: 30px; border-top: 1px solid var(--mist-200);
}
.stats__num { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 9vw, 60px); line-height: 1; color: var(--slate-600); letter-spacing: -.01em; white-space: nowrap; }
.stats__num small { font-size: .4em; margin-left: 6px; color: var(--steel-500); }
.stats__label { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-600); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats__num { font-size: clamp(40px, 4.3vw, 70px); } }

.proyecto__grid { display: grid; gap: clamp(36px, 5vw, 80px); margin-top: clamp(72px, 9vw, 140px); align-items: center; }
.proyecto__media { position: relative; overflow: hidden; border-radius: var(--radius); }
.proyecto__media figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.parallax-frame { overflow: hidden; aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .parallax-frame { aspect-ratio: 1 / 1.05; } }
.parallax-frame picture { width: 100%; height: 100%; }
.parallax-frame img { width: 100%; height: 118%; object-fit: cover; }
.proyecto__text .display { margin-bottom: 20px; }
.proyecto__text > p { color: #3f4f59; max-width: 54ch; }
.checklist { display: grid; gap: 12px; margin-top: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--slate-700); }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--steel-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (min-width: 900px) {
  .proyecto__grid { grid-template-columns: 1.1fr 1fr; }
  .checklist { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

.exito {
  margin-top: clamp(72px, 9vw, 140px);
  display: grid; gap: 22px; align-items: center;
  padding: clamp(26px, 4vw, 52px); border-radius: var(--radius);
  background: var(--slate-700); color: var(--white); position: relative; overflow: hidden;
}
.exito::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(118,151,170,.35), transparent); pointer-events: none; }
.exito__tag {
  justify-self: start; padding: 8px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.exito__kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mist-300); }
.exito__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); font-weight: 300; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; margin-top: 6px; }
.exito__title strong { font-weight: 500; }
.exito__text { margin-top: 8px; color: var(--mist-200); }
.exito__tagline { width: min(100%, 330px); height: auto; aspect-ratio: 235.9 / 41; fill: var(--white); position: relative; z-index: 1; }
@media (min-width: 900px) { .exito { grid-template-columns: auto 1fr auto; gap: 40px; } }

/* --------------------------------------------------------------- 02 ubicación */
.ubicacion { position: relative; z-index: 1; background: var(--white); }
.aerea { position: relative; background: var(--paper); }
.aerea__stage { position: relative; display: grid; }
.aerea__view { position: relative; height: 64vh; height: 64svh; min-height: 440px; overflow: hidden; background: var(--slate-900); }
.aerea__frame {
  --vh: max(64svh, 440px);
  --fw: max(205vw, var(--vh) * 1.5016);
  --fh: calc(var(--fw) / 1.5016);
  position: absolute; width: var(--fw); height: var(--fh);
  top: calc(50% - var(--fh) / 2); left: calc((100vw - var(--fw)) * .16);
  transform-origin: 20% 24%; will-change: transform;
}
.aerea__frame picture, .aerea__img { width: 100%; height: 100%; }
.aerea__img { object-fit: cover; }
.aerea__overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aerea__land { fill: var(--land); fill-opacity: .72; }
.aerea__land-line { fill: none; stroke: var(--white); stroke-width: 9; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.aerea__pin line { stroke: var(--white); stroke-width: 6; }
.aerea__pin circle { fill: var(--white); }
.aerea__labels { position: absolute; inset: 0; }
.aerea__label { position: absolute; left: var(--xm, var(--x)); top: var(--ym, var(--y)); transform: translate(-50%, -100%); }
.aerea__tag {
  display: grid; gap: 2px; padding: 8px 12px; white-space: nowrap;
  font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--white);
  background: rgba(42,56,66,.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 2px;
}
.aerea__tag strong { font-family: var(--font-display); font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.aerea__label--cn2 { transform: translate(0, -50%); }
.aerea__label--cn2 .aerea__tag { background: var(--slate-600); padding: 12px 16px; }
.aerea__label--cn2 strong { font-size: 15px; }
.aerea__pin { display: none; }
.aerea__label--via { display: none; }
.aerea__label--via .aerea__tag { background: rgba(255,255,255,.9); color: var(--slate-700); }
.aerea__card {
  position: relative; z-index: 2; padding: 28px var(--gutter) 8px; background: var(--paper); color: var(--ink);
}
.aerea__card .display--lg { font-size: clamp(26px, 3.2vw, 46px); margin-bottom: 14px; }
.aerea__card .eyebrow--light { color: var(--steel-600); }
.aerea__card .eyebrow--light .eyebrow__num { background: #557689; }
.aerea__card p:last-child { font-size: 15px; color: #3f4f59; }
@media (min-width: 768px) {
  .aerea { background: var(--slate-900); }
  .aerea__stage { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
  .aerea__view { position: absolute; inset: 0; height: auto; min-height: 0; }
  .aerea__frame { --fw: max(100vw, max(100svh, 600px) * 1.5016); }
  .aerea__label { left: var(--x); top: var(--y); }
  .aerea__pin { display: inline; }
  .aerea__tag { font-size: 12px; padding: 10px 14px; }
  .aerea__tag strong { font-size: 15px; }
  .aerea__label--cn2 .aerea__tag { padding: 14px 18px; }
  .aerea__label--cn2 strong { font-size: 18px; }
  .aerea__label--via { display: block; }
  .aerea__card {
    align-self: end; margin: 0 var(--gutter) clamp(24px, 5vh, 56px); max-width: 560px; padding: clamp(24px, 3vw, 40px);
    background: rgba(247,245,240,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: var(--radius);
  }
}

.ubicacion__mapa { background: var(--white); }
.ubicacion__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.ubicacion__text { display: grid; gap: 22px; align-content: start; }
.ubicacion__text .display { margin-bottom: 0; }
.ubicacion__text > p { max-width: 56ch; color: #3f4f59; }
.referencias { display: grid; gap: 12px; }
.referencias li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--slate-700); }
.referencias svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--steel-500); stroke-width: 1.6; }
.ubicacion__text .btn { justify-self: start; }
@media (min-width: 1024px) {
  .ubicacion__text { grid-template-columns: 1.05fr 1fr; column-gap: 72px; grid-template-areas: "eyebrow ." "title text" "btn refs"; }
  .ubicacion__text .eyebrow { grid-area: eyebrow; }
  .ubicacion__text .display { grid-area: title; }
  .ubicacion__text > p { grid-area: text; align-self: end; }
  .referencias { grid-area: refs; grid-template-columns: 1fr 1fr; }
  .ubicacion__text .btn { grid-area: btn; align-self: end; }
}

.mapa { position: relative; }
.mapa__scroll {
  overflow-x: auto; overflow-y: hidden; border-radius: var(--radius); background: #f7f1e7;
  overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.mapa__inner { position: relative; width: 1000px; }
.mapa__img { width: 100%; height: auto; }
.mapa__pulse { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--land); box-shadow: 0 0 0 3px var(--white); }
.mapa__pulse::before, .mapa__pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--land); animation: pulse 2.4s var(--ease) infinite; }
.mapa__pulse::after { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.mapa__hint { margin-top: 10px; font-size: 12px; color: var(--steel-600); letter-spacing: .08em; }
.mapa figcaption { margin-top: 6px; font-size: 12px; color: #5b6a73; }
@media (min-width: 768px) {
  .mapa__inner { width: 100%; }
  .mapa__hint { display: none; }
}

/* --------------------------------------------------------------- 03 amenidades */
.amenidades { position: relative; z-index: 1; background: var(--white); color: var(--white); }
.amenidades__shell { background: var(--slate-700); padding-top: var(--section-pad); overflow: hidden; border-radius: 0; }
.amenidades__intro { display: grid; gap: 26px; margin-bottom: clamp(48px, 6vw, 88px); }
.amenidades__intro .display { max-width: 16ch; }
.amenidades__intro .lead { max-width: 40ch; font-size: clamp(18px, .9vw + 11px, 24px); }
@media (min-width: 1024px) {
  .amenidades__intro { grid-template-columns: 1.1fr 1fr; column-gap: 72px; align-items: end; }
  .amenidades__intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
}
.hscroll { position: relative; padding-bottom: var(--section-pad); }
.hscroll__track { display: grid; gap: 56px; padding-inline: var(--gutter); }
.panel { display: grid; gap: 22px; }
.panel__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--slate-800); }
.panel__media picture, .panel__img { width: 100%; height: 100%; }
.panel__img { object-fit: cover; transform: scale(1.12); }
.panel__text { display: grid; gap: 10px; max-width: 46ch; }
.panel__num { font-family: var(--font-display); font-size: 14px; letter-spacing: .2em; color: var(--steel-300); }
.panel__text h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.panel__text p { color: var(--mist-200); }
.panel--list { align-content: center; }
.amenity-list { counter-reset: am; display: grid; gap: 0; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.18); }
.amenity-list li { counter-increment: am; display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .06em; text-transform: uppercase; font-weight: 300; }
.amenity-list li::before { content: counter(am, decimal-leading-zero); font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--steel-300); }
.hscroll__progress { display: none; }

@media (min-width: 1024px) {
  .hscroll.is-horizontal { padding-bottom: 0; height: 100vh; display: grid; align-items: center; }
  .hscroll.is-horizontal .hscroll__track { display: flex; gap: 6vw; width: max-content; padding-inline: var(--gutter) 8vw; will-change: transform; }
  .hscroll.is-horizontal .panel { width: 62vw; grid-template-columns: 1fr; }
  .hscroll.is-horizontal .panel__media { aspect-ratio: auto; height: 58vh; }
  .hscroll.is-horizontal .panel__text { grid-template-columns: auto 1fr; column-gap: 26px; align-items: baseline; max-width: none; }
  .hscroll.is-horizontal .panel__text p { grid-column: 2; max-width: 52ch; }
  .hscroll.is-horizontal .panel--list { width: 38vw; }
  .hscroll.is-horizontal .panel--list h3 { font-size: clamp(26px, 2.2vw, 34px); }
  .hscroll.is-horizontal .panel--list .panel__text { grid-template-columns: 1fr; }
  .hscroll.is-horizontal .panel--list .panel__text > * { grid-column: 1; }
  .hscroll.is-horizontal .hscroll__progress { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 1px; background: rgba(255,255,255,.18); }
  .hscroll.is-horizontal .hscroll__progress span { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }
}

/* --------------------------------------------------------------- 04 equipamiento */
.equipamiento { background: var(--slate-700); color: var(--white); z-index: 1; padding-top: 0; overflow: hidden; }
.equipamiento__head { display: grid; gap: 24px; padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid rgba(255,255,255,.14); }
.equipamiento__head .lead { max-width: 44ch; font-size: clamp(17px, 1vw + 11px, 23px); }
.equipos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 84px); border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14); }
.equipos li {
  display: grid; justify-items: center; align-content: center; gap: 16px; text-align: center;
  padding: clamp(24px, 3vw, 40px) 12px; min-height: 168px;
  border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background-color .5s var(--ease);
}
.equipos li:hover { background: rgba(255,255,255,.05); }
.equipos svg { height: 50px; width: auto; fill: var(--mist-200); color: var(--mist-200); transition: transform .6s var(--ease); }
.equipos li:hover svg { transform: translateY(-4px); }
.equipos span { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--white); position: relative; padding-top: 14px; }
.equipos span::before { content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 1px; margin-left: -12px; background: var(--steel-300); }
.servicios { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: var(--mist-200); font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .06em; text-transform: uppercase; font-weight: 300; }
.servicios span { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; color: var(--steel-300); }
@media (min-width: 700px) { .equipos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .equipamiento__head { grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: end; }
  .equipamiento__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
}
.pattern-band { display: block; width: max(1186px, 100%); height: auto; margin: clamp(56px, 7vw, 110px) auto 0; fill: rgba(255,255,255,.12); color: rgba(255,255,255,.12); }

/* --------------------------------------------------------------- 05 implantación */
.implantacion { background: var(--paper); z-index: 1; }
.implantacion__head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.implantacion__head > p { max-width: 56ch; color: #3f4f59; }
@media (min-width: 1024px) { .implantacion__head { grid-template-columns: 1.1fr 1fr; align-items: end; column-gap: 64px; } }

.plano__toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--mist-300); border-radius: 999px; background: var(--white); color: var(--slate-700);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--slate-600); }
.chip.is-active { background: var(--slate-600); color: var(--white); border-color: var(--slate-600); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--f1 { background: var(--f1); } .dot--f2 { background: var(--f2); } .dot--f3 { background: var(--f3); }
@media (max-width: 600px) {
  .chips { gap: 6px; }
  .chip { min-height: 44px; padding: 6px 13px; font-size: 12.5px; gap: 6px; letter-spacing: .03em; }
  .dot { width: 8px; height: 8px; }
}
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mist-100); border: 1px solid var(--mist-200); }
.toggle__btn { min-height: 44px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--slate-700); transition: background-color .3s, color .3s; }
.toggle__btn.is-active { background: var(--white); box-shadow: 0 1px 4px rgba(34,49,58,.14); }

.plano__tabs { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 1px solid var(--mist-200); }
.plano__tab { flex: 1; display: grid; gap: 2px; padding: 12px 8px; border: 0; background: transparent; text-align: center; font-family: var(--font-display); font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: #5b6a73; position: relative; }
.plano__tab small { font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; text-transform: none; }
.plano__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--slate-600); transform: scaleX(0); transition: transform .4s var(--ease); }
.plano__tab.is-active { color: var(--slate-700); }
.plano__tab.is-active::after { transform: scaleX(1); }

.plano__layout { display: grid; gap: 18px; }
.plano__sector { display: none; }
.plano__sector.is-active { display: block; }
.plano__sector-head { display: none; }
.plano__scroll {
  overflow-x: auto; overflow-y: hidden; border-radius: var(--radius); background: #e9eeee; border: 1px solid var(--mist-200);
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.plano__canvas { height: 400px; width: max-content; position: relative; }
.plano__canvas svg { height: 400px; width: auto; max-width: none; }
/* teléfono: plano más alto para tocar los lotes con el dedo (unos 35 x 95 px por lote) */
@media (max-width: 767px) { .plano__canvas, .plano__canvas svg { height: 620px; } }
.plano__cargando { padding: 24px; font-size: 14px; color: #5b6a73; }
.plano__hint { margin-top: 8px; font-size: 12px; letter-spacing: .08em; color: var(--steel-600); }
.plano__nota { margin-top: 20px; font-size: 12.5px; color: #56656e; max-width: 90ch; }

@media (min-width: 1024px) {
  .plano__tabs, .plano__hint { display: none; }
  .plano__layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 24px; }
  .plano__sectores { display: grid; gap: 22px; }
  .plano__sector, .plano__sector.is-active { display: block; }
  .plano__sector-head { display: flex; gap: 18px; align-items: baseline; margin-bottom: 10px; }
  .plano__sector-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate-600); white-space: nowrap; }
  .plano__sector-head p { font-size: 13px; color: #5b6a73; }
  .plano__scroll { overflow: hidden; }
  .plano__canvas { height: auto; width: 100%; }
  .plano__canvas svg { width: 100%; height: auto; }
  .lote-card { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* plano: elementos SVG */
.pl-site { fill: #e3e9e8; }
.pl-road { fill: #c3ced3; }
.pl-road-main { fill: #a9b6bd; }
.pl-road-line { stroke: rgba(255,255,255,.85); stroke-width: 2; stroke-dasharray: 14 12; fill: none; }
.pl-green { fill: #cddcc5; }
.pl-green-dark { fill: #b6cbad; }
.pl-tree { fill: #9fbb94; }
.pl-path { fill: #efe6d4; }
.pl-pool { fill: #8fcfe3; stroke: #fff; stroke-width: 3; }
.pl-court { fill: #6f97b3; stroke: #fff; stroke-width: 2; }
.pl-court-line { stroke: #fff; stroke-width: 1.5; fill: none; }
.pl-park { fill: #d2dadd; stroke: #fff; stroke-width: 1.5; }
.pl-build { fill: #8a9aa3; }
.pl-garita { fill: var(--slate-600); }
.pl-label { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .14em; fill: #5b6a73; text-transform: uppercase; }
.pl-label--big { font-size: 14px; fill: var(--slate-600); }
.pl-label--white { fill: #fff; }
.pl-mz rect { fill: var(--slate-600); }
.pl-mz text { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; fill: #fff; }
.pl-entrada { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .2em; fill: var(--slate-700); }

.lote { cursor: pointer; outline: none; }
.lote rect { fill: var(--lote-fill, #fff); stroke: #9fb0b9; stroke-width: 1; transition: fill .35s, opacity .35s; }
.lote text { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: #4d5d66; pointer-events: none; transition: fill .35s; }
[data-modo="fase"] .lote[data-fase="1"] { --lote-fill: #dbe6ec; }
[data-modo="fase"] .lote[data-fase="2"] { --lote-fill: #f1e6cf; }
[data-modo="fase"] .lote[data-fase="3"] { --lote-fill: #dfeadb; }
[data-modo="tipo"] .lote[data-tipo="X"] { --lote-fill: #f2d2c0; }
[data-modo="tipo"] .lote[data-tipo="Y"] { --lote-fill: #d6e3ea; }
[data-modo="tipo"] .lote[data-tipo="Z"] { --lote-fill: #dbe7dc; }
.lote:hover rect, .lote.is-focus rect { fill: var(--steel-500); }
.lote:hover text, .lote.is-focus text { fill: #fff; }
.lote.is-selected rect { fill: var(--slate-700); stroke: var(--slate-900); }
.lote.is-selected text { fill: #fff; }
/* lotes vendidos: trama gris atenuada, con prioridad sobre los colores de fase o tipo */
.lote[data-estado="vendido"] rect { fill: url(#pl-vendido); stroke: #b3bec4; }
.lote[data-estado="vendido"] text { fill: #7d8a91; font-weight: 500; }
.lote[data-estado="vendido"]:hover rect, .lote[data-estado="vendido"].is-focus rect { fill: #b9c3c8; }
.lote[data-estado="vendido"]:hover text, .lote[data-estado="vendido"].is-focus text { fill: #33444f; }
.lote[data-estado="vendido"].is-selected rect { fill: #8f9ca3; stroke: #5b6a73; }
.lote[data-estado="vendido"].is-selected text { fill: #fff; }
.is-dim .lote:not(.is-on) rect { opacity: .28; }
.is-dim .lote:not(.is-on) text { opacity: .35; }
.plano__canvas:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 2px; }

.lote-card {
  background: var(--white); border: 1px solid var(--mist-200); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 10px 40px -24px rgba(34,49,58,.4);
}
.lote-card__kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-600); margin-bottom: 8px; }
.lote-card__empty > p:not(.lote-card__kicker) { font-size: 14px; color: #4b5b64; }
.lote-card__code { font-family: var(--font-display); text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; color: var(--slate-600); }
.lote-card__code span { font-size: 16px; letter-spacing: .2em; }
.lote-card__code strong { font-size: 52px; font-weight: 300; line-height: 1; }
.lote-card__estado {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #2f6b4f; background: #e3f0e8;
}
.lote-card__estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lote-card.is-vendido .lote-card__estado { color: #8a3b24; background: #f6e3dc; }
.lote-card.is-vendido .lote-card__code strong { color: #7d8a91; }
.lote-card__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 16px; padding-block: 16px; border-block: 1px solid var(--mist-200); }
.lote-card__dl dt { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #5b6a73; }
.lote-card__dl dd { font-weight: 600; color: var(--slate-700); }
.lote-card__price { display: grid; margin-top: 14px; }
.lote-card__price span { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #5b6a73; }
.lote-card__price strong { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--slate-600); letter-spacing: .01em; }
.lote-card__note { font-size: 12.5px; color: #5b6a73; margin-top: 4px; }
.lote-card__actions { display: grid; gap: 10px; margin-top: 18px; }
.lote-card__close { display: none; }
.lote-card__detail { position: relative; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
@media (max-width: 1023px) {
  .lote-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: 82vh; overflow: auto;
    border-radius: 18px 18px 0 0; padding: 26px var(--gutter) calc(22px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s;
    box-shadow: 0 -20px 60px -20px rgba(20,30,36,.45);
  }
  .lote-card.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
  .lote-card__empty { display: none; }
  .lote-card::before { content: ""; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--mist-300); }
  /* el velo va dentro de la sección (que tiene su propio z-index) para quedar debajo de la hoja */
  .sheet-open #implantacion::after { content: ""; position: fixed; inset: 0; z-index: 94; background: rgba(20,30,36,.42); }
  .lote-card__close { display: grid; place-items: center; position: absolute; right: -6px; top: -10px; width: 44px; height: 44px; border: 0; background: var(--mist-100); border-radius: 50%; color: var(--slate-700); }
  .lote-card__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .lote-card__code strong { font-size: 44px; }
  .lote-card__actions { grid-template-columns: 1fr 1fr; }
}
.legend__item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #43535c; }
.legend__sw { width: 22px; height: 14px; border-radius: 2px; border: 1px solid #9fb0b9; flex: none; }
.legend__sw--vendido { background: repeating-linear-gradient(45deg, #d5dcdf 0 3px, #b3bec4 3px 5px); }
.legend__item--total { display: block; flex-basis: 100%; color: var(--slate-700); }
.legend__item--total strong { font-weight: 700; }

/* --------------------------------------------------------------- 06 precios */
.precios { background: var(--white); z-index: 1; }
.precios__head { margin-bottom: clamp(40px, 6vw, 80px); }
.desde { display: grid; gap: 6px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--mist-200); }
.desde__label { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-600); }
.desde__valor { font-family: var(--font-display); font-weight: 200; font-size: clamp(52px, 10vw, 150px); line-height: 1; color: var(--slate-600); letter-spacing: -.01em; white-space: nowrap; }
.desde__moneda { font-size: .32em; font-weight: 400; letter-spacing: .14em; vertical-align: .9em; color: var(--steel-500); }
.desde__nota { font-size: 13px; color: #5b6a73; max-width: 70ch; }

.disponibles { margin-top: clamp(32px, 4vw, 48px); font-size: 14.5px; color: #3f4f59; }
.disponibles strong { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: .04em; color: var(--slate-600); margin-right: 6px; }
.fases { display: grid; gap: 16px; margin-top: 22px; }
.fase { padding: 26px; border: 1px solid var(--mist-200); border-radius: var(--radius); background: var(--paper); display: grid; gap: 14px; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s; }
.fase:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(34,49,58,.45); border-color: var(--mist-300); }
.fase header { display: grid; gap: 2px; }
.fase__n { font-family: var(--font-display); font-size: 26px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-600); }
.fase__sector { font-size: 12.5px; color: #5b6a73; }
.fase__lotes { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel-600); }
.fase__lotes strong { font-size: 54px; font-weight: 300; color: var(--slate-600); letter-spacing: 0; margin-right: 6px; }
.fase dl { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--mist-200); }
.fase dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fase dt { color: #56656e; }
.fase dd { font-weight: 600; color: var(--slate-700); text-align: right; }
@media (min-width: 900px) { .fases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.tipos { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 18px; }
.tipos .display--sm { color: var(--slate-600); max-width: 30ch; }
.tipos__tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tipos__tabla th, .tipos__tabla td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--mist-200); }
.tipos__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .tipos__tabla { font-size: 13px; }
  .tipos__tabla th, .tipos__tabla td { padding: 12px 4px; }
  .tipos__tabla thead th { font-size: 11.5px; letter-spacing: .06em; }
  .tipos__tabla td:last-child { font-size: 19px; }
  .tipo { width: 26px; height: 26px; font-size: 12px; }
}
.tipos__tabla thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #5b6a73; }
.tipos__tabla td:last-child, .tipos__tabla th:last-child { text-align: right; font-family: var(--font-display); font-size: 22px; color: var(--slate-600); }
.tipos__tabla thead th:last-child { font-family: var(--font-body); font-size: 11.5px; color: #5b6a73; }
.tipo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 13px; color: var(--slate-800); }
.tipo--x { background: #f2d2c0; } .tipo--y { background: #d6e3ea; } .tipo--z { background: #dbe7dc; }
.tipos__nota { font-size: 13px; color: #5b6a73; }

.facilidades { display: grid; gap: 26px; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--mist-200); }
.facilidades__intro { display: grid; gap: 16px; align-content: start; justify-items: start; }
.facilidades__intro p { color: #3f4f59; max-width: 46ch; }
.pasos { display: grid; gap: 12px; }
.paso { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 20px 22px 64px; background: var(--paper); border: 1px solid var(--mist-200); border-radius: var(--radius); }
.paso__n { position: absolute; left: 18px; top: 22px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--steel-500); font-family: var(--font-display); font-size: 16px; color: var(--slate-600); }
.paso__cifra { font-family: var(--font-display); font-size: clamp(32px, 3vw, 44px); font-weight: 300; line-height: 1; color: var(--slate-600); }
.paso__titulo { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-600); }
.paso p:last-child { font-size: 14.5px; color: #3f4f59; }
.pago-barra { display: flex; height: 44px; border-radius: var(--radius); overflow: hidden; }
.pago-barra span { flex: 0 0 var(--w); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--white); }
.pago-barra span:nth-child(1) { background: var(--steel-500); }
.pago-barra span:nth-child(2) { background: var(--slate-600); }
.pago-barra span:nth-child(3) { background: var(--slate-900); }
.pago__nota { font-size: 13px; color: #5b6a73; }
@media (min-width: 760px) { .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .paso { padding: 64px 20px 24px; } .paso__n { top: 20px; left: 20px; } }
@media (min-width: 1100px) {
  .facilidades { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; }
  .facilidades .pago-barra, .facilidades .pago__nota { grid-column: 2; }
}

/* --------------------------------------------------------------- formularios */
.field { display: grid; gap: 6px; position: relative; }
.field label, .field__static { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5b6a73; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--mist-300); border-radius: 2px; background: var(--white);
  font-size: 16px; color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237697aa' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate-600); box-shadow: 0 0 0 3px rgba(118,151,170,.25); }
.field--float label {
  position: absolute; left: 15px; top: 16px; pointer-events: none; transform-origin: left top;
  text-transform: none; letter-spacing: .01em; font-size: 15px; font-weight: 500; color: #5b6a73;
  transition: transform .3s var(--ease), color .3s;
}
.field--float input, .field--float textarea { padding-top: 22px; padding-bottom: 6px; }
.field--float input:focus + label, .field--float input:not(:placeholder-shown) + label,
.field--float textarea:focus + label, .field--float textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.74); color: var(--steel-600); }
.field__error { font-size: 12.5px; color: #a3412a; }
.field.is-invalid input { border-color: #a3412a; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #43535c; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--slate-600); flex: none; }

/* --------------------------------------------------------------- 07 galería */
.galeria { background: var(--slate-900); color: var(--white); z-index: 1; }
.galeria__head { margin-bottom: clamp(36px, 5vw, 64px); }
.galeria__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-flow: dense; }
.g { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--slate-800); }
.g--a, .g--f, .g--g { grid-column: 1 / -1; }
.g__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.g--a .g__btn, .g--f .g__btn { aspect-ratio: 16 / 9; }
.g__btn picture, .g__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.g__btn:hover img { transform: scale(1.05); }
.g__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20,30,36,.45)); opacity: 0; transition: opacity .5s; }
.g__btn:hover::after { opacity: 1; }
.galeria__nota { margin-top: 18px; font-size: 12.5px; color: var(--mist-300); }
@media (min-width: 900px) {
  .galeria__grid { grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-flow: dense; }
  .g--a { grid-column: 1 / 9; grid-row: span 2; }
  .g--a .g__btn { aspect-ratio: auto; min-height: 100%; }
  .g--b { grid-column: 9 / 13; }
  .g--c { grid-column: 9 / 13; }
  .g--d { grid-column: 1 / 5; }
  .g--e { grid-column: 5 / 9; }
  .g--g { grid-column: 9 / 13; }
  .g--g .g__btn { aspect-ratio: 16 / 10; }
  .g--f { grid-column: 1 / 13; }
  .g--f .g__btn { aspect-ratio: 21 / 8; }
}

.visor { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); overflow: hidden; }
.visor::backdrop { background: rgba(20,28,34,.94); }
.visor[open] { display: grid; }
.visor__stage { position: absolute; inset: 64px 0 72px; display: grid; place-items: center; touch-action: pan-y; }
.visor__stage picture { display: contents; }
.visor__stage img { max-width: min(94vw, 1800px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.visor__caption { position: absolute; left: var(--gutter); bottom: 24px; right: 120px; font-size: 13px; color: var(--mist-200); }
.visor__count { position: absolute; right: var(--gutter); bottom: 24px; font-family: var(--font-display); letter-spacing: .2em; font-size: 14px; }
.visor__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(31,43,51,.5); display: grid; place-items: center; color: var(--white); transition: background-color .3s, border-color .3s; }
.visor__btn:hover { background: var(--slate-600); border-color: var(--slate-600); }
.visor__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.visor__close { top: 12px; right: 12px; }
.visor__prev { left: 12px; top: 50%; margin-top: -24px; }
.visor__next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 767px) { .visor__prev, .visor__next { top: auto; bottom: 12px; margin-top: 0; } .visor__prev { left: auto; right: 72px; } .visor__count { display: none; } }

/* --------------------------------------------------------------- 08 contacto */
.contacto { background: var(--paper); z-index: 1; }
.contacto__grid { display: grid; gap: clamp(40px, 6vw, 96px); }
.contacto__text { display: grid; gap: 24px; align-content: start; }
.contacto__text > p { color: #3f4f59; max-width: 48ch; }
.contacto__text .btn { justify-self: start; }
.desarrolla { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 18px 22px; background: var(--slate-700); border-radius: var(--radius); justify-self: start; }
.desarrolla p { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mist-200); }
.desarrolla img { width: 92px; height: auto; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3.4vw, 44px); background: var(--white); border: 1px solid var(--mist-200); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(34,49,58,.4); }
.form__title { font-family: var(--font-display); font-weight: 300; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-600); }
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 1024px) { .contacto__grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* --------------------------------------------------------------- pie */
.footer { background: var(--slate-900); color: var(--mist-200); padding-top: clamp(64px, 8vw, 110px); position: relative; z-index: 1; overflow: hidden; }
.footer__grid { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__logo { width: 240px; height: auto; aspect-ratio: 508.3 / 245.9; fill: var(--white); color: var(--white); }
.footer__info { display: grid; gap: 18px; font-size: 14px; }
.footer__info strong { display: block; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 4px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; align-content: start; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.footer__nav a:hover { color: var(--white); }
.footer__legal { display: grid; gap: 8px; padding-block: 28px; font-size: 12px; color: var(--mist-300); }
.footer__enlaces { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__enlaces a, .footer__cookies { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 12px; color: var(--mist-200); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__enlaces a:hover, .footer__cookies:hover { color: var(--white); }
.footer__cookies[hidden] { display: none; }
.check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pattern-band--footer { margin-top: 10px; fill: rgba(255,255,255,.07); color: rgba(255,255,255,.07); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1.2fr 1fr; } }

/* --------------------------------------------------------------- WhatsApp flotante */
.fab-wa {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--slate-600); color: var(--white); box-shadow: 0 12px 30px -10px rgba(20,30,36,.55);
  transition: transform .5s var(--ease), background-color .3s, opacity .4s;
}
.fab-wa svg { width: 26px; height: 26px; fill: currentColor; }
.fab-wa:hover { transform: scale(1.06); background: var(--slate-800); }
.js .fab-wa { opacity: 0; pointer-events: none; transform: translateY(16px); }
.js .fab-wa.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.sheet-open .fab-wa, .menu-open .fab-wa, .fab-wa.is-oculto { opacity: 0 !important; pointer-events: none !important; }

/* --------------------------------------------------------------- aviso de cookies */
.cookies {
  position: fixed; z-index: 96; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom)); max-width: 520px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--white); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(20,30,36,.55); font-size: 13.5px; line-height: 1.55;
}
.cookies p { margin: 0 0 14px; color: #3f4f59; }
.cookies a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookies__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.cookies__acciones .btn { flex: 1 1 130px; }
.cookies-abierto .fab-wa { opacity: 0 !important; pointer-events: none !important; }
@media (min-width: 768px) { .cookies { right: auto; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); } }

/* --------------------------------------------------------------- aviso (dialog) */
.aviso { border: 0; padding: 0; border-radius: var(--radius); max-width: min(92vw, 460px); color: var(--ink); background: var(--white); box-shadow: 0 40px 80px -30px rgba(20,30,36,.6); }
.aviso::backdrop { background: rgba(31,43,51,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.aviso__box { display: grid; gap: 14px; padding: 32px 28px 28px; text-align: center; justify-items: center; }
.aviso__mono { width: 46px; height: 46px; fill: var(--slate-600); }
.aviso h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-600); }
.aviso p { font-size: 15px; color: #3f4f59; }
.aviso .btn { margin-top: 6px; min-width: 180px; }
.aviso[open] { animation: aviso-in .5s var(--ease); }
@keyframes aviso-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- estados iniciales de las animaciones (solo con JS y sin «reducir movimiento») */
.anim [data-reveal], .anim [data-stagger] > *, .anim .hero__facts > div { opacity: 0; }
.anim [data-clip] { clip-path: inset(12% 8% 12% 8%); }
.anim [data-split], .anim [data-split-lines] { opacity: 0; }
.anim .hero__logo, .anim .hero__ctas { opacity: 0; }
.split-line { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero { position: relative; }
  .mapa__pulse::before, .mapa__pulse::after { display: none; }
}

/* evita que los contenedores con desplazamiento horizontal ensanchen las columnas */
.proyecto__head > *, .proyecto__grid > *, .ubicacion__grid > *, .ubicacion__text > *, .plano__layout > *, .plano__sectores > *, .pago > *,
.contacto__grid > *, .fases > *, .facilidades > *, .equipamiento__head > *, .implantacion__head > *, .amenidades__intro > *, .footer__grid > * { min-width: 0; }

/* teléfonos muy angostos */
@media (max-width: 359px) {
  .header__name { font-size: 12.5px; letter-spacing: .14em; }
  .header__mono { width: 30px; height: 30px; }
  .header__bar { gap: 12px; }
  .stats__num { font-size: 29px; }
}
