/* =========================================================================
   AORA Bella Vista - Century 21 Mare
   Tema: Editorial Natural Luxury (oscuro, bloqueado). Acento unico: dorado C21.
   ========================================================================= */

:root {
  /* superficies */
  --bg:      #14130F;
  --bg-2:    #1B1A15;
  --bg-3:    #232118;
  --line:    rgba(244, 240, 230, 0.12);
  --line-2:  rgba(244, 240, 230, 0.20);

  /* tinta */
  --ink:     #F4F0E6;
  --muted:   #B9B3A4;
  --muted-2: #8A8475;

  /* acento (C21 Relentless Gold) */
  --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: 92px; }
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, iframe { 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);
}

/* ---------------- tipografia ---------------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; 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; }

/* ---------------- botones ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: var(--r);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #17150F; }
.btn-gold:hover { background: #cdbd92; transform: translateY(-2px); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgba(20, 19, 15, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-line { color: var(--gold); border-color: var(--gold); }
.btn-line:hover { background: var(--gold); color: #17150F; }
.btn-block { width: 100%; }

/* glifo WhatsApp (Simple Icons, via mask para heredar color) */
.wa-glyph {
  width: 1.05em; height: 1.05em; flex: none;
  background: currentColor;
  -webkit-mask: var(--wa) center / contain no-repeat;
  mask: var(--wa) center / contain no-repeat;
  --wa: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.885-9.886 9.885M20.52 3.449C18.24 1.245 15.24 0 12.045 0 5.463 0 .104 5.359.101 11.945c0 2.096.547 4.142 1.588 5.945L0 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.581 0 11.94-5.358 11.943-11.945A11.86 11.86 0 0020.52 3.449'/></svg>");
}

/* ---------------- marca AORA ---------------- */
.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.brand-word { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.34em; }
.brand-rule { width: 16px; height: 2px; background: var(--gold); align-self: center; }
.brand-sub { font-family: var(--sans); text-transform: uppercase; font-size: 0.6rem; letter-spacing: 0.32em; color: var(--muted); }

/* ---------------- header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(18, 17, 13, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav { display: flex; gap: 2rem; }
.nav a { font-size: 0.9rem; color: var(--muted); letter-spacing: 0.01em; transition: color 0.2s var(--ease); position: relative; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-wa { padding: 0.65em 1.1em; font-size: 0.85rem; color: var(--ink); border-color: var(--line-2); }
.btn-wa:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s var(--ease) infinite alternate; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15,14,10,0.92) 0%, rgba(15,14,10,0.35) 42%, rgba(15,14,10,0.15) 70%, rgba(15,14,10,0.4) 100%),
    linear-gradient(to right, rgba(15,14,10,0.6) 0%, transparent 55%);
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-content { position: relative; z-index: 1; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 120px; }
.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero-title em { font-style: italic; font-weight: 600; color: var(--gold); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: #E4DFD2; max-width: 44ch; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------------- bandas / secciones ---------------- */
.band { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 760px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1rem; }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intro-lead h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }
.intro-lead p { color: var(--muted); max-width: 52ch; }
.comercializa { display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; }
.comercializa span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-2); }
.comercializa img { height: 44px; width: auto; opacity: 0.95; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts li { background: var(--bg); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.fact-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); }
.fact-v { font-family: var(--num); font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }

/* split (texto + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.2rem; }
.split-text p { color: var(--muted); margin-bottom: 1rem; max-width: 52ch; }
.split-media img, .split-media iframe { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.split-media.map { aspect-ratio: 4 / 3.4; }
.split-media.map iframe { height: 100%; filter: grayscale(0.3) contrast(1.05); }
.map-facade { width: 100%; height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; background: radial-gradient(circle at 50% 38%, var(--bg-3), var(--bg-2) 70%); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); cursor: pointer; transition: border-color 0.25s var(--ease); }
.map-facade:hover { border-color: var(--gold); }
.map-facade-pin { width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); margin-bottom: 0.7rem; box-shadow: 0 0 0 7px var(--gold-soft); }
.map-facade-txt { font-weight: 600; letter-spacing: 0.02em; }
.map-facade-addr { font-size: 0.85rem; color: var(--muted-2); }
.ticks { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: 0.98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--gold); border-radius: 1px; }

/* amenities bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bento-tile { position: relative; min-height: 230px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bento-tile.has-img { grid-column: span 2; }
.bento-tile.has-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.bento-tile.has-img:hover img { transform: scale(1.05); }
.bento-tile.has-img .bento-label {
  position: absolute; inset: auto 0 0 0; padding: 1.3rem;
  background: linear-gradient(to top, rgba(12,11,8,0.85), transparent);
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.bento-tile.text { background: var(--bg-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.4rem; }
.bento-tile.text .bento-label { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.bento-tile.text::before { content: ""; position: absolute; top: 1.1rem; left: 1.1rem; width: 9px; height: 9px; background: var(--gold); border-radius: 1px; }

/* unidades */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.chip { padding: 0.55em 1.1em; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 0.85rem; color: var(--muted); transition: all 0.2s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--gold); }
.chip.is-active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.units-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.unit-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.unit-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.unit-figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.unit-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.unit-card:hover .unit-figure img { transform: scale(1.06); }
.unit-badge {
  position: absolute; top: 12px; left: 12px; padding: 0.35em 0.8em;
  background: rgba(15,14,10,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.unit-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.unit-where { font-size: 0.82rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.12em; }
.unit-title { font-family: var(--serif); font-size: 1.5rem; }
.unit-meta { display: flex; gap: 1.2rem; font-family: var(--num); color: var(--muted); font-size: 1.05rem; margin-top: 0.2rem; }
.unit-meta b { color: var(--ink); font-weight: 600; }
.unit-foot { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); }
.unit-price { font-family: var(--num); font-size: 1.7rem; font-weight: 700; color: var(--gold); line-height: 1; }
.unit-price small { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; margin-bottom: 0.25rem; }
.unit-cta { font-size: 0.85rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4em; transition: gap 0.25s var(--ease), color 0.25s var(--ease); }
.unit-card:hover .unit-cta { color: var(--gold); gap: 0.65em; }
.unit-cta::after { content: "\2192"; }

/* por que invertir */
.inversion { position: relative; overflow: hidden; }
.inversion-media { position: absolute; inset: 0; z-index: 0; }
.inversion-media img { width: 100%; height: 100%; object-fit: cover; }
.inversion-scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,12,9,0.94) 0%, rgba(13,12,9,0.78) 50%, rgba(13,12,9,0.55) 100%); }
.inversion-content { position: relative; z-index: 1; }
.section-head.light h2, .section-head.light .section-lead { color: var(--ink); }
.section-head.light .section-lead { color: #E0DBCD; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.reason { padding: 1.8rem 0 0; border-top: 1px solid var(--line-2); }
.reason-n { font-family: var(--num); font-size: 0.9rem; color: var(--gold); letter-spacing: 0.1em; }
.reason h3 { font-size: 1.4rem; margin: 0.7rem 0 0.6rem; }
.reason p { color: var(--muted); font-size: 0.95rem; }

/* ubicacion */
.near { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.8rem; }
.near-col h4 { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 0.9rem; font-weight: 600; }
.near-col ul { display: grid; gap: 0.55rem; }
.near-col li { color: var(--muted); font-size: 0.95rem; padding-left: 1rem; position: relative; }
.near-col li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; background: var(--gold-2); border-radius: 50%; }

/* galeria */
.galeria .container { margin-bottom: 2.2rem; }
.gallery-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: clamp(20px, 5vw, 48px); padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--gold-2) transparent;
}
.gallery-item { flex: 0 0 auto; width: min(82vw, 560px); scroll-snap-align: center; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.gallery-item figcaption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted-2); letter-spacing: 0.02em; }

/* especificaciones */
.spec-clusters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.spec-cluster { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem 1.5rem; }
.spec-cluster h3 { font-size: 1.4rem; margin-bottom: 1.1rem; color: var(--gold); }
.spec-cluster ul { display: grid; gap: 0.7rem; }
.spec-cluster li { color: var(--muted); font-size: 0.92rem; padding-left: 1.1rem; position: relative; }
.spec-cluster li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--gold); border-radius: 1px; }

/* contacto */
.contacto { background: var(--bg-2); border-top: 1px solid var(--line); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contacto-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.contacto-info > p { color: var(--muted); max-width: 46ch; }
.agente { margin-top: 2rem; }
.agente-name { font-family: var(--serif); font-size: 1.5rem; }
.agente-role { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 1.4rem; }
.agente-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.comercializa-logo { height: 58px; width: auto; margin-top: 2.4rem; opacity: 0.92; }
.contacto-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 0.85em 1em; color: var(--ink); font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--muted-2); text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); padding-bottom: 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand .footer-tag { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.footer-col h5 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-comercializa img { height: 52px; width: auto; opacity: 0.9; }
.footer-legal { padding-top: 1.8rem; display: grid; gap: 0.6rem; }
.footer-legal p { font-size: 0.76rem; color: var(--muted-2); line-height: 1.6; max-width: 90ch; }

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 32px); }
.modal[aria-hidden="false"] { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(8,7,5,0.74); backdrop-filter: blur(8px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 960px; max-height: 92vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; color: var(--ink); background: rgba(15,14,10,0.6); border: 1px solid var(--line-2); border-radius: var(--r); }
.modal-close:hover { color: var(--gold); border-color: var(--gold); }
.modal-body { display: grid; grid-template-columns: 1.05fr 1fr; }
.modal-figure { position: relative; min-height: 100%; }
.modal-figure img { width: 100%; height: 100%; object-fit: cover; }
.modal-figure .unit-badge { top: 16px; left: 16px; }
.modal-detail { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1.2rem; }
.modal-where { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); }
.modal-title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; }
.modal-price { font-family: var(--num); font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.modal-sup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.modal-sup div { background: var(--bg-3); padding: 0.85rem 1rem; }
.modal-sup .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.modal-sup .v { font-family: var(--num); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.modal-block h4 { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 0.6rem; }
.modal-block p { color: var(--muted); font-size: 0.92rem; }
.plano-box { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.plano-box img { width: 100%; background: #fff; }
.plano-empty { padding: 1.4rem; display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
.plano-empty .pico { width: 34px; height: 34px; flex: none; border: 1px solid var(--gold); border-radius: var(--r); display: grid; place-items: center; color: var(--gold); }
.modal-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* ---------------- reveals ---------------- */
html.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .reasons, .spec-clusters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 74px 0 auto 0; background: rgba(16,15,11,0.98);
    backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 0.5rem 0;
  }
  .nav.is-open a { padding: 1rem clamp(20px, 5vw, 48px); border-bottom: 1px solid var(--line); }
  .intro-grid, .split, .contacto-grid { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-figure { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (min-width: 861px) {
  .units-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .units-grid, .facts, .reasons, .spec-clusters, .near, .footer-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-tile.has-img { grid-column: span 1; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .btn-wa { display: none; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
}

/* ---------------- capa cinematográfica ---------------- */
/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* barra de progreso de scroll */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left center; z-index: 60; pointer-events: none; }

/* banda de números (contadores) */
.numbers { padding-block: clamp(48px, 7vw, 92px); border-bottom: 1px solid var(--line); background: var(--bg); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; }
.stat-line { display: flex; align-items: baseline; gap: 0.4rem; }
.stat-pre { font-family: var(--num); font-size: 1.1rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; }
.stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 600; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); max-width: 22ch; }
@media (max-width: 760px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 2.6rem 1rem; } }

/* parallax: contener el desborde de la imagen escalada */
.split-media[data-parallax] { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.split-media[data-parallax] img { border: 0; border-radius: 0; }
.inversion-media[data-parallax] { overflow: hidden; }

/* galería horizontal pinneada (desktop) */
@media (min-width: 861px) {
  .galeria.is-pinned { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 0; }
  .galeria.is-pinned .container { margin-bottom: 2.4vh; }
  .galeria.is-pinned .gallery-track { overflow: visible; padding-block: 0; }
  .galeria.is-pinned .gallery-item { width: 42vw; max-width: 640px; }
}

/* ============== GLAMOUR / FLASH ============== */
/* Preloader: cortina de apertura */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; }
.preloader-inner { text-align: center; }
.preloader .brand-word { display: block; font-family: var(--sans); font-weight: 600; font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: 0.42em; color: var(--ink); padding-left: 0.42em; }
.preloader-sub { display: block; margin-top: 0.9rem; font-size: 0.7rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: preSubIn 0.9s var(--ease) 0.35s forwards; }
@keyframes preSubIn { to { opacity: 1; } }
html:not(.js) .preloader { animation: preOut 0.5s var(--ease) 1.3s forwards; }
@keyframes preOut { to { opacity: 0; visibility: hidden; } }

/* Grano de película */
.grain { position: fixed; inset: -60%; z-index: 95; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; animation: grainShift 0.7s steps(4) infinite; }
@keyframes grainShift { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(2%,2%)} }

/* Brillo dorado en el hero */
.hero-title em { background: linear-gradient(100deg, var(--gold) 32%, #f5ecd2 50%, var(--gold) 68%); background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 6.5s linear infinite; }
@keyframes shimmer { to { background-position: -230% 0; } }

/* Marquesina cinética */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.5rem, 3.4vw, 2.8rem); background: var(--bg-2); }
.marquee-track { display: flex; align-items: center; gap: 2.6rem; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track .m-word { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 3rem); color: transparent; -webkit-text-stroke: 1px var(--gold-2); }
.marquee-track .m-dot { width: 9px; height: 9px; background: var(--gold); border-radius: 50%; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tilt 3D + reflector en unidades */
.units-grid { perspective: 1200px; position: relative; }
.units-grid::after { content: ""; position: absolute; inset: -2px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease); background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(190,175,135,0.12), transparent 62%); }
.units-grid.spot::after { opacity: 1; }
.unit-card { transform-style: preserve-3d; will-change: transform; }

/* Reveals más dramáticos */
html.js .reveal { transform: translateY(38px) scale(0.985); }
.reveal { transition-duration: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
  .grain { animation: none; }
  .marquee-track { animation: none; }
  .hero-title em { animation: none; -webkit-text-fill-color: var(--gold); color: var(--gold); }
}

/* ============== BOTÓN FLOTANTE WHATSAPP (mobile) ============== */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 96;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease);
}
.wa-fab:active { transform: scale(0.93); }
.wa-fab .wa-glyph { width: 30px; height: 30px; }
@media (max-width: 860px) { .wa-fab { display: flex; } }

/* ============== MOBILE-FIRST POLISH (<= 600px) ============== */
@media (max-width: 600px) {
  /* espaciado compacto */
  .section { padding-block: clamp(46px, 13vw, 78px); }
  .band, .numbers { padding-block: clamp(40px, 11vw, 70px); }
  .section-head { margin-bottom: 1.7rem; }
  .container { padding-inline: 18px; }

  /* tipografía que escala bien en pantalla chica */
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.2rem); line-height: 1.06; max-width: 18ch; }
  .hero-sub { font-size: 1rem; max-width: 38ch; }
  .section-head h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.1; }
  .intro-lead h2, .split-text h2, .contacto-info h2 { font-size: clamp(1.6rem, 7.5vw, 2.1rem); }
  .section-lead, .intro-lead p, .split-text p { font-size: 1rem; }

  /* hero respira bajo el header */
  .hero-content { padding-top: 94px; padding-bottom: 60px; }

  /* números: 2 por fila, sin apretarse */
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 2.1rem 1rem; }
  .stat { gap: 0.5rem; }
  .stat-num { font-size: clamp(1.8rem, 9vw, 3.2rem); }
  .stat-pre { font-size: 0.95rem; }
  .stat-label { font-size: 0.68rem; letter-spacing: 0.12em; }
  .fact-v { font-size: 1.3rem; }
  .facts li { padding: 1.3rem 1.2rem; }

  /* imágenes con altura sensata */
  .split-media img, .split-media iframe, .map-facade { min-height: 220px; }
  .split-media.map { aspect-ratio: 4 / 3.2; }
  .split { gap: 1.6rem; }

  /* bento más bajo */
  .bento { gap: 10px; }
  .bento-tile { min-height: 180px; }
  .bento-tile.has-img .bento-label, .bento-tile.text .bento-label { font-size: 1.18rem; padding: 1rem; }

  /* unidades cómodas */
  .filters { margin-bottom: 1.6rem; gap: 0.5rem; }
  .unit-body { padding: 1.2rem; }
  .unit-title { font-size: 1.3rem; }
  .unit-price { font-size: 1.5rem; }

  /* galería: casi ancho completo con un asomo del próximo */
  .gallery-item { width: 86vw; }

  /* modal a pantalla completa, legible */
  .modal { padding: 0; }
  .modal-card { max-width: 100%; width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .modal-figure { aspect-ratio: 16 / 11; }
  .modal-detail { padding: 1.4rem; gap: 1rem; }
  .modal-price { font-size: 1.85rem; }
  .modal-cta .btn { flex: 1; }
  .modal-close { top: 10px; right: 10px; }

  /* contacto / footer */
  .contacto-form { padding: 1.4rem; }
  .agente-links { width: 100%; }
  .agente-links .btn { flex: 1; }
  .footer-grid { gap: 1.5rem; }

  /* marquesina un poco menor */
  .marquee-track { gap: 1.8rem; }
  .marquee-track .m-word { font-size: 1.55rem; }

  /* reveals con menos desplazamiento en mobile */
  html.js .reveal { transform: translateY(22px); }
}
