/* ================================================================
   VQ SAN LUIS — DESIGN TOKENS
   Visual DNA sourced from /references/index-08.html (Invercasa /
   OKOPOD-derived design system): organic warmth, generous rounding,
   pill buttons/nav, soft floating-card shadows, Playfair + Jakarta.
================================================================ */
:root {
  /* PALETTE */
  --c-bg:      #F6F4F0;   /* warm linen off-white — main bg */
  --c-surface: #FFFFFF;   /* pure white — card surfaces */
  --c-alt:     #EEEBE5;   /* slightly deeper off-white — alt sections */
  --c-dark:    #1A1A18;   /* near-black */
  --c-body:    #3A3833;   /* warm dark brown — body text */
  --c-muted:   #857F78;   /* warm gray — secondary text */
  --c-border:  #E2DDD5;   /* soft warm divider */

  /* Brand green — deep, natural, forest-like */
  --c-grn:     #2B4A3C;
  --c-grn-mid: #3D6652;
  --c-grn-lt:  #EAF2EE;
  --c-sage:    #7FAB8D;

  /* Lot status accents (map legend) */
  --c-amber:      #B8863D;
  --c-amber-lt:   #FBF1E3;
  --c-gray-sold:  #9C948A;
  --c-gray-sold-lt: #F0EEEC;

  /* TYPOGRAPHY */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --t-xs:   clamp(0.68rem, 0.9vw,  0.75rem);
  --t-sm:   clamp(0.82rem, 1.1vw,  0.9rem);
  --t-base: clamp(0.95rem, 1.2vw,  1rem);
  --t-md:   clamp(1.05rem, 1.5vw,  1.15rem);
  --t-lg:   clamp(1.2rem,  2vw,    1.4rem);
  --t-xl:   clamp(1.6rem,  2.8vw,  2.2rem);
  --t-2xl:  clamp(2.2rem,  4.5vw,  3.6rem);
  --t-hero: clamp(2.6rem,  6.4vw,  5.6rem);

  /* SPACING — base-8 grid */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --s12: 96px; --s16: 128px;

  /* RADIUS — generous rounding throughout */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* SHADOWS */
  --sh-xs: 0 1px 4px rgba(26,26,24,0.05);
  --sh-sm: 0 2px 8px rgba(26,26,24,0.07), 0 1px 3px rgba(26,26,24,0.04);
  --sh-md: 0 6px 24px rgba(26,26,24,0.09), 0 2px 8px rgba(26,26,24,0.05);
  --sh-lg: 0 16px 48px rgba(26,26,24,0.11), 0 4px 16px rgba(26,26,24,0.06);
  --sh-hover: 0 24px 64px rgba(26,26,24,0.15), 0 8px 24px rgba(26,26,24,0.08);

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1240px;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-body);
  line-height: 1.65;
  overflow-x: clip;
  cursor: none;
}
img, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: none; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(18px, 5vw, var(--s5)); }
section[id] { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  *{ scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ================================================================
   CUSTOM CURSOR
================================================================ */
.cur-dot {
  position: fixed; z-index: 9999;
  width: 7px; height: 7px;
  background: var(--c-grn);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cur-ring {
  position: fixed; z-index: 9998;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(43,74,60,0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-spring), height .3s var(--ease-spring),
              background .3s, border-color .3s;
}
.cur-ring.on { width: 56px; height: 56px; background: rgba(43,74,60,0.07); border-color: var(--c-grn); }
@media (hover: none) { .cur-dot, .cur-ring { display: none; } body { cursor: auto; } button, a { cursor: pointer; } }

/* ================================================================
   NAVIGATION — floating pill
================================================================ */
.nav {
  position: fixed;
  top: var(--s2); left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - var(--s4)), var(--max-w));
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
  padding: 0 var(--s3);
  background: rgba(246, 244, 240, 0.68);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--sh-lg); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 1.15rem; font-weight: 500;
  color: var(--c-dark); letter-spacing: -0.01em;
  min-width: 0; flex-shrink: 1;
}
.nav-logo-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.nav-logo-text span { color: var(--c-grn-mid); }
.nav-logo-mark { height: 34px; width: auto; flex-shrink: 0; }

.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  font-size: var(--t-sm); font-weight: 500;
  color: var(--c-body);
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--c-grn-lt); color: var(--c-grn); }

.nav-actions { display: flex; gap: var(--s1); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: 50%;
  font-size: 1.2rem;
  align-items: center; justify-content: center;
}

.nav-links-mobile {
  display: flex;
  position: fixed; z-index: 99;
  top: 82px; left: var(--s2); right: var(--s2);
  width: auto;
  max-width: 360px;
  margin-left: auto;
  list-style: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--s2);
  flex-direction: column;
  gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transform-origin: top right;
  transition: opacity .25s ease, transform .25s var(--ease-spring), visibility 0s .25s;
}
.nav-links-mobile.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s var(--ease-spring);
}
.nav-links-mobile a {
  display: block;
  padding: 12px var(--s2);
  border-radius: var(--r-md);
  font-size: var(--t-base); font-weight: 500;
}
.nav-links-mobile a:hover { background: var(--c-grn-lt); color: var(--c-grn); }

.nav-mobile-cta {
  margin-top: var(--s1);
  padding-top: var(--s2);
  border-top: 1px solid var(--c-border);
}
.nav-mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ================================================================
   BUTTONS — always pill-shaped
================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: none;
  transition: all .25s var(--ease-spring);
  white-space: nowrap; line-height: 1;
}
.btn .arrow { display: inline-block; transition: transform .2s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--c-grn); color: #fff; border-color: var(--c-grn); }
.btn-primary:hover { background: var(--c-dark); border-color: var(--c-dark); }

.btn-outline { background: transparent; color: var(--c-dark); border-color: var(--c-border); }
.btn-outline:hover { background: var(--c-surface); border-color: var(--c-dark); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff; border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.55); }

.btn-sm { padding: 9px 18px; font-size: var(--t-xs); }
.btn-lg { padding: 15px 30px; font-size: var(--t-base); }

.btn-label-short { display: none; }

/* ================================================================
   HERO — full-bleed video, rounded bottom corners
================================================================ */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--c-dark); /* fallback while video loads / if missing */
}
.hero-bg { position: absolute; inset: 0; will-change: transform; }
.hero-video { width: 100%; height: 112%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    165deg,
    rgba(26,26,24,.10) 0%,
    rgba(26,26,24,.28) 40%,
    rgba(26,26,24,.72) 100%
  );
}
.hero-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s16) var(--s8) var(--s16);
  max-width: calc(var(--max-w) + 80px); margin: 0 auto; width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--s4); width: fit-content;
  opacity: 0;
}
.pulse {
  width: 7px; height: 7px;
  background: #7EC99A; border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

.hero-h1 {
  font-family: var(--f-display);
  font-size: var(--t-hero); font-weight: 400;
  line-height: 1.03; letter-spacing: -0.02em;
  color: #fff; margin-bottom: var(--s4);
  max-width: 22ch;
  text-wrap: balance;
  opacity: 0;
}
.hero-h1 em { font-style: italic; color: rgba(255,255,255,0.78); }

.hero-lead {
  font-size: var(--t-md); font-weight: 300;
  color: rgba(255,255,255,.8); max-width: 56ch;
  margin-bottom: var(--s5);
  opacity: 0;
}

.hero-actions {
  display: flex; align-items: center; gap: var(--s2);
  flex-wrap: wrap; opacity: 0;
}
.scroll-hint {
  font-size: var(--t-xs); color: rgba(255,255,255,.45);
  letter-spacing: .07em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-left: var(--s2);
}
.scroll-hint::before {
  content: ''; display: block;
  width: 36px; height: 1px; background: rgba(255,255,255,.3);
}

.hero-trust {
  margin-top: var(--s3); font-size: var(--t-xs);
  color: rgba(255,255,255,.5); opacity: 0;
}
.hero-trust strong { color: rgba(255,255,255,.85); font-weight: 700; }

/* ================================================================
   HERO STATS — floating card row overlapping hero bottom edge
================================================================ */
.hero-stats-wrap {
  position: relative;
  margin-top: calc(-1 * var(--s10));
  z-index: 5;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
  background: rgba(246, 244, 240, 0.68);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: var(--s4);
}
.stat-card {
  padding: var(--s2) var(--s3);
  text-align: left;
}
.stat-card:nth-child(n+2) {
  border-left: 1px solid rgba(133,127,120,0.22);
}
.stat-card--price .stat-n { color: var(--c-grn); }
.stat-n {
  font-family: var(--f-display); font-size: var(--t-xl);
  font-weight: 400; color: var(--c-dark); line-height: 1;
}
.stat-l {
  font-size: var(--t-xs); color: var(--c-muted); margin-top: 6px;
}
.stat-l s { color: #b3aca3; margin-left: 4px; }

.hero-stats-note {
  font-size: var(--t-xs); color: var(--c-muted);
  text-align: center; margin-top: var(--s3);
}

.hero-lead--below {
  font-size: clamp(1.12rem, 1.7vw, 1.24rem);
  color: var(--c-muted);
  text-align: center;
  max-width: 62ch;
  margin: var(--s4) auto 0;
}

/* reveal helpers (used by later sections too) */
.rv  { opacity: 0; transform: translateY(28px); }
.rvf { opacity: 0; }

/* ================================================================
   SHARED TEXT COMPONENTS — reused across every section from here on
================================================================ */
.sec { padding: var(--s16) 0; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--c-grn);
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 18px; border-radius: var(--r-pill);
  margin-bottom: var(--s3);
}
.tag-pill::before {
  content: ''; width: 5px; height: 5px;
  background: #7EC99A; border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
.tag-pill--hero {
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--c-grn);
  padding: 8px 18px;
  letter-spacing: 0.08em;
}
.tag-pill--hero::before {
  background: #7EC99A;
  animation: pulse 2.2s ease-in-out infinite;
}
.tag-pill--dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.tag-pill--dark::before { background: #7EC99A; }

.h2 {
  font-family: var(--f-display);
  font-size: var(--t-2xl); font-weight: 400;
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--c-dark);
}
.h2 em { font-style: italic; }

.sub {
  font-size: var(--t-md); font-weight: 300;
  color: var(--c-muted); line-height: 1.7;
  max-width: 50ch; margin-top: var(--s3);
}

.stack { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s6); }
.form-note { font-size: var(--t-xs); color: var(--c-muted); margin-top: var(--s3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-sm); font-weight: 700;
  color: var(--c-grn); letter-spacing: .02em;
  margin-top: var(--s5);
  transition: gap .2s;
}
.link-arrow:hover { gap: 10px; }
.link-arrow .arrow { transition: transform .2s var(--ease-spring); }
.link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow--ref {
  margin-top: var(--s5);
  min-width: min(420px, 100%);
  width: fit-content;
  justify-content: space-between;
  gap: var(--s4);
  padding: 20px 24px;
  border: 1px solid #b9b1a4;
  border-radius: 18px;
  background: transparent;
  color: var(--c-dark);
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  transition: border-color .2s, transform .2s;
}
.link-arrow--ref:hover {
  gap: var(--s4);
  transform: translateY(-1px);
  border-color: #a79f91;
}
.link-arrow--ref .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #b9b1a4;
  border-radius: 10px;
  background: transparent;
  color: var(--c-dark);
  font-size: 1.05rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.link-arrow--ref:hover .arrow {
  transform: translateX(0);
  background: var(--c-grn);
  border-color: var(--c-grn);
  color: #fff;
}

/* ================================================================
   PROYECTO — editorial value-proposition section
================================================================ */
.proj-sec {
  background: var(--c-alt);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: var(--s10);
  padding: var(--s16) 0;
}
.proj-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s12); align-items: start;
}

.proj-copy {
  position: sticky;
  top: clamp(88px, 12vh, 132px);
  align-self: start;
}

.editorial-list {
  --stack-top: clamp(88px, 12vh, 132px);
  --stack-step: 22px;
  --stack-overlap: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding-top: var(--s2);
  padding-bottom: var(--s8);
}
.editorial-item {
  position: relative;
  top: auto;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.editorial-item:nth-child(1) { z-index: 1; }
.editorial-item:nth-child(2) { z-index: 2; }
.editorial-item:nth-child(3) { z-index: 3; }
.editorial-item:nth-child(4) { z-index: 4; }

.editorial-list.is-stacking {
  gap: 0;
  padding-top: var(--stack-top);
  padding-bottom: calc(var(--stack-top) + var(--s8) + (var(--stack-step) * 3));
}
.editorial-list.is-stacking .editorial-item {
  position: sticky;
  top: var(--stack-top);
}
.editorial-list.is-stacking .editorial-item + .editorial-item {
  margin-top: calc(-1 * var(--stack-overlap));
}
.editorial-list.is-stacking .editorial-item:nth-child(1) { top: var(--stack-top); }
.editorial-list.is-stacking .editorial-item:nth-child(2) { top: calc(var(--stack-top) + var(--stack-step)); }
.editorial-list.is-stacking .editorial-item:nth-child(3) { top: calc(var(--stack-top) + (var(--stack-step) * 2)); }
.editorial-list.is-stacking .editorial-item:nth-child(4) { top: calc(var(--stack-top) + (var(--stack-step) * 3)); }
.editorial-item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.editorial-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s3);
}
.editorial-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-grn-lt); color: var(--c-grn);
  border-radius: var(--r-md);
  font-family: var(--f-display); font-style: italic; font-size: 1.15rem;
}
.editorial-arrow {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: 50%;
  color: var(--c-muted); font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-spring);
}
.editorial-item:hover .editorial-arrow {
  background: var(--c-grn); border-color: var(--c-grn); color: #fff;
  transform: translateX(2px);
}
.editorial-title {
  font-size: var(--t-base); font-weight: 600;
  color: var(--c-dark); margin-bottom: 6px;
}
.editorial-desc {
  font-size: var(--t-sm); color: var(--c-muted);
  font-weight: 300; line-height: 1.7; max-width: 44ch;
}

/* ================================================================
   UBICACIÓN — map image + meta chips
================================================================ */
.loc-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: var(--s10); align-items: start;
}
.loc-left {
  display: flex;
  flex-direction: column;
}
.loc-media {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-lg);
}
.loc-media img { width: 100%; height: auto; display: block; }

.loc-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s6);
}
.loc-chip {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
  box-shadow: var(--sh-xs);
}
.loc-chip-label {
  display: block; font-size: var(--t-xs); color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.loc-chip-value { font-size: var(--t-sm); font-weight: 600; color: var(--c-dark); }

.loc-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }
.loc-actions--desktop { display: none; }
.loc-actions--mobile { display: flex; }

@media (min-width: 901px) {
  .loc-actions--desktop {
    display: flex;
  }
  .loc-actions--mobile { display: none; }
}

/* ================================================================
   LOTES — interactive map (Polígono A)
================================================================ */
.lots-sec {
  background: var(--c-alt);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s16) 0;
  margin-top: var(--s8);
}
.lots-layout {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: var(--s4); align-items: start;
  margin-top: var(--s8);
}

.lots-map-card {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: var(--s3);
}
.lots-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s3); flex-wrap: wrap;
  padding: var(--s2) var(--s2) var(--s3);
  font-size: var(--t-sm);
}
.legend { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: var(--t-xs); color: var(--c-muted); }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot--available { background: var(--c-grn); }
.dot--reserved { background: var(--c-amber); }
.dot--sold { background: var(--c-gray-sold); }

.lots-map-frame {
  position: relative;
  aspect-ratio: 2500 / 1875;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #1a1a18;
}
.lots-photo, .lots-context-svg, .lots-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
/* Small zoom on the whole field — keeps the neighboring house community
   fully in frame on the right; kept in sync with the matching viewBox
   crop on .lots-context-svg/.lots-svg. */
.lots-photo {
  background-image: url('../public/satellite-bg.webp');
  background-repeat: no-repeat;
  background-size: 130.72% 130.70%;
  background-position: 96.60% 47.33%;
}

.lot {
  fill: rgba(43, 74, 60, .32);
  stroke: var(--c-grn);
  stroke-width: 5;
  cursor: pointer;
  transition: fill .2s, stroke-width .2s;
}
.lot:hover, .lot:focus-visible { fill: rgba(43, 74, 60, .5); stroke-width: 7; outline: none; }
.lot.selected { fill: rgba(43, 74, 60, .72); stroke: var(--c-dark); stroke-width: 8; }
.lot.reserved { fill: rgba(184, 134, 61, .4); stroke: var(--c-amber); }
.lot.reserved:hover, .lot.reserved.selected { fill: rgba(184, 134, 61, .6); }
.lot.sold { fill: rgba(156, 148, 138, .45); stroke: var(--c-gray-sold); cursor: not-allowed; }
.lot.sold:hover { fill: rgba(156, 148, 138, .45); stroke-width: 5; }

.lot-label {
  font: 700 42px var(--f-body);
  fill: #16241b;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .82);
  stroke-width: 7px;
  stroke-linejoin: round;
  pointer-events: none;
}

.lot-panel {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: var(--s4);
  position: sticky; top: 100px;
}
.status {
  display: inline-flex; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 800;
  background: var(--c-grn-lt); color: var(--c-grn);
}
.status.reserved { background: var(--c-amber-lt); color: var(--c-amber); }
.status.sold { background: var(--c-gray-sold-lt); color: var(--c-gray-sold); }
.lot-title {
  font-family: var(--f-display); font-size: var(--t-2xl);
  font-weight: 400; margin-top: var(--s3);
}
.lot-dl {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s3); margin: var(--s5) 0;
}
.lot-dl dt { font-size: var(--t-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.lot-dl dd { margin-top: 4px; font-weight: 800; font-size: var(--t-base); }

/* ================================================================
   GALERÍA — photo/video mosaic (reuses index-08.html's uses-mosaic pattern)
================================================================ */
.gallery-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px; gap: var(--s2); margin-top: var(--s8);
}
.gallery-mosaic .tile { height: 100%; }
.gallery-mosaic .tile.wide { grid-column: span 2; }
.gallery-mosaic .tile.tall { grid-row: span 2; }

.gallery-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  height: 100%; background: var(--c-alt);
}
.gallery-card--video {
  cursor: pointer;
}
.gallery-card img, .gallery-card video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-spring);
}
.gallery-video {
  display: block;
  background: #10100f;
}
.gallery-card:hover img, .gallery-card:hover video { transform: scale(1.06); }
.gallery-card-info {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,26,24,.72) 0%, transparent 55%);
  padding: var(--s3); display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 1;
  pointer-events: none;
}
.gallery-name {
  font-family: var(--f-display); font-size: var(--t-md);
  font-weight: 400; font-style: italic; color: #fff;
}
.gallery-sub { font-size: var(--t-xs); color: rgba(255,255,255,.7); margin-top: 2px; }

.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--c-grn);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--sh-md);
  z-index: 2;
  transition: transform .25s var(--ease-spring), background .2s;
}
.gallery-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.gallery-card--video.is-playing .play-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  pointer-events: none;
}

/* ================================================================
   OPCIONES DE COMPRA — financing summary card
================================================================ */
.opciones-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s10); align-items: center;
}

.finance-card {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--s5);
}
.finance-price {
  font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400; color: var(--c-dark); line-height: 1; margin-top: var(--s2);
}
.finance-list-price { color: var(--c-muted); margin-top: var(--s1); }
.finance-list-price s { color: #b3aca3; }

.finance-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s2); margin: var(--s5) 0;
}
.finance-cell {
  background: var(--c-alt);
  border-radius: var(--r-md);
  padding: var(--s3);
}
.finance-cell small {
  display: block; font-size: var(--t-xs); color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.finance-cell strong { font-size: var(--t-base); color: var(--c-dark); }

.finance-formal { font-size: var(--t-sm); color: var(--c-body); margin-bottom: var(--s2); }

/* ================================================================
   EXTERIOR — para salvadoreños en el exterior
================================================================ */
.exterior-sec {
  background: var(--c-alt);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s16) 0;
  margin-top: var(--s8);
}
.exterior-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s10); align-items: start;
}

.media-placeholder {
  min-height: 320px; margin-top: var(--s5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--c-border); border-radius: var(--r-xl);
  background: var(--c-surface); color: var(--c-muted);
  text-align: center; padding: var(--s5);
  font-weight: 700;
}
.media-placeholder small { display: block; font-weight: 500; margin-top: var(--s2); font-size: var(--t-xs); }

.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 17px; top: 6px; bottom: 76px;
  width: 1px; background: var(--c-border);
}
.step { position: relative; padding-left: var(--s10); margin-bottom: var(--s5); }
.step .dot {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-grn); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem;
}
.step h3 { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 400; margin-bottom: 4px; }
.step p { color: var(--c-muted); font-size: var(--t-sm); }

/* ================================================================
   CONFIANZA — trust & transparency
================================================================ */
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s4); margin-top: var(--s8);
}
.trust-panel {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--s5);
}
.trust-panel h3 { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 400; margin-bottom: var(--s2); }
.trust-panel > p:not(.form-note) { color: var(--c-muted); }
.trust-fields { margin: var(--s3) 0 var(--s5); line-height: 1.9; }
.trust-fields strong { color: var(--c-dark); }

.checklist {
  list-style: none; margin-top: var(--s8);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s6);
}
.checklist li {
  display: flex; align-items: flex-start; gap: var(--s2);
  padding: var(--s2) 0; border-bottom: 1px solid var(--c-border);
  font-size: var(--t-sm); color: var(--c-body);
}
.check-ico {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--c-grn-lt); color: var(--c-grn);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: .7rem; font-weight: 800;
}

/* ================================================================
   PROCESO — cómo comprar
================================================================ */
.proceso-sec {
  padding: var(--s16) 0;
}
.proceso-timeline { max-width: 640px; margin-top: var(--s8); margin-bottom: var(--s8); }

/* ================================================================
   VISIÓN DE DESARROLLO — Ciudad Calderas
================================================================ */
.today-future {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s3); margin-top: var(--s8);
}
.today-card, .future-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s4);
}
.today-card h3, .future-card h3 {
  font-family: var(--f-display); font-size: var(--t-lg);
  font-weight: 400; margin-bottom: var(--s3);
}
.future-card p { color: var(--c-muted); font-size: var(--t-sm); line-height: 1.75; }
.checklist--single {
  display: block; margin-top: 0;
}
.checklist--single li { border-bottom: none; padding: 8px 0; }

/* ================================================================
   FAQ — accordion
================================================================ */
.faq-sec {
  background: var(--c-alt);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s16) 0;
  margin-top: var(--s8);
}
.faq-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: var(--s10); align-items: start;
}

.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: var(--s3) 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  font-weight: 700; font-size: var(--t-base); color: var(--c-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--c-muted); font-size: var(--t-sm); line-height: 1.7; max-width: 62ch; margin-top: var(--s2); }

.faq-icon {
  flex-shrink: 0; position: relative;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--c-border); background: var(--c-surface);
  transition: transform .3s var(--ease-spring), background .2s;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--c-dark); transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; transition: opacity .2s; }
.faq-item[open] .faq-icon { background: var(--c-grn); border-color: var(--c-grn); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { opacity: 0; }

/* ================================================================
   CONTACTO — CTA band (reused verbatim from index-08.html)
================================================================ */
.cta-band {
  background: var(--c-dark);
  border-radius: var(--r-xl);
  padding: var(--s12) var(--s8);
  display: flex; flex-direction: column; gap: var(--s6);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cta-text { display: grid; justify-items: center; }
.cta-text h2 {
  font-family: var(--f-display); font-size: var(--t-xl);
  font-weight: 400; font-style: italic; color: #fff; line-height: 1.2;
  max-width: 38ch;
}
.cta-text p { font-size: var(--t-sm); color: rgba(255,255,255,.5); margin-top: var(--s2); max-width: 50ch; }
.cta-acts {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

#contacto.sec {
  min-height: clamp(640px, 78vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

#contacto .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   FOOTER — reused verbatim from index-08.html
================================================================ */
.footer {
  background: var(--c-dark);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s12) 0 var(--s6);
  margin-top: var(--s8);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s8);
  padding-bottom: var(--s8); border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: var(--s5);
}
.f-logo {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 400;
  color: #fff; margin-bottom: var(--s3); line-height: 1.25;
}
.f-logo em { font-style: normal; color: #7BA88C; }
.f-logo-mark { height: 30px; width: auto; flex-shrink: 0; margin-top: 4px; }
.f-tagline { font-size: var(--t-sm); color: rgba(255,255,255,.4); line-height: 1.7; max-width: 32ch; }

.f-col h5 {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: var(--s3);
}
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 10px; }
.f-col a { font-size: var(--t-sm); color: rgba(255,255,255,.55); transition: color .2s; }
.f-col a:hover { color: #fff; }

.f-bottom { font-size: var(--t-xs); color: rgba(255,255,255,.35); }
.f-legal { font-size: var(--t-xs); color: rgba(255,255,255,.22); margin-top: var(--s3); line-height: 1.7; max-width: 90ch; }

/* ================================================================
   DRAWERS — slide-in forms
================================================================ */
body.lock { overflow: hidden; }

.drawer {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  opacity: 0; visibility: hidden;
  overflow: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.drawer.open { display: block; opacity: 1; visibility: visible; transition: opacity .3s; }

.drawer-backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.55); cursor: pointer; }

.drawer-panel {
  position: absolute; top: 0; right: 0;
  width: min(520px, 100%); height: 100%;
  background: var(--c-bg); padding: var(--s5);
  overflow-y: auto;
  box-shadow: -20px 0 50px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .4s var(--ease-spring);
}
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s3); margin-bottom: var(--s5);
}
.drawer-head h2 {
  font-family: var(--f-display); font-size: 1.8rem; font-weight: 400;
  margin-top: var(--s2);
}
.icon-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--c-grn-lt); border-color: var(--c-grn); }

.drawer form { display: grid; gap: var(--s3); }
.drawer form label { font-weight: 700; font-size: .88rem; display: grid; gap: 6px; color: var(--c-dark); }
.drawer input, .drawer select, .drawer textarea {
  width: 100%; border: 1px solid var(--c-border); background: #fff;
  padding: 13px 14px; border-radius: var(--r-md);
  color: var(--c-dark); font-family: var(--f-body); font-weight: 500;
}
.drawer textarea { min-height: 100px; resize: vertical; }
.drawer .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 500; font-size: .85rem; color: var(--c-muted);
}
.consent input { width: auto; margin-top: 4px; }

.drawer-success {
  padding: var(--s5); border-radius: var(--r-lg);
  background: var(--c-grn-lt); border: 1px solid #bad4c0;
}
.drawer-success h2 { font-size: 1.6rem; margin-top: var(--s1); }
.drawer-success p { color: var(--c-body); margin-top: var(--s2); }
.drawer-success .btn { margin-top: var(--s4); }

/* ================================================================
   RESPONSIVE
   Breakpoints: 1024 (small desktop/tablet landscape), 900 (nav
   collapses to hamburger), 640 (large phone), 400 (small phone).
   Mobile-first overrides re-declare properties at matching
   specificity so later media queries win predictably.
================================================================ */
@media (max-width: 1024px) {
  .hero-inner { padding: var(--s10) var(--s5) var(--s12); }
  .hero-h1 { max-width: 20ch; }
}

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .menu-btn { display: flex; }
  .nav { height: 58px; }
  .nav { padding: 0 var(--s2); }
  .nav-logo { max-width: calc(100% - 56px); }
  .nav-logo-text { font-size: 1.02rem; }
  .nav-logo-mark { height: 30px; }
  .nav-links-mobile { top: 74px; }
}

@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr; gap: var(--s8); }
  .proj-copy { position: static; top: auto; }
  .editorial-list { padding-top: 0; padding-bottom: 0; }
  .editorial-item { position: static; top: auto; z-index: auto; }
  .editorial-item + .editorial-item { margin-top: 0; }
  .loc-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .loc-grid > .rv:not(.loc-actions--mobile) { order: 1; }
  .loc-left { order: 2; margin-top: var(--s3); }
  .loc-actions--mobile { order: 3; }
  .loc-actions--desktop { display: none; }
  .loc-actions--mobile { display: flex; margin-top: 0; }
  .loc-meta { grid-template-columns: 1fr; margin-top: var(--s4); }
  .lots-layout { grid-template-columns: 1fr; }
  .lot-panel { position: static; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
  .opciones-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .exterior-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .trust-grid { grid-template-columns: 1fr; }
  .today-future { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: 580px; }
  .hero-inner { padding: var(--s8) var(--s3) var(--s10); }
  .hero-h1 { max-width: 18ch; }
  .hero-lead { max-width: 44ch; }
  .scroll-hint { display: none; }

  .hero-stats-wrap { margin-top: calc(-1 * var(--s6)); }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--s3) var(--s2);
    padding: var(--s3);
  }
  .stat-card:nth-child(n+2) { border-left: none; }
  .stat-card:nth-child(2n) { border-left: 1px solid var(--c-border); }
  .stat-card:nth-child(n+3) { border-top: 1px solid var(--c-border); padding-top: var(--s3); }

  .proj-sec { padding: var(--s10) 0; }
  .editorial-item { padding: var(--s3); }
  .link-arrow--ref {
    min-width: 100%;
    width: 100%;
    font-size: clamp(1rem, 4vw, 1.08rem);
    padding: 16px 18px;
  }

  .sec { padding: var(--s10) 0; }
  .lots-sec { padding: var(--s10) 0; }
  .lots-map-card { padding: var(--s2); }
  .gallery-mosaic { grid-auto-rows: 220px; }
  .finance-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: var(--s3);
  }
  .finance-grid { grid-template-columns: 1fr; }
  .finance-cell strong {
    display: block;
    overflow-wrap: anywhere;
  }
  .exterior-sec { padding: var(--s10) 0; }
  .media-placeholder { min-height: 220px; }
  .trust-panel { padding: var(--s3); }
  .checklist { grid-template-columns: 1fr; }
  .proceso-sec { padding: var(--s10) 0; }
  .faq-sec { padding: var(--s10) 0; }
  .faq-item summary { font-size: var(--t-sm); }
  .cta-band { padding: var(--s8) var(--s5); }
  .cta-acts .btn { flex: 1 1 100%; justify-content: center; }
  #contacto.sec {
    min-height: unset;
    display: grid;
    place-items: center;
    padding: var(--s5) 0 !important;
  }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .footer { padding: var(--s8) 0 var(--s5); }
  .drawer-panel { padding: var(--s3); }
  .drawer .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .lot-dl { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-mosaic .tile.wide,
  .gallery-mosaic .tile.tall { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 400px) {
  .loc-meta { grid-template-columns: 1fr; }
  .finance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { height: 54px; }
  .nav-links-mobile {
    top: 70px; left: 10px; right: 10px; max-width: none;
    max-height: calc(100svh - 84px);
    overflow-y: auto;
  }
  .nav-logo-mark { height: 26px; }
  .nav-actions .btn-label-full { display: none; }
  .nav-actions .btn-label-short { display: inline; }
  .nav-actions .btn { padding: 9px 16px; }

  .hero-badge { font-size: .68rem; padding: 7px 14px; }
  .hero-actions {
    gap: var(--s1);
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust { margin-top: var(--s2); }
  .hero-lead--below { margin-top: var(--s3); }
  .lots-layout { margin-top: var(--s6); }
  .play-btn {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .nav { padding: 0 10px; }
  .nav-logo-text { display: none; }
  .nav-actions .btn .arrow { display: none; }

  .hero { min-height: 520px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .hero-h1 { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .hero-stats { grid-template-columns: 1fr; padding: var(--s3); }
  .stat-card:nth-child(n+2) { border-left: none; border-top: 1px solid var(--c-border); padding-top: var(--s3); margin-top: var(--s2); }
}

@media (max-height: 480px) and (max-width: 900px) {
  .hero { height: auto; min-height: 460px; }
  .hero-inner { padding: var(--s5) var(--s3); }
  .scroll-hint { display: none; }
}
