/* =============================================================
   0. Custom fonts
   ============================================================= */
@font-face {
  font-family: 'Consolas';
  src: url('assets/fonts/CONSOLA.TTF') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Consolas';
  src: url('assets/fonts/CONSOLAB.TTF') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Consolas';
  src: url('assets/fonts/CONSOLAI.TTF') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Consolas';
  src: url('assets/fonts/CONSOLAZ.TTF') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg-deep:       #050302;
  --bg-soft:       #0f0904;
  --bg-card:       rgba(15, 9, 4, 0.82);
  --cream:         #f4ead5;
  --cream-2:       #ddd2bc;
  --cream-3:       rgba(244, 234, 213, 0.55);
  --accent:        #8B5E3C;
  --accent-2:      #a88636;
  --accent-dim:    rgba(201, 168, 82, 0.15);
  --line:          rgba(244, 234, 213, 0.1);
  --line-strong:   rgba(244, 234, 213, 0.2);
  --serif:         'Cormorant Garamond', Georgia, serif;
  --sans:          'Consolas', 'Inter', system-ui, sans-serif;
  --mono:          'Consolas', 'JetBrains Mono', 'Courier New', monospace;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h:         72px;
  --gutter:        clamp(1.25rem, 5vw, 3rem);
  --max-w:         1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  font-size: 17px;
}
/* Bump the root size further on mobile — all type is rem-based, so
   readability scales up everywhere (nav, body copy, labels) at once. */
@media (max-width: 720px) { html { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg-deep); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: .6rem 1.2rem; background: var(--cream); color: var(--bg-deep);
  z-index: 9999; border-radius: 4px; font-weight: 500; font-size: .875rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-2); margin-bottom: 1.25rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--cream-2); }

.section-desc {
  color: var(--cream-3);
  max-width: 56ch;
  font-size: .9rem;
  line-height: 1.7;
}
.section-desc code {
  font-family: var(--mono);
  font-size: .8em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: .1em .4em;
  border-radius: 3px;
}

.section-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-family: var(--mono);
  letter-spacing: .05em;
  color: var(--accent);
  margin-top: 1.25rem;
  transition: gap .25s var(--ease-out);
}
.link-arrow:hover { gap: .9rem; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease-out), color .2s, transform .15s var(--ease-out), box-shadow .2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,82,.25);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: .6rem 1.4rem; font-size: .68rem; }
.btn-full { width: 100%; }
.btn-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.btn-label, .btn-sending, .btn-sent { transition: opacity .2s; }
.btn-sending, .btn-sent { position: absolute; opacity: 0; }
.is-sending .btn-label { opacity: 0; }
.is-sending .btn-sending { opacity: 1; position: static; }
.is-sent    .btn-label  { opacity: 0; }
.is-sent    .btn-sent   { opacity: 1; position: static; }

/* =============================================================
   6a. Video background + Three.js canvas + contrast layers
   ============================================================= */

/* Video scroll-scrubbed background */
.video-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
@media (max-width: 720px) {
  /* On narrow portrait screens a 16:9 video shrinks to a thin strip under
     `contain` — fill the screen and crop the sides instead. */
  .video-bg { object-fit: cover; }
}

/* Three.js sits on top of video as subtle wireframe overlay */
#three-canvas {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;   /* transparent so video shows through */
  mix-blend-mode: screen;
}
.scrim {
  display: none;
  position: fixed; inset: 0; z-index: 1;
  background: rgba(5, 3, 2, 0.28);
  pointer-events: none;
}
.vignette {
  display: none;
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(5,3,2,.45) 65%, rgba(5,3,2,.88) 100%),
    linear-gradient(180deg, rgba(5,3,2,.5) 0%, transparent 28%, transparent 72%, rgba(5,3,2,.65) 100%);
  pointer-events: none;
}
.grain {
  display: none;
  position: fixed; inset: 0; z-index: 2;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* =============================================================
   6b. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  transition: opacity .7s var(--ease-out), clip-path .8s var(--ease-out);
  animation: splashSafety .01s 4.8s forwards;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
.splash-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.splash-line {
  width: 48px; height: 1px;
  background: var(--accent);
  transform-origin: left;
  animation: splashLineIn .6s var(--ease-out) .1s both;
}
@keyframes splashLineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.splash-logo {
  height: clamp(120px, 22vw, 260px);
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  animation: splashFadeUp .7s var(--ease-out) .3s both;
}
.splash-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: .15em;
  animation: splashFadeUp .7s var(--ease-out) .3s both;
}
.splash-sub {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  color: var(--accent);
  animation: splashFadeUp .7s var(--ease-out) .5s both;
}
@keyframes splashFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =============================================================
   6c. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  z-index: 100;
  transition: background .4s var(--ease-out), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(5, 3, 2, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-color: var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  mix-blend-mode: lighten;
  clip-path: inset(12%);
  transform: scale(1.28);
  transform-origin: center;
  flex-shrink: 0;
}
.nav-logo-mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .1em;
  color: var(--accent);
  line-height: 1;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  gap: 2rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--cream-2);
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--accent);
  transition: right .25s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  display: none;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg-deep); }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: .2rem;
  background: none; border: 1px solid rgba(255,255,255,.25);
  color: var(--cream); font-size: .6rem; letter-spacing: .12em;
  padding: .3rem .65rem; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle.is-en { color: var(--accent); border-color: var(--accent); }
.lang-flag-img { width: 1.1rem; height: auto; display: inline-block; vertical-align: middle; border-radius: 2px; margin-right: .25rem; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.wa-float svg { width: 1.7rem; height: 1.7rem; }
@media (max-width: 540px) {
  .wa-float { width: 3rem; height: 3rem; bottom: 1rem; right: 1rem; }
  .wa-float svg { width: 1.5rem; height: 1.5rem; }
}

.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.nav-burger span {
  display: block; height: 1px; background: var(--cream);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-burger.is-open span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(5,3,2,.97);
  z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
  backdrop-filter: blur(20px);
}
.nav-mobile.is-open { transform: none; }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream-2);
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--accent); }

/* =============================================================
   6d. Hero
   ============================================================= */
.hero {
  position: relative; z-index: 3;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  padding-inline: var(--gutter);
}
.hero-inner { max-width: 760px; width: 100%; box-sizing: border-box; }
.hero-kicker { margin-bottom: 1.5rem; }
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4.2vw, 4.2rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--cream-2); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--cream-2);
  max-width: 46ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }

.hero-scroll {
  display: flex; align-items: center; gap: .75rem;
  color: var(--cream-3);
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero-scroll-line {
  width: 48px; height: 1px; background: var(--cream-3);
  transform-origin: left;
  animation: lineBreath 2.4s ease-in-out infinite;
}
@keyframes lineBreath {
  0%, 100% { transform: scaleX(1); opacity: .4; }
  50%       { transform: scaleX(1.5); opacity: 1; }
}

/* =============================================================
   6e. Ticker
   ============================================================= */
.ticker {
  position: relative; z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: .85rem;
}
.ticker-track {
  display: flex; gap: 2rem; white-space: nowrap;
  animation: tickerMove 28s linear infinite;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-3);
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-dot { color: var(--accent); }

/* =============================================================
   6f. Sections base
   ============================================================= */
.section-desarrollos,
.section-lotes,
.section-tours,
.section-galeria,
.section-sobre,
.section-calc,
.section-guia,
.section-faq,
.section-contacto {
  position: relative; z-index: 3;
  padding-block: clamp(2rem, 5vw, 4rem);
}

/* blank video-break spacer */
.section-video-break {
  height: 100vh;
  pointer-events: none;
}
/* the intro one (before chapter 1) is sized on its own so chapter 1 starts
   right at the background video's indígena→jaguar cut (~t=6s in bg-scrub.mp4) */
.section-video-break--intro {
  height: 322.9vh;
}

/* subtle section separator */
.section-desarrollos {
  border-top: 1px solid var(--line);
}
.section-lotes        { border-top: 1px solid var(--line); background: rgba(5,3,2,.18); }
.section-tours        { border-top: 1px solid var(--line); padding-bottom: clamp(3rem, 6vw, 5rem); }
.section-galeria      { border-top: 1px solid var(--line); background: rgba(5,3,2,.15); }
.section-sobre        { border-top: 1px solid var(--line); background: rgba(5,3,2,.45); }
.section-calc         { border-top: 1px solid var(--line); background: rgba(5,3,2,.28); }
.section-guia         { border-top: 1px solid var(--line); background: rgba(5,3,2,.32); }
.section-proceso      { position: relative; z-index: 3; border-top: 1px solid var(--line); background: rgba(5,3,2,.42); padding-top: clamp(5rem, 10vw, 7rem); }
.section-faq          { border-top: 1px solid var(--line); background: rgba(5,3,2,.38); }
.section-contacto     { border-top: 1px solid var(--line); background: rgba(5,3,2,.22); }

/* Proceso */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 920px;
  margin: 3rem auto 0;
  position: relative;
}
.proceso-grid::before {
  content: "";
  position: absolute;
  top: 27px; left: 16.5%; right: 16.5%; height: 1px;
  background: var(--line-strong);
}
.proceso-step { text-align: center; position: relative; }
.proceso-num {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin: 0 auto 1.3rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--accent-2);
  font-size: 1rem;
  position: relative; z-index: 1;
}
.proceso-step h4 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--cream); margin-bottom: .6rem; }
.proceso-step p { font-family: var(--mono); font-size: .95rem; line-height: 1.75; color: var(--cream-3); max-width: 280px; margin-inline: auto; }
@media (max-width: 720px) {
  .proceso-grid { grid-template-columns: 1fr; gap: 2rem; }
  .proceso-grid::before { display: none; }
}

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid var(--line); background: var(--bg-card); border-radius: 2px; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif); font-size: 1.05rem; color: var(--cream);
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.2rem; color: var(--accent);
  flex-shrink: 0; transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item:hover summary { color: var(--accent); }
.faq-item p { padding: 0 1.4rem 1.3rem; color: var(--cream-2); line-height: 1.7; font-size: .92rem; }
.faq-item p strong { color: var(--cream); }
@media (max-width: 540px) {
  .faq-item summary { font-size: .95rem; padding: 1rem 1.1rem; }
  .faq-item p { padding: 0 1.1rem 1.1rem; font-size: .88rem; }
}

/* =============================================================
   6g. Desarrollos
   ============================================================= */
.desarrollos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.desarrollo-card {
  display: grid; grid-template-columns: 1fr;
  background: transparent;
  border: none;
  overflow: visible;
  transition: border-color .3s;
  padding-block: 0.5rem;
}
.desarrollo-card .desarrollo-inner {
  width: 55%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s;
}
.desarrollo-card:hover .desarrollo-inner { border-color: var(--accent); }
.desarrollo-card:hover { border-color: var(--accent); }
.desarrollo-img-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
/* 50% opacity on all thumbnails */
.desarrollo-img-wrap img,
.lote-img-wrap img,
.tour-preview img,
.galeria-item img,
.sobre-img img {
  opacity: 0.5;
  transition: opacity .4s, transform .6s var(--ease-out);
}
.desarrollo-card:hover .desarrollo-img-wrap img,
.lote-card:hover .lote-img-wrap img,
.tour-card:hover .tour-preview img,
.galeria-item:hover img,
.sobre-img:hover img {
  opacity: 0.75;
}

.desarrollo-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .4s;
  filter: saturate(.9) brightness(.5);
}
.desarrollo-card:hover .desarrollo-img-wrap img {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(.95);
}
.desarrollo-body {
  padding: 0.75rem 1rem;
}
.desarrollo-etiqueta { color: var(--accent); margin-bottom: .75rem; }
.desarrollo-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
.desarrollo-body p { color: var(--cream-2); line-height: 1.7; font-size: .9rem; }

/* =============================================================
   6h. Lotes
   ============================================================= */
.lotes-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cream-3);
  transition: border-color .2s, color .2s, background .2s;
}
.filter-btn:hover, .filter-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.lotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5px;
  margin-bottom: 3rem;
}
.lote-card {
  display: grid; grid-template-columns: 1fr;
  background: transparent;
  border: none;
  transition: opacity .3s, transform .3s;
  overflow: visible;
  padding-block: 0.5rem;
}
.lote-card .lote-inner {
  width: 55%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s;
}
.lote-card:hover .lote-inner { border-color: var(--accent); }
.lote-card:not([data-disponible="true"]) { opacity: .55; }
.lote-card.is-hidden { display: none; }
.lote-featured.is-hidden { display: none; }
.lotes-stats.is-hidden { display: none; }
.lote-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.lote-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
  filter: brightness(.5);
}
.lote-card:hover .lote-img-wrap img { transform: scale(1.05); }
.lote-img-wrap--video { cursor: pointer; }
.lote-video { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.7); }
.lote-video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--cream); background: rgba(0,0,0,.3); transition: opacity .3s;
}
.lote-video-play svg { width: 3rem; height: 3rem; }

/* Proyecto destacado sección 02 */
.lote-featured { border: 1px solid var(--line); overflow: hidden; width: 100%; margin: 0 auto; }
.lote-featured-video-wrap {
  position: relative; width: 100%;
  overflow: hidden; cursor: pointer;
  background: #000;
}
.lote-featured-video { width: 100%; height: auto; display: block; }
.lote-featured-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--cream); background: rgba(0,0,0,.3); transition: opacity .3s;
}
.lote-featured-play svg { width: 4rem; height: 4rem; }
.lote-featured-body {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-top: 1px solid var(--line);
}
.lote-featured-body .lote-zona { margin: 0; font-size: .75rem; }
.lote-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 2px;
}
.lote-badge--disponible { background: rgba(201,168,82,.9); color: var(--bg-deep); }
.lote-badge--vendido    { background: rgba(200,50,50,.85); color: #fff; }

.lote-body { padding: 0.75rem 1rem; }
.lote-zona { color: var(--accent); margin-bottom: .5rem; }
.lote-body h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.lote-area {
  font-family: var(--mono); font-size: .72rem;
  color: var(--cream-2); margin-bottom: 1rem;
}
.lote-features {
  display: flex; flex-direction: column; gap: .35rem;
  margin-bottom: 1.25rem;
}
.lote-features li {
  font-size: .82rem; color: var(--cream-3);
  padding-left: .9rem; position: relative;
}
.lote-features li::before {
  content: '◆';
  position: absolute; left: 0;
  color: var(--accent); font-size: .45rem;
  top: .35em;
}

.lotes-stats {
  display: flex; flex-wrap: wrap; gap: 2px;
  border: 1px solid var(--line);
}
.lote-stat {
  flex: 1 1 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.stat-num {
  font-size: 2.5rem;
  color: var(--accent);
  letter-spacing: -.02em;
  display: block;
  margin-bottom: .4rem;
}
.stat-label { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); text-align: center; }

/* =============================================================
   6i. Tours 3D
   ============================================================= */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.tour-card { overflow: hidden; border: 1px solid var(--line); transition: border-color .3s; }
.tour-card:hover { border-color: var(--accent); }
.tour-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.tour-preview img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .4s;
  filter: brightness(.5) saturate(.7);
}
.tour-card:hover .tour-preview img { transform: scale(1.04); filter: brightness(.5); }
.tour-preview--video .tour-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-overlay--play { transition: opacity .3s; cursor: pointer; background: rgba(0,0,0,.35); }

/* ── Tour card carousel ───────────────────────────────── */
.tour-card--carousel { overflow: visible; }
.tc-carousel { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.tc-track { display: flex; width: 100%; height: 100%; transition: transform .4s cubic-bezier(.25,.46,.45,.94); }
.tc-slide {
  flex: 0 0 100%; height: 100%;
  position: relative; overflow: hidden;
}
.tc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); cursor: pointer;
  background: rgba(0,0,0,.35);
  transition: opacity .3s;
}
.tc-play-btn svg { width: 3.5rem; height: 3.5rem; }
.tc-play-btn.is-playing { opacity: 0; pointer-events: none; }
.tc-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: var(--cream);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  width: 2.4rem; height: 2.4rem; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  z-index: 5;
}
.tc-btn:hover { background: var(--accent); border-color: var(--accent); }
.tc-btn--prev { left: .6rem; }
.tc-btn--next { right: .6rem; }
.tc-counter {
  position: absolute; bottom: .6rem; right: .8rem;
  font-size: .65rem; color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.4); padding: .15rem .45rem; border-radius: 2px;
}
.tc-slide--pdf { background: #111; display: flex; }
.tc-pdf-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem; width: 100%; height: 100%; padding: 2rem;
  text-decoration: none; transition: background .25s;
}
.tc-pdf-card:hover { background: rgba(139,94,60,.08); }
.tc-pdf-card svg { width: 5rem; height: 6.25rem; }
.tc-pdf-name { color: rgba(255,255,255,.75); font-size: .72rem; text-align: center; }
.tc-pdf-cta {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--accent);
  padding-bottom: .15rem; transition: opacity .2s;
}
.tc-pdf-card:hover .tc-pdf-cta { opacity: .7; }
.tour-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.tour-play {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  color: var(--cream);
  transition: transform .3s var(--ease-out), color .2s;
}
.tour-play svg { width: 56px; opacity: .85; }
.tour-card:hover .tour-play { transform: scale(1.08); color: var(--accent); }
.tour-label { padding: .85rem 1rem .4rem; font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; color: var(--cream-3); }
.tour-details { padding: .85rem 1rem .4rem; }
.tour-details .tour-label { padding: 0 0 .3rem; font-size: .7rem; color: var(--cream); }
.tour-area { font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; color: var(--accent); margin-bottom: .5rem; }
.tour-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .5rem; }
.tour-specs li { font-family: var(--mono); font-size: .58rem; letter-spacing: .05em; color: var(--cream-3); }
.tour-specs li::before { content: "— "; color: var(--accent); }
.tour-info-btn {
  display: block; margin: 0 1rem .85rem;
  padding: .45rem 0; text-align: center;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, color .2s;
}
.tour-info-btn:hover { background: var(--accent); color: var(--cream); }

/* Modal */
.tour-modal {
  border: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 0;
  width: min(90vw, 900px);
  aspect-ratio: 16 / 9;
  max-width: 900px;
}
.tour-modal::backdrop { background: rgba(5,3,2,.9); backdrop-filter: blur(8px); }
/* Garantiza que ningún diálogo cerrado muestre contenido */
dialog:not([open]) { display: none !important; visibility: hidden !important; }

.tour-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  color: var(--cream); font-size: 1.1rem; z-index: 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,3,2,.8); border-radius: 50%;
  transition: color .2s, background .2s;
}
.tour-modal-close:hover { color: var(--accent); background: rgba(5,3,2,1); }
#tour-iframe { width: 100%; height: 100%; border: 0; }

/* PDF modal */
.pdf-modal {
  border: 1px solid var(--line); background: #1a1a1a;
  padding: 0; width: 92vw; height: 92vh; max-width: 1100px;
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  overflow: hidden;
}
.pdf-modal[open] { display: flex; flex-direction: column; }
.pdf-modal::backdrop { background: rgba(5,3,2,.92); backdrop-filter: blur(8px); }
.pdf-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; border-bottom: 1px solid var(--line);
  background: #111; flex-shrink: 0; gap: 1rem;
}
.pdf-modal-title { font-size: .65rem; color: rgba(255,255,255,.5); flex: 1; }
.pdf-modal-nav { display: flex; align-items: center; gap: .75rem; }
.pdf-nav-btn {
  background: none; border: 1px solid var(--line); color: var(--cream);
  width: 1.8rem; height: 1.8rem; cursor: pointer; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.pdf-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.pdf-page-info { font-size: .65rem; color: rgba(255,255,255,.6); }
.pdf-modal-close {
  background: none; border: 1px solid var(--line);
  color: var(--cream); font-size: .9rem; width: 1.8rem; height: 1.8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s; flex-shrink: 0;
}
.pdf-modal-close:hover { color: var(--accent); border-color: var(--accent); }
.pdf-canvas-wrap {
  flex: 1; overflow: auto; display: flex;
  align-items: flex-start; justify-content: center;
  padding: 1rem; background: #222;
}
#pdf-canvas { max-width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,.5); }

/* Lightbox imágenes */
.img-lightbox {
  background: rgba(0,0,0,.95); border: none; padding: 0;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.img-lightbox[open] { display: flex; }
.img-lightbox::backdrop { background: rgba(0,0,0,.95); }
.img-lightbox-close {
  position: absolute; top: 1rem; right: 1.2rem; z-index: 10;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2);
  color: var(--cream); font-size: 1rem; width: 2.2rem; height: 2.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s;
}
.img-lightbox-close:hover { color: var(--accent); border-color: var(--accent); }
#img-lightbox-img {
  max-width: 95vw; max-height: 92vh;
  object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.tc-slide img { cursor: zoom-in; }

/* =============================================================
   6j. Galería
   ============================================================= */
.galeria-grid {
  display: none;
}
.galeria-grid.is-visible {
  display: block;
  margin-top: 1.5rem;
}

/* ── Carousel ─────────────────────────────────────────────── */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 2.5rem; /* space for counter */
}
.carousel-track {
  display: flex;
  align-items: center;
  /* width intentionally wide so adjacent slides are reachable */
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.carousel-track:active { cursor: grabbing; }

.carousel-slide {
  flex: 0 0 80%; /* each slide = 80% of wrapper */
  margin: 0 2%; /* 4% total horizontal gap per slide → 84% per item */
  opacity: 0.5;
  transform: scale(0.92);
  transition: opacity .4s, transform .4s cubic-bezier(.25,.46,.45,.94);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  display: block;
  border: 1px solid var(--line);
}
.carousel-caption {
  font-size: .6rem;
  color: var(--text-dim);
  margin-top: .5rem;
  text-align: center;
  letter-spacing: .08em;
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 1.2rem);
  transform: none;
  background: rgba(5,3,2,.65);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  width: 2.2rem; height: 2.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
  line-height: 1;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn--prev { left: .4rem; }
.carousel-btn--next { right: .4rem; }
.carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8rem;
  border: 1px solid var(--line);
  color: var(--text-dim);
  letter-spacing: .15em;
  font-size: .6rem;
  margin-top: .5rem;
}
.carousel-counter {
  text-align: center;
  font-size: .6rem;
  color: var(--text-dim);
  margin-top: .6rem;
  letter-spacing: .1em;
  position: absolute;
  bottom: .4rem;
  left: 0; right: 0;
}
.vid-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem; color: #fff; opacity: .8;
  pointer-events: none; text-shadow: 0 0 12px rgba(0,0,0,.6);
}
.vid-thumb-placeholder {
  width: 100%; aspect-ratio: 1/1; background: rgba(139,94,60,.2);
}
.galeria-item {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  max-height: 180px;
}
.galeria-item:first-child { grid-column: span 2; aspect-ratio: 2 / 1; max-height: 180px; }
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .4s;
  filter: brightness(.5) saturate(.85);
}
.galeria-item:hover img { transform: scale(1.05); filter: brightness(.65) saturate(1.1); }
.galeria-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(5,3,2,.85));
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
  font-size: .85rem;
}
.galeria-item figcaption .mono { font-size: .62rem; color: var(--accent); }
.galeria-item:hover figcaption { transform: none; }

/* Proyectos nav */
.proyectos-nav-outer {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 0 3.5rem;
}
.proyectos-nav-track {
  display: flex;
  gap: 1.2rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.proyectos-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  width: calc(50% - 0.6rem);
}
.proyectos-nav-track.is-shifted {
  transform: translateX(calc(-50% - 0.6rem));
}
.proy-expand-btn--left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: background .2s, color .2s, opacity .3s;
}
.proyectos-nav-track.is-shifted ~ .proy-expand-btn--left {
  opacity: 1;
  pointer-events: auto;
}
.proyectos-nav-track.is-shifted ~ .proy-expand-btn--right {
  opacity: 0;
  pointer-events: none;
}
.proy-expand-btn--right {
  transition: background .2s, color .2s, opacity .3s;
}
.proy-expand-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--accent);
  background: rgba(139,94,60,.15);
  color: var(--cream);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  z-index: 2;
  letter-spacing: 0;
}
.proy-expand-btn:hover { background: rgba(139,94,60,.35); color: var(--accent); }
.proy-btn {
  font-family: var(--mono);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: var(--cream-3);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}
.proy-btn:hover { border-color: var(--accent); color: var(--accent); }
.proy-btn.is-active { border-color: var(--accent); color: var(--cream); background: rgba(139,94,60,.15); }

/* ── TEST: Slideshow sección 01 ── */
.s01-slideshow {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.s01-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .9s ease;
}
.s01-slideshow--portrait .s01-slide {
  background-size: contain;
  background-repeat: no-repeat;
}
.s01-slide--a { opacity: 1; z-index: 2; }
.s01-slide--b { opacity: 0; z-index: 1; }
.s01-slide-label {
  position: absolute;
  bottom: 1.2rem;
  left: 1.5rem;
  z-index: 5;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .8;
}
.s01-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--cream);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.s01-arrow:hover { background: rgba(139,94,60,.7); border-color: var(--accent); }
.s01-arrow--prev { left: 1.2rem; }
.s01-arrow--next { right: 1.2rem; }
@media (max-width: 540px) {
  .s01-slideshow {
    width: calc(100% + 2 * var(--gutter));
    margin-left: calc(-1 * var(--gutter));
    aspect-ratio: 4 / 3;
  }
}

/* Instagram CTA */
.instagram-cta {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 3rem var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}
.instagram-cta p { color: var(--accent); margin-bottom: .5rem; }
.instagram-btn {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em;
  color: var(--cream);
  padding: .85rem 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color .25s, color .25s, background .25s, transform .2s var(--ease-out);
}
.instagram-btn svg { width: 20px; flex-shrink: 0; }
.instagram-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* =============================================================
   6k. Sobre
   ============================================================= */
/* Layout principal: kicker / título / contenido | mapa alineado con contenido */
.sobre-layout {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(2.5rem, 5vw, 4rem);
  row-gap: 0;
  align-items: start;
}
.sobre-kicker  { margin-bottom: .5rem; }
.sobre-titulo  { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 720px) {
  .sobre-layout {
    grid-template-columns: 1fr 0.7fr;
    grid-template-rows: auto auto auto;
  }
  .sobre-kicker  { grid-column: 1; grid-row: 1; }
  .sobre-titulo  { grid-column: 1; grid-row: 2; }
  .sobre-grid    { grid-column: 1; grid-row: 3; }
  .sobre-mapa    { grid-column: 2; grid-row: 3; }
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.sobre-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.sobre-img img { width: 100%; height: 100%; object-fit: cover; opacity: 1 !important; filter: none; }
.sobre-img-tag {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(5,3,2,.85); color: var(--accent);
  padding: .4rem .85rem; font-size: .65rem; letter-spacing: .1em;
}
.sobre-content { display: flex; flex-direction: column; justify-content: center; }
.sobre-texto { color: var(--cream-2); max-width: 52ch; margin-bottom: 2.5rem; line-height: 1.75; }

.sobre-valores { display: flex; flex-direction: column; gap: 1.5rem; }

/* Mapa Colombia */
.sobre-mapa { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.colombia-map {
  width: 100%;
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.5));
}
.col-shape {
  fill: rgba(139,94,60,.18);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.col-pin {
  fill: #e07b4a;
  opacity: .85;
  cursor: pointer;
  transition: r .2s, opacity .2s;
}
.col-pin:hover { opacity: 1; }
.col-pin--main { fill: #e07b4a; opacity: 1; }
.mapa-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem .8rem;
  list-style: none;
  padding: 0; margin: 0;
  font-size: .58rem;
  letter-spacing: .06em;
  color: var(--cream-3);
  width: 100%;
  max-width: 260px;
}
.mapa-lista li::before { content: "— "; color: var(--accent); }
.valor {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.valor:last-child { border-bottom: 0; }
.valor-num { color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.valor h4 {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  margin-bottom: .35rem;
}
.valor p { font-size: .875rem; color: var(--cream-2); line-height: 1.65; }

/* =============================================================
   6l. Contacto
   ============================================================= */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 8vw, 6rem);
}
.contacto-info .section-title { margin-top: 1rem; }
.contacto-info > p { color: var(--cream-2); margin-bottom: 2rem; max-width: 40ch; }

.contacto-links {
  display: flex; flex-direction: column; gap: .75rem;
}
.contacto-link {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-2);
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.contacto-link svg { width: 18px; flex-shrink: 0; }
.contacto-link:hover { color: var(--accent); border-color: var(--accent); }

/* Form */
.contacto-form {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-3);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(244,234,213,.04);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans); font-size: .9rem;
  padding: .85rem 1rem;
  border-radius: 2px;
  transition: border-color .2s, background .2s;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--cream-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(201,168,82,.05);
}
.form-group select { cursor: pointer; }
.form-group select option { background: #1a100a; color: var(--cream); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* =============================================================
   6l-bis. Guía gratuita
   ============================================================= */
.guia-info .section-title { margin-top: 1rem; }
.guia-info > .section-desc { margin-bottom: 1.75rem; }
.guia-list { display: flex; flex-direction: column; gap: .65rem; }
.guia-list li {
  color: var(--cream-2); font-size: .68rem; letter-spacing: .04em;
  padding-left: 1.1rem; position: relative;
}
.guia-list li::before { content: "—"; color: var(--accent); position: absolute; left: 0; }
.guia-form-note { color: var(--cream-3); text-align: center; opacity: .8; }
.guia-form-note.is-error { color: var(--accent-2); opacity: 1; }
.guia-form-consent { color: var(--cream-3); text-align: center; opacity: .8; margin-bottom: .8rem; font-size: .62rem; }
.guia-form-consent a { color: var(--accent); text-decoration: underline; }
.guia-form-consent a:hover { color: var(--accent-2); }

.guia-card {
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 3px;
}
.guia-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--cream-2); border: 1px solid var(--accent);
  padding: .4rem .85rem; border-radius: 2px;
  margin-bottom: 1.25rem;
}
.guia-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.btn-icon { width: 15px; height: 15px; flex-shrink: 0; }
.is-sending .btn-icon, .is-sent .btn-icon { display: none; }

/* =============================================================
   6l-ter. Calculadora de m² (teaser en home; widget completo en calculadora.html)
   ============================================================= */
.calc-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
}
.calc-teaser {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.calc-teaser-desc {
  color: var(--cream-2); max-width: 46ch;
  margin: 0 auto 2rem; font-size: .95rem; line-height: 1.7;
}
.calc-teaser-btn { padding: 1.1rem 2.6rem; }
.calc-teaser-btn svg { width: 18px; height: 18px; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
.calc-items {
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.calc-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.calc-item:last-child { border-bottom: none; }
.calc-item:hover { background: rgba(201,168,82,.04); }
.calc-item-info { display: flex; flex-direction: column; gap: .2rem; }
.calc-item-label { font-size: .875rem; color: var(--cream); }
.calc-item-m2 { font-size: .6rem; color: var(--cream-3); letter-spacing: .06em; }
.calc-stepper { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.calc-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--cream);
  font-family: var(--mono); font-size: 1rem; line-height: 1;
  cursor: pointer; border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.calc-btn:hover { border-color: var(--accent); color: var(--accent); }
.calc-btn:disabled { opacity: .3; cursor: not-allowed; }
.calc-qty { min-width: 1.4rem; text-align: center; font-size: .85rem; color: var(--cream); }

.calc-result {
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem;
  position: sticky; top: 6rem;
}
.calc-result-label { color: var(--cream-3); }
.calc-result-value {
  font-family: var(--serif); color: var(--accent);
  line-height: 1;
}
.calc-result-value #calc-total {
  font-size: clamp(2.6rem, 7vw, 4rem);
  transition: transform .15s var(--ease-out);
  display: inline-block;
}
.calc-result-value.is-updated #calc-total { transform: scale(1.08); }
.calc-unit { font-size: 1rem; color: var(--cream-3); margin-left: .3rem; }
.calc-result-note { color: var(--cream-3); opacity: .8; margin-bottom: .5rem; }
.calc-result .btn {
  margin-top: .4rem;
  white-space: normal; overflow: visible;
  line-height: 1.35; padding-block: .9rem;
}

/* =============================================================
   6m. Footer
   ============================================================= */
.footer {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  padding-block: 1rem 1rem;
  background: rgba(5,3,2,.9);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent);
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: .5rem;
}
.footer-logo {
  height: 110px;
  width: 110px;
  object-fit: cover;
  mix-blend-mode: lighten;
  clip-path: inset(10%);
  transform: scale(1.22);
  transform-origin: left center;
  display: block;
}
.footer-tagline { font-size: .85rem; color: var(--cream-3); line-height: 1.7; }
.footer-label { color: var(--accent); margin-bottom: .85rem; }
.footer ul { display: flex; flex-direction: column; gap: .5rem; }
.footer ul li a {
  font-size: .875rem; color: var(--cream-2);
  transition: color .2s;
}
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--cream-3); font-size: .68rem;
}
.footer-credits-link a { color: var(--cream-3); transition: color .2s; }
.footer-credits-link a:hover { color: var(--accent); }

/* =============================================================
   7. Effects — Reveal on scroll
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
/* Defensive: elements with both .reveal and data-split stay visible */
.reveal[data-split] { opacity: 1; transform: none; }
.reveal.is-visible  { opacity: 1; transform: none; }

/* Split words animation */
.split-word {
  display: inline-block;
  overflow: hidden;
}
.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .7s var(--ease-out);
}
.is-visible .split-word-inner { transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 600px) {
  .desarrollo-card,
  .lote-card {
    width: 100%;
  }
  .desarrollo-card .desarrollo-inner,
  .lote-card .lote-inner {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .proyectos-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .proyectos-nav-outer {
    padding: 0 2.5rem;
  }
  .proyectos-nav-outer::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.8rem;
    background: linear-gradient(to right, transparent, #0d0d0d 85%);
    pointer-events: none;
    z-index: 1;
  }
  .proy-expand-btn { z-index: 3; }
  .tours-grid { grid-template-columns: 1fr; gap: 1rem; }
  .proyectos-col {
    width: calc(50% - 0.6rem);
  }
  .proy-btn {
    font-size: .78rem;
    letter-spacing: .08em;
    padding: .55rem .6rem;
    white-space: normal;
    word-break: break-word;
  }
  .hero-title  { font-size: clamp(1.5rem, 7.5vw, 2.2rem); }
  :root { --gutter: 8vw; }
  .hero-sub    {
    font-family: var(--serif);
    font-size: 3.6vw;
    max-width: 78% !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-kicker {
    font-size: .52rem;
    letter-spacing: .05em;
    word-break: break-word;
    white-space: normal;
  }
  .hero-title {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
  }
}

@media (min-width: 540px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .galeria-item:first-child { grid-column: span 3; }
}

@media (min-width: 720px) {
  .desarrollos-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .sobre-grid       { grid-template-columns: 1fr 1fr; }
  .contacto-grid    { grid-template-columns: 1fr 1fr; }
  .calc-grid        { grid-template-columns: 1fr 320px; }
  .footer-grid      { grid-template-columns: 1fr 1fr 1fr; }
}

/* Full desktop nav (logo + 8 links + lang toggle + CTA) needs real room —
   below this, the hamburger menu (which has the same links) takes over. */
@media (min-width: 1024px) {
  .nav-burger  { display: none; }
  .nav-links   { display: flex; }
  .nav-cta     { display: block; }
  .lang-toggle { display: block; }
}

@media (min-width: 960px) {
  .lotes-grid { grid-template-columns: repeat(3, 1fr); }
  .tours-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .sobre-img { aspect-ratio: 3 / 4; max-height: none; }
}

/* =============================================================
   9. Reduced motion (only INTRUSIVE effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .ticker-track        { animation: none; }
  .hero-scroll-line    { animation: none; }
  .splash              { animation: none; }
}
