/* ============================================================
   AGENCIA NEGOCIADORA — Landing Page
   Paleta: #1E99B0 (primario) | #34c738 (CTA) | #E53558 (acento)
   Tipografía: Raleway (titulares) + Open Sans (cuerpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;900&family=Open+Sans:wght@400;600&display=swap');

:root {
  --pri:    #1E99B0;
  --pri2:   #157a8e;
  --verde:  #34c738;
  --rojo:   #E53558;
  --txt:    #2d3748;
  --gris:   #718096;
  --bg:     #f7fafc;
  --blanco: #ffffff;
  --radio:  8px;
  --sombra: 0 4px 24px rgba(30,153,176,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--txt);
  background: var(--blanco);
  line-height: 1.6;
  font-size: 16px;
}

/* ── HEADER ─────────────────────────────────────────────── */
.an-header {
  background: var(--blanco);
  border-bottom: 3px solid var(--pri);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.an-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.an-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.an-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--pri);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.an-logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--pri);
  line-height: 1.1;
}
.an-logo-text span {
  display: block;
  font-weight: 400;
  font-size: .72rem;
  color: var(--gris);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.an-header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pri);
  text-decoration: none;
}
.an-header-tel svg { width: 20px; height: 20px; }
.an-header-gratuito {
  font-size: .7rem;
  font-weight: 600;
  background: var(--verde);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 4px;
}

/* ── HERO ───────────────────────────────────────────────── */
.an-hero {
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri2) 60%, #0d5f70 100%);
  color: #fff;
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
}
.an-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.an-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.an-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.an-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.an-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.an-hero h1 em {
  font-style: normal;
  color: #ffd166;
}
.an-hero-sub {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}
.an-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.an-stat {
  text-align: center;
}
.an-stat-num {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  color: #ffd166;
  line-height: 1;
}
.an-stat-lbl {
  font-size: .75rem;
  opacity: .8;
  margin-top: 2px;
}

/* ── CAJA SIMULADOR EN HERO ─────────────────────────────── */
.an-sim-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
}
.an-sim-card-header {
  background: var(--verde);
  color: #fff;
  padding: 14px 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.an-sim-card-body {
  padding: 0;
}

/* ── TRUST BAR ──────────────────────────────────────────── */
.an-trust {
  background: var(--pri);
  color: #fff;
  padding: 16px 24px;
}
.an-trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.an-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
}
.an-trust-item svg { width: 18px; height: 18px; opacity: .85; }

/* ── CÓMO FUNCIONA ─────────────────────────────────────── */
.an-section {
  padding: 64px 24px;
}
.an-section-alt { background: var(--bg); }
.an-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.an-section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--pri);
  text-align: center;
  margin-bottom: 8px;
}
.an-section-sub {
  text-align: center;
  color: var(--gris);
  font-size: .95rem;
  margin-bottom: 44px;
}
.an-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: steps;
}
.an-step {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.an-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}
.an-step-num {
  width: 40px;
  height: 40px;
  background: var(--pri);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.an-step h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--pri);
  margin-bottom: 8px;
}
.an-step p { font-size: .88rem; color: var(--gris); line-height: 1.6; }

/* ── FEATURES ───────────────────────────────────────────── */
.an-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.an-feature {
  text-align: center;
  padding: 28px 16px;
}
.an-feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(30,153,176,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
}
.an-feature h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--txt);
  margin-bottom: 6px;
}
.an-feature p { font-size: .82rem; color: var(--gris); }

/* ── NÚMEROS ────────────────────────────────────────────── */
.an-numeros {
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri2) 100%);
  color: #fff;
  padding: 56px 24px;
}
.an-numeros-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.an-numero-val {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: #ffd166;
  line-height: 1;
}
.an-numero-lbl {
  font-size: .82rem;
  opacity: .85;
  margin-top: 6px;
}

/* ── FAQ ────────────────────────────────────────────────── */
.an-faqs { max-width: 740px; margin: 0 auto; }
.an-faq {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.an-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: var(--txt);
  transition: background .15s;
  user-select: none;
}
.an-faq-q:hover { background: var(--bg); }
.an-faq-q.open { color: var(--pri); background: rgba(30,153,176,.05); }
.an-faq-q .arr {
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--pri);
  font-size: 1.1rem;
}
.an-faq-q.open .arr { transform: rotate(180deg); }
.an-faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: .88rem;
  color: var(--gris);
  line-height: 1.7;
  background: rgba(30,153,176,.03);
}
.an-faq-a.open { display: block; }

/* ── CTA BANNER ─────────────────────────────────────────── */
.an-cta-banner {
  background: var(--verde);
  color: #fff;
  padding: 52px 24px;
  text-align: center;
}
.an-cta-banner h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.an-cta-banner p {
  opacity: .9;
  margin-bottom: 28px;
  font-size: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.an-btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--verde);
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: var(--radio);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: none;
  cursor: pointer;
}
.an-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.an-footer {
  background: #1a202c;
  color: rgba(255,255,255,.7);
  padding: 40px 24px 24px;
}
.an-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.an-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.an-footer h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-size: .9rem;
}
.an-footer p, .an-footer a {
  font-size: .82rem;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.an-footer a:hover { color: var(--pri); }
.an-footer-links { display: flex; flex-direction: column; gap: 4px; }
.an-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .75rem;
  text-align: center;
  color: rgba(255,255,255,.4);
}
.an-footer-logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

/* ── SIMULADOR DENTRO DE LA LANDING ─────────────────────── */
#NewSimulator {
  display: flex;
  background: #fff;
}
#StepsFrame {
  flex: 1;
  min-width: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .an-hero-inner {
    grid-template-columns: 1fr;
  }
  .an-sim-card {
    margin-top: 0;
  }
  .an-footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .an-trust-inner { gap: 16px; }
  .an-header-tel .an-header-gratuito { display: none; }
}
@media (max-width: 480px) {
  .an-hero { padding: 40px 16px 60px; }
  .an-hero-stats { gap: 16px; }
  .an-stat-num { font-size: 1.5rem; }
}
