/* ==========================================================
   SimplePay v2 — la identidad de los Shorts llevada a la web
   Va DESPUES de base/components/layout y solo pisa lo que cambia.
   Los neutros calidos se quedan (son la parte amable); lo nuevo es
   el caracter: titulares en Bricolage, palabras clave en degradado,
   un hero noche con manchas de color y tarjetas de cristal.
   ========================================================== */
:root {
  --noche:        #0A0F26;
  --noche-2:      #121A3D;
  --font-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --grad-claro:   linear-gradient(92deg, #8FB2FF 0%, #C9A8FF 100%);   /* sobre fondo noche */
  --grad-oscuro:  linear-gradient(92deg, #2F62C4 0%, #6D5BD0 100%);   /* sobre fondo claro */
  --cristal:      rgba(255, 255, 255, 0.07);
  --cristal-borde:rgba(255, 255, 255, 0.14);
}

h1, h2, h3, .hero-title, .features-title, .cta-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.grad { background: var(--grad-oscuro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .grad, .hero .grad { background: var(--grad-claro); -webkit-background-clip: text; background-clip: text; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.on-dark .eyebrow { color: #A9C1FF; }

/* ---------- NAVBAR: cristal noche ---------- */
.navbar {
  background: rgba(10, 15, 38, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 48px;
}
.navbar .logo { color: #fff; }
.logo-v2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800;
           font-size: 25px; color: #fff; letter-spacing: -0.02em; }
.logo-v2 b { color: #8FB2FF; font-weight: 800; }
.nav-link { color: rgba(255, 255, 255, 0.72); }
.nav-link:hover { color: #fff; }
.nav-link::after { background: var(--grad-claro); }
.navbar #langToggle { color: rgba(255, 255, 255, 0.85); }
.mobile-menu-btn { color: #fff; }
.navbar .btn-primary { background: #fff; color: var(--noche); box-shadow: none; }
.navbar .btn-primary:hover { background: #E9EFFF; color: var(--noche); }

.nav-links a, .navbar .btn, #langToggle { white-space: nowrap; }
/* Entre movil y escritorio ancho no caben los 5 enlaces + idioma + boton: la barra crecia a 124 px y
   partia "Como funciona" y "Probar demo" en dos lineas. Los dos atajos a secciones son prescindibles. */
@media (min-width: 901px) and (max-width: 1240px) {
  .nav-links { gap: 22px; }
  .nav-links [data-i18n="navProof"], .nav-links [data-i18n="navFaq"] { display: none; }
}

/* ---------- HERO NOCHE ---------- */
.hero.hero-v2 {
  position: relative;
  background: var(--noche);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding-top: 96px;
  padding-bottom: 110px;
  /* a todo lo ancho: el .hero base tiene max-width 1200 y dejaba franjas crema a los lados */
  max-width: none;
  padding-left: max(48px, calc((100vw - 1180px) / 2));
  padding-right: max(48px, calc((100vw - 1180px) / 2));
}
.hero-v2 .blobs { position: absolute; inset: -20%; z-index: -1; filter: blur(70px); opacity: 0.85; }
.hero-v2 .blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero-v2 .b1 { width: 46vw; height: 46vw; left: -6%;  top: 8%;  background: #2F62C4; animation: flotar1 22s ease-in-out infinite; }
.hero-v2 .b2 { width: 40vw; height: 40vw; left: 40%;  top: -6%; background: #6D5BD0; animation: flotar2 26s ease-in-out infinite; }
.hero-v2 .b3 { width: 34vw; height: 34vw; left: 62%;  top: 44%; background: #2EC5D3; opacity: 0.55; animation: flotar3 30s ease-in-out infinite; }
.hero-v2 .b4 { width: 30vw; height: 30vw; left: 12%;  top: 58%; background: #5A3CC8; opacity: 0.7; animation: flotar2 34s ease-in-out infinite reverse; }
.hero-v2::after {   /* vineteado: centra la mirada y oscurece los bordes, como en los videos */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(6, 9, 24, 0.75) 100%);
}
@keyframes flotar1 { 50% { transform: translate(8%, 10%) scale(1.08); } }
@keyframes flotar2 { 50% { transform: translate(-10%, 8%) scale(0.92); } }
@keyframes flotar3 { 50% { transform: translate(-6%, -12%) scale(1.1); } }

.hero-v2 .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cristal); border: 1px solid var(--cristal-borde); color: #DDE6FF;
  backdrop-filter: blur(6px);
}
.hero-v2 .hero-badge .icon { width: 16px; height: 16px; color: #C9A8FF; }
.hero-v2 .hero-title { color: #fff; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 800; }
.hero-v2 .hero-title .cobalt, .hero-v2 .hero-title .coral {
  background: var(--grad-claro); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-v2 .hero-desc { color: rgba(255, 255, 255, 0.74); font-size: 19px; }
.hero-v2 .hero-note { color: rgba(255, 255, 255, 0.5); }
.hero-v2 .btn-primary {
  background: linear-gradient(135deg, #3B73E0 0%, #6D5BD0 100%);
  border: 0; box-shadow: 0 10px 30px rgba(77, 105, 230, 0.45);
}
.hero-v2 .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.hero-v2 .btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.hero-v2 .hero-chains-label { color: rgba(255, 255, 255, 0.55); }
.hero-v2 .chain-chip { background: rgba(255, 255, 255, 0.92); border-color: transparent; color: var(--text); }
.hero-v2 .hero-visual::before, .hero-v2 .hero-visual::after { display: none; }
.hero-v2 .film { color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }

@media (prefers-reduced-motion: reduce) {
  .hero-v2 .blob { animation: none; }
}

/* ---------- PASOS ---------- */
.features .features-header { text-align: center; }
.features-title { font-size: clamp(32px, 4vw, 46px); }
.card-feature { position: relative; text-align: left; padding: 30px 28px; border-radius: 22px;
                transition: transform .25s ease, box-shadow .25s ease; }
.card-feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42, 38, 34, 0.08); }
.step-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #EAF0FD, #EEEAFB); color: var(--primary);
}
.step-icon .icon { width: 26px; height: 26px; }
.card-feature .step-number {
  position: absolute; top: 22px; right: 22px; margin: 0; width: 30px; height: 30px; font-size: 14px;
  background: var(--grad-oscuro);
}
.card-feature .feature-title { font-family: var(--font-display); font-size: 21px; }
.btn-docs { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- SECCIONES GENERICAS ---------- */
.seccion { padding: 110px 48px; overflow-x: clip; }   /* el brillo detras del telefono no debe crear scroll lateral */
.seccion-in { max-width: 1180px; margin: 0 auto; }
.seccion-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.seccion h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin-bottom: 18px; color: var(--text); }
.seccion p.lead { font-size: 18px; color: var(--text-secondary); line-height: 1.6; max-width: 520px; }
.on-dark { background: var(--noche); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.on-dark h2 { color: #fff; }
.on-dark p.lead { color: rgba(255, 255, 255, 0.72); }

/* ---------- LO QUE VE TU COMPRADOR ---------- */
.checkout-sec { background: linear-gradient(180deg, var(--bg) 0%, #F2EEF9 100%); }
.selector { margin-top: 30px; }
.selector-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
                  color: var(--text-muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--text); font: 600 14px var(--font);
  cursor: pointer; transition: all .18s ease;
}
.chip-btn img { width: 18px; height: 18px; }
.chip-btn:hover { border-color: var(--primary-light); transform: translateY(-1px); }
.chip-btn[aria-pressed="true"] { background: var(--noche); color: #fff; border-color: var(--noche);
                                 box-shadow: 0 6px 16px rgba(10, 15, 38, 0.25); }
.nota-vista { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.nota-vista .icon { width: 16px; height: 16px; }

/* El "telefono": marco oscuro con el checkout real dentro. La capa de encima
   bloquea los clics: es una vista previa, desde aqui no se puede pagar. */
.telefono {
  position: relative; width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 400 / 780;
  border-radius: 44px; padding: 12px; background: #11152B;
  box-shadow: 0 40px 90px rgba(42, 38, 34, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.telefono::before {   /* brillo de color detras, como en las capturas de los videos */
  content: ''; position: absolute; inset: 8% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109, 91, 208, 0.45), transparent); filter: blur(30px);
}
.telefono .pantalla { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); }
.telefono iframe { position: absolute; top: 0; left: 0; width: 133.34%; height: 133.34%; border: 0;
                   transform: scale(0.75); transform-origin: 0 0; display: block; }
.telefono .tapa { position: absolute; inset: 12px; border-radius: 34px; cursor: not-allowed; }

/* ---------- PAGO REAL VERIFICANDOSE ---------- */
.prueba-sec .blobs { position: absolute; inset: -10%; z-index: -1; filter: blur(80px); opacity: .7; }
.prueba-sec .blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.prueba-sec .p1 { width: 40vw; height: 40vw; left: 50%; top: 10%; background: #17845A; animation: flotar2 28s ease-in-out infinite; }
.prueba-sec .p2 { width: 36vw; height: 36vw; left: -8%; top: 40%; background: #2F62C4; animation: flotar1 24s ease-in-out infinite; }
.checks { list-style: none; margin: 28px 0 22px; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(255, 255, 255, 0.88); }
.checks .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
              background: rgba(52, 211, 153, 0.15); color: #4ADE9B; flex: none; }
.checks .ok .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.reparto { color: rgba(255, 255, 255, 0.6); font-size: 15px; margin-bottom: 26px; }
.prueba-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cristal { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
               background: var(--cristal); border: 1px solid var(--cristal-borde); color: #fff; font-weight: 600;
               cursor: pointer; font-family: var(--font); font-size: 15px; transition: background .2s; }
.btn-cristal:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.recibo-marco { position: relative; width: 100%; max-width: 420px; margin: 0 auto; height: 700px; border-radius: 28px; overflow: hidden;
                box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); background: var(--bg); }
.recibo-marco iframe { position: absolute; top: 0; left: 0; width: 125%; height: 125%; border: 0;
                       transform: scale(0.8); transform-origin: 0 0; display: block; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--bg); }
.faq-sec h2 { text-align: center; margin-bottom: 40px; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 0 24px;
               transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: 0 12px 30px rgba(42, 38, 34, 0.07); border-color: #D9D2F5; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
               gap: 16px; padding: 20px 0; font: 700 18px var(--font-display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mas { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
                    background: var(--border-light); color: var(--primary); transition: transform .25s, background .25s; }
.faq details[open] summary .mas { transform: rotate(45deg); background: #EAF0FD; }
.faq details p { padding: 0 0 22px; color: var(--text-secondary); line-height: 1.65; font-size: 16px; }

/* ---------- CTA ---------- */
.cta-v2 { padding: 40px 48px 110px; background: var(--bg); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate; max-width: 1180px; margin: 0 auto; text-align: center;
  padding: 80px 40px; border-radius: 32px; background: var(--noche); color: #fff;
}
.cta-card .blobs { position: absolute; inset: -30%; z-index: -1; filter: blur(70px); opacity: .8; }
.cta-card .blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.cta-card .c1 { width: 50%; height: 80%; left: 5%; top: 20%; background: #2F62C4; animation: flotar1 24s ease-in-out infinite; }
.cta-card .c2 { width: 45%; height: 70%; left: 50%; top: 10%; background: #6D5BD0; animation: flotar3 28s ease-in-out infinite; }
.cta-card .cta-title { color: #fff; font-size: clamp(34px, 4.4vw, 54px); }
.cta-card .cta-desc { color: rgba(255, 255, 255, 0.75); max-width: 640px; margin: 16px auto 34px; }
.cta-card .cta-desc a { color: #A9C1FF !important; }
.cta-card .btn-primary { background: #fff; color: var(--noche); }
.cta-card .btn-primary:hover { background: #E9EFFF; }
.cta-card .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.cta-card .btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-card .cta-note { color: rgba(255, 255, 255, 0.5); }

/* ---------- PIE ---------- */
.footer-v2 { background: var(--noche); color: rgba(255, 255, 255, 0.6); padding: 70px 48px 36px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-v2 h4 { color: #fff; font: 700 14px var(--font); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-v2 a { color: rgba(255, 255, 255, 0.62); display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 15px; }
.footer-v2 a:hover { color: #fff; }
.footer-v2 .tagline { margin-top: 14px; line-height: 1.6; font-size: 15px; max-width: 260px; }
.footer-v2 .contrato img { width: 18px; height: 18px; }
.footer-v2 .contrato small { color: rgba(255, 255, 255, 0.35); font-family: 'SF Mono', ui-monospace, monospace; font-size: 12px; }
.footer-base { max-width: 1180px; margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
               display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- MOVIL ---------- */
@media (max-width: 900px) {
  .navbar { padding: 14px 20px; }
  .nav-links { background: var(--noche) !important; border-bottom-color: rgba(255, 255, 255, 0.08) !important; }
  .hero.hero-v2 { padding-top: 56px; padding-bottom: 70px; }
  .hero-v2 .hero-desc { font-size: 17px; }
  .seccion { padding: 76px 22px; }
  .seccion-2col { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .seccion-2col .copy { text-align: center; }
  .seccion p.lead { margin: 0 auto; }
  .chips { justify-content: center; }
  .nota-vista { justify-content: center; }
  .checks { justify-items: start; max-width: 340px; margin-left: auto; margin-right: auto; }
  .prueba-btns { justify-content: center; }
  .telefono { max-width: 340px; border-radius: 38px; }
  .recibo-marco { height: 640px; }
  .cta-v2 { padding: 20px 16px 76px; }
  .cta-card { padding: 60px 22px; border-radius: 26px; }
  .footer-v2 { padding: 56px 22px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .marca { grid-column: 1 / -1; }
  .footer-grid .contratos { grid-column: 1 / -1; }
  .card-feature { text-align: left; }
}
