/* ============================================================
   VICARIO 215 — Hoja de estilos compartida
   index.html, index-en.html, tipologia.html, tipologia-en.html
   ============================================================ */

:root {
  --cream:    #F4EFE6;
  --white:    #FAFAF8;
  --black:    #0C0B09;
  --charcoal: #1E1D1B;
  --stone:    #7A7671;
  --gold:     #B8975A;
  --gold-lt:  #D4B07A;
  --border:   rgba(0,0,0,0.10);
  --border-lt: rgba(255,255,255,0.14);

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  Helvetica, Arial, sans-serif;

  --section-v: clamp(64px, 9vw, 128px);
  --gutter:    clamp(20px, 5vw, 88px);
  --radius:    2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- utilidades tipográficas ---------- */
.label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.headline em { font-style: italic; color: var(--gold); }
.body-text {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--stone);
  max-width: 640px;
}
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.pad { padding: var(--section-v) 0; }
.light-section { background: var(--cream); color: var(--charcoal); }
.dark-section  { background: var(--charcoal); color: var(--white); }
.dark-section .body-text { color: rgba(255,255,255,0.55); }
.dark-section .headline  { color: var(--white); }
.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 40px 0;
}
.dark-section .hr { background: var(--border-lt); }
.disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--stone);
  opacity: 0.85;
}
.dark-section .disclaimer { color: rgba(255,255,255,0.4); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--charcoal); color: var(--white); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--gold); color: var(--black); }
.btn-outline { border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--charcoal); color: var(--white); }
.dark-section .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.dark-section .btn-outline:hover { background: var(--white); color: var(--black); }
/* boton secundario del hero: sobre fotografia, sin heredar dark-section */
#hero .btn-outline {
  color: var(--cream);
  border: 1.5px solid rgba(250,250,248,0.85);
  background: rgba(12,11,9,0.32);
}
#hero .btn-outline:hover, #hero .btn-outline:focus-visible {
  background: rgba(12,11,9,0.55);
  color: var(--white);
  border-color: #fff;
}
#hero .btn-outline:active { background: rgba(12,11,9,0.7); }
#hero .btn-outline:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-lt); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; box-sizing: border-box; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
#navbar.nav-dark  { color: var(--white); }
#navbar.nav-light { color: var(--charcoal); }
#navbar.nav-dark.scrolled, #navbar.nav-light.scrolled { color: var(--white); }
#navbar.scrolled { background: rgba(12,11,9,0.72); -webkit-backdrop-filter: blur(18px) saturate(125%); backdrop-filter: blur(18px) saturate(125%); padding-top: 14px; padding-bottom: 14px; }
.nav-logo { font-family: var(--font-serif); font-size: 18px; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.04em; }
.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.lang-switch { font-size: 12px; letter-spacing: 0.08em; border: 1px solid currentColor; padding: 5px 10px; opacity: 0.85; border-radius: var(--radius); }
.nav-cta {
  padding: 11px 22px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--gold); color: var(--black); border-radius: var(--radius);
}
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-mobile-toggle span { height: 1.5px; background: currentColor; display: block; }
.nav-lang-mobile { display: none; }

/* ============================================================
   1. HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 38%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,11,9,0.15) 0%, rgba(12,11,9,0.15) 40%, rgba(12,11,9,0.82) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding: 0 var(--gutter) clamp(56px,8vw,96px); }
.hero-eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 18px; }
.hero-headline { font-family: var(--font-serif); font-size: clamp(38px, 6.4vw, 84px); line-height: 1.05; font-weight: 400; max-width: 820px; }
.hero-sub { margin-top: 18px; font-size: clamp(15px,1.6vw,19px); max-width: 560px; color: rgba(255,255,255,0.82); line-height: 1.6; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: 13px; letter-spacing: 0.02em; color: rgba(255,255,255,0.75); }
.hero-facts span::before { content: '·'; margin-right: 28px; color: var(--gold); }
.hero-facts span:first-child::before { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ============================================================
   2. UBICACIÓN
   ============================================================ */
.loc-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px,4vw,64px); align-items: start; }
.loc-map-wrap { position: relative; align-self: start; }
.loc-map-wrap img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center 62%; border-radius: var(--radius); }
.loc-photo { position: relative; }
.loc-pin { position: absolute; width: 0; height: 0; }
.loc-pin-dot { position: absolute; left: 0; top: 0; transform: translate(-50%,-50%); width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: rgba(184,151,90,0.95); box-shadow: 0 0 0 5px rgba(255,255,255,0.18), 0 0 0 1px rgba(0,0,0,0.25); z-index: 2; }
.loc-pin-label { position: absolute; left: 12px; top: 0; transform: translateY(-50%); background: rgba(12,11,9,0.82); color: #fff; font-size: 11px; padding: 5px 9px; border-radius: 2px; white-space: nowrap; z-index: 1; }
.loc-list { list-style: none; }
.loc-list li { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.loc-list li span:first-child { color: var(--charcoal); }
.loc-list li span:last-child { color: var(--gold); font-family: var(--font-serif); font-size: 16px; }
.loc-park { margin-top: 24px; }
.loc-park img { width: 100%; max-width: 280px; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }
.loc-figcaption { font-size: 12px; color: var(--stone); margin-top: 8px; line-height: 1.5; }
figure.loc-figure { margin: 0; }
.loc-link-ext { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ============================================================
   3. PROYECTO
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; }
.proj-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: #000; }
.proj-media img, .proj-media video { width: 100%; height: 100%; object-fit: cover; }
.proj-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28); transition: background 0.25s;
}
.proj-play:hover { background: rgba(0,0,0,0.4); }
.proj-play-icon {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
}
.levels { margin: 30px 0; }
.level-diagram { display: flex; flex-direction: column; gap: 3px; margin: 28px 0; max-width: 340px; }
.level-band { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 2px; font-size: 12.5px; }
.level-band .level-tag { font-family: var(--font-serif); font-size: 13px; width: 26px; flex-shrink: 0; text-align: center; }
.level-band.rooftop { background: rgba(184,151,90,0.16); color: var(--gold-lt); }
.level-band.unit { background: rgba(255,255,255,0.055); color: rgba(255,255,255,0.72); }
.level-band.pb { background: rgba(255,255,255,0.025); color: rgba(255,255,255,0.42); font-style: italic; }
.level-total { font-size: 13px; color: var(--gold); margin-bottom: 18px; }
.materiality { margin-top: 26px; font-size: 15px; line-height: 1.75; color: var(--stone); border-left: 2px solid var(--gold); padding-left: 18px; }

/* ============================================================
   4. HISTORIA
   ============================================================ */
.history-top { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px,5vw,64px); align-items: center; margin-bottom: clamp(40px,6vw,72px); }
.history-top img { width: 100%; border-radius: var(--radius); }
.history-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px,2.4vw,30px); line-height: 1.35; margin: 18px 0; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.track-card { background: var(--cream); padding: clamp(20px,3vw,34px); }
.track-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; margin-bottom: 20px; }
.track-media > img, .track-media figure { width: 100%; min-width: 0; }
.track-media img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.track-media figure { margin: 0; }
.track-media figcaption { font-size: 11px; color: var(--stone); margin-top: 6px; }
.track-name { font-family: var(--font-serif); font-size: 24px; margin-bottom: 6px; }
.track-meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.track-desc { font-size: 14px; color: var(--stone); line-height: 1.7; margin-bottom: 10px; }
.track-proof { font-size: 13px; font-style: italic; color: var(--charcoal); }

/* ============================================================
   5. TIPOLOGÍAS
   ============================================================ */
.typo-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2px; background: var(--border); }
.typo-card { background: var(--white); display: flex; flex-direction: column; min-width: 0; transition: background 0.2s; }
.typo-card:hover { background: var(--cream); }
.typo-card .ti { aspect-ratio: 4/3; overflow: hidden; }
.typo-card .ti img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.typo-card:hover .ti img { transform: scale(1.04); }
.typo-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.typo-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.typo-name { font-family: var(--font-serif); font-size: 21px; margin-bottom: 4px; }
.typo-size { font-size: 13px; color: var(--stone); margin-bottom: 10px; }
.typo-desc { font-size: 13px; color: var(--stone); line-height: 1.5; flex: 1; }
.typo-link { margin-top: 14px; font-size: 12px; letter-spacing: 0.05em; color: var(--charcoal); border-bottom: 1px solid var(--charcoal); align-self: flex-start; padding-bottom: 1px; white-space: nowrap; }
.typo-cta { background: var(--charcoal); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; }
.typo-cta .typo-name { color: var(--white); font-size: 22px; }
.typo-cta p { font-size: 13px; color: rgba(255,255,255,0.6); margin: 10px 0 18px; }

/* ============================================================
   6. AMENIDADES — tres grupos, cada uno con imagen visible siempre
   ============================================================ */
.amen-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.amen-card { background: rgba(255,255,255,0.03); border-radius: var(--radius); overflow: hidden; }
.amen-card-img { position: relative; aspect-ratio: 4/3; background: var(--black); }
.amen-card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s var(--ease); }
.amen-card-img img.fit-contain {
  /* Elevador: llena el marco y prioriza planta baja / salita inferior */
  object-fit: cover;
  object-position: center bottom;
  background: #171614;
}
.amen-card-img img.fading { opacity: 0.35; }
.amen-card-caption { font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,0.55); padding: 8px 22px 0; font-style: italic; min-height: 24px; box-sizing: content-box; }
.amen-card-body { padding: 20px 22px 24px; }
.amen-card-title { font-family: var(--font-serif); font-size: 21px; color: var(--white); margin-bottom: 12px; }
.amen-card-list { display: flex; flex-direction: column; gap: 2px; }
.amen-card-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 8px; margin: 0 -8px; border-radius: var(--radius);
  font-size: 13.5px; color: rgba(255,255,255,0.68); transition: background 0.2s, color 0.2s;
}
.amen-card-item:hover, .amen-card-item:focus-visible, .amen-card-item.active { background: rgba(184,151,90,0.14); color: var(--gold-lt); }
.amen-card-item .amen-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; opacity: 0.7; }

/* ============================================================
   7. PARA VIVIR O INVERTIR
   ============================================================ */
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border-lt); margin-top: 36px; }
.dual-card { background: var(--charcoal); padding: clamp(26px,3.5vw,40px); }
.dual-title { font-family: var(--font-serif); font-size: 26px; color: var(--gold-lt); margin-bottom: 20px; }
.dual-list li { padding: 10px 0; border-bottom: 1px solid var(--border-lt); font-size: 14.5px; color: rgba(255,255,255,0.75); }
.dual-note { text-align: center; margin-top: 30px; font-size: 12.5px; color: rgba(255,255,255,0.4); }

/* ============================================================
   8. PLANES DE PAGO
   ============================================================ */
/* ============================================================
   8. PLANES DE PAGO — seleccionables (radio estilizado)
   ============================================================ */
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.plan-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.plan-card:hover { border-color: var(--gold); }
.plan-card.selected { border-color: var(--gold); box-shadow: 0 8px 30px rgba(184,151,90,0.16); }
.plan-card input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-radio-dot {
  position: absolute; top: 24px; right: 24px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; transition: border-color 0.2s;
}
.plan-radio-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 0.18s var(--ease); }
.plan-card.selected .plan-radio-dot { border-color: var(--gold); }
.plan-card.selected .plan-radio-dot::after { transform: scale(1); }
.plan-card input:focus-visible ~ .plan-radio-dot { outline: 2px solid var(--gold); outline-offset: 2px; }
.plan-selected-tag { display: none; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.plan-card.selected .plan-selected-tag { display: block; }
.plan-name { font-family: var(--font-serif); font-size: 22px; margin-bottom: 18px; padding-right: 30px; }
.plan-bar { display: flex; height: 34px; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.plan-seg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 400; color: #fff; }
.plan-seg.enganche { background: var(--charcoal); }
.plan-seg.obra { background: var(--gold); color: var(--black); }
.plan-seg.entrega { background: var(--stone); }
.plan-legend { display: flex; gap: 14px; font-size: 11px; color: var(--stone); margin-bottom: 16px; flex-wrap: wrap; }
.plan-legend span::before { content: '●'; margin-right: 4px; font-size: 8px; vertical-align: middle; }
.plan-desc { font-size: 13.5px; color: var(--stone); line-height: 1.6; }


/* selector de unidad para cotización personalizada */
.quote-unit-picker {
  width: min(460px, 100%);
  margin: 34px auto 0;
  text-align: left;
}
.quote-unit-label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-unit-select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.quote-unit-select:hover,
.quote-unit-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,151,90,.08);
}
.quote-unit-help {
  margin: 9px 0 0;
  min-height: 19px;
  color: var(--stone);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.quote-unit-help.ready { color: #7d6a45; }
.quote-cta-wrap {
  text-align: center;
  margin-top: 18px;
}
#planQuoteCta.quote-cta-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: auto;
}
#planQuoteCta:not(.quote-cta-disabled) {
  transition: transform .22s var(--ease), background-color .22s ease, color .22s ease, opacity .22s ease;
}
#planQuoteCta:not(.quote-cta-disabled):hover {
  transform: translateY(-2px) scale(1.012);
}

/* ============================================================
   9. PROCESO
   ============================================================ */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0; }
.step-item { padding-left: 24px; border-left: 1px solid var(--border); }
.step-item:first-child { padding-left: 0; border-left: none; }
.step-num { font-family: var(--font-serif); font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.step-title { font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--stone); line-height: 1.6; }
.proc-notices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }
.proc-notice-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.proc-notice p { font-size: 13.5px; color: var(--stone); line-height: 1.65; }

/* ============================================================
   10. CIERRE + FORMULARIO
   ============================================================ */
.close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 28px; }
.close-links { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 2.1; }
.close-links a { color: var(--gold-lt); }
.close-brand { margin-bottom: 34px; }
.close-brand img { width: 220px; height: auto; }
.close-brand-tagline { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: rgba(244,239,230,0.75); margin-top: 12px; }

.form-card { background: var(--cream); color: var(--charcoal); border-radius: var(--radius); padding: clamp(24px,3vw,38px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; letter-spacing: 0.04em; color: var(--stone); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(12,11,9,0.22); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 14.5px; background: var(--white); color: var(--charcoal);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; }
/* Teléfono + selector internacional de país */
.lada-row.phone-field {
  display: grid;
  /* La lada nunca domina visualmente al número */
  grid-template-columns: clamp(104px, 32%, 132px) minmax(0,1fr);
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.lada-row.phone-field > input[type="tel"] { min-width: 0; }
.country-picker { position: relative; width: 100%; }
.country-selected {
  width: 100%; height: 100%; min-height: 47px; padding: 0 10px;
  display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(12,11,9,0.22); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal); font: inherit; font-size: 13px; cursor: pointer;
}
.country-selected:hover, .country-picker.open .country-selected { border-color: var(--gold); }
.country-selected-iso { font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.country-selected-code { font-weight: 500; }
.country-arrow { margin-left: auto; opacity: .62; font-size: 15px; }
.country-dropdown {
  position: absolute; left: 0; top: calc(100% + 7px); width: 310px; max-width: calc(100vw - 40px);
  background: #0C0B09; border: 1px solid rgba(184,151,90,.38); box-shadow: 0 24px 70px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 99999;
}
.country-picker.open .country-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.country-search-wrap { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.form-group .country-search {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,.13); border-radius: 0;
  background: rgba(255,255,255,.05); color: #fff; padding: 10px 11px; outline: none; font: inherit; font-size: 12px;
}
.form-group .country-search:focus { border-color: rgba(184,151,90,.75); }
.country-search::placeholder { color: rgba(255,255,255,.42); }
.country-list { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.country-list button {
  width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 8px;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.05); background: transparent; color: #fff;
  padding: 10px 12px; text-align: left; cursor: pointer; font: inherit; font-size: 12px;
}
.country-list button:hover, .country-list button:focus-visible { background: rgba(184,151,90,.14); outline: none; }
.country-list button[hidden] { display: none !important; }
.country-list button strong { color: var(--gold-lt); font-weight: 500; }
.country-iso { font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.country-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-privacy { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--stone); margin: 14px 0 18px; }
.form-privacy input { width: auto; margin-top: 2px; }
.form-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a:hover { color: var(--gold); }
.form-submit { width: 100%; padding: 16px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.turnstile-mini { margin: 12px 0 10px; width: 216px; height: 47px; overflow: visible; }
.turnstile-mini .cf-turnstile { width: 300px; transform: scale(.72); transform-origin: top left; }
.form-success { display: none; flex-direction: column; align-items: flex-start; gap: 10px; padding: 40px 10px; }
.form-success .check { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--black); color: rgba(255,255,255,0.5); padding: 48px var(--gutter) 30px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-family: var(--font-serif); color: #fff; font-size: 18px; }
.footer-links { display: flex; gap: 28px; font-size: 13px; }
.footer-bottom { padding-top: 20px; font-size: 11.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ============================================================
   LIGHTBOX / GALERÍA (tipologia.html)
   ============================================================ */
.unit-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px,4vw,56px); padding: 32px var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
.unit-gallery { position: relative; }
.gallery-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }
.gallery-counter { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; padding: 5px 10px; border-radius: 20px; }
.gallery-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.gallery-btn { pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 68px; height: 52px; object-fit: cover; border-radius: 2px; opacity: 0.55; cursor: pointer; flex-shrink: 0; border: 2px solid transparent; }
.thumb.active { opacity: 1; border-color: var(--gold); }
.unit-breadcrumb { font-size: 12px; color: var(--stone); margin-bottom: 18px; }
.unit-breadcrumb .sep { margin: 0 8px; }
.unit-code { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.unit-name { font-family: var(--font-serif); font-size: clamp(30px,3.4vw,44px); margin: 10px 0 6px; line-height: 1.1; }
.unit-tagline { color: var(--stone); font-size: 15px; margin-bottom: 22px; }
.unit-specs { display: flex; gap: 28px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.spec-item { display: flex; flex-direction: column; }
.spec-val { font-family: var(--font-serif); font-size: 26px; }
.spec-key { font-size: 11px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.04em; }
.unit-program p { font-size: 14.5px; color: var(--stone); line-height: 1.7; margin-bottom: 22px; }
.unit-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.typo-tabs { display: flex; gap: 2px; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); overflow-x: auto; }
.typo-page { display: none; }
.typo-page.active { display: block; }
#pageWrapper.page-transition .typo-page.active { opacity: 0; transition: opacity 0.28s var(--ease); }
.typo-tab { flex: 1; min-width: 118px; padding: 12px 10px; text-align: center; text-decoration: none; background: var(--cream); border-bottom: 2px solid transparent; display: flex; flex-direction: column; gap: 2px; }
.typo-tab.active { background: var(--white); border-bottom-color: var(--gold); }
.tab-code { font-size: 12px; font-weight: 500; }
.tab-name { font-size: 10.5px; color: var(--stone); }
.tab-size { font-size: 10px; color: var(--gold); }

.floorplan-section .section-inner, .gallery-section .section-inner { max-width: 1280px; }
.floorplan-section { padding-top: 40px; }
.floorplan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items: start; }
.fp-img-3d { width: 100%; border-radius: var(--radius); }
.fp-frame { position: relative; display: inline-flex; max-width: 100%; cursor: zoom-in; }
.fp-frame img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(64svh, 520px); object-fit: contain; }
.fp-carousel { display: inline-flex; max-width: 100%; position: relative; }
.fp-carousel img.fp-img-3d { width: auto; height: auto; max-width: 100%; max-height: min(62svh, 540px); }
.fp-expand { position: absolute; right: 10px; bottom: 10px; background: rgba(12,11,9,0.75); color: #fff; font-size: 11px; letter-spacing: 0.04em; padding: 7px 12px; border-radius: 20px; pointer-events: none; }
.floorplan-label { display: block; margin-top: 12px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); text-align: center; }
.fp-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.fp-stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; margin-bottom: 4px; }
.fp-stat span:last-child { color: var(--gold); font-family: var(--font-serif); font-size: 15px; }
.fp-space-list { margin-top: 4px; }
.fp-space-list li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--charcoal); }
.fp-space-group-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 18px 0 4px; }
.fp-space-group-title:first-of-type { margin-top: 14px; }
.fp-download { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--gold); border-bottom: 1px solid var(--gold); }
.level-switch { display: flex; gap: 8px; margin-bottom: 18px; }
.level-btn { padding: 8px 16px; font-size: 12px; border: 1px solid var(--border); border-radius: 20px; }
.level-btn.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.gallery-full-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 36px; }
.gi { aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gi:hover img { transform: scale(1.05); }
.similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; background: var(--border); margin-top: 24px; }
.similar-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.similar-card { background: var(--white); min-width: 0; }
.similar-card .b { padding: 14px 16px; }

#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 2000; display: none; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lb-close { position: absolute; top: 22px; right: 26px; color: #fff; font-size: 28px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 30px; padding: 14px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .loc-grid, .proj-grid, .history-top, .dual-grid, .close-grid, .unit-hero, .floorplan-grid { grid-template-columns: 1fr; }
  .unit-hero { padding-top: 24px; }
  .floorplan-section { padding-top: 28px; }
  .close-brand { display: none; }
  .amen-cards { grid-template-columns: 1fr; }
  .typo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .track-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .step-item:nth-child(2) { border-left: 1px solid var(--border); padding-left: 24px; }
  .step-item:nth-child(3), .step-item:nth-child(4) { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 4px; }
  .step-item:nth-child(4) { border-left: 1px solid var(--border); padding-left: 24px; }
  .gallery-full-grid { grid-template-columns: repeat(2,1fr); }
  .similar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .loc-park img { max-width: 320px; }
  #hero { min-height: auto; display: block; align-items: unset; overflow: visible; }
  .hero-bg { position: relative; inset: auto; width: 100%; aspect-ratio: 7 / 5; background-position: center 32%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(12,11,9,0.02) 55%, rgba(12,11,9,0.35) 100%); }
  .hero-content { position: relative; background: var(--black); padding: 26px 20px 30px; }
  .hero-headline { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-facts { font-size: 12px; }
  .nav-links, .nav-right .lang-switch { display: none; }
  .nav-mobile-toggle { display: flex; }
  #navbar { padding-top: 14px; padding-bottom: 14px; }
  #navbar.scrolled { padding-top: 10px; padding-bottom: 10px; }
  .nav-logo { font-size: 15px; max-width: 58vw; line-height: 1.15; }
  .nav-cta { padding: 9px 14px; font-size: 11px; }
  .nav-right { gap: 12px; }
  .nav-lang-mobile { display: block !important; }
  .typo-grid { grid-template-columns: minmax(0,1fr); }
  .steps-row { grid-template-columns: 1fr; }
  .step-item, .step-item:nth-child(2), .step-item:nth-child(3), .step-item:nth-child(4) {
    border-left: none; padding-left: 0; padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--border);
  }
  .step-item:first-child { padding-top: 0; margin-top: 0; border-top: none; }
  .form-row { grid-template-columns: 1fr; }
  .lada-row.phone-field { grid-template-columns: clamp(96px, 36%, 118px) minmax(0,1fr); }
  .country-dropdown { width: min(310px, calc(100vw - 56px)); }
  .hero-facts { font-size: 12px; }
  .plan-bar { height: 44px; }
  .proc-notices { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; padding: 14px 20px; line-height: 1.3; }
}

/* ============================================================
   REVISION 14 — ajustes finales de experiencia y composición
   ============================================================ */

/* Ubicación: compactar distancias y asentar visualmente las dos fotografías */
@media (min-width: 981px) {
  .loc-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
    align-items: stretch;
  }
  .loc-side {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .loc-list li { padding: 11px 0; }
  .loc-park {
    margin-top: auto;
    padding-top: 18px;
  }
  .loc-park img { max-width: 340px; }
  .loc-side .loc-link-ext { margin-top: 12px; }
}

/* Trayectoria: aprovechar pantallas grandes para dar presencia a Amalia y Kabax */
@media (min-width: 981px) {
  .track-grid {
    width: min(1560px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .track-card { padding: clamp(22px, 2.2vw, 34px); }
  .track-media { gap: 10px; }
}

/* CTA de tipologías: nunca pierde el fondo oscuro y enfatiza el botón */
.typo-cta,
.typo-cta:hover,
.typo-cta:focus-within {
  background: var(--charcoal);
  color: var(--white);
}
.typo-cta .btn {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s var(--ease);
}
.typo-cta:hover .btn,
.typo-cta:focus-within .btn {
  transform: scale(1.065);
  box-shadow: 0 0 0 10px rgba(184,151,90,.12), 0 10px 28px rgba(0,0,0,.18);
}

/* Elevador: mostrar más de la zona inferior/salita del render original */
.amen-card.elevator-view .amen-card-img { aspect-ratio: 1 / 1; }
.amen-card-img img.fit-contain {
  object-fit: cover;
  object-position: center 100%;
}

/* Tipologías: barra y contenido fluidos en monitores grandes */
.typo-tabs {
  width: 100%;
  max-width: none;
  padding-left: clamp(14px, 3vw, 56px);
  padding-right: clamp(14px, 3vw, 56px);
}
.typo-tab { min-width: 112px; }
.unit-hero { max-width: 1500px; }
.floorplan-section .section-inner,
.gallery-section .section-inner { max-width: 1500px; }

/* Planos siempre centrados respecto a su etiqueta/título */
.floorplan-grid > div:first-child,
.fp-dual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.floorplan-grid > div:first-child > .fp-img-3d,
.floorplan-grid > div:first-child > .fp-frame,
.floorplan-grid > div:first-child > .fp-carousel {
  margin-left: auto;
  margin-right: auto;
}

/* Flex 50 / Flex 60: plantas baja y alta visibles al mismo tiempo */
.fp-dual-wrap { width: 100%; }
.fp-dual-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
  width: 100%;
  align-items: end;
}
.fp-dual-card {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fp-dual-image {
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}
.fp-dual-image .fp-img-3d {
  width: auto;
  max-width: 100%;
  max-height: min(61svh, 560px);
  object-fit: contain;
}
.fp-plan-pending {
  width: 100%; min-height: 320px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 28px;
  background: rgba(184,151,90,.09); border: 1px solid rgba(184,151,90,.35);
  color: var(--charcoal); text-align: center;
}
.fp-plan-pending span { font-family: var(--font-serif); font-size: 25px; }
.fp-plan-pending small { color: var(--stone); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }

/* Sigue conociendo: seis alternativas, todas visibles y navegables */
.similar-section .section-inner { max-width: 1500px; }
.similar-heading {
  font-size: clamp(28px, 3.4vw, 44px);
  max-width: 760px;
}
.similar-section .similar-grid { margin-top: 34px; }
.similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.similar-card {
  transition: transform .35s var(--ease), background .25s var(--ease);
  overflow: hidden;
}
.similar-card:hover { transform: translateY(-3px); }

/* Transición sutil entre páginas */
body {
  animation: vicarioPageIn .42s var(--ease) both;
  transition: opacity .34s var(--ease);
}
body.page-fade-out {
  opacity: 0;
}
@keyframes vicarioPageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Cursor COL·RADO: punto + aro, solo donde existe mouse real */
.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 10050;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-lt);
}
.cursor-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-lt);
  z-index: 10049;
  transition: width .22s var(--ease), height .22s var(--ease), opacity .2s ease, border-color .2s ease;
}
html.custom-cursor .cursor-dot,
html.custom-cursor .cursor-ring { opacity: 1; }
html.custom-cursor.cursor-over-action .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--gold);
}
@media (hover: hover) and (pointer: fine) {
  html.custom-cursor,
  html.custom-cursor * { cursor: none !important; }
}

@media (max-width: 980px) {
  .track-grid {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .typo-tabs { padding-left: 16px; padding-right: 16px; }
  .similar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .loc-side { display: block; }
  .loc-list li { padding: 12px 0; }
  .loc-park { margin-top: 22px; padding-top: 0; }
  .fp-dual-plans { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .fp-dual-image .fp-img-3d { max-height: 48svh; }
  .similar-grid { grid-template-columns: 1fr; }
  body { animation-duration: .28s; }
}

/* La navegación entre tipologías usa el mismo lenguaje suave que el resto del sitio */
.typo-page.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .30s var(--ease), transform .30s var(--ease);
}
#pageWrapper.page-transition .typo-page.active {
  opacity: 0;
  transform: translateY(5px);
}

/* ============================================================
   REVISION 15 — simetria final: elevador, ubicación y planos Flex
   ============================================================ */

/* Elevador: vuelve al mismo 4:3 que las otras tarjetas; el asset ya viene
   recortado desde el original para priorizar elevador de planta baja + salita. */
.amen-card.elevator-view .amen-card-img,
.amen-card-img { aspect-ratio: 4 / 3; }
.amen-card-img img.fit-contain,
.amen-card-img img[data-fit="contain"] {
  object-fit: cover;
  object-position: center center;
}

/* Ubicación: en escritorio, la foto del parque termina exactamente en la misma
   línea inferior que la fotografía aérea. El alto real lo fija JS según viewport. */
@media (min-width: 981px) {
  .loc-side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .loc-list li {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.2;
  }
  .loc-list li span:last-child { font-size: 15px; }
  .loc-park {
    margin-top: auto;
    padding-top: 12px;
  }
  .loc-park figure { position: relative; }
  .loc-park img {
    width: min(300px, 100%);
    max-width: 300px;
  }
  .loc-park .loc-figcaption {
    position: absolute;
    left: 0;
    top: 100%;
    width: min(340px, 100%);
    margin-top: 7px;
  }
  .loc-side .loc-link-ext {
    position: absolute;
    left: 0;
    top: calc(100% + 38px);
    margin-top: 0;
  }
  #ubicacion .loc-grid + .disclaimer { margin-top: 70px !important; }
}

/* Flex 50 / 60: ambas plantas comparten exactamente la misma línea base. */
@media (min-width: 721px) {
  .fp-dual-plans { align-items: stretch; }
  .fp-dual-card { height: 100%; }
  .fp-dual-image {
    height: min(58svh, 560px);
    min-height: 430px;
    align-items: flex-end;
  }
  .fp-dual-image .fp-img-3d {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
}


/* ============================================================
   REVISION 16 — línea inferior exacta en planos Flex
   ============================================================ */
@media (min-width: 721px) {
  .fp-dual-plans {
    align-items: stretch;
  }
  .fp-dual-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
  }
  .fp-dual-image {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    line-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .fp-dual-image .fp-img-3d {
    display: block;
    margin: 0;
    object-position: center bottom;
  }
}

/* ============================================================
   REVISION 17 — respiración visual en tipologías + amenidades más grandes
   ============================================================ */

/* Amenidades: aprovechar de verdad el ancho disponible en escritorio.
   Las imágenes siguen 4:3, pero las tarjetas crecen físicamente sin deformarse. */
@media (min-width: 981px) {
  #amenidades .section-inner {
    max-width: 1520px;
    padding-left: clamp(28px, 3.2vw, 58px);
    padding-right: clamp(28px, 3.2vw, 58px);
  }
  #amenidades .amen-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 42px;
  }
  #amenidades .amen-card-img {
    aspect-ratio: 4 / 3;
  }
}

/* Otras tipologías: dejar de verse como un solo bloque de seis molduras.
   El fondo oscuro aparece entre tarjetas y cada pieza respira por sí sola. */
.similar-section .section-inner {
  max-width: 1600px;
  padding-left: clamp(20px, 3vw, 56px);
  padding-right: clamp(20px, 3vw, 56px);
}
.similar-section .similar-grid {
  gap: 24px 22px;
  background: transparent;
  margin-top: 38px;
}
.similar-section .similar-card {
  border: 1px solid rgba(184,151,90,.16);
  border-radius: 2px;
}
.similar-section .similar-card .b {
  padding: 18px 18px 16px;
}

@media (max-width: 980px) {
  .similar-section .similar-grid { gap: 18px; }
}
@media (max-width: 720px) {
  .similar-section .similar-grid { gap: 16px; }
}

/* ============================================================
   REVISION 18 — INDEX / TIPOLOGÍAS CON AIRE ENTRE TARJETAS
   Mismo lenguaje visual de "seguir conociendo" en tipologia.
   ============================================================ */
#tipologias .typo-grid {
  gap: 24px 22px;
  background: transparent;
  margin-top: 38px;
}

#tipologias .typo-card {
  border: 1px solid rgba(184,151,90,.16);
  border-radius: 2px;
  overflow: hidden;
}

#tipologias .typo-cta {
  border-color: rgba(184,151,90,.24);
}

@media (max-width: 980px) {
  #tipologias .typo-grid { gap: 18px; }
}

@media (max-width: 720px) {
  #tipologias .typo-grid { gap: 16px; }
}


/* ============================================================
   REVISION 20 — marca, header frosted y móvil limpio
   ============================================================ */
#navbar.nav-dark {
  background: linear-gradient(180deg, rgba(12,11,9,.48) 0%, rgba(12,11,9,.20) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#navbar.nav-light {
  background: rgba(250,250,248,.72);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  border-bottom: 1px solid rgba(12,11,9,.08);
}
#navbar.nav-dark.scrolled,
#navbar.nav-light.scrolled {
  background: rgba(12,11,9,.72);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom-color: rgba(255,255,255,.10);
}
.nav-logo { display:flex; align-items:center; flex:0 0 auto; }
.brand-nav-logo { position:relative; display:block; width:168px; aspect-ratio:656/167; }
.brand-nav-img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.brand-nav-img-dark { display:none; }
#navbar.nav-light:not(.scrolled) .brand-nav-img-light { display:none; }
#navbar.nav-light:not(.scrolled) .brand-nav-img-dark { display:block; }
.brand-footer-logo { display:block; width:min(245px,72vw); height:auto; }
.brand-inline-logo { display:inline-block; width:96px; height:auto; vertical-align:-9px; margin:0 5px; }
.brand-inline-logo-light { width:76px; vertical-align:-7px; }
.nav-mobile-cta { display:none; }
@media (max-width:720px) {
  #navbar { padding:10px 16px; min-height:64px; }
  #navbar.scrolled { padding:8px 16px; }
  .brand-nav-logo { width:132px; }
  .nav-logo { max-width:none; line-height:1; }
  .nav-right { margin-left:auto; gap:0; }
  .nav-right > .nav-cta { display:none !important; }
  .nav-mobile-toggle { width:30px; gap:6px; }
  .nav-mobile-toggle span { height:2px; }
  .nav-mobile-cta { display:block !important; margin:4px 0 8px; }
  .nav-mobile-cta a {
    display:flex; align-items:center; justify-content:center;
    width:100%; padding:13px 16px;
    background:var(--gold); color:var(--black) !important;
    opacity:1 !important; text-transform:uppercase; letter-spacing:.07em;
  }
}


/* ============================================================
   REVISION 22 — narrativa de marca y remate Vicario en historia
   ============================================================ */
.brand-text { font-weight:500; letter-spacing:.02em; }
.history-closing {
  margin-top:18px;
  text-align:center;
}
.history-closing .body-text {
  margin:0 auto 14px;
}
.history-vicario-only {
  display:block !important;
  width:clamp(300px,31vw,430px) !important;
  height:auto !important;
  max-width:88%;
  margin:0 auto !important;
  border-radius:0 !important;
}
@media (max-width:720px){
  .history-closing { margin-top:16px; }
  .history-closing .body-text { margin-bottom:12px; }
  .history-vicario-only { width:min(330px,90%) !important; max-width:90%; }
}

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-page { background: var(--cream); color: var(--charcoal); }
.legal-nav { position: relative; top: auto; }
.legal-main { max-width: 900px; margin: 0 auto; padding: 72px 28px 96px; }
.legal-main h1 { font-family: var(--font-serif); font-size: clamp(42px, 7vw, 72px); line-height: .98; margin: 18px 0 14px; }
.legal-main h2 { font-family: var(--font-serif); font-size: clamp(25px, 3vw, 34px); line-height: 1.1; margin: 0 0 12px; }
.legal-main section { border-top: 1px solid rgba(30,29,27,.18); padding: 28px 0 6px; }
.legal-main p { max-width: 760px; color: var(--stone); line-height: 1.75; margin: 0 0 16px; }
.legal-main a { color: var(--charcoal); }
.legal-updated { margin-bottom: 42px !important; }
.legal-back { display: inline-flex; margin-top: 28px; }
.not-found-main { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.btn-outline-dark { border-color: rgba(30,29,27,.55); color: var(--charcoal); }
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 680px) {
  .legal-main { padding: 48px 20px 72px; }
  .legal-nav .nav-cta { display: none; }
}

/* ============================================================
   REV28 STAGING — identidad visual del brochure
   Capa visual exclusivamente; dimensiones y responsive REV27 preservados.
   ============================================================ */
:root {
  --cream: #D8CBB3;
  --white: #ECEBE5;
  --black: #1E201D;
  --charcoal: #222B25;
  --stone: #52594F;
  --gold: #48543F;
  --gold-lt: #B9C2AB;
  --border: rgba(34,43,37,.18);
  --border-lt: rgba(236,235,229,.20);
}
/* Acentos claros sobre superficies verdes, oliva sobre superficies claras. */
.dark-section, #hero, footer, .typo-cta, .country-dropdown {
  --gold: #B9C2AB;
  --gold-lt: #D8CBB3;
}
body { font-weight: 400; }
.headline, .hero-headline, .unit-name { letter-spacing: -.025em; }
.btn { font-weight: 500; }
.btn-gold, .nav-cta, .nav-mobile-cta a {
  background: var(--cream);
  color: #222B25;
}
.btn-gold:hover, .btn-gold:focus-visible,
.nav-cta:hover, .nav-cta:focus-visible { background: #ECEBE5; color: #222B25; }
.light-section .btn-gold, .form-card .btn-gold {
  background: #222B25;
  color: #ECEBE5;
}
.light-section .btn-gold:hover, .light-section .btn-gold:focus-visible,
.form-card .btn-gold:hover, .form-card .btn-gold:focus-visible {
  background: #48543F;
  color: #ECEBE5;
}
.btn-solid:hover, .btn-solid:focus-visible { background: #48543F; color: #ECEBE5; }
.form-card { --gold: #48543F; --gold-lt: #B9C2AB; background: #D8CBB3; color: #222B25; }
.form-group label { color: #414A40; }
.form-group input, .form-group select, .form-group textarea,
.country-selected { border-color: rgba(34,43,37,.32); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #48543F;
  box-shadow: 0 0 0 2px rgba(72,84,63,.16);
}
.form-success .check { background: #222B25; color: #ECEBE5; }
.dark-section .body-text, .dark-section .disclaimer,
.amen-card-caption, .amen-card-item, .dual-list li, .dual-note,
.close-links, .typo-cta p { color: #C7CDC0; }
.dark-section .disclaimer { opacity: 1; }
.dark-section .materiality { color: #C7CDC0; }
.hero-sub, .hero-facts { color: #ECEBE5; }
.hero-eyebrow { color: #D8CBB3; }
.hero-bg::after {
  background: linear-gradient(180deg, rgba(34,43,37,.15) 0%, rgba(34,43,37,.15) 40%, rgba(34,43,37,.85) 100%);
}
#hero .btn-outline { background: rgba(34,43,37,.44); border-color: #D8CBB3; color: #ECEBE5; }
#hero .btn-outline:hover, #hero .btn-outline:focus-visible { background: rgba(34,43,37,.75); border-color: #ECEBE5; }
#navbar.nav-dark { background: linear-gradient(180deg, rgba(34,43,37,.68), rgba(34,43,37,.42)); }
#navbar.nav-light { background: rgba(236,235,229,.90); border-bottom-color: rgba(34,43,37,.18); }
#navbar.nav-dark.scrolled, #navbar.nav-light.scrolled { background: rgba(34,43,37,.94); }
#navbar.nav-dark .nav-links a:hover, #navbar.scrolled .nav-links a:hover { color: #D8CBB3; }
#navbar.nav-light:not(.scrolled) .nav-links a:hover { color: #48543F; }
.track-card, .typo-card, .similar-card, .plan-card { border-color: rgba(34,43,37,.20); }
.plan-card.selected { border-color: #48543F; box-shadow: 0 8px 30px rgba(34,43,37,.12); }
.plan-seg.obra { background: #D8CBB3; color: #222B25; }
.plan-seg.entrega { background: #52594F; color: #ECEBE5; }
.amen-card { background: rgba(236,235,229,.055); }
.amen-card-item:hover, .amen-card-item:focus-visible, .amen-card-item.active { background: rgba(185,194,171,.14); color: #ECEBE5; }
.level-band.rooftop { background: rgba(185,194,171,.16); color: #D8CBB3; }
.level-band.unit, .level-band.pb { color: #C7CDC0; }
.country-dropdown { background: #222B25; border-color: #B9C2AB; }
.country-list button:hover, .country-list button:focus-visible { background: rgba(185,194,171,.14); }
.form-group .country-search:focus { border-color: #B9C2AB; }
.country-search::placeholder { color: #C7CDC0; }
footer { color: #C7CDC0; }
.typo-cta:hover .btn, .typo-cta:focus-within .btn { box-shadow: 0 0 0 10px rgba(185,194,171,.12), 0 10px 28px rgba(30,32,29,.18); }
.fp-plan-pending { background: rgba(72,84,63,.09); border-color: rgba(72,84,63,.35); }
.loc-pin-dot { background: #48543F; }
.loc-pin-label { background: rgba(34,43,37,.92); }
.similar-section .similar-card, #tipologias .typo-card { border-color: rgba(34,43,37,.20); }
#tipologias .typo-cta { border-color: rgba(216,203,179,.30); }
@media (max-width:720px) {
  .hero-content { background: #222B25; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(34,43,37,.02) 55%, rgba(34,43,37,.40) 100%); }
}
.form-card .body-text { color: #52594F; }
.form-card .disclaimer { color: #52594F; opacity: 1; }
.form-card .headline { color: #222B25; }

/* REV28: secondary editorial presentation block, outside the hero. */
.presentation-section { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.presentation-section .headline { max-width: 850px; margin-bottom: 24px; }
.presentation-section .btn-solid { display: flex; width: fit-content; max-width: 100%; text-align: center; }
.presentation-editorial { display: block; width: fit-content; max-width: 100%; margin-top: 18px; font-family: var(--font-serif); font-size: 19px; color: #48543F; text-decoration: underline; text-underline-offset: 5px; }
.presentation-editorial[aria-disabled="true"] { text-decoration: none; color: #52594F; cursor: default; }
.presentation-availability { display: block; color: #52594F; margin-top: 8px; font-size: 12px; }
.presentation-availability[hidden] { display: none !important; }
#navbar.nav-dark .nav-mobile-toggle, #navbar.scrolled .nav-mobile-toggle { color: #ECEBE5; }
#navbar.nav-light:not(.scrolled) .nav-mobile-toggle { color: #222B25; }
@media (max-width: 720px) {
  .footer-links { flex-wrap: wrap; row-gap: 14px; }
  .presentation-section .btn { white-space: normal; }
}
