/* WaveDialer — páginas de pago, registro, términos y tarifas.
   Mismos tokens que wavedialer.com (azul marino, Inter, tarjetas redondeadas). Solo modo oscuro, como el sitio. */
:root {
  color-scheme: dark;
  --bg: #0a0e1a; --bg2: #0f1629; --surface: #161d33; --surface2: #1e2844;
  --accent: #3b82f6; --accent-hover: #2563eb; --accent-glow: rgba(59,130,246,.15);
  --green: #22c55e; --green-glow: rgba(34,197,94,.14); --red: #ef4444; --amber: #fb923c; --violet: #a78bfa;
  --text: #f1f5f9; --muted: #94a3b8; --dim: #8191ad;
  --border: rgba(255,255,255,.07); --border-hi: rgba(255,255,255,.14);
  --radius: 22px; --radius-sm: 14px; --nav-h: 64px; --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(900px 420px at 78% -80px, rgba(59,130,246,.16), transparent 70%), radial-gradient(700px 360px at 0% 0%, rgba(167,139,250,.07), transparent 70%), var(--bg);
  background-repeat: no-repeat; background-color: var(--bg);
  color: var(--text); line-height: 1.6; min-height: 100vh; overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: #7db3ff; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #a9ccff; }
b, strong { color: var(--text); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Barra superior ── */
.wd-nav { position: sticky; top: 0; z-index: 50; background: rgba(10,14,26,.82); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--border); }
.wd-nav-row { height: var(--nav-h); max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.brand .w { color: var(--accent); }
.nav-nota { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.nav-nota .ic { width: 16px; height: 16px; color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }

/* ── Estructura ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-sm { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8ab8ff; background: var(--accent-glow); border: 1px solid rgba(59,130,246,.28); padding: 6px 12px; border-radius: 999px; }
h1.h { font-size: clamp(30px, 6.4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 16px 0 14px; }
h1.h em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2.4vw, 18px); color: var(--muted); max-width: 560px; }
h2.s { font-size: clamp(22px, 4vw, 28px); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.card { background: linear-gradient(180deg, rgba(30,40,68,.55), rgba(22,29,51,.9)); border: 1px solid var(--border); border-radius: var(--radius); }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--dim); }

/* ── Botones ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 24px; border-radius: 14px; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: none; cursor: pointer; width: 100%; -webkit-tap-highlight-color: transparent; transition: background .25s var(--ease), box-shadow .3s var(--ease), transform .25s var(--ease), opacity .2s; }
.btn-primary { background: #2563eb; color: #fff; box-shadow: 0 12px 32px -12px rgba(59,130,246,.7); }
.btn-primary:hover { background: #1d4ed8; color: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.18), 0 16px 36px -10px rgba(59,130,246,.75); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--border-hi); }
.btn-ghost:hover { border-color: rgba(96,165,250,.7); background: var(--accent-glow); color: var(--text); }
.btn[disabled], .btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-auto { width: auto; }

/* ── Pagar: portada + tarjeta de contratación ── */
.pagar { padding: 34px 0 56px; }
.pagar-grid { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "hero" "lado" "resto"; gap: 28px; align-items: start; }
.pagar-hero { grid-area: hero; } .pagar-lado { grid-area: lado; } .pagar-resto { grid-area: resto; }
@media (min-width: 960px) { .pagar { padding: 56px 0 72px; } .pagar-grid { grid-template-columns: minmax(0,1fr) 440px; grid-template-areas: "hero lado" "resto lado"; column-gap: 56px; row-gap: 34px; } .pagar-lado { position: sticky; top: calc(var(--nav-h) + 24px); } }
.oferta { padding: 26px 22px 24px; box-shadow: 0 30px 80px -30px rgba(59,130,246,.35); }
.oferta-precio { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.oferta-precio b { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.oferta-precio span { font-size: 17px; color: var(--muted); }
.oferta-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.oferta-lista { list-style: none; display: grid; gap: 9px; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px solid var(--border); font-size: 15px; }
.oferta-lista li { display: flex; gap: 10px; align-items: flex-start; color: #cdd7e6; }
.oferta-lista .ic { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.basico { background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.basico b.t { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; font-weight: 700; }
.basico ul { list-style: none; display: grid; gap: 7px; }
.basico li { position: relative; padding-left: 16px; }
.basico li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.campo { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
.campo-ayuda { font-size: 13px; color: var(--dim); margin-top: 6px; }
.in { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); background: rgba(10,14,26,.7); border: 1px solid var(--border-hi); border-radius: 12px; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.in::placeholder { color: #5f6e8a; }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,130,246,.18); }
select.in { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
/* casillas propias (sin el aspecto del navegador) */
.chk { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; cursor: pointer; font-size: 14.5px; line-height: 1.5; color: #cdd7e6; font-weight: 400; }
.chk input { -webkit-appearance: none; appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 1.5px solid #52617f; background: rgba(10,14,26,.7); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.chk input:checked { background: #2563eb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/16px no-repeat; border-color: #2563eb; }
.chk input:focus-visible { box-shadow: 0 0 0 4px rgba(59,130,246,.25); outline: none; }
.chk a { white-space: nowrap; }
.pie-form { margin-top: 12px; font-size: 13px; color: var(--dim); display: flex; gap: 8px; align-items: flex-start; }
.pie-form .ic { width: 16px; height: 16px; margin-top: 2px; }
.err { color: #ff8e86; font-size: 14px; min-height: 20px; margin-top: 6px; }

.bloque { padding: 8px 0 8px; }
.grid-b { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .grid-b { grid-template-columns: 1fr 1fr; } }
.ben { padding: 18px 18px 16px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.ben-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c, #60a5fa); background: color-mix(in srgb, var(--c, #60a5fa) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #60a5fa) 28%, transparent); }
.ben h3 { font-size: 16px; line-height: 1.3; margin-bottom: 3px; letter-spacing: -.01em; }
.ben p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.pasos { counter-reset: p; display: grid; gap: 12px; margin-top: 18px; list-style: none; }
@media (min-width: 720px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso { counter-increment: p; padding: 18px; position: relative; }
.paso::before { content: counter(p); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-glow); border: 1px solid rgba(59,130,246,.35); color: #8ab8ff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.paso h3 { font-size: 15.5px; margin-bottom: 3px; }
.paso p { font-size: 14px; color: var(--muted); }
.nota-uso { margin-top: 22px; font-size: 14.5px; color: var(--muted); padding: 16px 18px; border-left: 3px solid var(--accent); background: rgba(59,130,246,.06); border-radius: 0 12px 12px 0; }

/* ── Mensajes (éxito / error / espera) ── */
.msg { max-width: 520px; margin: 0 auto; padding: 72px 16px 80px; text-align: center; }
.msg-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; color: var(--c, #60a5fa); background: color-mix(in srgb, var(--c, #60a5fa) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #60a5fa) 32%, transparent); }
.msg-ic .ic { width: 28px; height: 28px; }
.msg h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; }
.msg p { color: var(--muted); font-size: 16px; }
.msg .btn { margin-top: 26px; max-width: 320px; }

/* ── Términos y tarifas ── */
.doc { padding: 36px 0 72px; }
.doc-cab { margin-bottom: 26px; }
.doc-cab h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--dim); align-items: center; }
.meta a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--border-hi); border-radius: 999px; color: var(--text); font-size: 13px; }
.meta a:hover { border-color: rgba(96,165,250,.7); background: var(--accent-glow); }
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.toc { display: none; }
@media (min-width: 1000px) { .toc { display: block; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; } }
.toc b.t { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; font-weight: 700; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--border); line-height: 1.4; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.simple { padding: 22px 22px 20px; margin-bottom: 34px; background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(22,29,51,.9) 60%); border: 1px solid rgba(59,130,246,.28); border-radius: var(--radius); }
.simple h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8ab8ff; margin-bottom: 12px; }
.simple ul { list-style: none; display: grid; gap: 10px; }
.simple li { display: flex; gap: 12px; align-items: flex-start; color: #d5dfef; font-size: 15.5px; line-height: 1.55; }
.simple li .ic { width: 18px; height: 18px; color: #60a5fa; margin-top: 4px; }
.sec { padding: 6px 0 22px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.sec h2 { font-size: 21px; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; }
.sec h2 .n { font-size: 13px; font-weight: 700; color: #8ab8ff; background: var(--accent-glow); border: 1px solid rgba(59,130,246,.28); border-radius: 8px; padding: 2px 8px; flex-shrink: 0; }
.sec p, .sec li { color: #b8c4d8; font-size: 16px; line-height: 1.7; }
.sec p { margin-bottom: 12px; max-width: 70ch; }
.sec ul { margin: 4px 0 12px 0; padding-left: 20px; max-width: 70ch; }
.sec li { margin-bottom: 8px; padding-left: 4px; }
.sec li::marker { color: var(--accent); }
.cierre { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--dim); font-size: 14px; max-width: 70ch; }

.tar-planes { display: inline-flex; padding: 4px; gap: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; margin: 6px 0 22px; }
.tar-planes a { padding: 9px 18px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.tar-planes a[aria-current] { background: #2563eb; color: #fff; }
.tar-lista { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tar-lista { grid-template-columns: 1fr 1fr; } }
.tar { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.tar .q { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tar .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.tar .v small { font-size: 14px; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-left: 6px; }
.tar.dest { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(167,139,250,.12), rgba(22,29,51,.9) 60%); border-color: rgba(167,139,250,.3); }
.tar-bloque { margin-top: 28px; padding: 20px 22px; }
.tar-bloque h2 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.tar-bloque p { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border-hi); font-weight: 600; font-size: 15px; }

/* ── Registro (alta.html) ── */
.reg { padding: 30px 0 60px; }
.reg h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.025em; line-height: 1.15; margin: 14px 0 6px; font-weight: 800; }
.reg .sub { color: var(--muted); margin-bottom: 22px; }
.reg-card { padding: 22px 20px 22px; margin-bottom: 16px; }
.reg-fila { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .reg-fila { grid-template-columns: 1fr 1fr; } }
.reg-resumen { font-size: 14px; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: var(--green-glow); border: 1px solid rgba(34,197,94,.28); margin-bottom: 8px; }
.reg-resumen:empty { display: none; }
.acuerdo { list-style: none; display: grid; gap: 8px; margin: 8px 0 4px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.acuerdo li { position: relative; padding-left: 16px; }
.acuerdo li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.avance { list-style: none; margin-top: 18px; display: grid; gap: 4px; }
.avance li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.avance li:last-child { border-bottom: none; }
.avance li::before { content: ""; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #52617f; }
.avance li.hecho { color: var(--text); }
.avance li.hecho::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0e1a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/14px no-repeat; }
.aviso { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.28); color: #ffb4ae; font-size: 15px; margin-bottom: 14px; }
.pasos-mini { display: flex; gap: 8px; font-size: 13px; color: var(--dim); align-items: center; flex-wrap: wrap; }
.pasos-mini .on { color: #8ab8ff; font-weight: 600; }
.pasos-mini i { width: 18px; height: 1px; background: var(--border-hi); }
[hidden] { display: none !important; }

/* ── Pie ── */
.wd-foot { border-top: 1px solid var(--border); padding: 26px 16px 30px; color: var(--dim); font-size: 13px; }
.wd-foot-row { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
.wd-foot a { color: var(--muted); text-decoration: none; }
.wd-foot a:hover { color: var(--text); }
.wd-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }

@media (max-width: 480px) { .nav-nota span { display: none; } .oferta { padding: 22px 18px; } .oferta-precio b { font-size: 46px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── Impresión: los términos se imprimen en blanco ── */
@media print {
  body { background: #fff !important; color: #111; display: block; }
  .wd-nav, .wd-foot, .toc, .meta a { display: none !important; }
  .simple { background: #f4f6fa; border-color: #ccd; }
  .simple li, .sec p, .sec li { color: #222; }
  .sec h2, .doc-cab h1, b, strong { color: #000; }
  .sec h2 .n { background: none; border-color: #999; color: #333; }
}
