/* =========================================================================
   Ameghino y Santa Fe — Century 21 Mare
   Tema: Editorial Natural Luxury (oscuro). Acento único: dorado C21.
   ========================================================================= */

: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);
  --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: 56ch; font-size: 1.05rem; line-height: 1.65; }

/* ── 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-inner .brand-word {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: 0.34em;
  color: var(--ink);
}
.preloader-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ── 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: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.28em;
}
.brand-rule { width: 14px; height: 2px; background: var(--gold); align-self: center; }
.brand-sub {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 2rem;
  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); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.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 30%;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,19,15,0.25) 0%,
    rgba(20,19,15,0.35) 40%,
    rgba(20,19,15,0.82) 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: 56ch;
  margin-bottom: 2.5rem;
  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%;
}
.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;
}

/* ── 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.light h2,
.section-head.light .section-lead { color: var(--ink); }
.section-head.light .section-lead { color: var(--muted); }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.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;
}

/* ── nosotros ── */
.nosotros { 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: 28px; 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-child { 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; }

/* ── 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.35) 60%, transparent 100%);
}
.fullbleed-cap {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  color: var(--ink);
}
.fullbleed-cap h2 {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.fullbleed-cap p { color: var(--muted); font-size: 0.9rem; }

/* ── terreno ── */
.terreno { background: var(--bg); }
.terreno-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 3rem;
  align-items: start;
}
.ficha-table { width: 100%; border-collapse: collapse; }
.ficha-table tr { border-bottom: 1px solid var(--line); }
.ficha-table th {
  text-align: left;
  padding: 0.75rem 0;
  padding-right: 1.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  width: 40%;
}
.ficha-table td {
  padding: 0.75rem 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}
.terreno-img { margin: 0; }
.terreno-img img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.terreno-img figcaption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.restricciones {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.rest-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.rest-item {
  flex: 1;
  min-width: 160px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
}
.rest-medida {
  display: block;
  font-family: var(--num);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.rest-calle { font-size: 0.8rem; color: var(--muted); }

/* ── potencial ── */
.potencial { background: var(--bg-2); }
.indicadores { margin-bottom: 3.5rem; }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 1.5rem;
}
.ind-item {
  background: var(--bg-3);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.2s;
}
.ind-item:hover { background: var(--bg); }
.ind-v {
  font-family: var(--num);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.ind-k { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1.3; }

.loteo-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.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; }
.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);
}

/* ── 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;
}

/* ── proyectos ── */
.proyectos { background: var(--bg); }
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.proy-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}
.proy-media {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.proy-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.proy-card:hover .proy-media img { transform: scale(1.04); }
.proy-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.proy-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.proy-body > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.proy-data { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: auto; padding-top: 1.25rem; }
.proy-data li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.proy-data li:last-child { border-bottom: none; }
.proy-data li span:first-child { color: var(--muted-2); }
.proy-data li span:last-child { color: var(--ink); }

.proy-placeholder {
  border: 1px dashed var(--line-2);
  background: var(--bg-2);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proy-ph-inner {
  text-align: center;
  color: var(--muted-2);
}
.proy-ph-icon {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--gold-2);
  opacity: 0.5;
}
.proy-ph-inner p {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ── opciones ── */
.opciones { background: var(--bg-3); }
.opciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.opcion-card {
  padding: 2.25rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.opcion-card:hover { border-color: var(--line-2); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.opcion-featured {
  border-color: var(--gold-2);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(190, 175, 135, 0.15);
}
.opcion-featured:hover { border-color: var(--gold); }
.opcion-num {
  font-family: var(--num);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
  letter-spacing: -0.03em;
}
.opcion-card h3 {
  font-size: 1.6rem;
  color: var(--ink);
}
.opcion-lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.opcion-lista {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
  flex: 1;
}
.opcion-lista li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.opcion-lista li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 1.5px;
  background: var(--gold);
}
.opcion-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.opcion-tag-gold { color: var(--gold); border-color: var(--gold-2); }

/* ── acuerdo ── */
.acuerdo { background: var(--bg); }
.acuerdo-box {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--r);
  padding: clamp(2.5rem, 6vw, 5rem);
  background: var(--bg-2);
  max-width: 900px;
  margin-inline: auto;
}
.acuerdo-box h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.25rem;
}
.acuerdo-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 66ch;
  margin-bottom: 3rem;
}
.acuerdo-pasos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.ap {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.ap-n {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.ap h4 { margin-bottom: 0.35rem; font-size: 0.95rem; color: var(--ink); }
.ap p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.acuerdo-nota {
  padding: 1.5rem;
  background: var(--bg-3);
  border-radius: var(--r);
  border-left: 3px solid var(--gold);
}
.acuerdo-nota p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
}

/* ── 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-brand .brand-word {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.footer-brand .brand-rule {
  width: 24px; height: 1px;
  background: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}
.footer-brand .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}
.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;
}

/* ── 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 ── */
.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); }

/* ── gallery btn en project card ── */
.proy-gallery-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0 0.1rem;
  margin-top: 0.75rem;
  border: none;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.proy-gallery-btn:hover { color: var(--ink); border-color: var(--line-2); }
.proy-gallery-count { color: var(--muted-2); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.72rem; }

/* ── 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; }
@media (max-width: 768px) {
  .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; }
}

.agente-certs-inline {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}

/* ── credenciales / formación ── */
.credenciales {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.cred-head { margin-bottom: 2rem; max-width: 640px; }
.cred-head h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 0.4rem;
}
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cred-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: border-color 0.25s;
}
.cred-card:hover { border-color: var(--line-2); }
.cred-logo {
  background: #F7F4EC;
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 104px;
}
.cred-logo img { max-height: 58px; width: auto; max-width: 100%; }
.cred-sigla {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.cred-body h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.cred-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.cred-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.cred-tag {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.22rem 0.6rem;
}

/* ── condicionantes urbanísticos ── */
.condicionantes {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.cond-nota {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-2);
  border-radius: var(--r);
  padding: 1.4rem 1.75rem;
  margin-bottom: 1.25rem;
}
.cond-nota:last-child { margin-bottom: 0; }
.cond-nota h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.cond-nota p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── indicadores zona secondary ── */
.indicadores + .indicadores { margin-top: 2.5rem; }

/* ── validar (qué confirmamos en los 90 días) ── */
.validar {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.validar h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0.4rem 0 1.5rem;
  max-width: 720px;
}
.validar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.val-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-3);
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.25s;
}
.val-item:hover { border-color: var(--line-2); }
.val-q, .val-check {
  font-family: var(--num);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.val-check { font-family: var(--sans); font-size: 1.4rem; }
.val-item p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.validar-resultado {
  margin-top: 2.25rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--gold-2);
  border-radius: var(--r);
  background: var(--gold-soft);
}
.validar-cierre {
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink);
  line-height: 1.4;
}
.validar-cierre strong { color: var(--gold); font-weight: 600; }

/* ── propuesta de adquisición ── */
.adquisicion { background: var(--bg-2); }
.adq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: stretch;
}
.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; }
.adq-sujeto { margin-top: 2.5rem; }
.adq-cond {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.adq-cond li {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── estrategia de comercialización ── */
.com-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.com-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.25s;
}
.com-item:hover { border-color: var(--line-2); }
.com-check {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  flex-shrink: 0;
}
.com-item p { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.com-obj {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 880px;
}
.com-obj strong { color: var(--ink); font-weight: 500; }

/* ── qué necesitamos para avanzar ── */
.avanzar { background: var(--bg-3); }
.avz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.avz-item {
  border-top: 2px solid var(--gold-2);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.avz-n {
  font-family: var(--num);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.avz-item h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.avz-item p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

/* ── pilares head/cierre ── */
.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;
}

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

@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; }

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

  .split { grid-template-columns: 1fr; }
  .terreno-grid { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr 1fr; }
  .opciones-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .acuerdo-pasos { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .validar-grid { grid-template-columns: repeat(2, 1fr); }
  .com-grid { grid-template-columns: repeat(2, 1fr); }
  .avz-grid { grid-template-columns: 1fr; }
  .adq-grid { grid-template-columns: 1fr; }
  .loteo-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rest-grid { flex-direction: column; }
}

@media (max-width: 480px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .validar-grid { grid-template-columns: 1fr; }
  .com-grid { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .loteo-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT / PDF  —  documento A4, tema oscuro, todo visible
   ============================================================ */
@media print {
  @page { size: A4; margin: 0; }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html, body { background: var(--bg) !important; overflow: visible !important; }

  /* forzar todo el contenido visible (sin animaciones de scroll) */
  .reveal { opacity: 1 !important; transform: none !important; }
  [data-parallax] img, .hero-media img { transform: none !important; }
  * { animation: none !important; transition: none !important; }

  /* ocultar cromo de navegación / overlays */
  .site-header, .scroll-progress, .nav, .nav-toggle, .preloader,
  .grain, .marquee, .proy-gallery-btn, .gal-backdrop, .gal-modal { display: none !important; }

  /* espaciado de secciones — margen superior uniforme */
  .section { padding: 20mm 0 !important; }
  [id] { scroll-margin-top: 0 !important; }

  /* portada: hero ocupa una página */
  .hero { height: 100vh !important; min-height: 100vh !important; page-break-after: always; break-after: page; }
  .hero-content { padding-bottom: 6vh; }
  /* GSAP deja estos elementos en opacity:0 inline — forzarlos visibles en print */
  .hero-content, .hero-content .eyebrow, .hero-title, .hero-sub, .hero-stats {
    opacity: 1 !important; transform: none !important;
  }

  /* layouts de impresión: apilar para control de paginación */
  .split { grid-template-columns: 1fr !important; }
  .terreno-grid { grid-template-columns: 1fr !important; }

  /* cada sección grande empieza en página nueva */
  .terreno, .potencial, .proyectos, .opciones, .adquisicion,
  .comercializacion, .acuerdo, .avanzar { page-break-before: always; break-before: page; }

  /* sub-bloques que antes caían pegados al borde: página propia + aire arriba */
  .nosotros-pilares, .credenciales, .validar, .terreno-img {
    page-break-before: always; break-before: page; padding-top: 14mm !important;
  }

  /* ── PLANOS ENMARCADOS ── */
  /* banda de mensura (condicionantes) -> plano enmarcado + texto legible debajo */
  .fullbleed {
    page-break-before: always; break-before: page;
    height: auto !important; padding: 18mm 0 !important; overflow: visible !important;
  }
  .fullbleed img {
    position: static !important; height: auto !important; width: auto !important;
    max-height: 150mm; max-width: 84%; margin: 0 auto !important;
    object-fit: contain !important;
    border: 1px solid var(--gold-2); padding: 7px; background: #0e0d0a;
  }
  .fullbleed-scrim { display: none !important; }
  .fullbleed-cap {
    position: static !important; transform: none !important;
    left: auto !important; bottom: auto !important;
    margin: 9mm auto 0 !important; text-align: center;
  }
  /* plano de loteo (terreno) -> enmarcado y achicado ~10% */
  .terreno-img { text-align: center; }
  .terreno-img img {
    max-width: 78% !important; margin: 0 auto !important;
    border: 1px solid var(--gold-2); padding: 7px; background: #0e0d0a;
  }

  /* no partir tarjetas ni bloques clave */
  .cred-card, .opcion-card, .proy-card, .ap, .val-item, .com-item, .avz-item,
  .cond-nota, .adq-grid, .adq-precio, .adq-pago, .acuerdo-box, .terreno-ficha,
  .restricciones, .indicadores, .validar-resultado, .agente-card,
  .nosotros-pilares, .ind-item, .rest-item, .section-head {
    page-break-inside: avoid; break-inside: avoid;
  }

  /* grillas más anchas para A4 vertical */
  .proyectos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .com-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .avz-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ind-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .validar-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cred-grid { grid-template-columns: 1fr !important; }
  .acuerdo-pasos { grid-template-columns: 1fr 1fr !important; }

  /* proyectos compactos: las 4 tarjetas en una sola página */
  .proyectos { padding: 16mm 0 !important; }
  .proyectos .section-head { margin-bottom: 1rem !important; }
  .proyectos-grid { gap: 0.8rem !important; }
  .proy-media { height: 104px !important; }
  .proy-body { padding: 0.85rem 1.05rem !important; }
  .proy-body .eyebrow { margin-bottom: 0.3rem !important; }
  .proy-body h3 { font-size: 1.1rem !important; margin-bottom: 0.3rem !important; }
  .proy-body > p { font-size: 0.72rem !important; line-height: 1.4 !important; margin-bottom: 0.4rem !important; }
  .proy-data li { font-size: 0.72rem !important; padding: 0.22rem 0 !important; }

  img { max-width: 100% !important; }

  /* avanzar + footer en UNA sola página (flujo natural, compacto) */
  .avanzar { padding: 10mm 0 4mm !important; }
  .avz-grid { gap: 0.7rem 1.25rem !important; }
  .avz-item { padding-top: 0.85rem !important; }
  .site-footer { padding: 4mm 0 4mm !important; }
  .footer-grid { gap: 0.5rem 2rem !important; }
  .footer-col a, .footer-col p { padding: 0.1rem 0 !important; line-height: 1.4 !important; }
  .footer-col h5 { margin-bottom: 0.35rem !important; }
  .footer-logo { display: none !important; }
  .footer-legal { padding-top: 2mm !important; }
}
