/* ==========================================================================
   NATÚA Lotes Urbanos — V2.2
   Tokens: verde profundo (#1F3D2B), verde natural (#4C7A52), púrpura NATÚA
   (#5B3A73), oliva de marca (#8A9A3B), blanco cálido.

   Tipografía: fuentes de sistema únicamente. Sin peticiones externas a
   Google Fonts ni a ningún tercero. Esto se refleja también en el CSP de
   `_headers`, que ya no permite fonts.googleapis.com ni fonts.gstatic.com.
   ========================================================================== */

:root {
  --verde-profundo: #1f3d2b;
  --verde-natural: #4c7a52;
  --verde-claro: #e8efe6;
  --purpura: #5b3a73;
  --purpura-oscuro: #3d2650;
  --oliva: #8a9a3b;
  --blanco: #faf9f6;
  --crema: #f2efe8;
  --texto: #22281f;
  --texto-suave: #4a5245;
  --borde: #d8ddd2;
  --alerta-fondo: #fff8e6;
  --alerta-borde: #d9a441;

  /* Fuentes de sistema — sin Google Fonts ni ninguna petición externa. */
  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --container: 1120px;
  --shadow-soft: 0 8px 24px rgba(31, 61, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--verde-profundo);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--texto-suave); }
a { color: var(--purpura); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
section { padding: 64px 0; }
section.alt { background: var(--crema); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purpura);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--purpura);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--borde);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 10px; flex-wrap: wrap; }
@media (max-width: 420px) {
  .site-header .container { padding: 10px 14px; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 0.76rem; }
  .logo { font-size: 1rem; }
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--verde-profundo); text-decoration: none; }
.logo span { color: var(--purpura); }
.logo-sub { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oliva); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purpura); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--purpura-oscuro); }
.btn-secondary { background: transparent; border-color: var(--verde-profundo); color: var(--verde-profundo); }
.btn-secondary:hover { background: var(--verde-claro); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }

/* Botón secundario específico para uso sobre fotografías (hero): fondo
   sólido y opaco en todos los tamaños de pantalla, para garantizar
   contraste independientemente de la imagen de fondo. No depende de
   transparencia ni de desenfoque. */
.btn-hero-secondary {
  background: #ffffff;
  color: var(--verde-profundo);
  border: 2px solid #ffffff;
  font-weight: 700;
}
.btn-hero-secondary:hover {
  background: var(--verde-claro);
  border-color: var(--verde-claro);
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 82vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,61,43,0.15) 0%, rgba(20,32,20,0.8) 100%);
}
.hero-content { position: relative; z-index: 1; padding-bottom: 56px; max-width: 720px; }
.hero-location { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.92; margin-bottom: 14px; display: inline-block; }
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.92); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 460px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
}
.hero-stage {
  display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
}
.hero-caption {
  margin-top: 20px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.78);
  max-width: 460px;
}

/* ---------- Data strip ---------- */
.data-strip { background: var(--verde-profundo); color: #fff; padding: 28px 0; }
.data-strip .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.data-item .value { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 4px; font-weight: 700; }
.data-item .label { font-size: 0.78rem; opacity: 0.85; }
@media (max-width: 760px) { .data-strip .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.figure { position: relative; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure-caption { font-size: 0.82rem; color: var(--texto-suave); margin-top: 10px; line-height: 1.5; }
.figure-caption.permanent { background: var(--alerta-fondo); border: 1px solid var(--alerta-borde); padding: 10px 14px; border-radius: 10px; color: #5a4210; }

/* ---------- Video (Así está hoy) ---------- */
.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}
.video-wrap video { width: 100%; display: block; }

/* ---------- Proyección del proyecto (imágenes conceptuales) ---------- */
.proyeccion-warning {
  background: var(--alerta-fondo);
  border: 1px solid var(--alerta-borde);
  border-radius: 10px;
  padding: 14px 18px;
  color: #5a4210;
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.proyeccion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .proyeccion-grid { grid-template-columns: 1fr; }
}
.proyeccion-item .figure-caption.permanent {
  font-size: 0.78rem;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--borde); border-radius: var(--radius); padding: 26px; }
.card .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--purpura); display: block; margin-bottom: 8px; font-weight: 700; }

/* ---------- Process timeline ---------- */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.process-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; }
.process-list .step-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--verde-profundo); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.process-fiducia {
  margin-top: 28px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radius); padding: 24px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--borde); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px;
  font-weight: 700; font-size: 1rem; color: var(--texto); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-a { display: none; padding: 0 4px 18px; color: var(--texto-suave); }
.faq-item.open .faq-a { display: block; }
.faq-icon { flex: 0 0 auto; font-size: 1.3rem; color: var(--purpura); }

/* ---------- Legal note discreet (antes: recuadro amarillo fiduciario) ---------- */
.legal-note-discreet {
  font-size: 0.82rem;
  color: var(--texto-suave);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--borde);
  line-height: 1.6;
}
.finance-note { background: var(--alerta-fondo); border: 1px solid var(--alerta-borde); border-radius: 10px; padding: 14px 18px; font-size: 0.9rem; color: #5a4210; margin-top: 18px; }
.price-block {
  background: #fff; border: 2px dashed var(--borde); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--texto-suave);
}
.price-block strong { display: block; color: var(--verde-profundo); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }

/* ---------- ANA widget ---------- */
.ana-card {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--borde); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-soft);
}
.ana-avatar {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purpura), var(--verde-profundo));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.ana-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oliva); font-weight: 700; }

/* ---------- Final CTA ---------- */
.cta-final { background: var(--verde-profundo); color: #fff; text-align: center; padding: 72px 0; }
.cta-final h2 { color: #fff; }
.cta-final .btn-primary { background: var(--purpura); }

/* ---------- Footer ---------- */
/* Contraste corregido: se evita superponer `opacity` en cascada (el texto
   fino quedaba con una opacidad efectiva demasiado baja sobre el fondo
   oscuro). Ahora cada color se define explícito, sin acumular opacidades. */
.site-footer { background: var(--purpura-oscuro); color: rgba(255,255,255,0.92); padding: 44px 0 28px; font-size: 0.86rem; }
.site-footer a { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.88); }
.footer-fine { opacity: 1; color: rgba(255,255,255,0.8); margin-top: 18px; line-height: 1.6; }
/* Especificidad reforzada (.site-footer .footer-fine) para que esta regla
   prevalezca sobre `.site-footer p` y el texto fino conserve su propio tono,
   distinto del resto de párrafos del footer, sin perder contraste suficiente. */
.site-footer .footer-fine { color: rgba(255,255,255,0.8); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  background: var(--purpura); color: #fff; border-radius: 999px; padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  display: flex; align-items: center; gap: 8px;
}
/* En móvil, el botón flotante tapaba contenido (footer, CTA, franja de datos).
   Se oculta por debajo de 760px; en esos anchos el resto de la página ya
   tiene sobra de botones de WhatsApp accesibles sin necesidad del flotante. */
@media (max-width: 760px) {
  .wa-float { display: none; }
}

/* ---------- Lightbox (ampliar plano) ---------- */
#plano-thumb { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  touch-action: pinch-zoom;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #fff;
  color: var(--verde-profundo);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-lead { max-width: 640px; margin-bottom: 32px; }
