/* ═══════════════════════════════════════════════════════════════
   AURORA — Ciudad Santiago (variante cálida y editorial)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  /* Colores principales */
  --c-blue:        #123C69;
  --c-blue2:       #1E5A8A;
  --c-blue-deep:   #0D2B4E;
  --c-orange:      #F5A623;
  --c-orange-dark: #D4880D;
  --c-orange-text: #7A4800;
  --c-green-fin:   #16A34A;
  --c-green-wa:    #25D366;
  --c-green-wa-text: #0A3D1F;

  /* Fondos */
  --c-bg:          #F7F7F2;
  --c-cream:       #F5F0E8;
  --c-cream2:      #EDE8DC;
  --c-white:       #FFFFFF;
  --c-blue-light:  #F4F6FA;

  /* Textos */
  --c-text:        #1A1A2E;
  --c-text-body:   #4A4A4A;
  --c-text-muted:  #6B7A8D;
  --c-border:      #E5E7EB;
  --c-border-warm: #DDD5C4;

  /* Footer */
  --c-footer:      #0A1628;

  /* Tipografía */
  --ff-head:       'Poppins', sans-serif;
  --ff-body:       'Inter', sans-serif;

  /* Tamaños */
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.25rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   1.875rem;
  --fs-3xl:   2.25rem;
  --fs-4xl:   2.875rem;
  --fs-hero:  clamp(2.25rem, 5vw, 3.5rem);

  /* Radio */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Sombras */
  --shadow-sm:   0 1px 4px rgba(18,60,105,0.08);
  --shadow-md:   0 4px 16px rgba(18,60,105,0.12);
  --shadow-lg:   0 8px 32px rgba(18,60,105,0.16);
  --shadow-warm: 0 8px 32px rgba(180,120,40,0.14);

  /* Transiciones */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;

  /* Layout */
  --container: 1200px;
  --header-h:  68px;
}

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  color: var(--c-text-body);
  background: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; }

/* ── Skip link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--c-orange);
  color: var(--c-orange-text);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* ── Screen reader only ─────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Focus visible ──────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Container ──────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Icons SVG ──────────────────────────────────────────────────── */
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
svg { display: block; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  min-height: 44px;
  transition: background var(--t-base), color var(--t-base),
              transform var(--t-fast), box-shadow var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--c-orange);
  color: var(--c-orange-text);
  border-color: var(--c-orange);
}
.btn-primary:hover {
  background: var(--c-orange-dark);
  border-color: var(--c-orange-dark);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.btn-wa {
  background: var(--c-green-wa);
  color: var(--c-green-wa-text);
  border-color: var(--c-green-wa);
  font-weight: 700;
}
.btn-wa:hover {
  background: #1ebe59;
  border-color: #1ebe59;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.btn-outline-blue {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-blue);
}
.btn-outline-blue:hover {
  background: var(--c-blue);
  color: var(--c-white);
}

.btn-outline {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-border);
}
.btn-outline:hover {
  border-color: var(--c-blue);
}

.btn-sm { font-size: var(--fs-xs); padding: 0.5rem 1.1rem; min-height: 38px; }
.btn-lg { font-size: var(--fs-base); padding: 0.9rem 2rem; min-height: 52px; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
/* Franja superior de contacto (se desplaza con el scroll; el header queda pegado) */
.header-topbar {
  background: var(--c-blue-deep, #0A1628);
  padding: 0.45rem 0;
}
.header-topbar .header-contact {
  justify-content: flex-end;
}

.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* alto automático: incluye la franja de contacto + la fila principal,
     ambas siempre visibles al hacer scroll (pedido del cliente) */
  height: auto;
  background: var(--c-blue);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.site-header.scrolled {
  background: rgba(12, 36, 70, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--c-orange);
  color: var(--c-orange-text);
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 800;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.logo-mark--sm { width: 32px; height: 32px; font-size: var(--fs-xs); }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text strong {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-white);
}
.logo-text small {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  /* OJO: nunca flex-shrink:1 + min-width:0 aquí — encoge las cajas por
     debajo del texto y los enlaces se montan unos sobre otros. */
  flex-shrink: 0;
}
.site-nav a {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: color var(--t-fast);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--c-white);
  border-bottom-color: var(--c-orange);
}

.header-ctas {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Datos de contacto en el header */
.header-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  text-decoration: none;
}
.header-contact-item svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--c-orange);
}
.header-contact-item--wa { color: var(--c-green-wa); font-weight: 600; }
.header-contact-item--wa svg { color: var(--c-green-wa); }
.header-contact-item--wa:hover { color: var(--c-white); }

/* En móvil la franja de contacto se oculta (el dato vive en el menú y el flotante) */
@media (max-width: 768px) {
  .header-topbar { display: none; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* ── Mobile menu ────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-inner {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 100vw);
  height: 100%;
  background: var(--c-blue-deep);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform var(--t-slow);
}
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  padding: 0.5rem;
  color: var(--c-white);
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close svg { width: 24px; height: 24px; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}
.mobile-menu nav a {
  font-family: var(--ff-head);
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.mobile-menu nav .btn {
  margin-top: 0.5rem;
  border-bottom: none;
}

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 0.5rem;
}
.mobile-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.78);
  border-bottom: none;
}
.mobile-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--c-orange);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  /* El header ahora es sticky (en flujo): el hero ya no necesita compensarlo */
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-top: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg .media {
  width: 100%; height: 100%;
  border-radius: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-bg img.is-broken {
  display: none;
}
/* Fallback background when image is missing */
.hero-bg {
  background: linear-gradient(135deg, var(--c-blue-deep) 0%, var(--c-blue) 60%, #1E5A8A 100%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,22,40,0.72) 0%,
    rgba(18,60,105,0.55) 45%,
    rgba(180,110,30,0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero-text { max-width: 600px; }

/* Hero CTA Banner — prominent anchor above h1 */
.hero-cta-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-head);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  color: var(--c-orange-text);
  background: var(--c-orange);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  min-height: 48px;
  margin-bottom: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(245,166,35,0.45);
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
}
.hero-cta-banner:hover {
  background: var(--c-orange-dark);
  box-shadow: 0 6px 28px rgba(245,166,35,0.55);
  transform: translateY(-2px);
}
.hero-cta-banner:active { transform: translateY(0); }
.hero-cta-banner:focus-visible {
  outline: 3px solid var(--c-white);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta-banner { transition: none; }
  .hero-cta-banner:hover { transform: none; }
}

.hero-eyebrow {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--ff-head);
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.15);
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-badge--accent {
  background: var(--c-orange);
  color: var(--c-orange-text);
  border-color: var(--c-orange);
}

/* Hero card */
.hero-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: 2rem;
  width: 320px;
  box-shadow: var(--shadow-lg), var(--shadow-warm);
  flex-shrink: 0;
}

.hero-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-stat {
  padding: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hero-stat-val {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1.2;
}
.hero-stat-val--accent { color: var(--c-orange-dark); }
.hero-stat-val--green  { color: var(--c-green-fin); }

.hero-stat-divider {
  height: 1px;
  background: var(--c-border);
}

.hero-legal {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Hero card en modo formulario de captura */
.hero-card--form {
  width: 440px;
  max-width: 100%;
  padding: 1.25rem 1.5rem;
}
.hero-form-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}
.hero-form-icon {
  width: 44px;
  height: 44px;
  background: var(--c-blue-light);
  color: var(--c-blue);
  border-radius: var(--r-md, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.hero-form-icon svg { width: 22px; height: 22px; }
.hero-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin: 0.6rem 0 0;
}
.hero-form-title {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1.25;
}
.hero-form-sub {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.lead-form--hero {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  gap: 0.6rem;
}
/* Las filas de 2 columnas desbordaban el cuadro blanco: los inputs tienen
   min-width:auto por defecto en grid y no encogen (grid blowout). */
.lead-form--hero .form-row > * {
  min-width: 0;
}
.lead-form--hero input,
.lead-form--hero select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.lead-form--hero .hero-legal {
  margin: 0.25rem 0 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-xs);
  font-family: var(--ff-head);
  animation: bounceDown 2s infinite;
}
.hero-scroll-hint svg { width: 20px; height: 20px; }

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ═══════════════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════════════ */
.trust-bar {
  background: var(--c-blue);
  padding: 2rem 0;
}

/* Variante standalone entre hero y modelos */
.trust-bar--inline {
  padding: 2rem 0;
}
/* En escritorio la franja debe ser UNA sola línea (nunca dos bandas apiladas) */
@media (min-width: 1024px) {
  .trust-bar--inline .trust-grid { flex-wrap: nowrap; }
  .trust-bar--inline .trust-item { padding: 0 0.75rem; }
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 2rem;
  text-align: center;
}
.trust-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.trust-number {
  font-family: var(--ff-head);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1;
}
.trust-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.trust-label--green {
  color: #4ade80;
  font-weight: 700;
}
.trust-item--highlight .trust-number {
  color: var(--c-orange);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS — estructura base
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: 5rem 0;
}
.section--white  { background: var(--c-white); }
.section--cream  { background: var(--c-cream); }
.section--blue-deep { background: var(--c-blue); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header--left { text-align: left; margin-left: 0; }

.section-eyebrow {
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.section-eyebrow--light { color: var(--c-orange); }

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-title--light { color: var(--c-white); }

.section-sub {
  font-size: var(--fs-md);
  color: var(--c-text-body);
  line-height: 1.7;
}
.section-sub--light { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
}
.badge-green  { background: #DCFCE7; color: #15803D; }
.badge-orange { background: #FEF3C7; color: var(--c-orange-dark); }
.badge-blue   { background: #DBEAFE; color: var(--c-blue2); }

/* ═══════════════════════════════════════════════════════════════
   MEDIA (imagen con degradado de respaldo)
   ═══════════════════════════════════════════════════════════════ */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #E8E4DC 0%, #D4CFBE 100%);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.media img.is-broken { display: none; }

.media--hero   { aspect-ratio: 16/9; }
.media--model  { aspect-ratio: 4/3; }
.media--proof  { aspect-ratio: 3/2; }
.media--amenity { aspect-ratio: 4/3; }
.media--map    { aspect-ratio: 16/9; }
.media--cta    { aspect-ratio: 4/3; }
.media--plano  { aspect-ratio: 4/3; }

/* ═══════════════════════════════════════════════════════════════
   FINANCIAMIENTO
   ═══════════════════════════════════════════════════════════════ */
.fin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.fin-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 4px solid transparent;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.fin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.fin-card--biess { border-top-color: var(--c-green-fin); }
.fin-card--banca { border-top-color: var(--c-blue2); }
.fin-card--plan  { border-top-color: var(--c-orange); }

.fin-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.fin-card--biess .fin-card-icon { background: #DCFCE7; color: var(--c-green-fin); }
.fin-card--banca .fin-card-icon { background: var(--c-blue-light); color: var(--c-blue2); }
.fin-card--plan  .fin-card-icon { background: #FEF3C7; color: var(--c-orange-dark); }
.fin-card-icon svg { width: 24px; height: 24px; }

.fin-card-tag {
  display: inline-flex;
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.fin-card-tag--green  { background: #DCFCE7; color: #15803D; }
.fin-card-tag--blue   { background: #DBEAFE; color: var(--c-blue2); }
.fin-card-tag--orange { background: #FEF3C7; color: var(--c-orange-dark); }

.fin-card h3 {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-blue);
}
.fin-cuota-num {
  font-family: var(--ff-head);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--c-text);
  display: block;
  line-height: 1.2;
}
.fin-card--biess .fin-cuota-num { color: var(--c-green-fin); }
.fin-card--plan  .fin-cuota-num { color: var(--c-orange-dark); }

.fin-card p {
  font-size: var(--fs-sm);
  color: var(--c-text-body);
  line-height: 1.6;
  flex: 1;
}

.btn-fin {
  margin-top: auto;
  font-size: var(--fs-sm);
  padding: 0.65rem 1.25rem;
  border-radius: var(--r-full);
  font-family: var(--ff-head);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: background var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  text-decoration: none;
}
.btn-fin:hover { transform: translateY(-1px); }
.btn-fin--green  { background: var(--c-green-fin); color: var(--c-white); }
.btn-fin--green:hover  { background: #15803D; box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.btn-fin--blue   { background: var(--c-blue); color: var(--c-white); }
.btn-fin--blue:hover   { background: var(--c-blue2); box-shadow: 0 4px 12px rgba(18,60,105,0.3); }
.btn-fin--orange { background: var(--c-orange); color: var(--c-orange-text); }
.btn-fin--orange:hover { background: var(--c-orange-dark); box-shadow: 0 4px 12px rgba(245,166,35,0.35); }

/* ── Simulador ──────────────────────────────────────────────────── */
.simulator {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.simulator-inner { padding: 2.5rem; }
/* Simulador de entrada — diferenciado del crédito */
.simulator--entrada {
  border: 2px solid var(--c-border-warm);
  border-top: 4px solid var(--c-orange);
}
.sim-eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-orange-dark);
  margin-bottom: 0.5rem;
}
.simulator-header {
  margin-bottom: 2rem;
}
.simulator-header h3 {
  font-family: var(--ff-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 0.4rem;
}
.simulator-header p {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.simulator-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}
.simulator-fields--entrada {
  grid-template-columns: 1fr 1fr 1fr auto;
}
.sim-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sim-field label {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-blue);
}
.sim-field select {
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-text);
  min-height: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123C69' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.sim-field select:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; border-color: var(--c-orange); }

.sim-error {
  font-size: var(--fs-sm);
  color: #DC2626;
  margin-top: 1rem;
  min-height: 1.25rem;
}
.sim-result {
  margin-top: 1.5rem;
  background: var(--c-blue-light);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: none;
}
.sim-result:not(:empty) { display: block; }
.sim-result-label {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.sim-result-text {
  font-size: var(--fs-base);
  color: var(--c-text-body);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   MODELOS
   ═══════════════════════════════════════════════════════════════ */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.model-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--c-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.model-card:hover .media img { transform: scale(1.05); }

.model-card.featured {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 2px var(--c-orange), var(--shadow-md);
}

.model-image {
  position: relative;
  overflow: hidden;
}
.model-image .media {
  border-radius: 0;
  aspect-ratio: 4/3;
}
.model-card-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 2;
  background: var(--c-orange);
  color: var(--c-orange-text);
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
}

.model-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.model-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.model-name {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-blue);
}
.model-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.model-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  color: var(--c-text-body);
}
.model-specs svg { width: 16px; height: 16px; color: var(--c-blue2); }

.model-pricing { border-top: 1px solid var(--c-border); padding-top: 0.9rem; }
.model-price-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
}
.model-price {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-blue);
}
.model-sub-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.model-sub-prices span {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.model-sub-prices .green { color: var(--c-green-fin); font-weight: 700; }

.model-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESO
   ═══════════════════════════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 2px;
  background: rgba(255,255,255,0.25);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--c-white);
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base);
}
.process-step:hover .step-num {
  background: rgba(255,255,255,0.25);
}
.step-num--final {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-orange-text);
}

.step-body h3 {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.4rem;
}
.step-body p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.process-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BROCHURE STRIP
   ═══════════════════════════════════════════════════════════════ */
.brochure-strip {
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
  padding: 1.75rem 0;
}
.brochure-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brochure-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brochure-text strong {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-orange-text);
}
.brochure-text span {
  font-size: var(--fs-sm);
  color: rgba(0,0,0,0.6);
}
.brochure-strip .btn-primary {
  background: var(--c-white);
  color: var(--c-orange-dark);
  border-color: var(--c-white);
  flex-shrink: 0;
}
.brochure-strip .btn-primary:hover {
  background: var(--c-cream);
  border-color: var(--c-cream);
}

/* ═══════════════════════════════════════════════════════════════
   BANNER AGENDA VISITA
   ═══════════════════════════════════════════════════════════════ */
.visit-banner {
  background: var(--c-cream2);
  border-top: 1px solid var(--c-border-warm);
  border-bottom: 1px solid var(--c-border-warm);
  padding: 2rem 0;
}
.visit-banner--blue {
  background: var(--c-blue);
  border-color: rgba(255,255,255,0.12);
}
.visit-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.visit-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.visit-banner-text strong {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-blue);
}
.visit-banner-text span {
  font-size: var(--fs-sm);
  color: var(--c-text-body);
}
.visit-banner--blue .visit-banner-text strong { color: var(--c-white); }
.visit-banner--blue .visit-banner-text span { color: rgba(255,255,255,0.82); }
.visit-banner-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .visit-banner-inner { flex-direction: column; align-items: flex-start; }
  .visit-banner-ctas { width: 100%; flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   UBICACIÓN
   ═══════════════════════════════════════════════════════════════ */
.location-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: start;
}

.location-map .media {
  border-radius: var(--r-xl);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.location-map iframe {
  width: 100%; height: 100%;
  border: none;
  border-radius: var(--r-xl);
  display: block;
}

.location-details { display: flex; flex-direction: column; gap: 1.5rem; }

.location-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.service-card {
  background: var(--c-cream);
  border-radius: var(--r-lg);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--c-border-warm);
  transition: background var(--t-fast);
}
.service-card:hover { background: var(--c-cream2); }
.service-icon {
  width: 36px; height: 36px;
  background: var(--c-white);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-blue);
}
.service-icon svg { width: 18px; height: 18px; }
.service-card h4 {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 0.2rem;
}
.service-card p {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--c-blue-light);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}
.location-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.location-info-item svg {
  width: 18px; height: 18px;
  color: var(--c-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.location-info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.location-info-item strong {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-blue);
}
.location-info-item span {
  font-size: var(--fs-sm);
  color: var(--c-text-body);
}

.location-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.location-ctas .btn {
  justify-content: flex-start;
  gap: 0.5rem;
}
.location-ctas .btn svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════════
   AMENIDADES
   ═══════════════════════════════════════════════════════════════ */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.amenity-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border-warm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.amenity-card:hover .media img { transform: scale(1.05); }

.amenity-card.has-media .media {
  border-radius: 0;
  aspect-ratio: 16/9;
}

.amenity-icon {
  width: 56px; height: 56px;
  margin: 1.4rem auto 0;
  background: var(--c-blue-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue);
}
.amenity-icon svg { width: 26px; height: 26px; }

.amenity-body {
  padding: 1rem 1.4rem 1.4rem;
  text-align: center;
}
.amenity-body h4 {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 0.4rem;
}
.amenity-body p {
  font-size: var(--fs-sm);
  color: var(--c-text-body);
  line-height: 1.5;
}
.amenity-card.has-media .amenity-body { text-align: left; }
.amenity-card.has-media .amenity-icon { display: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPALDO / PRUEBA
   ═══════════════════════════════════════════════════════════════ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.proof-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.proof-card:hover .media img { transform: scale(1.05); }

.proof-card .media {
  border-radius: 0;
  aspect-ratio: 3/2;
}

.proof-card-body {
  padding: 1.4rem;
}
.proof-card-body h4 {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 0.4rem;
}
.proof-card-body p {
  font-size: var(--fs-sm);
  color: var(--c-text-body);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.proof-updated {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-align: center;
}

/* ── Testimonios ────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border-warm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--c-orange);
  font-size: var(--fs-lg);
  letter-spacing: 0.05em;
}
.testimonial p {
  font-size: var(--fs-base);
  color: var(--c-text-body);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-blue);
}
.testimonial-meta {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.faq-item {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-white);
  margin-bottom: 0.75rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-item:hover { border-color: var(--c-border-warm); }
.faq-item.open  { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(18,60,105,0.08); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-blue);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  min-height: 56px;
}
.faq-question span { flex: 1; }
.faq-question svg {
  width: 20px; height: 20px;
  color: var(--c-orange);
  flex-shrink: 0;
  transition: transform var(--t-base);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-answer-inner {
  padding: 0 1.4rem 1.25rem;
  font-size: var(--fs-base);
  color: var(--c-text-body);
  line-height: 1.7;
  border-top: 1px solid var(--c-border);
  padding-top: 1rem;
}

.faq-aside-card {
  background: var(--c-blue);
  color: var(--c-white);
  border-radius: var(--r-xl);
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-aside-card h3 {
  font-family: var(--ff-head);
  font-size: var(--fs-xl);
  font-weight: 700;
}
.faq-aside-card p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.faq-aside-card .btn-outline-blue {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.4);
}
.faq-aside-card .btn-outline-blue:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--c-white);
}

/* ═══════════════════════════════════════════════════════════════
   CTA FINAL / FORMULARIO
   ═══════════════════════════════════════════════════════════════ */
.section--cta-final {
  background: var(--c-blue-deep);
  padding: 0;
  overflow: hidden;
}

.cta-final-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}

.cta-final-media {
  position: relative;
  overflow: hidden;
}
.cta-final-media .media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  height: 100%;
}
.cta-final-media img {
  object-fit: cover;
  width: 100%; height: 100%;
}
.cta-final-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, var(--c-blue-deep) 100%);
  z-index: 1;
}

.cta-final-form-wrap {
  padding: 4rem 3rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
.cta-final-form-wrap .section-title--light { margin-bottom: 0.5rem; }
.cta-final-form-wrap .section-sub--light   { margin-bottom: 1.5rem; }

/* ── Formulario ─────────────────────────────────────────────────── */
.lead-form {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field label {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-blue);
}
.form-field input,
.form-field select {
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-text);
  min-height: 44px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus-visible,
.form-field select:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 1px;
  border-color: var(--c-blue);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123C69' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.input-error {
  border-color: #DC2626 !important;
}
.field-error {
  font-size: var(--fs-xs);
  color: #DC2626;
  min-height: 1rem;
  display: block;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--c-blue);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check label {
  font-size: var(--fs-sm);
  color: var(--c-text-body);
  line-height: 1.5;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.form-success-title {
  font-family: var(--ff-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-blue);
}
.form-success p {
  font-size: var(--fs-base);
  color: var(--c-text-body);
}

/* ── CTA final: redes + enlaces legales ─────────────────────────── */
.cta-final-extra {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cta-social {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.cta-social-link {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--c-white);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.cta-social-link svg { width: 18px; height: 18px; }
.cta-social-link:hover {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-orange-text);
}
.cta-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.cta-legal-link {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}
.cta-legal-link:hover { color: var(--c-white); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--c-footer);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand strong {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-white);
  display: block;
}
.footer-brand small {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
}

.footer-contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-contact p { font-size: var(--fs-sm); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}
.footer-nav a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--c-white); }

.footer-bottom { text-align: center; }
.footer-disclaimer {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 0.75rem;
}
.footer-copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   MODAL PLANO
   ═══════════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-slow);
}
.modal.open {
  pointer-events: all;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--c-white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  transform: translateY(20px);
  transition: transform var(--t-slow);
}
.modal.open .modal-box { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  background: var(--c-white);
  z-index: 1;
}
.modal-title {
  font-family: var(--ff-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-blue);
}
.modal-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--c-text-body);
  transition: background var(--t-fast);
}
.modal-close:hover { background: var(--c-cream); }
.modal-close svg { width: 22px; height: 22px; }

.modal-body {
  padding: 1.75rem;
}
.modal-body .media { border-radius: var(--r-lg); }
.plano-note {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: 1rem;
  text-align: center;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÓN FLOTANTE WhatsApp
   ═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 150;
  background: var(--c-green-wa);
  color: var(--c-green-wa-text);
  border-radius: var(--r-full);
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--t-base), box-shadow var(--t-base), width var(--t-slow), padding var(--t-slow);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; fill: var(--c-green-wa-text); flex-shrink: 0; }
.wa-float-label {
  display: none;
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-left: 0.5rem;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
@media (min-width: 768px) {
  .wa-float { width: auto; padding: 0 1.25rem 0 0.85rem; gap: 0.5rem; }
  .wa-float-label { display: block; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES (IntersectionObserver)
   ═══════════════════════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .hero-scroll-hint { animation: none; }
  .wa-float { transition: none; }
  .model-card, .amenity-card, .proof-card, .testimonial, .fin-card { transition: none; }
  .media img { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .location-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-card { width: 100%; max-width: 480px; margin: 0 auto; }
  .hero-card--form { width: 100%; max-width: 560px; }
  .hero-text { max-width: 100%; }

  /* En tablet las tarjetas mantienen el layout en COLUMNA (la fila con
     wrap estrujaba la descripción en una columna angosta junto a la cifra) */
  .fin-cards { grid-template-columns: 1fr; gap: 1rem; }
  .fin-card { max-width: 560px; margin: 0 auto; width: 100%; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .process-steps::before { display: none; }
  .process-step { flex-direction: row; text-align: left; }
  .step-num { flex-shrink: 0; }

  .location-layout { grid-template-columns: 1fr; }
  .location-map .media { aspect-ratio: 16/10; }

  .proof-grid { grid-template-columns: 1fr 1fr; }

  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside-card { position: static; }

  .cta-final-layout { grid-template-columns: 1fr; }
  .cta-final-media { display: none; }
  .cta-final-form-wrap { padding: 3rem 0; }

  .simulator-fields { grid-template-columns: 1fr 1fr; }
  .simulator-fields .btn { grid-column: 1 / -1; }

  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* Bajo 900px: cambiar a menú hamburguesa */
@media (max-width: 900px) {
  .site-nav, .header-ctas { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .hero-section {
    padding-top: calc(var(--header-h) + 3rem);
    align-items: flex-start;
    padding-bottom: 3rem;
  }

  .trust-grid { gap: 0; }
  .trust-item { padding: 0.5rem 1rem; }
  .trust-sep { display: none; }
  .trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .trust-item--highlight { grid-column: 1 / -1; }

  .section { padding: 3.5rem 0; }

  .fin-card { flex-direction: column; }

  .models-grid { grid-template-columns: 1fr; }

  .proof-grid { grid-template-columns: 1fr; }

  .location-services { grid-template-columns: 1fr; }

  .amenities-grid { grid-template-columns: 1fr 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .simulator-fields { grid-template-columns: 1fr; }

  .brochure-inner { flex-direction: column; align-items: flex-start; }

  .process-cta { flex-direction: column; }

  .modal-footer { flex-direction: column; }

  .wa-float { bottom: 1.25rem; right: 1.25rem; }

  #heroForm .form-actions { padding-bottom: 90px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .hero-card { padding: 1.5rem; }
  .hero-ctas .btn { font-size: var(--fs-sm); }
  .amenities-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ── ETAPAS DE MODELOS (lista de etapas; se muestra la seleccionada) ── */
.models-grid.has-stages {
  display: block;
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.stage-tab {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  border: 2px solid var(--c-blue);
  background: transparent;
  color: var(--c-blue);
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
  min-height: 44px;
}

.stage-tab:hover {
  background: var(--c-blue-light);
}

.stage-tab:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

.stage-tab.is-active {
  background: var(--c-blue);
  color: #fff;
}

.stage-group {
  display: none;
}

.stage-group.is-active {
  display: block;
}

@media (max-width: 600px) {
  .stage-tabs { gap: 0.375rem; }
  .stage-tab { font-size: var(--fs-xs); padding: 0.4rem 0.875rem; min-height: 40px; }
}

.stage-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.stage-title {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-blue);
  margin-bottom: 0;
}

/* Horizontal carousel */
.models-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 340px);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.models-carousel::-webkit-scrollbar { height: 5px; }
.models-carousel::-webkit-scrollbar-track { background: transparent; }
.models-carousel::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }

.models-carousel .model-card {
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .models-carousel {
    grid-auto-columns: 85vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .models-carousel { scroll-behavior: auto; }
}

/* Arrow buttons */
.stage-arrows {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.stage-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-blue);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}
.stage-arrow svg { width: 18px; height: 18px; }
.stage-arrow:hover:not(:disabled) {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-white);
}
.stage-arrow:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 2px;
}
.stage-arrow:disabled,
.stage-arrow[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

