/* =========================================================================
   DOS OLIVOS — Rodríguez Peña 947 · San Miguel
   Desarrolla: Jireh Constructora · Proyecto: Chocla Arquitectura
   Marketing: Century 21 Mare
   Tema: Editorial Natural — claro, verde oliva + crema. Acento: terracota.
   ========================================================================= */

:root {
  --paper:    #F6F4EA;
  --paper-2:  #EFEDDF;
  --paper-3:  #E6E4D3;
  --ink:      #2B2C22;
  --muted:    #5E6150;
  --muted-2:  #8A8C79;
  --olive:    #5E6B41;
  --olive-2:  #6E7C4C;
  --olive-deep: #333A25;
  --sage:     #AEB093;
  --sage-soft: rgba(94, 107, 65, 0.12);
  --clay:     #A85A45;
  --line:     rgba(43, 44, 34, 0.13);
  --line-2:   rgba(43, 44, 34, 0.22);
  --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(--paper);
  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(--olive);
  margin-bottom: 1rem;
}
.section-lead { color: var(--muted); max-width: 60ch; font-size: 1.05rem; line-height: 1.65; }

/* ── botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--r);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--olive); color: var(--paper); }
.btn-primary:hover { background: var(--olive-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); }
.btn-light { background: rgba(246,244,234,0.12); color: var(--paper); border: 1px solid rgba(246,244,234,0.3); }
.btn-light:hover { background: var(--paper); color: var(--olive-deep); }

/* ── olive branch motif ── */
.brand-olive { display: inline-block; color: var(--olive); }

/* ── preloader ── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--paper);
  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; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.preloader-inner .pl-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  letter-spacing: 0.18em;
  color: var(--olive-deep);
  line-height: 1;
}
.preloader-sub {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive);
}

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

/* ── header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 244, 234, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark { display: flex; flex-direction: column; line-height: 0.92; }
.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin-top: 0.18rem;
}
.brand .brand-olive { width: 38px; height: auto; opacity: 0.95; }
/* header sobre el hero (sin scroll): texto claro */
.site-header:not(.is-scrolled) .brand-word { color: var(--paper); }
.site-header:not(.is-scrolled) .brand-sub { color: rgba(246,244,234,0.8); }
.site-header:not(.is-scrolled) .brand .brand-olive { color: var(--paper); }
.site-header:not(.is-scrolled) .nav a { color: rgba(246,244,234,0.85); }
.site-header:not(.is-scrolled) .nav a:hover { color: var(--paper); }
.site-header:not(.is-scrolled) .nav-toggle span { background: var(--paper); }

.nav { display: flex; gap: 1.9rem; margin-left: auto; align-items: center; }
.nav a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); transition: color 0.2s;
}
.nav a:hover { color: var(--olive); }
.nav .btn { margin-left: 0.4rem; }
/* el CTA del nav mantiene texto claro en cualquier estado del header */
.site-header .nav a.btn-primary,
.site-header:not(.is-scrolled) .nav a.btn-primary,
.site-header .nav a.btn-primary:hover { color: var(--paper); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 1.6px; 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; background: var(--olive-deep); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; will-change: transform; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,33,22,0.45) 0%, rgba(30,33,22,0.35) 38%, rgba(28,31,20,0.88) 100%);
}
.hero-content { position: relative; z-index: 1; color: var(--paper); }
.hero .eyebrow { color: #D7D6B8; margin-bottom: 1.5rem; }
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.16;
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.hero-title em { font-style: italic; color: #D8DBA6; }
.hero-sub {
  color: rgba(246,244,234,0.88);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 54ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  background: rgba(28,31,20,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(246,244,234,0.18);
  border-radius: var(--r);
  padding: 1.2rem 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.85rem); font-weight: 600; color: #D8DBA6; line-height: 1.1; }
.hs-u { font-size: 0.66rem; letter-spacing: 0.1em; color: rgba(246,244,234,0.75); text-transform: uppercase; }
.hs-div { width: 1px; height: 36px; background: rgba(246,244,234,0.2); flex-shrink: 0; }

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

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.25rem; }
.split-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }

/* ── proyecto / features ── */
.proyecto { background: var(--paper); }
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem; margin-top: 0.5rem;
}
.feat {
  border: 1px solid var(--line); border-left: 3px solid var(--olive);
  border-radius: var(--r); background: var(--paper-2);
  padding: 1.25rem 1.4rem;
}
.feat h4 { color: var(--ink); margin-bottom: 0.35rem; font-size: 0.92rem; }
.feat p { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.proyecto-media { position: relative; }
.proyecto-media img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.proyecto-badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: var(--olive-deep); color: var(--paper);
  font-family: var(--num); font-weight: 600; letter-spacing: 0.04em;
  font-size: 0.82rem; padding: 0.5rem 0.9rem; border-radius: 2px;
}

/* ── banda fullbleed ── */
.fullbleed { position: relative; height: clamp(320px, 42vw, 520px); 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(28,31,20,0.82) 0%, rgba(28,31,20,0.25) 55%, transparent 100%); }
.fullbleed-cap { position: absolute; bottom: clamp(1.5rem, 5vw, 3rem); left: 50%; transform: translateX(-50%); width: 100%; color: var(--paper); }
.fullbleed-cap h2 { font-size: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: 0.5rem; color: var(--paper); }
.fullbleed-cap h2 em { font-style: italic; color: #D8DBA6; }
.fullbleed-cap p { color: rgba(246,244,234,0.85); font-size: 0.95rem; max-width: 52ch; }

/* ── unidades / tipologías ── */
.unidades { background: var(--paper-2); }
.unidades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.unidad-card {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.unidad-card:hover { border-color: var(--olive); box-shadow: 0 14px 40px rgba(51,58,37,0.12); transform: translateY(-3px); }
.unidad-media { margin: 0; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.unidad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.unidad-card:hover .unidad-media img { transform: scale(1.05); }
.unidad-tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--olive-deep); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 2px;
}
.unidad-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.unidad-body h3 { font-size: 1.7rem; margin-bottom: 0.2rem; color: var(--ink); }
.unidad-orient { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem; }
.unidad-specs { display: flex; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.uspec { display: flex; flex-direction: column; gap: 0.15rem; }
.uspec-v { font-family: var(--num); font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1; }
.uspec-k { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.unidad-variants { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; flex: 1; }
.uvar { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.84rem; }
.uvar span:first-child { color: var(--muted); }
.uvar span:last-child { font-family: var(--num); font-weight: 600; color: var(--olive); white-space: nowrap; }
.unidad-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1.1rem; }
.unidad-price .up-from { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.unidad-price .up-val { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; }
.unidad-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ── precios / financiación ── */
.precios { background: var(--paper); }
.precios-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.precios-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.precios-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.precios-table thead th {
  background: var(--olive-deep); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1rem 1.1rem; text-align: right; white-space: nowrap;
}
.precios-table thead th:first-child { text-align: left; }
.precios-table thead th .th-sub { display: block; font-weight: 400; font-size: 0.6rem; color: rgba(246,244,234,0.7); letter-spacing: 0.04em; margin-top: 0.15rem; text-transform: none; }
.precios-table tbody td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.88rem; text-align: right; }
.precios-table tbody td:first-child { text-align: left; }
.precios-table tbody tr:last-child td { border-bottom: none; }
.precios-table tbody tr:hover { background: var(--sage-soft); }
.pt-tipo { color: var(--ink); font-weight: 600; }
.pt-tipo small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.02em; }
.pt-contado { font-family: var(--num); font-weight: 700; color: var(--olive); font-size: 1.02rem; }
.pt-fin { font-family: var(--num); font-weight: 600; color: var(--ink); }
.pt-na { color: var(--muted-2); }
.precios-table tbody tr.pt-coch td:first-child { color: var(--muted); }
.precios-table tbody tr.pt-coch { background: var(--paper-3); }

.precios-nota {
  margin-top: 1.5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem;
}
.fin-explica {
  border: 1px solid var(--line); border-left: 3px solid var(--olive);
  border-radius: var(--r); background: var(--paper-2); padding: 1.4rem 1.6rem;
}
.fin-explica h4 { color: var(--ink); margin-bottom: 0.5rem; }
.fin-explica p { color: var(--muted); font-size: 0.86rem; line-height: 1.7; }
.fin-explica strong { color: var(--olive); font-weight: 600; }
.fin-cta {
  border: 1px solid var(--olive); border-radius: var(--r);
  background: var(--sage-soft); padding: 1.4rem 1.6rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.85rem;
}
.fin-cta p { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.fin-cta .btn { align-self: flex-start; }
.precios-legal { margin-top: 1.25rem; font-size: 0.74rem; color: var(--muted-2); line-height: 1.6; }

/* ── marquesina ── */
.marquee { overflow: hidden; padding-block: 1.1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sage); }
.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(--olive-deep); flex-shrink: 0; }
.m-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--olive-deep); align-self: center; flex-shrink: 0; opacity: 0.6; }

/* ── galería ── */
.galeria { background: var(--paper-2); }
.galeria-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gitem { margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); position: relative; cursor: pointer; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gitem:hover img { transform: scale(1.06); }
.gitem.g-wide { grid-column: span 2; }
.gitem.g-tall { grid-row: span 2; }
.gitem-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem 0.8rem; background: linear-gradient(to top, rgba(28,31,20,0.8), transparent); color: var(--paper); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s; }
.gitem:hover .gitem-cap { opacity: 1; }

/* ── plantas ── */
.plantas { background: var(--paper); }
.disp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.disp-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); padding: 1.6rem 1.5rem; }
.disp-v { font-family: var(--num); font-size: 2.4rem; font-weight: 700; color: var(--olive); line-height: 1; margin-bottom: 0.4rem; }
.disp-k { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.plantas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.planta-fig { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 1.25rem; }
.planta-fig img { width: 100%; height: auto; }
.planta-fig figcaption { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); display: flex; justify-content: space-between; }
.planta-fig figcaption strong { color: var(--olive); font-weight: 600; }

/* ── ubicación ── */
.ubicacion { background: var(--paper-2); }
.ubi-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ubi-map { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 1rem; }
.ubi-map img { width: 100%; height: auto; border-radius: 2px; }
.ubi-dir { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; }
.ubi-dir .pin { color: var(--clay); font-size: 1.1rem; }
.ubi-dir span { font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.ubi-cols { display: flex; flex-direction: column; gap: 1.4rem; margin: 1.75rem 0; }
.ubi-col { padding-left: 1.1rem; border-left: 3px solid var(--clay); }
.ubi-col h4 { color: var(--ink); margin-bottom: 0.35rem; font-size: 0.98rem; }
.ubi-col p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ── amenities ── */
.amenities { background: var(--olive-deep); color: var(--paper); }
.amenities .eyebrow { color: #C9CBA0; }
.amenities .section-head h2 { color: var(--paper); }
.amenities .section-lead { color: rgba(246,244,234,0.82); }
.amen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.amen { border: 1px solid rgba(246,244,234,0.16); border-radius: var(--r); padding: 1.6rem 1.5rem; background: rgba(246,244,234,0.04); transition: background 0.25s; }
.amen:hover { background: rgba(246,244,234,0.08); }
.amen-ico { width: 2.4rem; height: 2.4rem; color: #D8DBA6; margin-bottom: 0.9rem; }
.amen h4 { color: var(--paper); margin-bottom: 0.35rem; }
.amen p { color: rgba(246,244,234,0.72); font-size: 0.85rem; line-height: 1.55; }
.calidad-row { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(246,244,234,0.16); display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cpill { border: 1px solid rgba(246,244,234,0.25); border-radius: 100px; padding: 0.5rem 1.1rem; font-size: 0.8rem; color: rgba(246,244,234,0.9); }

/* ── CTA contacto ── */
.contacto { background: var(--paper); }
.contacto-box {
  border: 1px solid var(--line); border-top: 3px solid var(--olive);
  border-radius: var(--r); background: var(--paper-2);
  padding: clamp(2.5rem, 6vw, 4.5rem); max-width: 980px; margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.contacto-box h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.contacto-box h2 em { font-style: italic; color: var(--olive); }
.contacto-box .section-lead { margin-bottom: 1.75rem; }
.contacto-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.asesor-card { border: 1px solid var(--line); border-left: 3px solid var(--olive); border-radius: var(--r); background: var(--paper); padding: 1.6rem 1.75rem; }
.asesor-tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); font-weight: 600; margin-bottom: 0.6rem; }
.asesor-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.asesor-role { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; margin-bottom: 1rem; }
.asesor-card a { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; transition: color 0.2s; }
.asesor-card a:hover { color: var(--olive); }
.asesor-card a svg { width: 1.05em; height: 1.05em; color: var(--olive); flex-shrink: 0; }

/* ── footer ── */
.site-footer { background: var(--olive-deep); color: var(--paper); padding-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.75rem; border-bottom: 1px solid rgba(246,244,234,0.16); }
.footer-brand .brand-word { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.12em; color: var(--paper); display: block; }
.footer-brand .brand-sub { display: block; font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(246,244,234,0.7); margin-top: 0.25rem; }
.footer-brand .brand-olive { color: #D8DBA6; width: 54px; margin-top: 1rem; }
.footer-brand p { color: rgba(246,244,234,0.7); font-size: 0.85rem; line-height: 1.6; margin-top: 1rem; max-width: 34ch; }
.footer-col h5 { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246,244,234,0.6); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.86rem; color: rgba(246,244,234,0.82); margin-bottom: 0.55rem; line-height: 1.5; }
.footer-col a:hover { color: #D8DBA6; }
.footer-partners { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center; padding: 2.25rem 0; border-bottom: 1px solid rgba(246,244,234,0.16); }
.fpart { text-align: center; }
.fpart .fp-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,244,234,0.55); margin-bottom: 0.85rem; }
.fpart-logo { display: flex; align-items: center; justify-content: center; height: 56px; background: var(--paper); border-radius: var(--r); padding: 0.6rem 1rem; }
.fpart-logo img { max-height: 100%; width: auto; max-width: 78%; }
.footer-legal { padding-block: 1.5rem; }
.footer-legal p { font-size: 0.72rem; color: rgba(246,244,234,0.55); line-height: 1.6; }

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 950; display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--olive); color: var(--paper);
  padding: 0.85rem 1.25rem; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(51,58,37,0.32);
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); background: var(--olive-deep); }
.wa-float svg { width: 1.3rem; height: 1.3rem; }
.wa-float .wa-label { white-space: nowrap; }

/* ── 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.022; mix-blend-mode: multiply;
}

/* ── reveal (con fix Safari nuclear más abajo) ── */
.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); }

/* ── lightbox galería ── */
.gal-backdrop { position: fixed; inset: 0; background: rgba(20,22,14,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(246,244,234,0.1); border: 1px solid rgba(246,244,234,0.25); color: var(--paper); 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(246,244,234,0.22); }
.gal-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; background: rgba(246,244,234,0.09); border: 1px solid rgba(246,244,234,0.25); color: var(--paper); 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(246,244,234,0.2); }
.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: rgba(246,244,234,0.75); font-weight: 500; }
.gal-counter { font-family: var(--num); font-size: 0.85rem; color: #D8DBA6; font-weight: 700; letter-spacing: 0.04em; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .unidades-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .amen-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 2.25rem; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .precios-nota { grid-template-columns: 1fr; }
  .plantas-grid { grid-template-columns: 1fr; }
  .ubi-grid { grid-template-columns: 1fr; }
  .contacto-box { grid-template-columns: 1fr; }
  .disp-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-auto-rows: 200px; }
}
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; gap: 0; position: fixed; inset: 0; background: var(--paper); padding-top: 100px; padding-inline: 28px; z-index: 800; align-items: stretch; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.4rem; font-family: var(--serif); padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-header:not(.is-scrolled) .nav.is-open a { color: var(--ink); }
  .nav .btn { margin-top: 1.25rem; justify-content: center; }
  .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; }
  .feature-grid { grid-template-columns: 1fr; }
  .amen-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-partners { grid-template-columns: 1fr; gap: 1.75rem; }
  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .gitem.g-wide, .gitem.g-tall { grid-column: auto; grid-row: auto; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 0.9rem; }
  .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) {
  .galeria-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}

/* =========================================================================
   FIX SAFARI/Mac — el reveal queda invisible si el observer no dispara.
   Regla nuclear: forzar visible por CSS, sin depender de JS ni animaciones.
   (ver reveal-safari-bug.md) — debe ir al FINAL para ganar especificidad.
   ========================================================================= */
html.js .reveal { opacity: 1 !important; transform: none !important; }

/* ── print (PDF rápido vía Ctrl+P; el brochure final usa HTML dedicado) ── */
@media print {
  @page { size: A4; margin: 14mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .site-header, .scroll-progress, .preloader, .grain, .marquee, .wa-float,
  .gal-backdrop, .gal-modal, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 10mm !important; }
  .unidades-grid, .amen-grid, .feature-grid { grid-template-columns: 1fr 1fr !important; }
  .unidad-card, .planta-fig, .disp-item, .feat, .amen { page-break-inside: avoid; break-inside: avoid; }
  .hero { min-height: auto !important; height: 92vh !important; page-break-after: always; }
}
