/* ═══════════════════════════════════════════════════════════════════════════
   PASEO DEL BOSQUE — Sistema de diseño de la landing
   Lenguaje visual: editorial luxury. Verde bosque profundo + latón/champán.
   Sin Tailwind: todo el estilo de la landing vive aquí.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Superficies: verdes muy desaturados, casi negros. Nada de azul tech. */
  --ink:        #070C09;
  --ink-2:      #0B120E;
  --ink-3:      #101A14;
  --ink-4:      #16221B;

  /* Latón / champán: el acento de lujo, sustituye al cian */
  --brass:      #C8A96A;
  --brass-lite: #E4CE9E;
  --brass-deep: #8C7440;

  /* Verde salvia para acentos vivos (disponibilidad, éxito) */
  --sage:       #8FAE8B;
  --sage-lite:  #B8CDB4;

  /* Tipografía */
  --paper:      #F2EFE8;
  --paper-dim:  #BDBBB2;
  --paper-mute: #8A897F;

  --line:       rgba(200, 169, 106, 0.14);
  --line-soft:  rgba(242, 239, 232, 0.07);

  /* Escala tipográfica fluida */
  --step--1: clamp(0.79rem, 0.77rem + 0.10vw, 0.85rem);
  --step-0:  clamp(0.95rem, 0.91rem + 0.18vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.22rem + 1.05vw, 2.15rem);
  --step-3:  clamp(1.85rem, 1.35rem + 2.30vw, 3.25rem);
  --step-4:  clamp(2.35rem, 1.30rem + 4.70vw, 5.00rem);
  --step-5:  clamp(2.90rem, 1.05rem + 8.20vw, 7.50rem);

  --shell:   min(1240px, 100% - 3rem);
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Lenis maneja el scroll suave; sin Lenis el nativo sigue funcionando. */
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brass); color: var(--ink); }

/* ── Tipografía ──────────────────────────────────────────────────────────── */
.display {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
.display em {
  font-style: italic;
  color: var(--brass);
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.6rem;
}
.eyebrow::before {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  flex-shrink: 0;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(270deg, var(--brass), transparent);
  flex-shrink: 0;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--paper-dim);
  font-weight: 300;
  max-width: 46ch;
  margin: 0;
}

.muted { color: var(--paper-mute); }

/* Números tabulares para cifras */
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.shell { width: var(--shell); margin-inline: auto; }

.section { position: relative; padding: clamp(5rem, 11vh, 9rem) 0; }
.section--ink2 { background: var(--ink-2); }
.section--ink3 { background: var(--ink-3); }

/* Filo de latón que separa secciones */
.section--edge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Grano de película: da textura analógica y evita el look "plano digital" */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Navegación ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 1.5rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding: 0.75rem 0;
  background: rgba(7, 12, 9, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
}
.nav__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.85rem; }
.nav__brand img {
  height: 3.1rem;
  width: auto;
  object-fit: contain;
  transition: height 0.4s var(--ease);
}
.nav.is-stuck .nav__brand img { height: 2.4rem; }
.nav__wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__wordmark span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.3rem;
}

.nav__menu { display: flex; align-items: center; gap: 2.4rem; }
.nav__link {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--paper-dim);
  transition: color 0.3s;
  padding-block: 0.25rem;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.4s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { width: 100%; }

/* Botón hamburguesa (solo móvil) */
.nav__burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 2.9rem; height: 2.9rem;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.05rem; height: 1px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.nav__burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 4px)); }
.nav__burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Menú móvil a pantalla completa */
.navsheet {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(7, 12, 9, 0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 6rem 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.navsheet.is-open { opacity: 1; visibility: visible; }
.navsheet a, .navsheet button {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 300;
  padding: 0.55rem 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.navsheet a:last-of-type { border-bottom: none; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-pad: 1.05rem 2.1rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  isolation: isolate;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Relleno que barre de abajo hacia arriba en hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }

.btn--brass {
  background: linear-gradient(135deg, var(--brass-lite), var(--brass));
  color: var(--ink);
  box-shadow: 0 12px 40px -14px rgba(200, 169, 106, 0.65);
}
.btn--brass::before { background: var(--paper); }
.btn--brass:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -14px rgba(200, 169, 106, 0.8); }

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }

.btn--wide { width: 100%; }

/* Flecha que se desplaza al hacer hover */
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
}
/* Canvas Three.js del terreno 3D */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease 0.25s;
}
#hero-canvas.is-ready { opacity: 1; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 18% 42%, rgba(7,12,9,0.94) 0%, rgba(7,12,9,0.55) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(7,12,9,0.7) 0%, transparent 22%, transparent 62%, var(--ink) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.hero__title { font-size: var(--step-5); margin-bottom: 1.8rem; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

/* Sellos de confianza bajo el hero */
.hero__seals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  margin-top: 3.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.seal { display: flex; align-items: center; gap: 0.7rem; font-size: var(--step--1); color: var(--paper-dim); }
.seal svg { width: 1.05rem; height: 1.05rem; color: var(--brass); flex-shrink: 0; }

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.hero__scroll i {
  width: 1px; height: 3.2rem;
  background: linear-gradient(to bottom, var(--brass), transparent);
  transform-origin: top;
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* ── Panel de disponibilidad (hero) ──────────────────────────────────────── */
.availability {
  position: relative;
  padding: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(22,34,27,0.78), rgba(11,18,14,0.88));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9);
}
/* Esquinas de latón */
.availability::before, .availability::after {
  content: '';
  position: absolute;
  width: 1.5rem; height: 1.5rem;
  border: 1px solid var(--brass);
  opacity: 0.55;
}
.availability::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.availability::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.availability__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 2rem;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(143, 174, 139, 0.6);
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(143,174,139,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(143,174,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(143,174,139,0); }
}

.availability__figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.8rem;
}
.figure { text-align: center; padding: 0 0.5rem; }
.figure + .figure { border-left: 1px solid var(--line-soft); }
.figure b {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--paper);
}
.figure--hi b { color: var(--brass); }
.figure--low b { color: var(--paper-mute); }
.figure small {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.meter {
  height: 2px;
  background: rgba(242,239,232,0.08);
  overflow: hidden;
  margin-bottom: 1.8rem;
}
.meter__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-lite));
}
.meter__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--paper-mute);
  margin-bottom: 0.7rem;
}
.meter__label b { color: var(--brass); font-weight: 500; }

.spec { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.9rem; }
.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--step--1);
}
.spec__row:last-child { border-bottom: none; }
.spec__row dt { color: var(--paper-mute); margin: 0; }
.spec__row dd { margin: 0; color: var(--paper); font-weight: 500; text-align: right; }

/* ── Manifiesto ──────────────────────────────────────────────────────────── */
/* El título es corto y el cuerpo largo: se fija el título mientras la columna
   derecha desplaza, en lugar de dejar un hueco vertical muerto a la izquierda. */
.manifesto { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.manifesto > div:first-child { position: sticky; top: 7rem; }
.manifesto__body p { color: var(--paper-dim); font-weight: 300; margin: 0 0 1.4rem; }
.manifesto__body p:last-child { margin-bottom: 0; }

/* Cifras grandes tipo editorial */
.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  margin-top: 3rem;
  border: 1px solid var(--line-soft);
}
.figures-grid > div {
  background: var(--ink-2);
  padding: 2rem 1.4rem;
  transition: background 0.5s var(--ease);
}
.figures-grid > div:hover { background: var(--ink-3); }
.figures-grid b {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  color: var(--brass);
}
.figures-grid small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* Pilares — lista editorial numerada, sin tarjetas con iconito */
.pillars { border-top: 1px solid var(--line-soft); }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.5s var(--ease);
}
.pillar:hover { padding-left: 0.8rem; }
.pillar__idx {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--brass);
  padding-top: 0.35rem;
  letter-spacing: 0.1em;
}
.pillar h3 {
  margin: 0 0 0.6rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.pillar p { margin: 0; font-size: var(--step--1); color: var(--paper-mute); line-height: 1.7; max-width: 52ch; }

/* ── Galería ─────────────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 13vw, 165px);
  gap: 0.85rem;
  margin-top: 3.5rem;
}
.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.62) brightness(0.82);
  will-change: transform;
}
.shot:hover img { transform: scale(1.06); filter: saturate(0.95) brightness(1); }
.shot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,12,9,0.65), transparent 55%);
  pointer-events: none;
}
.shot__tag {
  position: absolute;
  left: 1.1rem; bottom: 0.9rem;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.85;
}
.shot--a { grid-column: span 7; grid-row: span 2; }
.shot--b { grid-column: span 5; grid-row: span 1; }
.shot--c { grid-column: span 5; grid-row: span 1; }
.shot--d { grid-column: span 4; grid-row: span 1; }
.shot--e { grid-column: span 4; grid-row: span 1; }
.shot--f { grid-column: span 4; grid-row: span 1; }

/* ── Proceso ─────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--line); }
.step {
  padding: 2.4rem 1.6rem 0 0;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.step:last-child { border-right: none; }
.step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.9s var(--ease);
}
.step.is-lit::before { width: 100%; }
.step b {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--brass);
  opacity: 0.32;
  line-height: 1;
  margin-bottom: 1.1rem;
}
.step h3 { margin: 0 0 0.55rem; font-size: var(--step-0); font-weight: 500; letter-spacing: 0.01em; }
.step p { margin: 0; font-size: var(--step--1); color: var(--paper-mute); line-height: 1.65; }

/* ── Plano interactivo ───────────────────────────────────────────────────── */
.plan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
#mapa-lotes {
  position: relative;
  z-index: 0;
  isolation: isolate;      /* nunca por encima del drawer de login */
  height: clamp(440px, 68vh, 700px);
  border: 1px solid var(--line);
  background: var(--ink-3);
}
.leaflet-container { z-index: 0; background: var(--ink-3); font-family: 'Inter', sans-serif; }
.leaflet-control-zoom a {
  background: rgba(11,18,14,0.9) !important;
  color: var(--paper) !important;
  border-color: var(--line) !important;
}
.leaflet-control-zoom a:hover { background: var(--brass) !important; color: var(--ink) !important; }

/* Los números de lote se ocultan mientras no haya espacio para leerlos. */
.leaflet-etiquetas-pane { transition: opacity 0.25s ease; }
.leaflet-etiquetas-pane.is-hidden { opacity: 0; }

/* Número de lote: píldora oscura con borde del color del estado, para que
   se lea sobre cualquier zona de la foto satelital. */
.lote-label {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  color: #FFFFFF;
  background: rgba(7, 12, 9, 0.78);
  border: 1px solid;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.02em;
}

/* Tooltip del lote */
.leaflet-tooltip.lote-tip {
  background: rgba(7, 12, 9, 0.94);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  font-size: 0.74rem;
  line-height: 1.5;
  padding: 0.5rem 0.7rem;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.9);
}
.leaflet-tooltip.lote-tip b { color: var(--brass); font-weight: 600; }
.leaflet-tooltip.lote-tip::before { border-top-color: rgba(7, 12, 9, 0.94); }

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--step--1);
  color: var(--paper-dim);
}
.legend span { display: flex; align-items: center; gap: 0.6rem; }
.legend i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
.legend b {
  font-weight: 600;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.legend .legend__hint { margin-left: auto; color: var(--paper-mute); font-size: 0.7rem; }

/* ── Testimonios ─────────────────────────────────────────────────────────── */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 3.5rem; }
.voice { background: var(--ink-2); padding: 2.6rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; transition: background 0.5s var(--ease); }
.voice:hover { background: var(--ink-3); }
.voice__mark { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3.4rem; line-height: 0.6; color: var(--brass); opacity: 0.4; }
.voice p { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--step-1); font-weight: 300; font-style: italic; line-height: 1.5; color: var(--paper-dim); flex: 1; }
.voice__who { display: flex; align-items: center; gap: 0.9rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.voice__ini {
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--brass);
  flex-shrink: 0;
}
.voice__who b { display: block; font-size: var(--step--1); font-weight: 500; }
.voice__who small { color: var(--paper-mute); font-size: 0.68rem; letter-spacing: 0.05em; }

/* ── Contacto ────────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }

.channels { display: flex; flex-direction: column; margin-top: 2.5rem; border-top: 1px solid var(--line-soft); }
.channel {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.45s var(--ease);
}
a.channel:hover { padding-left: 0.7rem; }
.channel svg { width: 1.15rem; height: 1.15rem; color: var(--brass); flex-shrink: 0; }
.channel small { display: block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 0.25rem; }
.channel b { font-weight: 400; font-size: var(--step-0); }

.map-embed { border: 1px solid var(--line); height: 210px; margin-top: 2.5rem; filter: grayscale(1) invert(0.9) hue-rotate(170deg) brightness(0.85) contrast(0.9); }
.map-embed iframe { border: 0; width: 100%; height: 100%; display: block; }

/* Formulario */
.form-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22,34,27,0.55), rgba(11,18,14,0.8));
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 1.5rem; height: 1.5rem;
  border: 1px solid var(--brass);
  border-right: 0; border-bottom: 0;
  opacity: 0.55;
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.6rem;
}
.field input, .field select {
  width: 100%;
  background: rgba(242,239,232,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 0.85rem 1rem;
  color: var(--paper);
  font-size: var(--step-0);
  font-family: inherit;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder { color: rgba(138,137,127,0.55); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(242,239,232,0.05);
}
.field select option { background: var(--ink-3); color: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── CTA de cierre ───────────────────────────────────────────────────────── */
.closer { text-align: center; padding: clamp(5rem, 12vh, 9rem) 0; position: relative; }
.closer h2 { font-size: var(--step-4); margin-bottom: 1.6rem; }
.closer .lede { margin-inline: auto; text-align: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.foot__brand { display: flex; align-items: center; gap: 1rem; }
.foot__brand img { height: 3rem; width: auto; object-fit: contain; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.8rem; font-size: var(--step--1); color: var(--paper-mute); }
.foot__links a:hover, .foot__links button:hover { color: var(--brass); }
.foot__links button { background: none; border: none; cursor: pointer; color: var(--brass); font-size: inherit; }
.foot__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
  font-size: 0.7rem;
  color: var(--paper-mute);
}
.foot__base i { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 0.85rem; }

/* ── Modal de lote ───────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(7, 12, 9, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal.is-open { display: flex; }
/* Panel compacto: debe caber en pantalla sin scroll. Todo el interior está
   dimensionado para eso — specs en una sola fila y opciones de pago en línea. */
.modal__panel {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.95);
}
.modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.modal__head h3 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--step-1); font-weight: 400; }
.modal__close {
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  width: 1.9rem; height: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--paper-mute);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.modal__close:hover { color: var(--paper); border-color: var(--brass); transform: rotate(90deg); }
.modal__body { padding: 1.3rem; }

/* Los cuatro datos del lote en una sola fila */
.lot-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.lot-specs > div { min-width: 0; }
.lot-specs small {
  display: block;
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.3rem;
}
.lot-specs b {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  display: block;
  word-break: break-word;
}
.lot-specs b.is-price { color: var(--brass); }

.plan-title { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.7rem; }

/* Opciones de pago en línea: tres pastillas en vez de tres bloques apilados */
.plan-opts { display: flex; gap: 0.5rem; }
.opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.opt:hover { border-color: var(--line); background: rgba(242,239,232,0.02); }
.opt input { accent-color: var(--brass); width: 0.85rem; height: 0.85rem; cursor: pointer; flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--brass); background: rgba(200,169,106,0.08); color: var(--brass-lite); }

.finance { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); display: none; }
.finance.is-on { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; align-items: center; }
.finance label { font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); margin: 0; }
.finance input[type=range] { width: 100%; accent-color: var(--brass); margin: 0; grid-column: 1 / -1; }
.finance input[type=number] {
  width: 5.5rem;
  background: rgba(242,239,232,0.03);
  border: 1px solid var(--line-soft);
  padding: 0.45rem 0.6rem;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.85rem;
}
.finance input[type=number]:focus { outline: none; border-color: var(--brass); }
.finance output { font-size: 0.78rem; color: var(--brass); font-variant-numeric: tabular-nums; }

.modal__actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.modal__actions .btn { flex: 1; --btn-pad: 0.75rem 0.8rem; font-size: 0.7rem; }
.btn--wa { background: #1F7A47; color: #fff; }
.btn--wa::before { background: #29A15D; }
.btn--wa:hover { color: #fff; }

/* ── Drawer de login ─────────────────────────────────────────────────────── */
#login-drawer { position: fixed; inset: 0; z-index: 10000; overflow: hidden; }
#login-drawer .drawer__veil { position: absolute; inset: 0; background: rgba(7,12,9,0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#login-drawer .drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.6);
}
#login-drawer .drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid #E8E5DE;
}
#login-drawer .drawer__head h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 400; color: #14201A;
}
#login-drawer .drawer__x { background: none; border: none; cursor: pointer; color: #7A7A72; padding: 0.25rem; }
#login-drawer .drawer__x:hover { color: #14201A; }
#login-drawer .drawer__tabs { display: flex; border-bottom: 1px solid #E8E5DE; }
#login-drawer .drawer__tab {
  flex: 1;
  padding: 0.9rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8A897F; cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
#login-drawer .drawer__tab.is-on { color: var(--brass-deep); border-bottom-color: var(--brass); }
#login-drawer .drawer__form { flex: 1; overflow-y: auto; padding: 1.8rem 1.6rem; }
#login-drawer .dfield { margin-bottom: 1.15rem; }
#login-drawer .dfield label { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #55564E; margin-bottom: 0.45rem; }
/* El body es oscuro: forzamos texto oscuro o los inputs se ven "borrosos". */
#login-drawer input {
  width: 100%;
  border: 1px solid #D8D5CC;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: #111827 !important;
  background: #fff !important;
  -webkit-text-fill-color: #111827;
  transition: border-color 0.25s, box-shadow 0.25s;
}
#login-drawer input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,169,106,0.16); }
#login-drawer input::placeholder { color: #9CA3AF !important; -webkit-text-fill-color: #9CA3AF; }
#login-drawer .dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
#login-drawer .dbtn {
  width: 100%;
  background: linear-gradient(135deg, var(--brass-lite), var(--brass));
  color: #14201A;
  border: none;
  padding: 0.85rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.25s;
}
#login-drawer .dbtn:hover { filter: brightness(1.06); }
#login-drawer .dbtn:disabled { opacity: 0.6; cursor: not-allowed; }
#login-drawer .dnote { font-size: 0.72rem; color: #8A897F; text-align: center; margin: 1rem 0 0; }
#login-drawer .dalert { padding: 0.8rem 1rem; font-size: 0.82rem; margin-bottom: 1.1rem; border: 1px solid; }
#login-drawer .dalert--err { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }
#login-drawer .dalert--ok  { background: #F0FDF4; border-color: #86EFAC; color: #15803D; }

/* ── Animación de entrada (GSAP toma el control cuando carga) ────────────── */
[data-anim] { will-change: transform, opacity; }

/* Si GSAP no carga, nada queda invisible: el JS marca este flag. */
.no-anim [data-anim] { opacity: 1 !important; transform: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .voices { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --shell: min(1240px, 100% - 2.5rem); }
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 7.5rem; min-height: 0; }
  .hero__scroll { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line-soft); padding-bottom: 2rem; }
  .gallery { grid-auto-rows: 130px; }
  .shot--a { grid-column: span 12; grid-row: span 2; }
  .shot--b, .shot--c { grid-column: span 6; }
  .shot--d, .shot--e, .shot--f { grid-column: span 4; }
  .field-row { grid-template-columns: 1fr; }
  .lot-specs { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .plan-opts { flex-direction: column; }
  .opt { justify-content: flex-start; text-align: left; }
  .modal__actions { flex-direction: column; }
  .availability { padding: 1.8rem 1.4rem; }
}

/* ── Accesibilidad ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  #hero-canvas { display: none; }
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
