/* ==========================================================================
   Perlas 3 · Lotes Residenciales Cancún
   Sistema de diseño basado en los colores del logotipo
   ========================================================================== */

:root {
  /* Marca (muestreados del logo) */
  --navy-950: #021a29;
  --navy-900: #03283d;
  --navy-800: #053854; /* tinta del logo */
  --navy-700: #0b4a6d;
  --navy-600: #155d84;
  --turq-600: #127f9d;
  --turq-500: #199cc0; /* ola del logo */
  --aqua-400: #4abfdb; /* mar caribe */
  --aqua-300: #7fd3e8;
  --aqua-200: #b4e6f2;
  --sky-200: #bfdff5;
  --sky-100: #e4f1fb;
  --pearl-50: #f5f9fc;
  --white: #ffffff;

  /* Neutros y estados */
  --text: #0d2738;
  --text-soft: #4f687a;
  --line: rgba(5, 56, 84, 0.12);
  --line-strong: rgba(5, 56, 84, 0.22);
  --status-disponible: #199cc0;
  --status-apartado: #d9a441;
  --status-vendido: #9aa9b4;

  /* Tipografía */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Ritmo */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(84px, 11vw, 150px);
  --radius: 4px;
  --radius-lg: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --shadow-sm: 0 2px 10px rgba(3, 40, 61, 0.06);
  --shadow-md: 0 18px 50px -18px rgba(3, 40, 61, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(3, 40, 61, 0.45);

  /* Logo (colores sobrescribibles por contexto) */
  --logo-ink: var(--navy-800);
  --logo-accent: var(--turq-500);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--pearl-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--turq-500); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--turq-500); color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { 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: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--navy-800); color: var(--white); padding: 10px 18px; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 16px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; color: var(--navy-800); letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--turq-600);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--aqua-300); }

.section-title { font-size: clamp(38px, 5.2vw, 64px); margin-bottom: 26px; }
.section-title em { color: var(--turq-500); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-soft); font-weight: 300; max-width: 60ch; }

.section { padding-block: var(--section-y); position: relative; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 80px; align-items: end; }
.section-head .section-title { margin-bottom: 22px; }
.section-head--split .section-title { margin-bottom: 0; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--turq-500); --btn-fg: var(--white); --btn-bd: var(--turq-500);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; min-height: 56px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: var(--radius);
  overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .45s var(--ease-out), opacity .3s;
}
.btn.is-disabled { opacity: .45; pointer-events: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-800);
  transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--navy-800); }
.btn .icon { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .45); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--navy-800); border-color: var(--white); }
.btn--navy { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); }
.btn--navy::before { background: var(--turq-500); }
.btn--navy:hover { border-color: var(--turq-500); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line-strong); }
.btn--outline:hover { color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { padding: 12px 20px; min-height: 44px; font-size: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy-800); padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link-arrow:hover { color: var(--turq-600); background-size: 0 1px; background-position: 100% 100%; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #a9d3f2 0%, #d9ecfa 38%, #eef6fd 62%, #cfe8f7 84%, #5cc6de 84.1%, #22a6c8 100%);
  transition: transform 1.15s var(--ease-in-out);
  will-change: transform;
}
.preloader::before { /* brillo del mar */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .0) 0 7px, rgba(255, 255, 255, .14) 7px 8px),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0));
  background-size: 100% 100%, 50% 100%;
  background-repeat: no-repeat;
  animation: pl-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}
.preloader__wave { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: clamp(60px, 9vw, 130px); color: #22a6c8; }
.preloader__inner { position: relative; width: min(470px, 74vw); margin-top: -6vh; transition: transform 1s var(--ease-in-out), opacity .6s ease; }
.pl-logo { width: 100%; height: auto; overflow: visible; }
.pl-ink { fill: var(--navy-800); }
.pl-acc { fill: var(--turq-500); }
.preloader__status {
  position: absolute; left: 50%; bottom: calc(16% + 34px); transform: translateX(-50%);
  width: min(260px, 60vw); display: grid; gap: 12px; justify-items: center;
  transition: opacity .4s ease;
}
.preloader__bar { width: 100%; height: 1px; background: rgba(5, 56, 84, .14); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--turq-500), var(--navy-800)); transform-origin: left; transform: scaleX(0); }
.preloader__pct { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--navy-700); font-variant-numeric: tabular-nums; padding-left: .38em; }

/* Animación de trazo del logo */
.pl-m-arc, .pl-m-wave, .pl-m-turq { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pl-m-bld { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.pl-letter, .pl-tag-text, .pl-city { opacity: 0; transform-box: fill-box; }
.pl-letter { transform: translateY(26px); }
.pl-dash { transform-box: fill-box; transform: scaleX(0); }
.pl-dash-l { transform-origin: 100% 50%; }
.pl-dash-r { transform-origin: 0 50%; }

.preloader.is-playing .pl-m-arc { animation: pl-draw 1.35s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.preloader.is-playing .pl-m-wave { animation: pl-draw 1.3s cubic-bezier(.55, 0, .25, 1) .75s forwards; }
.preloader.is-playing .pl-m-turq { animation: pl-draw 1.25s cubic-bezier(.55, 0, .25, 1) 1s forwards; }
.preloader.is-playing .pl-m-bld { animation: pl-rise .85s var(--ease-out) calc(1.15s + var(--d) * .13s) forwards; }
.preloader.is-playing .pl-letter { animation: pl-up .9s var(--ease-out) calc(1.7s + var(--i) * .075s) forwards; }
.preloader.is-playing .pl-dash { animation: pl-scale-x .9s var(--ease-out) 2.3s forwards; }
.preloader.is-playing .pl-tag-text { animation: pl-fade .9s ease 2.25s forwards; }
.preloader.is-playing .pl-city { animation: pl-fade-up .9s var(--ease-out) 2.5s forwards; }

.preloader.is-leaving .preloader__inner { transform: translateY(-46px) scale(.96); opacity: 0; }
.preloader.is-leaving .preloader__status { opacity: 0; }
.preloader.is-gone { transform: translateY(calc(-100% - clamp(60px, 9vw, 130px))); }

@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-rise { to { transform: scaleY(1); } }
@keyframes pl-up { to { opacity: 1; transform: none; } }
@keyframes pl-scale-x { to { transform: scaleX(1); } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pl-shimmer { 0%, 100% { background-position: 0 0, -60% 0; } 50% { background-position: 0 0, 160% 0; } }

/* ==========================================================================
   Navegación
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 900;
  --logo-ink: var(--white); --logo-accent: var(--aqua-400);
  color: var(--white);
  transition: background-color .45s ease, box-shadow .45s ease, transform .5s var(--ease-out), color .3s;
}
.nav::before { /* degradado para legibilidad sobre la foto */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 26, 41, .55), rgba(2, 26, 41, 0));
  transition: opacity .45s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; transition: height .45s var(--ease-out); }
.nav.is-scrolled {
  background: rgba(255, 255, 255, .92); color: var(--navy-800);
  --logo-ink: var(--navy-800); --logo-accent: var(--turq-500);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(3, 40, 61, .35);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled .nav__inner { height: 76px; }
.nav.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand__icon { width: 84px; height: auto; aspect-ratio: 838.8 / 384.5; transition: width .45s var(--ease-out); }
.brand__word { width: 150px; height: auto; aspect-ratio: 899.9 / 127.6; transition: width .45s var(--ease-out); }
.nav.is-scrolled .brand__icon { width: 70px; }
.nav.is-scrolled .brand__word { width: 134px; }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding-block: 8px;
  opacity: .92; transition: opacity .3s, color .3s;
}
.nav__links 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-out);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav.is-scrolled .nav__links a.is-active { color: var(--turq-600); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn { min-height: 48px; padding: 13px 22px; font-size: 12px; }
.nav:not(.is-scrolled) .nav__cta .btn { --btn-bg: transparent; --btn-bd: rgba(255, 255, 255, .5); }
.nav:not(.is-scrolled) .nav__cta .btn::before { background: var(--white); }
.nav:not(.is-scrolled) .nav__cta .btn:hover { color: var(--navy-800); border-color: var(--white); }

.nav__toggle { display: none; width: 48px; height: 48px; position: relative; border-radius: 50%; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), opacity .3s; }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 24px; right: 19px; }
.nav__toggle span:nth-child(3) { top: 30px; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 950; background: var(--navy-900); color: var(--white);
  --logo-ink: var(--white); --logo-accent: var(--aqua-400);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 36px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s linear .8s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-menu__close { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.mobile-menu nav { margin-block: auto; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { counter-increment: m; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu li a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); line-height: 1.1; }
.mobile-menu li a::before { content: "0" counter(m); font-family: var(--font-body); font-size: 12px; letter-spacing: .2em; color: var(--aqua-400); }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out); }
.mobile-menu.is-open li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .05s); }
.mobile-menu__foot { display: grid; gap: 14px; margin-top: 28px; }
.mobile-menu__foot a.contact-line { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .8); font-size: 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--white); overflow: hidden; background: var(--navy-900); isolation: isolate; }
.hero__media { position: absolute; inset: -6% 0 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.14); transition: transform 2.6s var(--ease-out); }
html.is-loaded .hero__media img { transform: scale(1.04); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 26, 41, .9) 0%, rgba(3, 40, 61, .74) 36%, rgba(5, 56, 84, .3) 66%, rgba(5, 56, 84, .06) 100%),
    linear-gradient(0deg, rgba(2, 26, 41, .72) 0%, rgba(2, 26, 41, 0) 42%);
}
.hero__content { flex: 1; display: flex; align-items: center; padding-top: 124px; padding-bottom: 44px; }
.hero__copy { max-width: 980px; text-shadow: 0 2px 24px rgba(2, 26, 41, .35); }
.hero__title { font-size: clamp(48px, 7vw, 100px); line-height: 1; color: var(--white); font-weight: 400; margin-bottom: 28px; letter-spacing: -0.015em; }
.hero__title em { color: var(--aqua-300); font-weight: 400; }
.hero__text { font-size: clamp(17px, 1.4vw, 19px); font-weight: 400; color: rgba(255, 255, 255, .88); max-width: 560px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: var(--aqua-300); }

.hero__facts {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__fact { padding: 26px 28px 30px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero__fact:first-child { border-left: 0; }
.hero__fact strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1; color: var(--white); margin-bottom: 8px; }
.hero__fact strong small { font-size: .55em; margin-left: 3px; color: var(--aqua-300); }
.hero__fact span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.hero__bottom { position: relative; padding-bottom: clamp(64px, 7.4vw, 112px); }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  writing-mode: vertical-rl;
}
.hero__scroll::after { content: ""; width: 1px; height: 70px; background: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); background-size: 100% 200%; animation: scroll-line 2.4s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }

/* Entrada del hero */
.js [data-hero] { opacity: 0; transform: translateY(34px); }
html.is-loaded [data-hero] { opacity: 1; transform: none; transition: opacity 1.1s ease calc(var(--d, 0) * .12s + .25s), transform 1.3s var(--ease-out) calc(var(--d, 0) * .12s + .25s); }

/* Ola divisoria inspirada en el logo */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: clamp(60px, 9vw, 130px); pointer-events: none; }
.wave-divider .wd-fill { fill: var(--pearl-50); }
.wave-divider .wd-line { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; }
.wave-divider .wd-accent { fill: var(--turq-500); opacity: .95; }
.wave-divider--top { top: -1px; bottom: auto; transform: scaleY(-1); }

/* ==========================================================================
   El desarrollo
   ========================================================================== */
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.intro__media { position: relative; padding: 0 12% 18% 0; }
.intro__img-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.intro__img-main img { width: 100%; height: 100%; object-fit: cover; }
.intro__img-sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 10px solid var(--pearl-50); box-shadow: var(--shadow-md); }
.intro__img-sub img { width: 100%; height: 100%; object-fit: cover; }
.intro__badge { position: absolute; left: -46px; bottom: 8%; width: 150px; height: 150px; border-radius: 50%; background: var(--navy-800); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-md); --logo-ink: var(--white); --logo-accent: var(--aqua-400); }
.intro__badge-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.intro__badge-text text { fill: rgba(255, 255, 255, .86); font-family: var(--font-body); font-size: 10.4px; letter-spacing: .32em; text-transform: uppercase; }
.intro__badge svg.badge-icon { width: 62px; height: auto; aspect-ratio: 838.8 / 384.5; }
@keyframes spin { to { transform: rotate(360deg); } }

.intro__copy .lead { margin-bottom: 18px; }
.intro__copy p { color: var(--text-soft); }
.check-list { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 16px; }
.check-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--text); }
.check-list .check { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--turq-600); }
.check-list .check .icon { width: 16px; height: 16px; stroke-width: 2; }
.check-list strong { font-weight: 500; color: var(--navy-800); }

.stats { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line); }
.stat__num { font-family: var(--font-display); font-size: clamp(48px, 5.5vw, 74px); line-height: 1; color: var(--navy-800); font-weight: 500; display: inline-flex; align-items: baseline; }
.stat__num small { font-size: .42em; color: var(--turq-500); margin-left: 4px; }
.stat__label { margin-top: 10px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-soft); }

/* ==========================================================================
   Beneficios (oscuro)
   ========================================================================== */
.benefits { background: var(--navy-900); color: var(--white); overflow: hidden; isolation: isolate; }
.benefits__bg { position: absolute; inset: 0; z-index: -2; }
.benefits__bg img { width: 100%; height: 120%; object-fit: cover; opacity: .32; transform: translateY(var(--py, 0)); }
.benefits::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--navy-900) 0%, rgba(3, 40, 61, .82) 40%, rgba(3, 40, 61, .9) 100%); }
.benefits__mark { position: absolute; right: -6%; top: 6%; width: min(760px, 70vw); aspect-ratio: 838.8 / 384.5; z-index: -1; opacity: .07; --logo-ink: var(--white); --logo-accent: var(--white); }
.benefits .section-title { color: var(--white); }
.benefits .section-title em { color: var(--aqua-300); }
.benefits .lead { color: rgba(255, 255, 255, .74); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden; }
.benefit { position: relative; padding: 46px 34px 50px; background: rgba(3, 40, 61, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .5s ease; overflow: hidden; }
.benefit::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--turq-500), var(--aqua-300)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.benefit:hover { background: rgba(11, 74, 109, .78); }
.benefit:hover::after { transform: scaleX(1); }
.benefit__num { position: absolute; top: 30px; right: 30px; font-family: var(--font-display); font-size: 18px; color: rgba(255, 255, 255, .38); letter-spacing: .1em; }
.benefit__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(127, 211, 232, .35); color: var(--aqua-300); margin-bottom: 34px; transition: background .5s, color .5s, border-color .5s; }
.benefit:hover .benefit__icon { background: var(--turq-500); border-color: var(--turq-500); color: var(--white); }
.benefit__icon .icon { width: 28px; height: 28px; }
.benefit h3 { color: var(--white); font-size: 30px; margin-bottom: 14px; }
.benefit p { color: rgba(255, 255, 255, .7); font-size: 15.5px; font-weight: 300; }

/* ==========================================================================
   Masterplan
   ========================================================================== */
.masterplan { background: var(--white); }
.masterplan__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
.masterplan__frame { position: sticky; top: 100px; }
.plan-image { position: relative; aspect-ratio: 745 / 1424; max-height: calc(100vh - 140px); margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky-100); }
.plan-image img { width: 100%; height: 100%; object-fit: cover; }
.plan-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); border-radius: inherit; }
.plan-caption { margin-top: 16px; font-size: 13px; color: var(--text-soft); display: flex; align-items: center; gap: 10px; justify-content: center; }
.plan-caption::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); }

.hotspot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--navy-800); font-size: 13px; font-weight: 600; font-family: var(--font-body);
  box-shadow: 0 6px 18px rgba(2, 26, 41, .35); transition: background .3s, color .3s, transform .4s var(--ease-out);
  z-index: 2;
}
.hotspot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); animation: pulse 2.4s ease-out infinite; animation-delay: var(--delay, 0s); }
.hotspot:hover, .hotspot.is-active { background: var(--turq-500); color: var(--white); transform: translate(-50%, -50%) scale(1.15); z-index: 3; }
.hotspot__tip {
  position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 6px); white-space: nowrap;
  background: var(--navy-900); color: var(--white); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; padding: 8px 14px; border-radius: var(--radius);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out);
}
.hotspot__tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--navy-900); }
.hotspot:hover .hotspot__tip, .hotspot.is-active .hotspot__tip { opacity: 1; transform: translate(-50%, 0); }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.plan-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plan-item { border-bottom: 1px solid var(--line); }
.plan-item button { width: 100%; text-align: left; display: grid; grid-template-columns: 52px 1fr 24px; gap: 18px; align-items: center; padding: 22px 6px; transition: background .4s, padding .4s var(--ease-out); }
.plan-item__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--navy-800); transition: background .3s, color .3s, border-color .3s; }
.plan-item .t-title { display: block; font-size: 18px; font-weight: 500; letter-spacing: .01em; color: var(--navy-800); line-height: 1.3; }
.plan-item .t-desc { display: block; margin-top: 4px; color: var(--text-soft); font-size: 15px; line-height: 1.55; }
.plan-item .icon { color: var(--turq-500); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease-out); }
.plan-item.is-active button, .plan-item button:hover { background: linear-gradient(90deg, var(--sky-100), rgba(228, 241, 251, 0)); padding-left: 14px; }
.plan-item.is-active .plan-item__num, .plan-item button:hover .plan-item__num { background: var(--turq-500); border-color: var(--turq-500); color: var(--white); }
.plan-item.is-active .icon, .plan-item button:hover .icon { opacity: 1; transform: none; }

/* ==========================================================================
   Tipos de lote
   ========================================================================== */
.lots { background: linear-gradient(180deg, var(--pearl-50), var(--sky-100)); }
.lot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.lot-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s; }
.lot-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.lot-card--featured { border-color: var(--turq-500); box-shadow: var(--shadow-md); }
.lot-card__tag { position: absolute; top: 20px; right: 20px; z-index: 2; background: var(--turq-500); color: var(--white); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; padding: 7px 12px; border-radius: 100px; }
.lot-card__plan { position: relative; padding: 36px 30px 20px; background:
  linear-gradient(rgba(25, 156, 192, .07) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(90deg, rgba(25, 156, 192, .07) 1px, transparent 1px) 0 0 / 22px 22px,
  var(--pearl-50);
  border-bottom: 1px solid var(--line); display: grid; place-items: center; min-height: 300px; }
.lot-svg { width: 100%; max-width: 250px; height: auto; overflow: visible; }
.lot-svg .lot-area { fill: rgba(25, 156, 192, .12); stroke: var(--navy-800); stroke-width: 1.6; }
.lot-svg .lot-setback { fill: none; stroke: var(--turq-500); stroke-width: 1; stroke-dasharray: 4 4; }
.lot-svg .lot-house { fill: rgba(5, 56, 84, .08); stroke: rgba(5, 56, 84, .35); stroke-width: 1; }
.lot-svg .dim { stroke: var(--turq-600); stroke-width: 1; fill: none; }
.lot-svg .dim-text { font-family: var(--font-body); font-size: 11px; fill: var(--navy-800); font-weight: 500; letter-spacing: .06em; }
.lot-svg .street { fill: rgba(5, 56, 84, .06); }
.lot-svg .street-text { font-family: var(--font-body); font-size: 8.5px; letter-spacing: .32em; fill: var(--text-soft); }
.lot-svg .park { fill: rgba(74, 191, 219, .22); }
.lot-svg .park-tree { fill: rgba(25, 156, 192, .35); }
.lot-svg .area-text { font-family: var(--font-display); font-size: 22px; font-weight: 600; fill: var(--navy-800); }
.lot-svg .area-sub { font-family: var(--font-body); font-size: 8px; letter-spacing: .25em; fill: var(--text-soft); }
.lot-card__body { padding: 32px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.lot-card__type { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--turq-600); font-weight: 500; margin-bottom: 10px; }
.lot-card h3 { font-size: 40px; margin-bottom: 4px; }
.lot-card h3 small { font-family: var(--font-body); font-size: 15px; color: var(--text-soft); font-weight: 400; letter-spacing: .04em; margin-left: 6px; }
.lot-card__desc { color: var(--text-soft); font-size: 15.5px; margin: 10px 0 22px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-list li span { color: var(--text-soft); }
.spec-list li strong { font-weight: 500; color: var(--navy-800); }
.lot-card__foot { margin-top: auto; display: grid; gap: 16px; }
.lot-card__price { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); }
.lot-card__price strong { font-family: var(--font-display); font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--navy-800); font-weight: 500; }

/* ==========================================================================
   Mapa interactivo de lotes
   ========================================================================== */
.map-section { background: var(--white); }
.mapa { border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.mapa__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--pearl-50); }
.mapa__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--white); font-size: 13px; font-weight: 500; color: var(--navy-800); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--turq-500); }
.chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .7; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot--disponible { background: var(--status-disponible); }
.dot--apartado { background: var(--status-apartado); }
.dot--vendido { background: var(--status-vendido); }
.mapa__zoom { display: flex; gap: 6px; }
.mapa__zoom button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); display: grid; place-items: center; color: var(--navy-800); transition: background .3s, color .3s, border-color .3s; }
.mapa__zoom button:hover:not(:disabled) { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.mapa__zoom button:disabled { opacity: .4; cursor: not-allowed; }
.mapa__zoom .icon { width: 18px; height: 18px; }
.mapa__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 600px; }
.mapa__canvas { position: relative; overflow: hidden; background:
  radial-gradient(circle at 1px 1px, rgba(5, 56, 84, .16) 1px, transparent 0) 0 0 / 24px 24px,
  linear-gradient(180deg, #f7fbfe, #eaf4fb);
  touch-action: none; cursor: grab; }
.mapa__canvas.is-dragging { cursor: grabbing; }
.mapa__canvas.is-empty { cursor: default; touch-action: auto; }
.mapa__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; transform-origin: 0 0; }
.mapa__stage > svg { width: 100%; height: 100%; max-height: 100%; }
.mapa__stage [data-lote] { cursor: pointer; stroke: var(--white); stroke-width: 1.2; transition: fill .3s, opacity .3s, filter .3s; }
.mapa__stage [data-lote].lote--disponible { fill: var(--status-disponible); }
.mapa__stage [data-lote].lote--apartado { fill: var(--status-apartado); }
.mapa__stage [data-lote].lote--vendido { fill: var(--status-vendido); cursor: not-allowed; }
.mapa__stage [data-lote]:hover, .mapa__stage [data-lote]:focus-visible { filter: brightness(1.12) drop-shadow(0 2px 6px rgba(3, 40, 61, .35)); outline: none; }
.mapa__stage [data-lote].is-selected { fill: var(--navy-800); }
.mapa__stage [data-lote].is-dimmed { opacity: .18; }

.mapa__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; }
.mapa__placeholder-inner { max-width: 440px; display: grid; justify-items: center; gap: 16px; }
.mapa__placeholder-mark { width: 150px; height: auto; aspect-ratio: 838.8 / 384.5; opacity: .9; margin-bottom: 8px; }
.mapa__placeholder h3 { font-size: 34px; }
.mapa__placeholder p { color: var(--text-soft); font-size: 15.5px; }
.mapa__placeholder .frame-lines { position: absolute; inset: 28px; border: 1px dashed rgba(25, 156, 192, .45); border-radius: 10px; pointer-events: none; }
.mapa__placeholder .frame-lines::before, .mapa__placeholder .frame-lines::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--turq-500); }
.mapa__placeholder .frame-lines::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.mapa__placeholder .frame-lines::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.mapa__soon { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--turq-600); font-weight: 500; padding: 8px 16px; background: var(--sky-100); border-radius: 100px; }
.mapa__soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--turq-500); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.mapa__panel { border-left: 1px solid var(--line); padding: 30px 28px; display: flex; flex-direction: column; gap: 22px; background: var(--white); }
.mapa__panel-empty { margin: auto 0; text-align: center; display: grid; justify-items: center; gap: 14px; color: var(--text-soft); font-size: 15px; }
.mapa__panel-empty .icon { width: 44px; height: 44px; color: var(--turq-500); stroke-width: 1.2; }
.mapa__panel-empty strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--navy-800); }
.lote-info { display: none; flex-direction: column; gap: 20px; height: 100%; }
.mapa__panel.has-lote .lote-info { display: flex; }
.mapa__panel.has-lote .mapa__panel-empty { display: none; }
.lote-info__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lote-info__label { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-soft); }
.lote-info__id { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--navy-800); font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; text-transform: capitalize; background: var(--sky-100); color: var(--navy-800); white-space: nowrap; }
.lote-info .spec-list { margin: 0; }
.lote-info .btn { margin-top: auto; }

/* ==========================================================================
   Amenidades
   ========================================================================== */
.amenities__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 5vw, 70px); align-items: stretch; }
.amenities__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; box-shadow: var(--shadow-lg); }
.amenities__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease, transform 1.4s var(--ease-out); }
.amenities__media img:not(.is-active) { opacity: 0; transform: scale(1.06); }
.amenities__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 26, 41, .75), rgba(2, 26, 41, 0) 55%); }
.amenities__media figcaption { position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 2; color: var(--white); }
.amenities__media figcaption span { display: block; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--aqua-300); margin-bottom: 8px; }
.amenities__media figcaption strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.amenity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: center; }
.amenity { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); transition: border-color .4s, box-shadow .5s var(--ease-out), transform .5s var(--ease-out); text-align: left; }
.amenity:hover, .amenity.is-active { border-color: rgba(25, 156, 192, .5); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.amenity__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--turq-600); transition: background .4s, color .4s; }
.amenity:hover .amenity__icon, .amenity.is-active .amenity__icon { background: var(--turq-500); color: var(--white); }
.amenity .t-title { display: block; font-size: 16.5px; font-weight: 500; color: var(--navy-800); line-height: 1.3; letter-spacing: .01em; }
.amenity .t-desc { display: block; margin-top: 2px; font-size: 14px; color: var(--text-soft); line-height: 1.45; }

/* ==========================================================================
   Ubicación
   ========================================================================== */
.location { background: var(--navy-900); color: var(--white); overflow: hidden; }
.location .section-title { color: var(--white); }
.location .section-title em { color: var(--aqua-300); }
.location .lead { color: rgba(255, 255, 255, .74); }
.location__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.distance-list { list-style: none; padding: 0; margin: 38px 0 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.distance-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.distance-list .icon { color: var(--aqua-300); width: 22px; height: 22px; }
.distance-list .d-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 211, 232, .08); border: 1px solid rgba(127, 211, 232, .2); }
.distance-list span { font-size: 16px; color: rgba(255, 255, 255, .88); }
.distance-list strong { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--white); white-space: nowrap; }
.distance-list strong small { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-300); margin-left: 4px; }
.map-frame { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .12); background: var(--navy-800); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.02); }
.map-card { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-radius: 12px; background: rgba(255, 255, 255, .96); color: var(--navy-800); box-shadow: var(--shadow-md); --logo-ink: var(--navy-800); --logo-accent: var(--turq-500); }
.map-card__icon { width: 54px; height: 54px; border-radius: 10px; background: var(--sky-100); display: grid; place-items: center; }
.map-card__icon svg { width: 40px; height: auto; aspect-ratio: 838.8 / 384.5; }
.map-card strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.map-card span { font-size: 13px; color: var(--text-soft); }

/* ==========================================================================
   Galería
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 19vw, 260px); grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--sky-100); cursor: zoom-in; display: block; width: 100%; height: 100%; }
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 26, 41, .85), rgba(2, 26, 41, .35) 34%, rgba(2, 26, 41, 0) 60%); opacity: .9; transition: opacity .5s; }
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item .g-cap { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; color: var(--white); text-align: left; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.g-item .g-cap small { display: block; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--aqua-300); margin-bottom: 4px; }
.g-item .g-cap strong { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; }
.g-item .g-zoom { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease-out); }
.g-item .g-zoom .icon { width: 18px; height: 18px; }
.g-item:hover .g-zoom { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(2, 20, 32, .94); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white); }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-size: 13px; letter-spacing: .2em; color: rgba(255, 255, 255, .7); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 8vw, 110px); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .35s ease, transform .5s var(--ease-out); }
.lightbox__stage img.is-switching { opacity: 0; transform: scale(.98); }
.lightbox__caption { text-align: center; padding: 18px var(--gutter) 26px; font-family: var(--font-display); font-size: 24px; }
.lightbox__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); transition: background .3s, border-color .3s; }
.lightbox__btn:hover { background: var(--turq-500); border-color: var(--turq-500); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__prev { left: clamp(10px, 3vw, 36px); }
.lightbox__next { right: clamp(10px, 3vw, 36px); }

/* ==========================================================================
   Proceso de compra
   ========================================================================== */
.process { background: var(--sky-100); overflow: hidden; }
.steps-wrap { position: relative; }
.steps-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--line-strong); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; position: relative; }
.steps__progress { position: absolute; left: 0; top: 36px; height: 1px; width: 100%; background: var(--turq-500); transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease-in-out) .3s; }
.steps-wrap.is-in .steps__progress { transform: scaleX(1); }
.step { position: relative; }
.step__num { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line-strong); color: var(--navy-800); font-family: var(--font-display); font-size: 28px; margin-bottom: 30px; transition: background .5s, color .5s, border-color .5s; }
.steps-wrap.is-in .step__num { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); transition-delay: calc(.4s + var(--i) * .5s); }
.step h3 { font-size: 28px; margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: 15.5px; }

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__aside { position: sticky; top: 120px; }
.faq__aside .lead { margin-bottom: 34px; }
.faq-card { margin-top: 40px; padding: 28px; border-radius: var(--radius-lg); background: var(--navy-800); color: var(--white); display: grid; gap: 14px; }
.faq-card strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.faq-card p { color: rgba(255, 255, 255, .74); font-size: 15px; margin: 0; }
.faq-card .btn { justify-self: start; margin-top: 6px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; gap: 20px; align-items: center; padding: 26px 0; font-family: var(--font-display); font-size: clamp(22px, 2vw, 27px); font-weight: 500; color: var(--navy-800); line-height: 1.25; transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--turq-600); }
.faq-item__icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: background .35s, border-color .35s, transform .5s var(--ease-out); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--navy-800); transform: translate(-50%, -50%); transition: transform .45s var(--ease-out), background .3s; }
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__icon { background: var(--turq-500); border-color: var(--turq-500); transform: rotate(180deg); }
.faq-item[open] .faq-item__icon::before, .faq-item[open] .faq-item__icon::after { background: var(--white); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item__body { overflow: hidden; }
.faq-item__body p { padding: 0 60px 28px 0; margin: 0; color: var(--text-soft); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { position: relative; color: var(--white); overflow: hidden; isolation: isolate; background: var(--navy-900); }
.contact__bg { position: absolute; inset: 0; z-index: -2; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(2, 26, 41, .94) 0%, rgba(3, 40, 61, .84) 45%, rgba(5, 56, 84, .55) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.contact .section-title { color: var(--white); margin-bottom: 22px; }
.contact .section-title em { color: var(--aqua-300); }
.contact .lead { color: rgba(255, 255, 255, .8); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.contact-list li > a, .contact-list li > .c-row { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; }
.contact-list .c-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); color: var(--aqua-300); transition: background .3s, border-color .3s, color .3s; }
.contact-list a:hover .c-ic { background: var(--turq-500); border-color: var(--turq-500); color: var(--white); }
.contact-list small { display: block; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.contact-list strong { font-weight: 400; font-size: 17px; }

.form-card { background: var(--white); color: var(--text); border-radius: 16px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55); position: relative; }
.form-card h3 { font-size: 34px; margin-bottom: 6px; }
.form-card > p { color: var(--text-soft); font-size: 15px; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--pearl-50); padding: 14px 16px; font-size: 16px; color: var(--text); transition: border-color .3s, box-shadow .3s, background .3s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23053854' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turq-500); background: var(--white); box-shadow: 0 0 0 4px rgba(25, 156, 192, .14); }
.field.is-invalid input, .field.is-invalid select { border-color: #c0504d; }
.field__error { font-size: 12.5px; color: #b5403d; display: none; }
.field.is-invalid .field__error { display: block; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--turq-500); flex: none; }
.consent a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.form-actions { grid-column: 1 / -1; margin-top: 6px; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--text-soft); text-align: center; margin: 0; }
.form-success { position: absolute; inset: 0; border-radius: inherit; background: var(--white); display: grid; place-items: center; text-align: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s linear .5s; }
.form-card.is-sent .form-success { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }
.form-success__inner { display: grid; justify-items: center; gap: 16px; max-width: 340px; }
.form-success__check { width: 76px; height: 76px; border-radius: 50%; background: var(--sky-100); color: var(--turq-500); display: grid; place-items: center; }
.form-success__check .icon { width: 34px; height: 34px; stroke-width: 2; }
.form-success h3 { font-size: 34px; }
.form-success p { color: var(--text-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding-top: clamp(70px, 9vw, 110px); --logo-ink: var(--white); --logo-accent: var(--aqua-400); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 70px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__logo { width: 210px; height: auto; aspect-ratio: 912.7 / 714.1; margin-bottom: 26px; }
.footer__about p { font-size: 15px; max-width: 34ch; }
.footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--white); font-weight: 500; margin-bottom: 24px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--aqua-300); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); transition: background .3s, border-color .3s, color .3s; }
.socials a:hover { background: var(--turq-500); border-color: var(--turq-500); color: var(--white); }
.socials .icon { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding: 28px 0 34px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer__bottom p { margin: 0; }
.footer__legal { max-width: 70ch; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .35); transform: scale(0); transition: transform .6s var(--ease-out); }
html.is-loaded .wa-float { transform: scale(1); transition-delay: 1.4s; }
.wa-float:hover { transform: scale(1.08) !important; transition-delay: 0s !important; }
.wa-float .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.6s ease-out infinite; }

/* ==========================================================================
   Animaciones de aparición
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1s ease, transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * .1s); }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-curtain] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: calc(var(--d, 0) * .12s); }
.js [data-curtain] img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); transition-delay: calc(var(--d, 0) * .12s); }
.js [data-curtain].is-in { clip-path: inset(0 0 0 0); }
.js [data-curtain].is-in img { transform: scale(1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1260px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 1180px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .mapa__body { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 980px) {
  body { font-size: 16px; }
  .section-head--split { grid-template-columns: 1fr; }
  .intro__grid, .masterplan__grid, .amenities__grid, .location__grid, .contact__grid, .faq__grid { grid-template-columns: 1fr; }
  .intro__copy { order: -1; }
  .intro__media { max-width: 620px; }
  .intro__badge { left: auto; right: 4%; top: -30px; bottom: auto; width: 124px; height: 124px; }
  .intro__badge svg.badge-icon { width: 52px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .masterplan__frame { position: relative; top: 0; }
  .plan-image { max-height: none; max-width: 460px; }
  .lot-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .mapa__body { grid-template-columns: 1fr; }
  .mapa__canvas { min-height: 460px; }
  .mapa__panel { border-left: 0; border-top: 1px solid var(--line); }
  .mapa__panel-empty { padding-block: 10px; }
  .amenities__media { min-height: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 50px 34px; }
  .steps-wrap::before, .steps__progress { display: none; }
  .faq__aside { position: relative; top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__fact:nth-child(3) { border-left: 0; }
  .hero__fact:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero__scroll { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 34vw, 280px); }
}

@media (max-width: 640px) {
  .nav__inner { height: 76px; }
  .nav.is-scrolled .nav__inner { height: 66px; }
  .brand { gap: 10px; }
  .brand__icon, .nav.is-scrolled .brand__icon { width: 54px; }
  .brand__word, .nav.is-scrolled .brand__word { width: 112px; }
  .nav__cta .btn { display: none; }
  .hero__content { padding-top: 120px; padding-bottom: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__fact { padding: 18px 16px 20px; }
  .hero__fact span { font-size: 10.5px; letter-spacing: .16em; }
  .intro__media { padding: 0 8% 22% 0; }
  .intro__img-sub { border-width: 6px; }
  .stat { padding: 30px 12px; }
  .stat__label { font-size: 10.5px; letter-spacing: .16em; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { padding: 38px 26px 40px; }
  .plan-item button { grid-template-columns: 44px 1fr; padding-block: 18px; }
  .plan-item .icon { display: none; }
  .lot-card__body { padding: 26px 22px 28px; }
  .mapa__toolbar { padding: 14px; }
  .mapa__canvas { min-height: 400px; }
  .mapa__placeholder h3 { font-size: 28px; }
  .amenity-list { grid-template-columns: 1fr; }
  .amenities__media { min-height: 340px; }
  .distance-list strong { font-size: 22px; }
  .map-frame { aspect-ratio: 4 / 4.4; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-item--wide { grid-column: span 2; }
  .g-item .g-cap { left: 14px; right: 14px; bottom: 12px; }
  .g-item .g-cap strong { font-size: 17px; }
  .g-item .g-cap small { font-size: 9px; letter-spacing: .2em; }
  .g-item .g-zoom { display: none; }
  .steps { grid-template-columns: 1fr; }
  .faq-item__body p { padding-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-curtain], .js [data-hero] { opacity: 1; transform: none; clip-path: none; }
}

/* La galería de amenidades combina el efecto cortina con el cambio de imagen */
.js .amenities__media[data-curtain] img { transition: opacity .8s ease, transform 1.6s var(--ease-out); }
