/* =================================================================
   PRADO INMOBILIARIA · Design System
   Estética editorial / banca privada
   ================================================================= */

/* ---------- Custom Properties ---------- */
:root {
  /* === Paleta de marca PRADO === */
  /* Primarios */
  --azul:        #27377E;   /* Azul Prado */
  --verde:       #136E5D;   /* Verde Prado */
  /* Secundarios */
  --crema:       #F3EDE5;   /* Marfil cálido */
  --dorado:      #E08A05;   /* Dorado inversión */
  /* Neutros */
  --blanco:      #FFFFFF;    /* Blanco */
  --gris-claro:  #F7F7F7;    /* Gris claro */
  --gris-oscuro: #3A3A3A;    /* Gris oscuro */
  --negro:       #111111;    /* Negro elegante */

  /* Derivados de apoyo */
  --azul-dark:   #1E2A60;
  --azul-deep:   #141B3D;
  --verde-dark:  #0E5347;
  --crema-warm:  #EAE0D2;
  --dorado-soft: #E9A53E;
  --tinta:       #111111;   /* texto principal = negro elegante */
  --gris:        #5B5F6B;   /* texto secundario */
  --gris-soft:   #9AA0AE;
  --gris-medio:  #7A7A7A;   /* estado: entregado */

  /* Tipografía */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Escala */
  --maxw: 1200px;
  --pad-section: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --radius-lg: 14px;

  /* Sombras */
  --shadow-sm: 0 4px 18px rgba(20,23,43,.08);
  --shadow-md: 0 16px 50px rgba(20,23,43,.14);
  --shadow-lg: 0 30px 80px rgba(20,23,43,.22);

  /* Transición */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { 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; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tipografía ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 700; }
h4 { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 600; letter-spacing: .02em; }
p  { max-width: 64ch; line-height: 1.8; }

.eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--dorado);
  display: inline-block;
  margin-bottom: 1.1rem;
}
.eyebrow.muted { color: var(--gris-soft); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--gris); letter-spacing: .005em; line-height: 1.8; }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: var(--pad-section); }
.section-tight { padding-block: clamp(48px, 7vw, 80px); }

.dark { background: var(--azul-deep); color: var(--crema); }
.dark .lead, .dark .gris { color: var(--gris-soft); }
.dark h1,.dark h2,.dark h3 { color: var(--blanco); }
.cream-bg { background: var(--crema); }

.grid-2 { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1.1em 2.2em; border-radius: var(--radius);
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--azul); color: var(--blanco); }
.btn-primary:hover { background: var(--azul-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--verde); color: var(--blanco); }
.btn-secondary:hover { background: var(--verde-dark); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--dorado); color: var(--tinta); }
.btn-gold:hover { background: var(--dorado-soft); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: currentColor; border: 1.5px solid currentColor; }
.btn-ghost:hover { background: currentColor; }
.dark .btn-ghost:hover { color: var(--azul-deep); }
.btn-ghost.on-dark:hover { color: var(--azul-deep); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline { position: relative; font-weight: 600; letter-spacing: .04em; padding-bottom: 2px; }
.link-underline::after { content:""; position: absolute; left:0; bottom:0; width:100%; height:1.5px; background: var(--dorado); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: .55em 1.1em; border-radius: 100px;
}
.badge::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-launch { background: rgba(224,138,5,.14); color: var(--dorado); }
.badge-preventa { background: rgba(19,110,93,.14); color: var(--verde); }
.badge-construccion { background: rgba(39,55,126,.14); color: var(--azul); }
.badge-entregado { background: rgba(122,122,122,.16); color: var(--gris-medio); }

/* ================= NAVBAR ================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px,2.4vw,26px) clamp(20px,5vw,48px);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease), transform .45s var(--ease);
}
.nav--hidden { transform: translateY(-100%); }
.nav.scrolled { background: rgba(251,249,245,.92); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 1px 0 rgba(20,23,43,.06), 0 0 0 1px rgba(224,138,5,.08) inset; padding-block: 14px; }
.nav__logo { color: var(--blanco); transition: color .5s var(--ease); width: clamp(150px,18vw,200px); }
.nav.scrolled .nav__logo, .nav.solid .nav__logo { color: var(--azul); }
.nav.solid { background: rgba(251,249,245,.95); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 1px 0 rgba(20,23,43,.06); position: sticky; }

/* Logo swap: white logo visible on dark hero, color logo on scroll */
.nav__logo-white { display: block; }
.nav__logo-color { display: none; }
.nav.scrolled .nav__logo-white { display: none; }
.nav.scrolled .nav__logo-color { display: block; }
.nav.solid .nav__logo-white { display: none; }
.nav.solid .nav__logo-color { display: block; }

.nav__links { display: flex; align-items: center; gap: clamp(18px,2.4vw,34px); }
.nav__links a { font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--crema); transition: color .4s var(--ease); position: relative; text-transform: uppercase; }
.nav.scrolled .nav__links a, .nav.solid .nav__links a { color: var(--tinta); }
.nav__links a:hover { color: var(--dorado); }
.nav__cta { padding: .7em 1.4em !important; font-size: .7rem !important; letter-spacing: .18em !important; }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content:"▾"; font-size:.7em; margin-left:.4em; opacity:.7; }
.dropdown {
  position: absolute; top: 130%; left: -16px; min-width: 230px;
  background: var(--blanco); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .3s var(--ease); border: 1px solid rgba(20,23,43,.06);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: 11px 14px; border-radius: 8px; color: var(--tinta) !important; transition: background .25s; }
.dropdown a:hover { background: var(--crema); }
.dropdown a span { font-size: .68rem; color: var(--gris); letter-spacing: .1em; text-transform: uppercase; }

/* hamburguesa */
.nav__burger { display: none; width: 30px; height: 22px; position: relative; z-index: 1100; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--crema); transition: all .4s var(--ease); }
.nav.scrolled .nav__burger span, .nav.solid .nav__burger span { background: var(--tinta); }
.nav__burger span:nth-child(1){ top: 0; } .nav__burger span:nth-child(2){ top: 50%; transform: translateY(-50%);} .nav__burger span:nth-child(3){ bottom: 0; }
body.menu-open .nav__burger span { background: var(--tinta); }
body.menu-open .nav__burger span:nth-child(1){ top:50%; transform: translateY(-50%) rotate(45deg);} 
body.menu-open .nav__burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav__burger span:nth-child(3){ bottom:50%; transform: translateY(50%) rotate(-45deg);}

/* mobile drawer */
.mobile-menu { position: fixed; inset: 0; z-index: 1050; background: var(--crema); transform: translateX(100%); transition: transform .55s var(--ease); display: flex; flex-direction: column; justify-content: center; padding: 8vw; }
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: clamp(1.8rem,7vw,2.8rem); color: var(--azul); padding: .35em 0; border-bottom: 1px solid rgba(20,23,43,.08); transition: color .3s, padding-left .3s; }
.mobile-menu a:hover { color: var(--dorado); padding-left: .4em; }
.mobile-menu .mm-sub { font-family: var(--sans); font-size: 1rem; color: var(--gris); padding-left: 1em; border: none; }

@media (max-width: 900px){
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* ================= HERO ================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--crema); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 120%; object-fit: cover; }
.hero::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(20,23,43,.82) 0%, rgba(26,37,87,.55) 50%, rgba(20,23,43,.25) 100%); }
.hero__inner { padding-block: 18vh 12vh; max-width: 820px; }
.hero h1 { color: var(--blanco); margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--dorado-soft); display: block; }
.hero .lead { color: rgba(243,237,229,.9); font-size: clamp(1.05rem,1.7vw,1.35rem); max-width: 56ch; margin-bottom: 2.4rem; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-ind { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(243,237,229,.7); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; }
.scroll-ind .mouse { width: 22px; height: 36px; border: 1.5px solid rgba(243,237,229,.5); border-radius: 12px; position: relative; }
.scroll-ind .mouse::after { content:""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: var(--dorado); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0%{ opacity:0; transform: translate(-50%,0);} 40%{ opacity:1;} 80%{ opacity:0; transform: translate(-50%,12px);} 100%{opacity:0;} }

/* hero compacto (paginas internas) */
.hero-compact { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: var(--crema); overflow: hidden; padding-bottom: clamp(48px,7vw,80px); }
.hero-compact .hero__bg img { height: 130%; }
.hero-compact::after { content:""; position: absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(20,23,43,.4), rgba(20,23,43,.82)); }
.hero-compact h1 { color: var(--blanco); }
.hero-compact .lead { color: rgba(243,237,229,.88); }
.breadcrumb { font-size: .74rem; letter-spacing: .1em; color: rgba(243,237,229,.7); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--dorado); }

/* ================= DOS CAMINOS ================= */
.dos-caminos { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.camino { padding: clamp(48px,6vw,90px); display: flex; flex-direction: column; justify-content: center; position: relative; transition: flex .5s; }
.camino--vivir { background: var(--crema); }
.camino--invertir { background: var(--azul); color: var(--crema); }
.camino__icon { width: 52px; height: 52px; margin-bottom: 1.6rem; color: var(--dorado); }
.camino h3 { font-size: clamp(1.6rem,2.6vw,2.4rem); margin-bottom: 1rem; }
.camino--invertir h3 { color: var(--blanco); }
.camino ul { display: flex; flex-direction: column; gap: .9rem; margin: 1.6rem 0 2rem; }
.camino li { display: flex; gap: .8em; align-items: flex-start; font-size: .98rem; }
.camino li::before { content:"—"; color: var(--dorado); flex-shrink: 0; }
@media (max-width: 800px){ .dos-caminos { grid-template-columns: 1fr; } }

/* ================= CARDS ================= */
.card { background: var(--blanco); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media .badge { position: absolute; top: 16px; left: 16px; background: rgba(251,249,245,.92); }
.card__body { padding: 28px; }
.card__body h3 { margin-bottom: .5rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 18px 0; padding-top: 18px; border-top: 1px solid rgba(20,23,43,.08); }
.card__meta div { font-size: .82rem; }
.card__meta strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--azul); line-height: 1; margin-bottom: 2px; }
.card__meta span { color: var(--gris); font-size: .72rem; letter-spacing: .05em; }

/* feature cards (por qué invertir) */
.feature { padding: 36px 30px; border-radius: var(--radius-lg); background: var(--blanco); border: 1px solid rgba(20,23,43,.06); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; height: 100%; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon { width: 48px; height: 48px; color: var(--verde); margin-bottom: 1.2rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.feature p { font-size: .94rem; color: var(--gris); }
.grid-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px){ .grid-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .grid-features { grid-template-columns: 1fr; } }

/* ================= CIFRAS / COUNTERS ================= */
.cifras { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.cifra__num { font-family: var(--serif); font-size: clamp(3rem,6vw,5rem); font-weight: 600; color: var(--dorado); line-height: 1; }
.cifra__label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-soft); margin-top: .6rem; }
.dark .cifra__label { color: var(--gris-soft); }
@media (max-width: 720px){ .cifras { grid-template-columns: 1fr 1fr; gap: 44px 20px; } }

/* ================= LEGADO / quote ================= */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem,3.4vw,2.6rem); line-height: 1.3; color: var(--azul); position: relative; padding-left: 1.4rem; border-left: 3px solid var(--dorado); }
.dark .quote { color: var(--blanco); }
.quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-top: 1.4rem; }

/* ================= TESTIMONIOS ================= */
.testi { background: var(--blanco); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.testi__stars { color: var(--dorado); letter-spacing: 3px; margin-bottom: 1rem; }
.testi p { font-style: italic; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--tinta); flex-grow: 1; }
.testi__who { display: flex; align-items: center; gap: 14px; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(20,23,43,.08); }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--crema-warm); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--azul); font-weight: 600; flex-shrink: 0; }
.testi__who strong { display: block; font-size: .92rem; }
.testi__who span { font-size: .78rem; color: var(--gris); }
.testi--placeholder { border: 1.5px dashed rgba(20,23,43,.14); box-shadow: none; background: transparent; align-items: center; justify-content: center; text-align: center; color: var(--gris); }

/* ================= CTA BANNER ================= */
.cta-banner { background: var(--azul); color: var(--crema); text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content:""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(224,138,5,.3), transparent 55%); }
.cta-banner__inner { position: relative; max-width: 760px; margin-inline: auto; }
.cta-banner h2 { color: var(--blanco); margin-bottom: 1rem; }
.cta-banner .lead { color: rgba(243,237,229,.85); margin-bottom: 2.2rem; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================= GALERÍA + LIGHTBOX ================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery__item { overflow: hidden; border-radius: var(--radius); cursor: zoom-in; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item.big { grid-column: span 2; grid-row: span 2; }
.gallery__item.wide { grid-column: span 2; }
@media (max-width: 800px){ .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } .gallery__item.big{ grid-column: span 2; grid-row: span 1;} }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,23,43,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s; padding: 5vw; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 28px; right: 32px; color: var(--crema); font-size: 2rem; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--crema); font-size: 2.4rem; padding: 20px; opacity: .7; transition: opacity .3s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav.prev { left: 10px; } .lightbox__nav.next { right: 10px; }

/* ================= TIPOLOGÍAS ================= */
.tipo-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.tipo-tab { padding: .7em 1.6em; border-radius: 100px; border: 1.5px solid rgba(20,23,43,.14); font-size: .82rem; font-weight: 600; letter-spacing: .06em; transition: all .3s; }
.tipo-tab.active, .tipo-tab:hover { background: var(--azul); color: var(--crema); border-color: var(--azul); }

/* ================= UBICACIÓN ================= */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.cercania { display: flex; flex-direction: column; gap: 4px; }
.cercania li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(20,23,43,.08); }
.cercania li span:last-child { color: var(--dorado); font-weight: 600; }

/* ================= TIMELINE financiamiento ================= */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content:""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--dorado), var(--verde)); }
.timeline__step { position: relative; padding-bottom: 38px; }
.timeline__step::before { content:""; position: absolute; left: -34px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blanco); border: 3px solid var(--dorado); }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step h4 { font-size: 1.3rem; margin-bottom: .3rem; }
.timeline__step p { color: var(--gris); font-size: .94rem; }

/* timeline horizontal (roadmap) */
.roadmap { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; position: relative; }
.roadmap::before { content:""; position: absolute; top: 13px; left: 8%; right: 8%; height: 2px; background: rgba(20,23,43,.12); }
.roadmap__step { text-align: center; position: relative; padding: 0 16px; }
.roadmap__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--blanco); border: 3px solid var(--azul); margin: 0 auto 20px; position: relative; z-index: 1; }
.roadmap__step.active .roadmap__dot { background: var(--dorado); border-color: var(--dorado); }
.roadmap__year { font-family: var(--serif); font-size: 1.3rem; color: var(--azul); font-weight: 600; }
@media (max-width: 740px){ .roadmap { grid-template-columns: 1fr; gap: 30px; } .roadmap::before { display: none; } }

/* ================= CALCULADORA ================= */
.calc { background: var(--blanco); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.calc__inputs { padding: clamp(32px,4vw,52px); }
.calc__result { background: var(--azul); color: var(--crema); padding: clamp(32px,4vw,52px); display: flex; flex-direction: column; justify-content: center; }
.calc__field { margin-bottom: 28px; }
.calc__field label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.calc__field label b { color: var(--dorado); font-family: var(--serif); font-size: 1.1rem; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--crema-warm); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--dorado); cursor: pointer; box-shadow: 0 2px 8px rgba(224,138,5,.5); border: 3px solid var(--blanco); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--dorado); cursor: pointer; border: 3px solid var(--blanco); }
.calc__result .big { font-family: var(--serif); font-size: clamp(2.4rem,5vw,3.6rem); color: var(--dorado-soft); line-height: 1; margin: 8px 0 4px; }
.calc__result .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(243,237,229,.16); font-size: .92rem; }
.calc__result .row:last-child { border: none; }
.calc__note { font-size: .74rem; color: var(--gris-soft); margin-top: 18px; }
@media (max-width: 760px){ .calc { grid-template-columns: 1fr; } }

/* ================= FORMULARIO ================= */
.form { display: grid; gap: 20px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width:560px){ .form .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 8px; color: var(--gris); text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid rgba(20,23,43,.14); border-radius: var(--radius);
  font-family: var(--sans); font-size: 1rem; color: var(--tinta); background: var(--blanco); transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(39,55,126,.1); }
.field textarea { resize: vertical; min-height: 120px; }
.field.error input, .field.error select, .field.error textarea { border-color: #c0392b; }
.field .err-msg { color: #c0392b; font-size: .76rem; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }
.form-note { font-size: .8rem; color: var(--gris); }
.form-success { background: rgba(19,110,93,.1); color: var(--verde-dark); padding: 16px 20px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-success.show { display: block; }

/* radio cards */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-cards label { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border: 1.5px solid rgba(20,23,43,.14); border-radius: var(--radius); cursor: pointer; font-size: .92rem; transition: all .3s; text-transform: none; letter-spacing: 0; color: var(--tinta); }
.radio-cards input { width: auto; accent-color: var(--azul); }
.radio-cards label:has(input:checked) { border-color: var(--azul); background: rgba(39,55,126,.05); }

/* ================= MV V (mision vision valores) ================= */
.mvv { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.mvv__card { padding: 40px 32px; border-radius: var(--radius-lg); background: var(--crema); position: relative; overflow: hidden; }
.mvv__card .num { font-family: var(--serif); font-size: 4rem; color: rgba(39,55,126,.1); line-height: 1; position: absolute; top: 14px; right: 22px; }
.mvv__card h3 { color: var(--azul); margin-bottom: .8rem; }
@media (max-width:820px){ .mvv { grid-template-columns: 1fr; } }

/* valores list */
.valores { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px 40px; }
.valores li { padding-left: 1.6em; position: relative; }
.valores li::before { content:""; position: absolute; left:0; top:.55em; width: 9px; height: 9px; background: var(--dorado); border-radius: 50%; }
.valores strong { font-family: var(--serif); font-size: 1.2rem; }
@media (max-width:640px){ .valores { grid-template-columns: 1fr; } }

/* scroll horizontal areas */
.hscroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { height: 6px; } .hscroll::-webkit-scrollbar-thumb { background: var(--dorado); border-radius: 3px; }
.hscroll__card { flex: 0 0 clamp(260px,32vw,380px); scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 3/4; }
.hscroll__card img { width: 100%; height: 100%; object-fit: cover; }
.hscroll__card .cap { position: absolute; inset: auto 0 0 0; padding: 24px; background: linear-gradient(transparent, rgba(20,23,43,.9)); color: var(--crema); }
.hscroll__card .cap h4 { color: var(--blanco); font-size: 1.4rem; }

/* ================= WHATSAPP FLOAT ================= */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content:""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: waPulse 2.2s ease-out infinite; z-index: -1; }
@keyframes waPulse { 0%{ transform: scale(1); opacity:.6;} 100%{ transform: scale(1.7); opacity:0;} }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ================= FOOTER ================= */
.footer { background: var(--azul-deep); color: var(--gris-soft); padding-block: clamp(60px,7vw,90px) 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(243,237,229,.1); }
.footer__logo { width: 180px; color: var(--crema); margin-bottom: 1.4rem; }
.footer__logo img { width: 100%; height: auto; }
.footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dorado); margin-bottom: 1.2rem; font-weight: 600; }
.footer a { display: block; padding: 6px 0; transition: color .3s; font-size: .92rem; }
.footer a:hover { color: var(--crema); }
.footer__social { display: flex; gap: 14px; margin-top: 1.2rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid rgba(243,237,229,.2); border-radius: 50%; display: grid; place-items: center; padding: 0; }
.footer__social a:hover { background: var(--dorado); border-color: var(--dorado); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 30px; font-size: .8rem; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px){ .footer__grid { grid-template-columns: 1fr; } }

/* ================= REVEAL ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.in.from-left, .reveal.in.from-right { transform: none; }
.reveal[data-delay="1"]{ transition-delay: .12s; }
.reveal[data-delay="2"]{ transition-delay: .24s; }
.reveal[data-delay="3"]{ transition-delay: .36s; }
.reveal[data-delay="4"]{ transition-delay: .48s; }
.reveal[data-delay="5"]{ transition-delay: .6s; }

.float-deco { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* utilidades */
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}.mb-4{margin-bottom:2.4rem}
.maxw-narrow{ max-width: 720px; }
.divider { width: 60px; height: 2px; background: var(--dorado); margin: 1.4rem 0; }
.text-center .divider { margin-inline: auto; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.rounded-img img { width: 100%; }

/* ================= LUXURY ACCENTS ================= */
/* Subtle gold separator under nav on scroll */
.nav.scrolled::after { content:""; position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--dorado), transparent); opacity: .35; }

/* Refined selection */
::selection { background: rgba(224,138,5,.18); color: var(--tinta); }

/* Premium focus outlines */
a:focus-visible, button:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; border-radius: 2px; }

/* ================= CALCULADORA HIPOTECARIA & ESTADÍSTICAS ================= */
.calc-modes {
  display: flex;
  gap: 8px;
  background: var(--crema);
  padding: 4px;
  border-radius: 4px;
  border: 1px solid rgba(20,23,43,.08);
}
.calc-mode-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.calc-mode-btn.active {
  background: var(--azul);
  color: var(--blanco);
}
.term-type-btn {
  background: var(--blanco);
  color: var(--tinta);
  transition: all .3s var(--ease);
}
.term-type-btn.active {
  background: var(--dorado) !important;
  color: var(--tinta) !important;
  border-color: var(--dorado) !important;
}

/* ---------- Sección Estadísticas Inversión ---------- */
.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stats-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--blanco);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20,23,43,.06);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stats-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
  flex-shrink: 0;
  min-width: 130px;
}
.stats-desc h4 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--azul);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.stats-desc p {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.6;
  max-width: 100%;
}
.investment-guide {
  padding-left: 20px;
}
@media (max-width: 900px) {
  .investment-guide {
    padding-left: 0;
    margin-top: 32px;
  }
}
@media (max-width: 500px) {
  .stats-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .stats-num {
    min-width: auto;
  }
}
