/* Tokens: docs/ux-ui.md §1. Mobile-first: base = 360px, breakpoints min-width. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-800.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #F5F5F5; --surface: #FFFFFF; --ink: #0A0A0A; --ink-2: #111111;
  --body: #4B5563; --muted: #6B7280; --line: #E5E7EB;
  --blue: #2563EB; --blue-hover: #1D4ED8; --sky: #38BDF8; --sky-soft: #E0F2FE;
  --danger: #DC2626;
  --radius: 16px; --radius-sm: 10px; --pill: 999px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -.035em; line-height: 1.04; }
h1 em { font-style: normal; color: var(--blue); }
.h1-sm { font-size: clamp(1.6rem, 5vw, 2.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); letter-spacing: -.025em; }
h3 { font-size: 1.125rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-form { max-width: 600px; }
.seccion { padding: 56px 0; }
.muted { color: var(--muted); }
.nota { font-size: .875rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(245 245 245 / .92); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.marca { color: var(--ink); font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.marca img { height: 36px; width: auto; }

/* Badge */
.badge { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border: 1px solid #BAE6FD; border-radius: var(--pill);
  background: var(--sky-soft); color: var(--blue); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.badge-dark { background: transparent; border-color: #334155; color: var(--sky); }
.badge-sky { background: var(--sky); border-color: var(--sky); color: var(--ink); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--blue); border-radius: var(--radius-sm); background: var(--blue); color: #fff;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sec:hover { background: #F9FAFB; border-color: #D1D5DB; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* Íconos de línea */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 32px; height: 32px; margin-bottom: 12px; }
.ico-btn { stroke: #fff; width: 22px; height: 22px; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.lead { font-size: 1.0625rem; max-width: 56ch; }
.datos { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.datos li { display: flex; align-items: center; gap: 8px; }
.hero-card { padding: 28px; }
.precio-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; color: var(--ink); }
.precio-hero strong { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.precio-label { font-weight: 600; }
s { color: var(--muted); font-weight: 600; }

/* Contador */
.contador { margin: 20px 0; padding: 16px; border-radius: var(--radius-sm); background: var(--ink-2); color: #fff; }
.contador-titulo { margin: 0 0 10px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.contador-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.contador-grid > div + div { border-left: 1px solid #333; }
.contador-grid span { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.contador-grid small { font-size: .72rem; color: #9CA3AF; }

/* Bullets */
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { position: relative; padding-left: 22px; color: var(--ink); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.bullets .card { padding-left: 46px; }
.bullets .card::before { left: 24px; top: calc(24px + .6em); }

.grid-2 { display: grid; gap: 16px; }

/* Temario */
.temario { list-style: none; counter-reset: t; padding: 0; margin: 0; display: grid; gap: 4px; }
.temario li { counter-increment: t; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); }
.temario li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 13px; color: var(--blue); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.temario b { color: var(--ink); }

.bonus p { margin: 0; }
.tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: var(--pill); background: var(--sky-soft); color: var(--blue); font-size: .72rem; font-weight: 600; white-space: nowrap; }

.stats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats li { padding: 0 12px; }
.stats li:first-child { padding-left: 0; }
.stats li + li { border-left: 1px solid #333; }
.stats b { display: block; color: #fff; font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats span { display: block; font-size: .8rem; line-height: 1.35; color: #9CA3AF; }

/* Quién soy */
.oscura { background: var(--ink-2); color: #D1D5DB; }
.oscura h2 { color: #fff; }
.quien { display: grid; gap: 24px; align-items: center; }
.foto { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: #222; border: 3px solid var(--sky); }
.paises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.paises li { padding: 4px 12px; border: 1px solid #334155; border-radius: var(--pill); color: var(--sky); font-size: .85rem; }

/* Precios */
.precios { display: grid; gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 16px; }
.plan h3 { margin: 0; }
.plan-precio { margin: 0; color: var(--ink); font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 10px; }
.plan-precio s { font-size: 1.1rem; letter-spacing: 0; }
.filas { margin: 0; border-top: 1px solid var(--line); }
.filas > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink); }
.filas dt, .filas dd { margin: 0; }
.filas dd { font-weight: 700; }
.filas .inactiva { color: var(--muted); }
.filas .inactiva dd { text-decoration: line-through; font-weight: 600; }
.incluye { display: grid; gap: 6px; flex: 1; }
.plan-top { order: -1; background: var(--ink-2); color: #D1D5DB; }
.plan-top h3, .plan-top .plan-precio, .plan-top .bullets li, .plan-top .filas > div { color: #fff; }
.plan-top .filas, .plan-top .filas > div { border-color: #2A2A2A; }
.plan-top .filas .inactiva, .plan-top s { color: #9CA3AF; }
.plan-top .bullets li::before { background: var(--sky); }
.plan-top .badge { align-self: flex-start; margin: 0; }

/* Formulario */
.form-card { padding: 28px 22px; }
.campo { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 0; }
.opcional { color: var(--muted); font-weight: 400; }
input:not([type=radio]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky-soft); }
[aria-invalid="true"]:not([type=radio]) { border-color: var(--danger); }
.error { margin: 6px 0 0; color: var(--danger); font-size: .85rem; min-height: 0; }
.error:empty { display: none; }
input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.opciones { display: grid; gap: 8px; }
.opciones label { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.opciones-modalidad { display: grid; gap: 10px; }
.opcion { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.opcion b { color: var(--ink); font-size: 1.1rem; }
.opcion:has(input:checked), .opciones label:has(input:checked) { border-color: var(--blue); background: #F5F9FF; box-shadow: 0 0 0 1px var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alerta { margin: 0 0 16px; padding: 16px; border: 1px solid #FECACA; border-radius: var(--radius-sm); background: #FEF2F2; color: var(--ink); }
.form-alerta p { margin: 0 0 12px; }
form[aria-busy="true"] .btn-texto::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; color: var(--ink); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--blue); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; }

/* Footer */
.footer { padding: 32px 0 96px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer a { color: var(--ink); }

/* Barra fija móvil */
.barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(0 0 0 / .06); color: var(--ink); transform: translateY(110%); transition: transform .2s; }
.barra-movil.visible { transform: none; }

/* /pago */
.pago h1 { margin-bottom: 16px; }
.monto { margin: 0 0 16px; color: var(--ink); font-size: 1.15rem; }
.monto p { margin: 0 0 4px; }
.monto strong { color: var(--blue); font-size: 1.6rem; font-weight: 800; }
.monto small { display: block; color: var(--muted); font-size: .9rem; }
.monto p small { display: inline; }
.qr { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.qr img { width: min(300px, 100%); margin: 0 auto 10px; aspect-ratio: 1; object-fit: contain; background: #F3F4F6; }
.qr figcaption { color: var(--ink); }
.pasos { margin: 0 0 20px; padding-left: 1.3em; color: var(--ink); display: grid; gap: 6px; }
.pasos li::marker { color: var(--blue); font-weight: 800; }

/* Desktop */
@media (min-width: 720px) {
  .seccion { padding: 88px 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .precios { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .plan-top { order: 0; }
  .quien { grid-template-columns: auto 1fr; gap: 40px; }
  .foto { width: 180px; height: 180px; }
  .form-card { padding: 40px; }
  .barra-movil { display: none; }
  .footer { padding-bottom: 32px; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}

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