/* ═══════════════════════════════════════════════
   E&E Funding Inc — Home Page Styles
   "Verde Bosque" design system
   ═══════════════════════════════════════════════ */

:root {
  --em-deep:   #14532d;
  --em-mid:    #16a34a;
  --em-light:  #4ade80;
  --em-pale:   #dcfce7;
  --em-darker: #052e16;

  --gold:      #D4A520;
  --gold-dark: #B88912;
  --violet:    #7c3aed;
  --violet-pale:#ede9fe;
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-800:  #1f2937;
  --near-black:#080f08;
  --dark-calc: #071a0d;

  --ff-display: 'Bodoni Moda', Georgia, serif;
  --ff-body:    'Outfit', system-ui, sans-serif;
  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
  --radius-full:9999px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --shadow-xl:  0 16px 48px rgba(0,0,0,.18);
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body.eee-home { font-family:var(--ff-body); color:var(--gray-800); background:var(--white); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
body.eee-home img { display:block; max-width:100%; }
body.eee-home a { text-decoration:none; color:inherit; }
body.eee-home button { cursor:pointer; border:none; background:none; font-family:inherit; }

.wrap { max-width:1280px; margin:0 auto; padding:0 1.5rem; }

.section-label {
  display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; padding:.3rem .9rem; border-radius:var(--radius-full); margin-bottom:1rem;
}
.label-green { background:var(--em-mid); color:var(--white); }
.label-dark  { background:rgba(255,255,255,.12); color:rgba(255,255,255,.8); }

.btn {
  display:inline-flex; align-items:center; gap:.5rem; font-family:var(--ff-body);
  font-weight:700; font-size:.9rem; padding:.875rem 2rem; border-radius:var(--radius-xl);
  transition:transform .2s, box-shadow .2s; white-space:nowrap;
}
.btn:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn:active { transform:scale(.97); }
.btn-gold { background:var(--gold); color:#111; }
.btn-gold:hover { background:var(--gold-dark); }
.btn-outline-white { background:transparent; color:var(--white); border:2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color:var(--white); background:rgba(255,255,255,.08); }
.btn-outline-green { background:transparent; color:var(--em-deep); border:2px solid var(--em-mid); }
.btn-outline-green:hover { background:rgba(22,163,74,.08); }
.btn-sm { font-size:.8rem; padding:.6rem 1.25rem; border-radius:var(--radius-lg); }
.lift { transition:transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.au, .ai { opacity:0; }

/* ══════════════════════════════════════════════
   HOME HERO — Overrides sobre hero-atlas
   ══════════════════════════════════════════════ */

#hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Mesh gradient específico de Home (dentro de .hero-atlas-bg) */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(22,163,74,.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(74,222,128,.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(5,46,22,.5) 0%, transparent 60%);
}

/* ── Product bar: datos de tasa en flujo normal (nunca absolute) ── */
.hero-product-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.product-stat {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: var(--radius-lg);
  padding: .6rem 1rem;
  transition: transform .2s, border-color .2s, background .2s;
}
.product-stat:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(74,222,128,.4);
  transform: translateY(-2px);
}
.product-stat-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.5);
  line-height: 1.3;
}
.product-stat-val {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.product-stat-muted {
  font-family: var(--ff-body);
  font-style: normal;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
.product-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.12);
}
.rate-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--em-light); flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Hero photo — misma estética que .about-image-placeholder ── */
.hero-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(74,222,128,.15);
  background: linear-gradient(160deg, #166534 0%, #14532d 50%, #052e16 100%);
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
}

/* mobile: inline en el flujo del copy, centrada */
.hero-photo-mobile {
  margin: 1.5rem 0 1.25rem;
}
.hero-photo-mobile .hero-photo-frame {
  /* mín 240px · preferido 72vw · máx 320px */
  max-width: clamp(240px, 72vw, 320px);
  margin: 0 auto;
}

/* desktop: columna del grid, ocultar la versión mobile */
@media (min-width: 1024px) {
  .hero-photo-mobile { display: none; }
  .hero-photo-desktop .hero-photo-frame { max-width: 400px; }
}

/* en mobile ocultar la columna del grid */
@media (max-width: 1023.98px) {
  .hero-photo-desktop { display: none; }
}

/* iPhone SE (≤375px): el clamp ya maneja bien este tamaño con 72vw ≈ 270px */

/* Botones E&E — CSS puro, nunca dependen de Tailwind */
.eee-btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--gold); color: #111; font-family: var(--ff-body);
  font-weight: 700; font-size: .9rem; padding: .875rem 2rem;
  border-radius: var(--radius-xl); border: 2px solid var(--gold);
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
.eee-btn-gold:hover {
  background: var(--gold-dark); border-color: var(--gold-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.eee-btn-gold.btn-sm { font-size: .8rem; padding: .6rem 1.25rem; border-radius: var(--radius-lg); }
.eee-btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: transparent; color: var(--white); font-family: var(--ff-body);
  font-weight: 700; font-size: .9rem; padding: .875rem 2rem;
  border-radius: var(--radius-xl); border: 2px solid rgba(255,255,255,.5);
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
.eee-btn-outline-white:hover {
  border-color: var(--gold); color: var(--gold); background: rgba(212,165,32,.08);
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.eee-btn-outline-white.btn-sm { font-size: .8rem; padding: .6rem 1.25rem; border-radius: var(--radius-lg); }
.eee-btn-outline-green {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: transparent; color: var(--em-deep); font-family: var(--ff-body);
  font-weight: 700; font-size: .9rem; padding: .875rem 2rem;
  border-radius: var(--radius-xl); border: 2px solid var(--em-mid);
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
.eee-btn-outline-green:hover {
  background: rgba(22,163,74,.08); transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.eee-btn-outline-green.btn-sm { font-size: .8rem; padding: .6rem 1.25rem; border-radius: var(--radius-lg); }
.eee-btn-violet {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--violet); color: var(--white); font-family: var(--ff-body);
  font-weight: 700; font-size: .9rem; padding: .875rem 2rem;
  border-radius: var(--radius-xl); border: 2px solid var(--violet);
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
.eee-btn-violet:hover {
  background: #5b21b6; border-color: #5b21b6;
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.eee-btn-violet.btn-sm { font-size: .8rem; padding: .6rem 1.25rem; border-radius: var(--radius-lg); }

/* Badges */
.eee-badge-green { background: var(--em-mid); color: var(--white); }
.eee-badge-gold  { background: rgba(212,165,32,.12); color: var(--gold-dark); border: 1px solid rgba(212,165,32,.25); }
.eee-badge-violet{ background: rgba(124,58,237,.1); color: var(--violet); border: 1px solid rgba(124,58,237,.2); }

/* Utilidades */
.w-full { width: 100%; }

/* Trust items — ahora son visibles */
.hero-trust {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.trust-item {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: .35rem .9rem .35rem .6rem;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s, border-color .2s, background .2s;
}
.trust-item:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}
.trust-item svg {
  width: 18px; height: 18px;
  color: var(--em-light);
  flex-shrink: 0;
}

/* ── Columna derecha: visual ── */
.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero-visual-inner::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--em-deep) 0%, rgba(20,83,45,.4) 35%, transparent 65%);
}
.hero-visual-inner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; z-index: 1;
  background: linear-gradient(to top, rgba(20,83,45,.65), transparent);
}

.hero-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #166534 0%, #14532d 50%, #052e16 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: rgba(255,255,255,.25);
}
.hero-photo-placeholder svg { width: 64px; height: 64px; }
.hero-photo-placeholder p { font-size: .8rem; font-weight: 600; text-align: center; padding: 0 1.5rem; }

/* ── FHA RATES ───────────────────────────────── */
#rates { padding:6rem 0; background:var(--white); }
.rates-header { text-align:center; margin-bottom:3.5rem; }
.rates-header h2 { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem,3.5vw,2.75rem); font-weight:800; color:var(--em-deep); margin-bottom:1rem; }
.rates-header p { color:var(--gray-600); max-width:560px; margin:0 auto; }
.rates-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; margin-bottom:2.5rem; }
.rate-card { background:var(--white); border:1.5px solid var(--gray-200); border-radius:var(--radius-xl); padding:2rem; position:relative; overflow:hidden; transition:transform .25s, box-shadow .25s, border-color .25s; }
.rate-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-xl); border-color:var(--em-mid); }
.rate-card.featured { background:var(--em-deep); border-color:var(--em-deep); color:var(--white); }
.rate-card.featured::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(to right, var(--em-mid), var(--em-light)); }
.rate-card-badge { font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:.25rem .75rem; border-radius:var(--radius-full); width:fit-content; margin-bottom:1.25rem; }
.badge-featured { background:var(--gold); color:#111; }
.badge-default  { background:var(--em-mid); color:var(--white); }
.rate-type { font-size:.8rem; font-weight:700; margin-bottom:.5rem; color:rgba(255,255,255,.6); }
.rate-card:not(.featured) .rate-type { color:var(--gray-600); }
.rate-big { font-family:var(--ff-display); font-style:italic; font-weight:800; font-size:clamp(2rem, 4vw, 3.25rem); line-height:1; color:var(--em-light); margin-bottom:.25rem; }
.rate-card:not(.featured) .rate-big { color:var(--em-deep); }
.rate-apr { font-size:.8rem; color:rgba(255,255,255,.45); margin-bottom:1.5rem; }
.rate-card:not(.featured) .rate-apr { color:var(--gray-400); }
.rate-details { display:flex; flex-direction:column; gap:.6rem; margin-bottom:1.75rem; }
.rate-detail { display:flex; justify-content:space-between; font-size:.82rem; padding-bottom:.6rem; border-bottom:1px solid rgba(255,255,255,.1); }
.rate-card:not(.featured) .rate-detail { border-bottom-color:var(--gray-100); }
.rate-detail-label { color:rgba(255,255,255,.5); }
.rate-card:not(.featured) .rate-detail-label { color:var(--gray-400); }
.rate-detail-val { font-weight:700; color:var(--white); }
.rate-card:not(.featured) .rate-detail-val { color:var(--em-deep); }
.rates-last-updated {
  text-align:center;
  font-size:.85rem;
  font-weight:700;
  color:var(--em-mid);
  margin-top:.75rem;
}
.rates-last-updated::before {
  content:'🕐 ';
}
.rates-disclaimer { text-align:center; font-size:.75rem; color:var(--gray-600); max-width:640px; margin:0 auto; line-height:1.6; }

.rates-live-error { color:#ef4444; }

/* ── Rates comparison strip ── */
.rates-comparison-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.rate-col {
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rate-col-featured {
  background: var(--em-deep);
  border: 1.5px solid var(--em-deep);
  color: var(--white);
}
.rate-col-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--em-mid), var(--em-light));
}
.rate-col-secondary {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
}
.rate-col-secondary:hover {
  border-color: var(--em-mid);
}
.rate-col-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 1.25rem;
}
.rate-col-type {
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: rgba(255,255,255,.6);
}
.rate-col-secondary .rate-col-type {
  color: var(--gray-600);
}
.rate-col-big {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--em-light);
  margin-bottom: .25rem;
}
.rate-col-secondary .rate-col-big {
  color: var(--em-deep);
}
.rate-col-apr {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.5rem;
}
.rate-col-secondary .rate-col-apr {
  color: var(--gray-400);
}
.rate-col-details {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.rate-col-detail {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rate-col-secondary .rate-col-detail {
  border-bottom-color: var(--gray-100);
}
.rate-col-detail span:first-child {
  color: rgba(255,255,255,.5);
}
.rate-col-secondary .rate-col-detail span:first-child {
  color: var(--gray-400);
}
.rate-col-detail span:last-child {
  font-weight: 700;
  color: var(--white);
}
.rate-col-secondary .rate-col-detail span:last-child {
  color: var(--em-deep);
}

/* ── FHA pills ── */
.fha-pills {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.fha-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--em-mid);
  border: 1px solid rgba(22,163,74,.25);
  border-radius: var(--radius-full);
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
}
.fha-pill svg {
  color: var(--em-mid);
  flex-shrink: 0;
}

/* ── Rates CTA ── */
.rates-cta-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}
.rates-cta-text {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--em-deep);
  margin-bottom: 1rem;
}
.btn-lg {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ── CALCULATOR ──────────────────────────────── */
#calculator { padding:6rem 0; background:var(--dark-calc); position:relative; overflow:hidden; }
#calculator::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 50% 60% at 10% 50%, rgba(22,163,74,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 30%, rgba(74,222,128,.06) 0%, transparent 50%);
}
.calc-inner { position:relative; z-index:1; }
.calc-header { text-align:center; margin-bottom:3.5rem; }
.calc-header h2 { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem,3.5vw,2.75rem); font-weight:800; color:var(--white); margin-bottom:.75rem; }
.calc-header p { color:rgba(255,255,255,.4); }
.calc-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
.calc-controls { display:flex; flex-direction:column; gap:2rem; }
.calc-field label { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:.75rem; }
.calc-field-name { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.4); }
.calc-field-val { font-family:var(--ff-display); font-style:italic; font-size:1.4rem; font-weight:800; color:var(--em-light); }
input[type=range] { -webkit-appearance:none; width:100%; height:4px; border-radius:2px; outline:none; cursor:pointer; }
input[type=range]:focus-visible { outline:2px solid var(--em-light); outline-offset:4px; border-radius:2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:20px; height:20px; border-radius:50%; background:var(--white); box-shadow:0 2px 8px rgba(0,0,0,.3); cursor:pointer; transition:transform .2s; }
input[type=range]::-webkit-slider-thumb:hover { transform:scale(1.15); }
#amountSlider { background:linear-gradient(to right, var(--em-mid) 0%, var(--em-mid) var(--amt-pct,25%), rgba(255,255,255,.1) var(--amt-pct,25%)); }
#rateSlider   { background:linear-gradient(to right, var(--gold) 0%, var(--gold) var(--rate-pct,35%), rgba(255,255,255,.1) var(--rate-pct,35%)); }
.calc-term-label { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.4); margin-bottom:.75rem; }
.term-btns { display:flex; gap:.75rem; }
.term-btn { flex:1; padding:.6rem; border-radius:var(--radius-md); border:1.5px solid rgba(255,255,255,.12); color:rgba(255,255,255,.45); font-family:var(--ff-body); font-weight:700; font-size:.85rem; transition:all .2s; }
.term-btn.active { background:var(--em-mid); border-color:var(--em-mid); color:var(--white); }
.term-btn:hover:not(.active) { border-color:rgba(255,255,255,.35); color:rgba(255,255,255,.8); }
.calc-results { display:flex; flex-direction:column; gap:1rem; }
.calc-result-box { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); border-radius:var(--radius-lg); padding:1.25rem 1.5rem; display:flex; justify-content:space-between; align-items:center; }
.calc-result-box.highlight { background:rgba(22,163,74,.12); border-color:var(--em-mid); }
.calc-result-label { font-size:.78rem; font-weight:600; color:rgba(255,255,255,.4); }
.calc-result-val { font-family:var(--ff-display); font-style:italic; font-size:1.6rem; font-weight:800; color:var(--white); }
.calc-result-box.highlight .calc-result-val { color:var(--em-light); }
.calc-result-box.highlight .calc-result-label { color:rgba(255,255,255,.6); }
.calc-cta-wrap { margin-top:1.5rem; }
.calc-note { font-size:.75rem; color:rgba(255,255,255,.5); margin-top:.75rem; text-align:center; }

/* ── PROCESS ─────────────────────────────────── */
#process { padding:6rem 0; background:var(--gray-50); }
.process-header { text-align:center; margin-bottom:4rem; }
.process-header h2 { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem,3.5vw,2.75rem); font-weight:800; color:var(--em-deep); margin-bottom:1rem; }
.process-header p { color:var(--gray-600); max-width:480px; margin:0 auto; }
.steps-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; position:relative; }
.steps-grid::before { content:''; position:absolute; top:2.75rem; left:calc(12.5% + 1.5rem); right:calc(12.5% + 1.5rem); height:2px; background:repeating-linear-gradient(to right, var(--em-pale) 0px, var(--em-pale) 8px, transparent 8px, transparent 16px); }
.step-card { background:var(--white); border-radius:var(--radius-xl); padding:2rem 1.5rem; text-align:center; border:1px solid var(--gray-100); }
.step-num { width:52px; height:52px; border-radius:50%; background:var(--em-deep); color:var(--white); font-family:var(--ff-display); font-style:italic; font-size:1.25rem; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 1.25rem; position:relative; z-index:1; }
.step-card:nth-child(4) .step-num { background:var(--gold); color:#111; }
.step-title { font-family:var(--ff-display); font-style:italic; font-size:1.15rem; font-weight:700; color:var(--em-deep); margin-bottom:.5rem; }
.step-desc { font-size:.85rem; color:var(--gray-600); line-height:1.6; }

/* ── PROGRAMS ────────────────────────────────── */
#programs { padding:6rem 0; }
.programs-header { text-align:center; margin-bottom:3.5rem; }
.programs-header h2 { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem,3.5vw,2.75rem); font-weight:800; color:var(--em-deep); margin-bottom:1rem; }
.programs-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:1.25rem; }
.program-card { border-radius:var(--radius-xl); padding:2.5rem 2rem; position:relative; overflow:hidden; }
.program-card.fha { background:var(--em-deep); color:var(--white); }
.program-card.fha::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 70% 50% at 30% 70%, rgba(74,222,128,.1) 0%, transparent 60%); pointer-events: none; }
.program-card.conventional { background:var(--gray-50); border:1.5px solid var(--gray-200); }
.program-card.va { background:var(--violet-pale); border:1.5px solid rgba(124,58,237,.2); }
.program-badge { font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:.3rem .9rem; border-radius:var(--radius-full); width:fit-content; margin-bottom:1.25rem; }
.badge-hud  { background:var(--gold); color:#111; }
.badge-conv { background:var(--em-mid); color:var(--white); }
.badge-va   { background:var(--violet); color:var(--white); }
.program-title { font-family:var(--ff-display); font-style:italic; font-size:1.5rem; font-weight:800; margin-bottom:.5rem; }
.program-card.fha .program-title { color:var(--white); }
.program-card.conventional .program-title { color:var(--em-deep); }
.program-card.va .program-title { color:var(--violet); }
.program-desc { font-size:.88rem; line-height:1.7; margin-bottom:1.5rem; }
.program-card.fha .program-desc { color:rgba(255,255,255,.65); }
.program-card.conventional .program-desc,.program-card.va .program-desc { color:var(--gray-600); }
.program-features { list-style:none; display:flex; flex-direction:column; gap:.6rem; margin-bottom:2rem; }
.program-features li { font-size:.83rem; padding-left:1.4rem; position:relative; line-height:1.5; }
.program-features li::before { content:'✓'; position:absolute; left:0; font-weight:700; }
.program-card.fha .program-features li { color:rgba(255,255,255,.75); }
.program-card.fha .program-features li::before { color:var(--em-light); }
.program-card.conventional .program-features li { color:var(--gray-600); }
.program-card.conventional .program-features li::before { color:var(--em-mid); }
.program-card.va .program-features li { color:var(--gray-600); }
.program-card.va .program-features li::before { color:var(--violet); }

/* ── AREAS ───────────────────────────────────── */
#areas { padding:6rem 0; background:var(--gray-50); }
.areas-header { text-align:center; margin-bottom:3.5rem; }
.areas-header h2 { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem,3.5vw,2.75rem); font-weight:800; color:var(--em-deep); margin-bottom:1rem; }
.areas-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; }
.area-card { background:var(--white); border:1.5px solid var(--gray-200); border-radius:var(--radius-xl); padding:1.75rem; text-align:center; position:relative; overflow:hidden; }
.area-card.priority { border-color:var(--em-mid); border-width:2px; }
.area-card.priority::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(to right, var(--em-deep), var(--em-mid)); }
.area-state { font-family:var(--ff-display); font-style:italic; font-size:2rem; font-weight:800; color:var(--em-deep); margin-bottom:.25rem; }
.area-name { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--gray-400); margin-bottom:.75rem; }
.area-cities { font-size:.8rem; color:var(--gray-600); line-height:1.6; margin-bottom:1rem; }
.area-hq { font-size:.7rem; font-weight:700; color:var(--em-mid); text-transform:uppercase; letter-spacing:.08em; }
.area-dedicated { display:inline-block; font-size:.65rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; background:var(--em-mid); color:var(--white); padding:.25rem .6rem; border-radius:var(--radius-full); margin-bottom:.75rem; }

/* ── TESTIMONIALS ────────────────────────────── */
#testimonials { padding:6rem 0; background:var(--em-deep); position:relative; overflow:hidden; }
#testimonials::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(22,163,74,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(74,222,128,.06) 0%, transparent 50%);
}
.testimonials-header { text-align:center; margin-bottom:3.5rem; position:relative; z-index:1; }
.testimonials-header h2 { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem,3.5vw,2.75rem); font-weight:800; color:var(--white); margin-bottom:1rem; }
.testimonials-header p { color:rgba(255,255,255,.45); }
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; position:relative; z-index:1; }
.testi-card { background:rgba(255,255,255,.06); border:1px solid rgba(74,222,128,.12); border-radius:var(--radius-xl); padding:2rem; backdrop-filter:blur(8px); }
.testi-stars { display:flex; gap:.2rem; margin-bottom:1rem; }
.star { color:var(--gold); font-size:.9rem; }
.testi-quote { font-size:.9rem; color:rgba(255,255,255,.8); line-height:1.75; margin-bottom:1.5rem; font-style:italic; }
.testi-quote::before { content:'\201C'; font-size:1.4rem; color:var(--em-light); font-style:normal; }
.testi-author { display:flex; align-items:center; gap:.75rem; }
.testi-avatar { width:40px; height:40px; border-radius:50%; background:var(--em-mid); display:flex; align-items:center; justify-content:center; font-family:var(--ff-display); font-style:italic; font-weight:800; font-size:1rem; color:var(--white); flex-shrink:0; }
.testi-name { font-weight:700; font-size:.88rem; color:var(--white); }
.testi-city { font-size:.75rem; color:rgba(255,255,255,.4); }

/* ── ABOUT ───────────────────────────────────── */
#about { padding:6rem 0; }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }
.about-content h2 { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem,3vw,2.5rem); font-weight:800; color:var(--em-deep); margin-bottom:1.25rem; line-height:1.15; }
.about-content h2 em { color:var(--em-mid); font-style:italic; }
.about-content p { color:var(--gray-600); line-height:1.8; margin-bottom:1rem; font-size:.95rem; }
.about-cta { margin-top:1.5rem; }
.stats-panel { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
.stat-box { background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:2rem; text-align:center; }
.stat-box:first-child { background:var(--em-deep); border-color:var(--em-deep); }
.stat-num { font-family:var(--ff-display); font-style:italic; font-size:clamp(1.75rem, 3.5vw, 2.75rem); font-weight:800; color:var(--em-deep); line-height:1; }
.stat-box:first-child .stat-num { color:var(--em-light); }
.stat-label { font-size:.78rem; font-weight:700; color:var(--gray-400); margin-top:.4rem; }
.stat-box:first-child .stat-label { color:rgba(255,255,255,.45); }

/* ── CONTACT ─────────────────────────────────── */
/* ── Contact premium v3 — Verde bosque profundo ── */
.contact-premium {
  position: relative;
  overflow: hidden;
  background: var(--em-deep);
  padding: 6rem 0;
}
.contact-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(212,165,32,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(74,222,128,.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.contact-premium .wrap { position: relative; z-index: 1; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:start; }

/* Info column — texto claro sobre verde oscuro */
.contact-info .section-label.label-green {
  background: rgba(212,165,32,.12);
  color: var(--gold);
  border: 1px solid rgba(212,165,32,.2);
}
.contact-info h2 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.contact-info p {
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.contact-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Phone box — glassmorphism */
.contact-phone-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
}
.contact-phone-box p {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin-bottom: .5rem;
}
.contact-phone {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white) !important;
  text-decoration: none;
  display: inline-block;
  transition: color .2s, text-shadow .2s;
}
.contact-phone:hover { 
  color: var(--gold) !important; 
  text-shadow: 0 0 20px rgba(212,165,32,.5);
}

/* GHL Form wrapper — card con form inline */
.ghl-form-wrapper {
  background: var(--white);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  overflow: visible; /* permite que el iframe crezca con auto-resize */
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
/* Inner CTA cuando el form es popup */
.ghl-form-cta {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
}
.ghl-form-cta-icon {
  width: 52px; height: 52px;
  background: var(--em-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .4rem;
}
.ghl-form-cta h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--em-deep);
  margin: 0;
}
.ghl-form-cta p {
  font-size: .83rem;
  color: var(--gray-400);
  max-width: 260px;
  margin: 0;
}

/* ── FOOTER ──────────────────────────────────── */
#footer { background:var(--near-black); position:relative; overflow:hidden; }
#footer::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 60%, rgba(20,83,45,.22) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 85% 15%, rgba(212,165,32,.05) 0%, transparent 65%);
}
.footer-top-accent {
  height:3px;
  background:linear-gradient(90deg, var(--em-deep) 0%, var(--em-mid) 30%, var(--em-light) 60%, var(--gold) 100%);
  position:relative; z-index:1;
}
.footer-grid {
  display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr;
  gap:3rem; padding:4rem 0 3rem;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:relative; z-index:1;
}
.footer-logo {
  display:inline-flex; align-items:baseline; gap:.3rem;
  margin-bottom:.75rem; text-decoration:none;
}
.footer-tagline {
  font-family:var(--ff-display); font-style:italic; font-size:.95rem;
  color:var(--gold); margin-bottom:.75rem; font-weight:600;
}
.footer-desc {
  font-size:.81rem; color:rgba(255,255,255,.36); line-height:1.78;
  max-width:275px; margin-bottom:1.25rem;
}
.footer-states { display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.footer-state { font-size:.66rem; font-weight:700; color:var(--em-light); background:rgba(74,222,128,.07); border:1px solid rgba(74,222,128,.2); padding:.2rem .6rem; border-radius:var(--radius-full); }
.footer-state.priority { background:rgba(212,165,32,.1); border-color:rgba(212,165,32,.3); color:var(--gold); }
.footer-social { display:flex; flex-direction:column; gap:.6rem; }
.footer-social-link {
  display:inline-flex; align-items:center; gap:.55rem;
  font-size:.79rem; font-weight:600; color:rgba(255,255,255,.4);
  transition:color .2s;
}
.footer-social-link:hover { color:var(--white); }
.footer-social-link svg { flex-shrink:0; }
.footer-col { position:relative; z-index:1; }
.footer-col h4 { font-size:.66rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:rgba(255,255,255,.22); margin-bottom:1.25rem; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:.65rem; }
.footer-col ul li a { font-size:.81rem; color:rgba(255,255,255,.4); transition:color .2s, padding-left .2s; display:inline-block; }
.footer-col ul li a:hover { color:var(--white); padding-left:.35rem; }
.footer-compliance {
  display:flex; align-items:center; justify-content:space-between;
  gap:2rem; flex-wrap:wrap;
  padding:1.5rem 0;
  border-bottom:1px solid rgba(255,255,255,.05);
  margin-bottom:1.75rem;
  position:relative; z-index:1;
}
.footer-nmls { display:flex; align-items:center; gap:.6rem; }
.footer-nmls-label {
  font-size:.58rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase;
  color:var(--em-mid); background:rgba(22,163,74,.12); border:1px solid rgba(22,163,74,.22);
  padding:.2rem .5rem; border-radius:var(--radius-sm);
}
.footer-nmls-number { font-size:.84rem; font-weight:700; color:rgba(255,255,255,.48); }
.footer-compliance-badges { display:flex; gap:.65rem; align-items:center; flex-wrap:wrap; }
.footer-badge { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-sm); padding:.35rem .7rem; font-size:.63rem; font-weight:700; color:rgba(255,255,255,.32); text-transform:uppercase; letter-spacing:.07em; display:flex; align-items:center; gap:.4rem; }
.footer-badge svg { opacity:.5; }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:2rem; flex-wrap:wrap; padding-bottom:2.5rem;
  position:relative; z-index:1;
}
.footer-legal { font-size:.68rem; color:rgba(255,255,255,.2); line-height:1.78; max-width:680px; }
.footer-legal p+p { margin-top:.35rem; }
.footer-legal strong { color:rgba(255,255,255,.38); }
.footer-copy { font-size:.7rem; color:rgba(255,255,255,.18); font-weight:600; white-space:nowrap; padding-top:.15rem; }

/* ══════════════════════════════════════════════
   PREMIUM v2 — Orbs, Ticker, Timeline, Maps, Asymmetric
   ══════════════════════════════════════════════ */

/* ── Calculator premium ── */
.calc-premium { position: relative; overflow: hidden; }
.calc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: .3;
}
.calc-orb-green {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,222,128,.4) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation: orbFloat 9s ease-in-out infinite;
}
.calc-orb-gold {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,165,32,.3) 0%, transparent 70%);
  bottom: -5%; right: -8%;
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.calc-grid-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.calc-results-premium {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.calc-result-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 260px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(22,163,74,.15) 0%, transparent 70%),
    conic-gradient(var(--em-mid) 0%, var(--gold) 35%, var(--em-light) 70%, var(--em-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(22,163,74,.15);
  animation: glowPulse 4s ease-in-out infinite;
}
.calc-ring-inner {
  background: var(--dark-calc);
  border-radius: 50%;
  width: 78%;
  height: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(74,222,128,.12);
}
.calc-ring-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: .4rem;
}
.calc-ring-val {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--em-light);
  line-height: 1;
}

/* ── Process v3 ── */
#process { padding: 6rem 0; background: var(--gray-50); position: relative; }
.process-header { text-align: center; margin-bottom: 3.5rem; }
.process-header h2 { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; color: var(--em-deep); margin-bottom: 1rem; }
.process-header p { color: var(--gray-600); max-width: 480px; margin: 0 auto; }

/* Track horizontal */
.process-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  height: 3px;
}
.process-track-line {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 2px;
}
.process-track-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(to right, var(--em-mid), var(--gold));
  border-radius: 2px;
}

/* Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.process-step:hover {
  border-color: var(--em-mid);
  box-shadow: var(--shadow-lg);
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--em-deep), var(--em-mid));
  opacity: 0;
  transition: opacity .25s;
}
.process-step:hover::before {
  opacity: 1;
}
.process-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--em-deep);
  color: var(--em-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
  box-shadow: 0 4px 16px rgba(20,83,45,.2);
}
.process-step-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.process-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--em-deep);
  margin-bottom: .5rem;
}
.process-desc {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Programs premium ── */
.programs-grid-premium {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.25rem;
}

/* ── Areas premium ── */
.areas-grid-premium {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.areas-map-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--near-black);
  min-height: 420px;
}
.areas-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xl);
}
.areas-map-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: .75rem;
  z-index: 2;
}
.map-overlay-stat {
  background: rgba(20,83,45,.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: var(--radius-md);
  padding: .6rem 1rem;
  text-align: center;
}
.map-stat-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.map-stat-label {
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .15rem;
}
.areas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.area-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.area-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--em-deep), var(--em-mid));
  opacity: 0;
  transition: opacity .3s;
}
.area-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20,83,45,.15);
  border-color: var(--em-mid);
}
.area-item:hover::before {
  opacity: 1;
}
.area-item.area-priority {
  border-color: var(--em-mid);
  border-width: 2px;
  background: linear-gradient(135deg, var(--white) 0%, var(--em-pale) 100%);
}
.area-item.area-priority::before {
  opacity: 1;
}
.area-flag {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--em-deep) 0%, #0f3d1f 100%);
  color: var(--white);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 8px rgba(0,0,0,.15);
}
.area-info { flex: 1; min-width: 0; }
.area-info .area-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--em-deep);
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}
.area-info .area-cities {
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: .6rem;
  font-weight: 500;
}
.area-badge-hq {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #111;
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(212,165,32,.3);
}

/* ── About premium ── */
.about-grid-premium {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.about-visual {
  position: relative;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #166534 0%, #14532d 50%, #052e16 100%);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.25);
  border: 1px solid rgba(74,222,128,.15);
  overflow: hidden;
  position: relative;
}
.about-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(212,165,32,.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(74,222,128,.06) 0%, transparent 40%);
  pointer-events: none;
}
.about-placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 0 1.5rem;
}
.about-placeholder-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  text-align: center;
  line-height: 1.1;
}
.about-placeholder-role {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  text-align: center;
}
.about-image-placeholder svg { width: 56px; height: 56px; opacity: .5; }
.about-content h2 em { color: var(--em-mid); font-style: italic; }

/* Stats panel premium */
.stats-panel-premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stats-panel-premium .stat-box {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.stats-panel-premium .stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-gold { background: linear-gradient(135deg, #fffbeb 0%, var(--white) 100%) !important; border-color: rgba(212,165,32,.3) !important; }
.stat-gold .stat-num { color: var(--gold-dark); }
.stat-gold .stat-label { color: rgba(184,137,18,.6); }
.stat-green { background: var(--em-deep) !important; border-color: var(--em-deep) !important; }
.stat-green .stat-num { color: var(--em-light); }
.stat-green .stat-label { color: rgba(255,255,255,.45); }
.stat-white { background: var(--white) !important; }
.stat-white .stat-num { color: var(--em-deep); }
.stat-pale { background: var(--em-mid) !important; border-color: rgba(22,163,74,.2) !important; }
.stat-pale .stat-num { color: var(--white); }

/* ── Secciones en verde oscuro ───────────────── */
#programs, #about {
  background: var(--em-deep);
  position: relative;
  overflow: hidden;
}
#programs::before, #about::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(212,165,32,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(74,222,128,.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
#programs .wrap, #about .wrap { position: relative; z-index: 1; }

/* Programs dark */
#programs .programs-header h2 { color: var(--white); }
#programs .program-card.conventional {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
}
#programs .program-card.conventional .program-title { color: var(--white); }
#programs .program-card.conventional .program-desc { color: rgba(255,255,255,.65); }
#programs .program-card.conventional .program-features li { color: rgba(255,255,255,.75); }
#programs .program-card.conventional .program-features li::before { color: var(--em-light); }
#programs .program-card.va {
  background: rgba(124,58,237,.12);
  border: 1.5px solid rgba(124,58,237,.25);
}
#programs .program-card.va .program-title { color: var(--violet-pale); }
#programs .program-card.va .program-desc { color: rgba(255,255,255,.65); }
#programs .program-card.va .program-features li { color: rgba(255,255,255,.75); }
#programs .program-card.va .program-features li::before { color: var(--violet-pale); }

/* Botones en secciones oscuras — nunca texto negro */
#hero .eee-btn-gold {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
#hero .eee-btn-gold:hover {
  color: var(--white);
}

#programs .eee-btn-gold,
#about .eee-btn-gold,
.bento-cta .eee-btn-gold {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
  text-shadow: none;
}
/* FHA card: botón siempre sólido para mejor CTAs */
#programs .program-card.fha .eee-btn-gold {
  background: var(--gold);
  color: #111;
}
#programs .program-card.fha .eee-btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #111;
}
#programs .eee-btn-gold:hover,
#about .eee-btn-gold:hover,
.bento-cta .eee-btn-gold:hover {
  background: var(--gold);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* Outline-green en secciones oscuras → texto blanco/dorado */
#programs .eee-btn-outline-green {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
#programs .eee-btn-outline-green:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* About dark */
#about .about-content h2 { color: var(--white); }
#about .about-content h2 em { color: var(--em-light); }
#about .about-content p { color: rgba(255,255,255,.65); }
#about .stats-panel-premium .stat-box {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
}
#about .stats-panel-premium .stat-box:hover {
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
#about .stat-num { color: var(--white); }
#about .stat-label { color: rgba(255,255,255,.45); }
#about .stat-gold {
  background: rgba(212,165,32,.12) !important;
  border-color: rgba(212,165,32,.25) !important;
}
#about .stat-gold .stat-num { color: var(--gold); }
#about .stat-gold .stat-label { color: rgba(212,165,32,.5); }
#about .stat-green {
  background: rgba(22,163,74,.15) !important;
  border-color: rgba(22,163,74,.3) !important;
}
#about .stat-green .stat-num { color: var(--em-light); }
#about .stat-white {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
}
#about .stat-pale {
  background: rgba(74,222,128,.1) !important;
  border-color: rgba(74,222,128,.2) !important;
}
#about .stat-pale .stat-num { color: var(--em-light); }

/* ── FAQ Bento ───────────────────────────────── */
#faq { padding: 6rem 0; background: var(--white); }
.faq-header { text-align: center; margin-bottom: 3rem; }
.faq-header h2 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--em-deep);
  line-height: 1.15;
}
.faq-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.bento-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22,163,74,.25);
}
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-cta {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--em-deep) 0%, #0f3d20 100%);
  border-color: rgba(74,222,128,.15);
  color: var(--white);
  padding: 2rem 2.5rem;
}
.bento-cta:hover { border-color: rgba(74,222,128,.3); }
.bento-cta h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .25rem;
}
.bento-cta p { color: rgba(255,255,255,.65); font-size: .9rem; }
.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--em-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}
.bento-cta .bento-icon { background: rgba(212,165,32,.15); color: var(--gold); }
.bento-q {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--em-deep);
  line-height: 1.3;
}
.bento-cta .bento-q { color: var(--white); }
.bento-a {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.bento-cta .bento-a { color: rgba(255,255,255,.65); }
.bento-stat {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.bento-stat-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 800;
  color: var(--em-deep);
  line-height: 1;
}
.bento-stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Card destacada */
.bento-highlight {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(135deg, #fffbeb 0%, var(--white) 100%);
  box-shadow: 0 4px 20px rgba(212,165,32,.08);
  position: relative;
}
.bento-highlight:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(212,165,32,.14);
}
.bento-highlight .bento-icon {
  background: rgba(212,165,32,.12);
  color: var(--gold-dark);
}
.bento-highlight-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--gold);
  color: #111;
  padding: .2rem .55rem;
  border-radius: var(--radius-full);
}

/* ── MOBILE ──────────────────────────────────── */
.mobile-bottom-nav { display:none; position:fixed; bottom:0; left:0; right:0; background:var(--em-deep); border-top:1px solid rgba(74,222,128,.12); z-index:100; padding:.75rem 1.5rem; padding-bottom:max(.75rem,env(safe-area-inset-bottom)); justify-content:space-between; align-items:center; }
.mbn-item { display:flex; flex-direction:column; align-items:center; gap:.2rem; font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:rgba(255,255,255,.4); padding:0 .5rem; }
.mbn-cta { background:var(--gold); color:#111; border-radius:var(--radius-lg); padding:.6rem 1.25rem; font-size:.75rem; font-weight:700; }

@media (max-width:1024px) { .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; } .footer-compliance { flex-direction:column; align-items:flex-start; gap:1rem; } }
@media (max-width:768px) {
  #hero { min-height: auto; }
  #hero .hero-atlas-wrap { grid-template-columns: 1fr; padding: 2rem 1.5rem 2.5rem; }
  .hero-visual { display: none; }
  .hero-product-bar { gap: .5rem; margin-top: 1rem; }
  .product-stat { padding: .5rem .75rem; }
  .product-stat-val { font-size: 1.1rem; }
  .hero-atlas-wave { height:40px; }
  .rates-comparison-strip,.programs-grid-premium { grid-template-columns:1fr; }
  .calc-grid-premium { grid-template-columns:1fr; gap:2.5rem; }
  .calc-result-ring { max-width:220px; }
  .process-grid { grid-template-columns:1fr 1fr; }
  .process-track { display:none; }
  .areas-grid-premium { grid-template-columns:1fr; }
  .areas-map-wrap { min-height:300px; }
  .areas-map { height:300px; }
  .about-grid-premium { grid-template-columns:1fr; gap:2.5rem; }
  .stats-panel-premium { grid-template-columns:1fr 1fr; }
  .about-grid,.contact-grid { grid-template-columns:1fr; gap:2.5rem; }
  .faq-bento { grid-template-columns: 1fr; }
  .bento-wide, .bento-tall, .bento-cta { grid-column: span 1; grid-row: span 1; }
  .bento-cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-grid { grid-template-columns:1fr; gap:2rem; }
  .nav-links,.nav-lang { display:none; }
  .nav-burger { display:flex; }
  .nav-mobile { display:flex; }
  .mobile-bottom-nav { display:flex; }
  body.eee-home { padding-bottom:70px; }
  .hero-atlas-actions { flex-direction:column; }
  .hero-atlas-actions .btn { width:100%; justify-content:center; }
}
@media (max-width:480px) { .steps-grid,.areas-grid,.stats-panel { grid-template-columns:1fr 1fr; } }

/* ── Padding de secciones en mobile ── */
@media (max-width:767.98px) {
  #rates, #process, #programs, #about { padding:3.5rem 0; }
  .contact-premium { padding:3.5rem 0; }
  #hero { padding-bottom:4rem; }
  .rates-comparison-strip { margin-bottom:1.5rem; }
}
@media (max-width:479px) {
  #rates, #process, #programs, #about { padding:2.5rem 0; }
  .contact-premium { padding:2.5rem 0; }
  .rates-header, .process-header, .programs-header { margin-bottom:2rem; }
}

/* ── Tablet pequeña (769px – 819px): iPad mini / Galaxy Tab ── */
@media (min-width:769px) and (max-width:819.98px) {
  .process-grid { grid-template-columns:repeat(2,1fr); }
  .process-track { display:none; }
  .rates-comparison-strip { grid-template-columns:repeat(2,1fr); }
  .programs-grid-premium { grid-template-columns:1fr 1fr; }
  .calc-grid-premium { grid-template-columns:1fr; gap:2rem; }
  .calc-result-ring { max-width:260px; margin:0 auto; }
  .about-grid-premium { grid-template-columns:1fr; gap:2.5rem; }
}

/* ── iPad 11" / iPad Air (820px – 1023px) ── */
@media (min-width:820px) and (max-width:1023.98px) {
  .process-grid { grid-template-columns:repeat(2,1fr); }
  .process-track { display:none; }
  .rates-comparison-strip { grid-template-columns:repeat(2,1fr); }
  .programs-grid-premium { grid-template-columns:1fr 1fr; }
  /* Calculadora: a 820px caben 2 cols cómodamente */
  .calc-grid-premium { grid-template-columns:1fr 1fr; gap:2.5rem; }
  /* About: restaurar 2 cols con gap reducido */
  .about-grid-premium { grid-template-columns:1.1fr 0.9fr; gap:2.5rem; }
}

