/* =========================================================
   Progressa Financial — Landing de reclutamiento
   Paleta tomada del logo: azul #005DFC y azul marino #031430
   ========================================================= */

:root {
  --blue: #005dfc;
  --blue-600: #004fd6;
  --blue-50: #e8f0ff;
  --navy: #031430;
  --navy-800: #0a2552;
  --paper: #f1f4f9;
  --white: #ffffff;
  --ink: #031430;
  --muted: #4d5b75;
  --line: #d9e1ee;

  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-50); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.brand img { height: 66px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  text-decoration: none; font-weight: 500; color: var(--muted);
  font-size: .975rem;
}
.site-nav ul a:hover { color: var(--blue); }

.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: var(--paper); cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px; content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--paper);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.hero-title {
  font-size: clamp(2.25rem, 3.5vw, 3.125rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 28px;
  max-width: 12.6em; /* corta "Construye una carrera en / seguros de vida." en tablet */
  text-wrap: pretty; /* sin "balance": evita palabras sueltas arriba */
}
.hero-line { display: block; }
.hero-line + .hero-line { margin-top: .1em; }
.hero-accent { color: var(--blue); }
.hero-copy > p:not(.lead) { color: var(--muted); max-width: 52ch; }
.hero-copy .lead { max-width: 46ch; }
.hero-actions { margin: 32px 0 28px; }
.hero-presence {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--navy) !important; margin: 0;
}
.hero-presence svg { color: var(--blue); flex: none; }

.hero-media { position: relative; padding: 0 0 72px 48px; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 40% center;
  border-radius: var(--radius-lg);
}
.hero-photo-small {
  position: absolute; left: 0; bottom: 0; width: 46%;
  border: 6px solid var(--paper); border-radius: calc(var(--radius-md) + 6px);
}
.hero-photo-small img {
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md);
}
.hero-badge {
  position: absolute; right: -8px; bottom: 96px;
  max-width: 210px; padding: 18px 20px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-md);
}
.hero-badge strong {
  display: block; font-family: var(--font-display);
  font-size: 1.75rem; line-height: 1.1; margin-bottom: 4px;
}
.hero-badge span { font-size: .9375rem; line-height: 1.4; color: #c9d6ee; }

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--paper); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }

.panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}

/* La marca: la flecha ascendente del logo */
.mark {
  display: block; width: 36px; height: 44px; margin-bottom: 28px;
  background: var(--blue);
  clip-path: polygon(0 38%, 100% 0, 100% 62%, 0 100%);
}

/* ---------- No es para todos ---------- */
.bento-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.panel-text {
  padding: clamp(32px, 5vw, 64px);
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.panel-text p:not(.lead) { color: var(--muted); margin-bottom: 32px; }
.panel-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

/* ---------- Lo que encuentras ---------- */
.benefits-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px;
}
.panel-navy {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy) 70%);
  color: var(--white);
  padding: clamp(28px, 4vw, 48px);
}
.products h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 28px; max-width: 18ch; }
.product-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.product-tiles li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 132px; padding: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3;
}
.product-tiles svg { width: 30px; height: 30px; color: #6ea1ff; }

.commissions {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
}
.commissions h3 { color: var(--muted); font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.commission-range {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--blue); margin-bottom: 16px; white-space: nowrap;
}
.commission-range span { font-size: .45em; font-weight: 600; color: var(--muted); letter-spacing: 0; vertical-align: .35em; margin: 0 .15em; }
.commission-plus {
  margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted);
}
.commission-plus strong { color: var(--navy); font-family: var(--font-display); }

.feature-list {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px;
}
.feature-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600; line-height: 1.35;
}
.feature-list svg {
  flex: none; width: 40px; height: 40px; padding: 9px;
  color: var(--blue); background: var(--blue-50); border-radius: 10px;
}

.note-strip {
  margin: 32px auto 0; max-width: 760px; text-align: center; color: var(--muted);
}

/* ---------- Agencia donde todos crecen ---------- */
.grow-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.grow-photo img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg);
}
.grow-copy .lead { color: var(--muted); }
.creed {
  list-style: none; margin: 32px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.creed li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -0.02em; line-height: 1.2;
}

/* ---------- Así funciona: la escalera ---------- */
.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: var(--white);
}
.stairs {
  list-style: none; margin: 0 0 56px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  align-items: end;
}
.step {
  --rise: 0px;
  position: relative;
  padding: 72px 24px 28px;
  min-height: calc(260px + var(--rise));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  /* borde superior inclinado, igual que la flecha del logo */
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.step:nth-child(1) { --rise: 0px;   background: rgba(255, 255, 255, .07); }
.step:nth-child(2) { --rise: 60px;  background: rgba(0, 93, 252, .35); }
.step:nth-child(3) { --rise: 120px; background: rgba(0, 93, 252, .65); }
.step:nth-child(4) { --rise: 180px; background: var(--blue); }
.step-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 3.5rem; line-height: 1; margin-bottom: auto; opacity: .9;
}
.step h3 { font-size: 1.4rem; margin: 24px 0 8px; }
.step p { margin: 0; color: rgba(255, 255, 255, .82); }

/* ---------- Formulario ---------- */
.form-section {
  position: relative;
  padding: var(--section-y) 0;
  background:
    linear-gradient(180deg, rgba(3, 20, 48, .82), rgba(3, 20, 48, .66)),
    url("../img/reunion-equipo.jpg") center / cover no-repeat;
}
.form-card {
  max-width: 640px; margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--white); border-radius: var(--radius-lg);
  text-align: center;
}
.form-card h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.form-card > p { color: var(--muted); }

.form-slot { margin-top: 24px; text-align: left; }
.form-slot iframe { width: 100%; border: 0; }
/* Visible solo mientras no se haya pegado el embed de GHL */
.form-slot:empty {
  min-height: 560px;
  border: 2px dashed var(--line); border-radius: var(--radius-md);
  background: var(--paper);
}

/* ---------- Cierre ---------- */
.closing {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.closing-copy .lead { color: var(--muted); max-width: 52ch; }
.contact-list { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.125rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.closing-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); }

/* ---------- Pie ---------- */
.site-footer { background: var(--paper); padding: 56px 0 28px; font-size: .9375rem; }
.footer-grid {
  display: grid; grid-template-columns: auto auto 1fr; gap: 40px; align-items: start;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 88px; width: auto; }
.footer-contact p { margin: 0 0 6px; font-weight: 600; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--blue); }
.disclaimer { color: var(--muted); font-size: .875rem; margin: 0; max-width: 62ch; justify-self: end; }
.footer-bottom p { margin: 24px 0 0; color: var(--muted); font-size: .875rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.0625rem; }

  .hero-grid,
  .grow-grid,
  .closing { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .benefits-grid { grid-template-columns: 1fr; }

  .stairs { grid-template-columns: 1fr 1fr; }
  .step:nth-child(n) { --rise: 0px; min-height: 240px; }

  .footer-grid { grid-template-columns: auto 1fr; }
  .disclaimer { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
  .brand img { height: 50px; }
  /* "Crea tu propia agencia." mide ~11.4em: el tamaño se ajusta para que siempre quepa en una línea */
  .hero-title { font-size: min(2.25rem, calc((100vw - 32px) / 11.7), calc(92vw / 11.7)); }
  .bento-2 { grid-template-columns: 1fr; }
  .panel-photo img { min-height: 260px; }
  .hero-media { padding: 0 0 56px 24px; }
  .hero-badge { right: 0; bottom: 64px; max-width: 170px; padding: 14px 16px; }
  .hero-badge strong { font-size: 1.4rem; }
  .product-tiles li { min-height: 116px; padding: 16px; font-size: 1rem; }

  .stairs { grid-template-columns: 1fr; gap: 10px; }
  .step,
  .step:nth-child(n) { min-height: 0; padding: 48px 22px 24px; clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); }
  .step-num { font-size: 2.5rem; }
  .step h3 { margin-top: 12px; }

  .btn { width: 100%; }
  .site-nav .btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Consentimiento SMS (landing) y enlaces legales del pie
   ========================================================= */
.sms-consent {
  margin: 20px 0 0; font-size: .8125rem; line-height: 1.55;
  color: var(--muted); text-align: left;
}
.sms-consent a { color: var(--blue); }

.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  list-style: none; margin: 24px 0 0; padding: 0; font-weight: 600; font-size: .9375rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom .footer-entity { margin: 10px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: baseline; }

/* =========================================================
   Páginas legales (privacidad.html, terminos.html)
   ========================================================= */
.legal-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px);
}
.legal-hero .container { max-width: 860px; }
.legal-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 16px; }
.legal-hero p { margin: 0; max-width: 60ch; color: #c9d6ee; font-size: 1.125rem; }

.legal-body { padding: clamp(56px, 7vw, 88px) 0 var(--section-y); }
.legal-body .container { max-width: 860px; }

.legal-meta {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  padding: 20px 24px; margin-bottom: 48px;
  background: var(--paper); border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm); font-size: .9375rem;
}
.legal-meta span { display: block; color: var(--muted); font-size: .8125rem; font-weight: 600; margin-bottom: 2px; }

.legal-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  margin: 56px 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.125rem; margin: 32px 0 10px; }
.legal-body p,
.legal-body li { color: #2a3750; line-height: 1.75; }
.legal-body ul { padding-left: 24px; margin: 0 0 18px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--blue); }
.legal-body strong { color: var(--navy); }

.legal-callout {
  margin: 28px 0; padding: 22px 26px;
  background: var(--blue-50); border: 1px solid #b9cffd;
  border-radius: var(--radius-md);
}
.legal-callout p { margin: 0; }

.sms-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 20px 0 28px;
}
.sms-grid div {
  padding: 16px 18px; background: var(--paper);
  border-radius: var(--radius-sm); font-size: .9375rem; line-height: 1.6;
}
.sms-grid div span { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }

.legal-contact {
  margin-top: 8px; padding: 28px 32px;
  background: var(--paper); border-radius: var(--radius-md);
}
.legal-contact h3 { margin-top: 0; }
.legal-contact p { margin: 0 0 6px; }

/* =========================================================
   Página de agradecimiento (gracias.html)
   ========================================================= */
.thanks {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: clamp(72px, 10vw, 128px) 0;
}
.thanks .container { max-width: 760px; text-align: center; }
.thanks .mark { margin: 0 auto 28px; }
.thanks h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
.thanks-lead { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: #c9d6ee; max-width: 52ch; margin: 0 auto 48px; }
.thanks-steps {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; gap: 12px; text-align: left;
}
.thanks-steps li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.thanks-steps .step-num { font-size: 1.75rem; margin: 0; color: #6ea1ff; min-width: 1.2em; }
.thanks-steps p { margin: 0; color: rgba(255, 255, 255, .85); }
.thanks-steps strong { color: var(--white); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.thanks-note { margin: 32px 0 0; color: #c9d6ee; font-size: .9375rem; }
.thanks-note a { color: var(--white); }

@media (max-width: 680px) {
  .sms-grid { grid-template-columns: 1fr; }
  .legal-contact { padding: 22px; }
}
