/* ============================================================
   Facil — Bienestar financiero
   Estilos base compartidos
   ============================================================ */

:root {
  /* Paleta de marca */
  --azul: #1546d4;
  --azul-osc: #0d2f96;
  --azul-claro: #eaf0ff;
  --verde: #16b57a;
  --verde-osc: #0e8f60;
  --amarillo: #ffc73a;
  --tinta: #10203f;
  --gris: #5b6b86;
  --gris-claro: #f4f6fb;
  --borde: #e2e8f4;
  --blanco: #ffffff;

  --radio: 16px;
  --radio-sm: 10px;
  --sombra: 0 10px 30px rgba(16, 32, 63, 0.08);
  --sombra-fuerte: 0 18px 50px rgba(16, 32, 63, 0.16);
  --max: 1120px;
  --fuente: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.header .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--azul); }
.logo-marca { display:flex; align-items:center; justify-content:center; width: 34px; height: 34px; border-radius: 9px; background: var(--azul); color: #fff; font-weight: 800; }
.logo span { color: var(--verde); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--gris); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover, .nav a.activo { color: var(--azul); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 26px; color: var(--tinta); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primario { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(21,70,212,.28); }
.btn-primario:hover { background: var(--azul-osc); }
.btn-verde { background: var(--verde); color: #fff; box-shadow: 0 8px 20px rgba(22,181,122,.28); }
.btn-verde:hover { background: var(--verde-osc); }
.btn-linea { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-linea:hover { background: var(--azul-claro); }
.btn-grande { padding: 16px 34px; font-size: 17px; }
.btn-bloque { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f4f7ff 0%, #eaf0ff 60%, #e6fbf2 100%);
  padding: 74px 0 84px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero .pill { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--borde); color: var(--azul); font-weight:600; font-size:13px; padding:7px 14px; border-radius:999px; margin-bottom:20px; box-shadow: var(--sombra); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--azul); }
.hero p.lead { font-size: 19px; color: var(--gris); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art .tarjeta-flotante {
  position: absolute; background: #fff; border-radius: var(--radio-sm);
  box-shadow: var(--sombra-fuerte); padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px;
}
.hero-art .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.tf-1 { top: 18px; left: -14px; }
.tf-2 { bottom: 26px; right: -10px; }
.hero-visual { border-radius: 22px; box-shadow: var(--sombra-fuerte); background: #fff; }

/* ---------- Secciones ---------- */
.seccion { padding: 76px 0; }
.seccion.alt { background: var(--gris-claro); }
.encabezado { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.encabezado .eyebrow { color: var(--verde-osc); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; }
.encabezado h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.5px; margin: 10px 0 14px; }
.encabezado p { color: var(--gris); font-size: 18px; }

/* Grid de tarjetas */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tarjeta {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.tarjeta .ico-grande { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.tarjeta h3 { font-size: 20px; margin-bottom: 10px; }
.tarjeta p { color: var(--gris); font-size: 15px; }

.ico-azul { background: var(--azul-claro); }
.ico-verde { background: #e2f8ef; }
.ico-amarillo { background: #fff4d6; }

/* Opciones tipo soyexitoso */
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
.opcion {
  display: block; background: #fff; border: 2px solid var(--borde); border-radius: var(--radio);
  padding: 30px; text-align: left; transition: all .2s; cursor: pointer;
}
.opcion:hover { border-color: var(--azul); box-shadow: var(--sombra); transform: translateY(-3px); }
.opcion .ico-grande { margin-bottom: 16px; }
.opcion h3 { font-size: 21px; margin-bottom: 8px; }
.opcion p { color: var(--gris); font-size: 15px; margin-bottom: 16px; }
.opcion .flecha { color: var(--azul); font-weight: 700; }

/* Pasos */
.pasos { counter-reset: paso; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.paso { position: relative; padding-top: 12px; }
.paso .num { counter-increment: paso; width: 48px; height: 48px; border-radius: 50%; background: var(--azul); color:#fff; font-weight:800; font-size:20px; display: grid; place-items: center; margin-bottom: 16px; }
.paso .num::before { content: counter(paso); }
.paso h3 { font-size: 19px; margin-bottom: 8px; }
.paso p { color: var(--gris); font-size: 15px; }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .n { font-size: 42px; font-weight: 800; color: var(--azul); letter-spacing: -1px; }
.stat .l { color: var(--gris); font-weight: 500; }

/* Testimonios */
.testi { background:#fff; border:1px solid var(--borde); border-radius: var(--radio); padding: 28px; }
.testi p { font-size: 16px; margin-bottom: 18px; }
.testi .autor { display: flex; align-items: center; gap: 12px; }
.testi .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-weight: 700; display: grid; place-items: center; }
.testi .autor b { display: block; font-size: 15px; }
.testi .autor small { color: var(--gris); }

/* CTA banda */
.cta-banda { background: linear-gradient(120deg, var(--azul), var(--azul-osc)); color: #fff; border-radius: 24px; padding: 54px 40px; text-align: center; }
.cta-banda h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-banda p { font-size: 18px; opacity: .9; max-width: 560px; margin: 0 auto 26px; }
.cta-banda .btn-verde { box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* ---------- Formularios ---------- */
.form-wrap { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 38px; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--borde); border-radius: var(--radio-sm);
  font-family: inherit; font-size: 15px; color: var(--tinta); transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(21,70,212,.12);
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo .hint { font-size: 13px; color: var(--gris); margin-top: 6px; }
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gris); }
.check input { width: auto; margin-top: 3px; }

.alerta { padding: 14px 18px; border-radius: var(--radio-sm); font-size: 15px; margin-bottom: 20px; display: none; }
.alerta.ok { background: #e2f8ef; color: var(--verde-osc); border: 1px solid #bfeeda; display: block; }
.alerta.error { background: #fdecec; color: #c0392b; border: 1px solid #f7c9c9; display: block; }

/* ---------- Acordeón ayuda ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--borde); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; font-size: 18px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--tinta); font-family: inherit; }
.faq-q .signo { color: var(--azul); font-size: 24px; transition: transform .2s; flex-shrink: 0; }
.faq-item.abierto .faq-q .signo { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--gris); }
.faq-a p { padding-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: #c7d0e0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer a { color: #c7d0e0; display: block; padding: 5px 0; font-size: 15px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .desc { font-size: 15px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { display: none; }
  .grid-3, .pasos, .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background:#fff; flex-direction: column; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--borde); transform: translateY(-140%); transition: transform .25s; }
  .nav.abierto { transform: translateY(0); }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--borde); }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .pasos, .stats, .opciones, .form-fila, .footer-grid { grid-template-columns: 1fr; }
  .seccion { padding: 54px 0; }
  .form-wrap, .cta-banda { padding: 28px 22px; }
}

/* FACIL-FIX */
.logo-marca { width:34px; height:34px; display:block; flex-shrink:0; background:transparent; border-radius:0; }
.logo-txt { letter-spacing:-0.5px; }
.footer .logo, .footer .logo .logo-txt { color:#fff; }
.nav a.btn-primario, .nav a.btn-verde { color:#fff; }
.nav a.btn-linea { color: var(--azul); }

/* ============ EMBUDO / FOTO / QUIZ / PAGOS ============ */
/* Hero con foto real */
.hero-foto { background: linear-gradient(180deg,#ffffff 0%,#f4f7ff 100%); padding: 40px 0 0; overflow:hidden; }
.hero-foto .hero-grid { align-items: stretch; gap: 20px; }
.hero-foto .hero-copy { align-self: center; padding: 30px 0 60px; }
.hero-foto h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing:-1.2px; margin-bottom: 22px; }
.hero-foto .sub { font-size: clamp(20px,2.4vw,26px); font-weight:600; margin-bottom: 22px; }
.hero-foto .hero-img { align-self: end; }
.hero-foto .hero-img img { width:100%; height:100%; max-height:560px; object-fit: cover; object-position: top center; border-radius: 0; }
.opciones-embudo { display:flex; flex-direction:column; gap:14px; max-width:520px; }
.opcion-btn { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; text-align:left;
  padding:20px 26px; border-radius:14px; font-size:18px; font-weight:600; border:2px solid transparent; cursor:pointer; transition:transform .15s, box-shadow .2s; font-family:inherit; }
.opcion-btn.azul { background:var(--azul); color:#fff; box-shadow:0 10px 24px rgba(21,70,212,.25); }
.opcion-btn.gris { background:var(--gris-claro); color:var(--tinta); border-color:var(--borde); }
.opcion-btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-fuerte); }
.opcion-btn .ch { font-size:20px; }

/* Barra de progreso quiz */
.quiz-wrap { max-width: 680px; margin: 0 auto; padding: 40px 0 80px; }
.quiz-progress { height: 8px; background: var(--borde); border-radius: 999px; margin-bottom: 34px; overflow:hidden; }
.quiz-progress span { display:block; height:100%; background: linear-gradient(90deg,var(--azul),var(--verde)); width:0; transition: width .4s; border-radius:999px; }
.quiz-paso { display:none; }
.quiz-paso.activo { display:block; animation: aparecer .35s ease; }
@keyframes aparecer { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:none;} }
.quiz-paso h2 { font-size: clamp(24px,3.4vw,34px); text-align:center; margin-bottom: 8px; letter-spacing:-.5px; }
.quiz-paso .paso-sub { text-align:center; color:var(--gris); margin-bottom: 28px; }
.quiz-ops { display:grid; gap:14px; }
.quiz-op { display:flex; align-items:center; gap:14px; padding:18px 22px; border:2px solid var(--borde); border-radius:14px; cursor:pointer; font-weight:600; font-size:17px; transition:all .18s; background:#fff; }
.quiz-op:hover { border-color:var(--azul); background:var(--azul-claro); }
.quiz-op .emo { font-size:24px; }
.quiz-contador { text-align:center; color:var(--gris); font-size:14px; margin-bottom:18px; }

/* Loader de "análisis" */
.quiz-load { text-align:center; padding:40px 0; }
.spinner { width:56px; height:56px; border:5px solid var(--borde); border-top-color:var(--azul); border-radius:50%; margin:0 auto 22px; animation:girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Checkout / pagos */
.pago-hero { text-align:center; max-width:720px; margin:0 auto; padding: 20px 0 10px; }
.pago-hero h1 { font-size: clamp(28px,4.4vw,44px); letter-spacing:-.8px; margin-bottom:14px; }
.pago-hero p { font-size:18px; color:var(--gris); }
.pago-caja { max-width: 720px; margin: 26px auto 0; background:#eaf0ff; border-radius: 22px; padding: 34px; }
.pago-caja h3 { text-align:center; font-size:22px; margin-bottom:22px; }
.pagos-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.pago-card { background:#fff; border:2px solid transparent; border-radius:16px; padding:22px; display:flex; flex-direction:column; align-items:center; gap:10px; cursor:pointer; transition:all .18s; text-align:center; font-family:inherit; }
.pago-card:hover { border-color:var(--azul); transform:translateY(-3px); box-shadow:var(--sombra); }
.pago-logo { height:44px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:20px; }
.pago-card small { color:var(--gris); font-weight:500; }
.pago-plan { text-align:center; margin: 0 auto 24px; }
.pago-plan .precio { font-size:44px; font-weight:800; color:var(--azul); letter-spacing:-1px; }
.pago-plan .precio small { font-size:16px; color:var(--gris); font-weight:600; }
.pago-detalle { display:none; margin-top:22px; background:#fff; border-radius:16px; padding:24px; }
.pago-detalle.activo { display:block; }
.dato-deposito { background:var(--gris-claro); border-radius:12px; padding:16px 18px; margin:14px 0; font-size:15px; }
.dato-deposito b { color:var(--tinta); }
.badge-seguro { display:inline-flex; align-items:center; gap:8px; color:var(--verde-osc); font-weight:600; font-size:14px; margin-top:18px; }

@media (max-width: 900px){
  .hero-foto .hero-grid { grid-template-columns: 1fr; }
  .hero-foto .hero-img { order:-1; }
  .hero-foto .hero-img img { max-height:340px; border-radius:18px; }
  .opciones-embudo { max-width:none; }
}
@media (max-width: 640px){
  .pagos-grid { grid-template-columns:1fr; }
}

/* Logo en imagen (marca real) */
.logo-full { height: 46px; width: auto; display: block; }
.header .logo-full { height: 44px; }
@media (max-width: 640px){ .logo-full { height: 38px; } }

/* Video en el hero */
.hero-foto .hero-img .hero-video { width:100%; height:100%; max-height:560px; object-fit:cover; border-radius:14px; display:block; background:#000; box-shadow: var(--sombra-fuerte); }
@media (max-width: 900px){ .hero-foto .hero-img .hero-video { max-height:340px; } }

/* Lista de beneficios en checkout */
.pago-incluye { list-style:none; max-width:440px; margin:0 auto 22px; display:grid; gap:10px; }
.pago-incluye li { position:relative; padding-left:30px; color:var(--tinta); font-size:15px; }
.pago-incluye li::before { content:"✓"; position:absolute; left:0; top:0; width:20px; height:20px; background:var(--verde); color:#fff; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700; }

/* ===== AJUSTE HERO/HEADER v2 ===== */
.header .contenedor { height: 74px; }
.logo-full, .header .logo-full { height: 40px; }
.hero-foto { padding-top: 24px; }
.hero-foto .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-foto .hero-copy { padding: 10px 0 40px; }
.hero-foto h1 { font-size: clamp(30px, 4vw, 46px); }
.hero-foto .hero-img .hero-video { max-height: 430px; border-radius: 16px; }
@media (max-width: 900px){
  .hero-foto .hero-grid { grid-template-columns: 1fr; }
  .hero-foto .hero-img .hero-video { max-height: 300px; }
}

/* ===== Página legal / descargo ===== */
.legal { max-width: 820px; margin: 0 auto; }
.legal-fecha { color: var(--gris); font-size: 14px; margin-bottom: 22px; }
.legal-indice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; background: var(--gris-claro); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px 26px; margin-bottom: 34px; }
.legal-indice a { color: var(--azul); font-size: 14.5px; padding: 4px 0; }
.legal-indice a:hover { text-decoration: underline; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; color: var(--tinta); scroll-margin-top: 90px; }
.legal p { color: #3a4a63; font-size: 16px; line-height: 1.7; margin-bottom: 12px; }
.legal a { color: var(--azul); }
.legal strong { color: var(--tinta); }
.legal-aviso { background: #fff4d6; border: 1px solid #f0d78a; border-radius: var(--radio); padding: 18px 22px; margin-top: 34px; font-size: 15px; color: #6b5210; }
@media (max-width: 640px){ .legal-indice { grid-template-columns: 1fr; } }
