/* =========================================================================
   La Jacinta — Desarrollo Inmobiliario · Comercializa Century 21 Mare
   Tema: Editorial Natural Luxury (oscuro). Acento único: dorado C21.
   Landing de captación · lotes en Zelaya, Pilar.
   ========================================================================= */

:root {
  --bg:      #14130F;
  --bg-2:    #1B1A15;
  --bg-3:    #232118;
  --line:    rgba(244, 240, 230, 0.12);
  --line-2:  rgba(244, 240, 230, 0.20);
  --ink:     #F4F0E6;
  --muted:   #B9B3A4;
  --muted-2: #8A8475;
  --gold:    #BEAF87;
  --gold-2:  #A19276;
  --gold-soft: rgba(190, 175, 135, 0.14);
  --wa:      #25D366;
  --r: 3px;
  --container: 1240px;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --num:   "Barlow Semi Condensed", var(--sans);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 88px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ── tipografía ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-lead { color: var(--muted); max-width: 58ch; font-size: 1.05rem; line-height: 1.65; }

/* ── botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background 0.22s var(--ease), color 0.22s, border-color 0.22s, transform 0.22s;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 1.05rem; height: 1.05rem; }
.btn-gold { background: var(--gold); color: #1a1810; border-color: var(--gold); }
.btn-gold:hover { background: #cdbf97; border-color: #cdbf97; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa { background: var(--wa); color: #04331c; border-color: var(--wa); }
.btn-wa:hover { background: #2ee676; border-color: #2ee676; transform: translateY(-1px); }
.btn-wa svg { fill: #04331c; }

/* ── preloader ── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo { height: clamp(46px, 9vw, 78px); width: auto; margin: 0 auto 0.4rem; opacity: 0.95; }
.preloader-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
}

/* ── scroll progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9998;
  height: 2px; width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* ── header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 19, 15, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; opacity: 0.96; }
.nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}
.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: 1.6rem; padding: 0.6rem 1.2rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 1rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ── hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,19,15,0.30) 0%,
    rgba(20,19,15,0.40) 38%,
    rgba(20,19,15,0.86) 100%
  );
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 16ch;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 58ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(20,19,15,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 2rem;
}
.hs { display: flex; flex-direction: column; gap: 0.2rem; padding: 0 1.5rem; }
.hs:first-child { padding-left: 0; }
.hs-v {
  font-family: var(--num);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.hs-u { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.hs-div { width: 1px; height: 36px; background: var(--line-2); flex-shrink: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-cta .btn { padding: 0.95rem 1.7rem; font-size: 0.86rem; }

/* ── secciones generales ── */
.section { padding-block: clamp(4rem, 10vh, 7rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-head h2 em { font-style: italic; color: var(--gold); }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.25rem; }
.split-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.split-text strong { color: var(--ink); font-weight: 600; }

/* ── proyecto (split) ── */
.proyecto { background: var(--bg-2); }
.agente-card {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
}
.agente-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.agente-role { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.05em; margin-top: 0.2rem; }
.agente-contact { color: var(--muted); font-size: 0.82rem; margin-top: 0.5rem; }
.c21-logo { margin-top: 2rem; max-height: 26px; width: auto; opacity: 0.85; }

.nosotros-pilares {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.pilar { padding: 2rem 2.25rem; border-bottom: 1px solid var(--line); transition: background 0.25s; }
.pilar:last-of-type { border-bottom: none; }
.pilar:hover { background: var(--bg-3); }
.pilar-n {
  display: block;
  font-family: var(--num);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.pilar h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.pilar p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.pilares-head { padding: 1.75rem 2.25rem; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.pilares-intro { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-top: 0.5rem; }
.pilares-cierre {
  padding: 1.4rem 2.25rem;
  background: var(--bg-3);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  font-style: italic;
}

/* ── fullbleed ── */
.fullbleed { position: relative; height: clamp(320px, 45vw, 560px); overflow: hidden; }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.fullbleed-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,19,15,0.85) 0%, rgba(20,19,15,0.30) 60%, transparent 100%);
}
.fullbleed-cap {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  left: 0;
  right: 0;
  width: 100%;
  color: var(--ink);
}
.fullbleed-cap h2 { font-size: clamp(1.5rem, 3.5vw, 2.6rem); margin-bottom: 0.5rem; }
.fullbleed-cap p { color: var(--muted); font-size: 0.95rem; }

/* ── ubicación ── */
.ubicacion { background: var(--bg); }
.ubic-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.mapa-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.mapa-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.25) contrast(1.05) brightness(0.92); }
.mapa-facade {
  width: 100%; height: 420px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.85rem; cursor: pointer;
  border: 0; color: var(--ink);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(190,175,135,0.08), transparent 60%),
    repeating-linear-gradient(45deg, var(--bg-3) 0 22px, var(--bg-2) 22px 44px);
  transition: background 0.3s;
}
.mapa-facade svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mf-title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.mf-cta { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-2); padding: 0.5rem 1.1rem; border-radius: 2px; transition: background 0.2s; }
.mapa-facade:hover .mf-cta { background: var(--gold-soft); }
.mapa-nota { font-size: 0.74rem; color: var(--muted-2); padding: 0.85rem 1.1rem; line-height: 1.5; }
.ref-grid { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ref-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.ref-k { color: var(--muted-2); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ref-v { color: var(--ink); font-size: 0.92rem; text-align: right; }

/* ── predio / lotes ── */
.predio { background: var(--bg-2); }
.loteo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.lc { padding: 1.75rem 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.lc-num {
  display: block; font-family: var(--num); font-size: 2.2rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 0.5rem;
}
.lc-label { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.predio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; margin-bottom: 1.5rem; }
.predio-img { margin: 0; }
.predio-img img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.predio-img figcaption {
  margin-top: 0.75rem; font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--muted-2); text-transform: uppercase;
}
.loteo-nota {
  font-size: 0.82rem; color: var(--muted-2); line-height: 1.7;
  padding: 1.25rem 1.5rem; border: 1px solid var(--line);
  border-left: 3px solid var(--line-2); border-radius: var(--r); background: var(--bg);
  margin-top: 1.5rem;
}

/* ── servicios ── */
.servicios { background: var(--bg); }
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.serv-item {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2);
  padding: 1.9rem 1.75rem; transition: border-color 0.25s, transform 0.25s;
}
.serv-item:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.serv-item svg {
  width: 30px; height: 30px; margin-bottom: 1rem;
  fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.serv-item h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 0.45rem; }
.serv-item p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ── marquesina ── */
.marquee {
  overflow: hidden; padding-block: 1.25rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; will-change: transform; }
.m-word { font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.4rem); font-style: italic; color: var(--muted); flex-shrink: 0; }
.m-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); align-self: center; flex-shrink: 0; }

/* ── precio ── */
.precio { background: var(--bg-3); }
.adq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.5rem; align-items: stretch; margin-bottom: 3rem; }
.adq-precio {
  border: 1px solid var(--gold-2); border-radius: var(--r); background: var(--gold-soft);
  padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
}
.adq-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.adq-monto { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.adq-sub { font-size: 0.82rem; color: var(--muted-2); margin-top: 0.5rem; }
.adq-pago {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  padding: 1rem 1.75rem; display: flex; flex-direction: column; justify-content: center;
}
.adq-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.adq-row:last-child { border-bottom: none; }
.adq-k { color: var(--muted); font-size: 0.92rem; }
.adq-v { font-family: var(--num); font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; white-space: nowrap; }
.adq-total { margin-top: 0.25rem; }
.adq-total .adq-k { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.adq-total .adq-v { color: var(--gold); font-size: 1.5rem; }

.planes { margin-top: 1rem; }
.planes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.plan-card {
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg-2);
  padding: 1.75rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 150px;
}
.plan-card h4 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.plan-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.55; flex: 1; }
.plan-ph {
  align-self: flex-start; margin-top: 0.5rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-2); border-radius: 2px; padding: 0.35rem 0.7rem;
}

/* ── galería ── */
.galeria { background: var(--bg); }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 0.85rem;
}
.gal-thumb {
  position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden;
  cursor: pointer; background: var(--bg-2);
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; }
.gal-thumb::after {
  content: '+'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 300; color: var(--ink);
  background: rgba(20,19,15,0.35); opacity: 0; transition: opacity 0.25s;
}
.gal-thumb:hover img { transform: scale(1.06); }
.gal-thumb:hover::after { opacity: 1; }
.gal-thumb-lg { grid-column: span 2; grid-row: span 2; }

/* ── contacto / CTA ── */
.contacto { background: var(--bg-2); }
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r);
  padding: clamp(2rem, 5vw, 3.5rem); background: var(--bg);
}
.contacto-text h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.1rem; }
.contacto-lead { color: var(--muted); line-height: 1.75; margin-bottom: 1.75rem; max-width: 48ch; }
.contacto-asesor { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); margin-bottom: 1.75rem; }
.ca-name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.ca-role { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.04em; margin: 0.2rem 0 0.7rem; }
.ca-line { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.35rem; transition: color 0.2s; }
.ca-line:hover { color: var(--gold); }

.contacto-form { display: flex; flex-direction: column; gap: 1rem; }
.form-title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 0.25rem; }
.contacto-form label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.contacto-form input, .contacto-form textarea {
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.75rem 0.9rem; transition: border-color 0.2s; letter-spacing: 0; text-transform: none; font-weight: 400;
}
.contacto-form input::placeholder, .contacto-form textarea::placeholder { color: var(--muted-2); }
.contacto-form input:focus, .contacto-form textarea:focus { outline: none; border-color: var(--gold); }
.contacto-form textarea { resize: vertical; }
.form-submit { margin-top: 0.4rem; }
.form-note { font-size: 0.72rem; color: var(--muted-2); line-height: 1.5; }

/* ── footer ── */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo-main { height: 52px; width: auto; opacity: 0.95; margin-bottom: 0.9rem; }
.footer-tag { color: var(--muted-2); font-size: 0.8rem; line-height: 1.5; }
.footer-col h5 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem;
}
.footer-col a, .footer-col p { display: block; font-size: 0.84rem; color: var(--muted); margin-bottom: 0.5rem; line-height: 1.5; }
.footer-col a:hover { color: var(--gold); }
.footer-logo img { max-height: 24px; width: auto; opacity: 0.7; margin-top: 0.25rem; }
.footer-legal { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.footer-legal p { font-size: 0.72rem; color: var(--muted-2); line-height: 1.6; }

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 950;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4); transition: transform 0.22s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: #04331c; }
.wa-float:hover { transform: scale(1.08); }

/* ── grano ── */
.grain {
  position: fixed; inset: 0; z-index: 9997; 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
}

/* ── reveal ──
   NOTA Safari/Mac: el observer no dispara fiable y el texto queda invisible.
   Fix nuclear: forzar visible por CSS (ver reveal-safari-bug.md). El movimiento
   premium queda en hero-entrance, parallax, marquee y hovers. */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal { opacity: 1 !important; transform: none !important; }

/* ── lightbox ── */
.gal-backdrop { position: fixed; inset: 0; background: rgba(8, 7, 5, 0.96); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.gal-backdrop.is-active { opacity: 1; pointer-events: all; }
.gal-modal { position: fixed; inset: 0; z-index: 1001; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4.5rem 5rem 2rem; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.gal-modal.is-active { opacity: 1; pointer-events: all; }
.gal-img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.gal-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); display: block; }
.gal-close { position: fixed; top: 1.1rem; right: 1.4rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(244,240,230,0.08); border: 1px solid var(--line-2); color: var(--ink); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.18s; z-index: 1002; }
.gal-close:hover { background: rgba(244,240,230,0.18); }
.gal-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; background: rgba(244,240,230,0.07); border: 1px solid var(--line-2); color: var(--ink); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.18s; z-index: 1002; }
.gal-nav:hover { background: rgba(244,240,230,0.16); }
.gal-prev { left: 1.1rem; }
.gal-next { right: 1.1rem; }
.gal-footer { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding-top: 0.8rem; flex-shrink: 0; }
.gal-title { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.gal-counter { font-family: var(--num); font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: 0.04em; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .loteo-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .ubic-grid { grid-template-columns: 1fr; }
  .planes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; gap: 0; position: fixed; inset: 0; background: var(--bg); padding-top: 100px; padding-inline: 24px; z-index: 800; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.5rem; font-family: var(--serif); padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-stats { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .hs { padding: 0.5rem 0; width: 100%; }
  .hs-div { width: 100%; height: 1px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }

  .split { grid-template-columns: 1fr; }
  .predio-grid { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: 1fr; }
  .adq-grid { grid-template-columns: 1fr; }
  .planes-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gal-thumb-lg { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .loteo-cards { grid-template-columns: 1fr 1fr; }
  .gal-modal { padding: 4rem 1rem 1.5rem; }
  .gal-nav { width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
  .gal-prev { left: 0.4rem; }
  .gal-next { right: 0.4rem; }
}

@media (max-width: 480px) {
  .loteo-cards { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gal-thumb-lg { grid-column: span 1; }
}
