/* Hilo de Luz — propuesta 1 "Fibra hasta tu casa" (prototipo Flowbix) */
:root {
  --night: #040816; --night-2: #0a1638; --night-3: #101d4a;
  --ink: #0d1433; --ink-2: #3a4366; --muted: #687092;
  --bg: #f4f6fb; --surface: #fff; --line: #e1e6f1;
  --fibra: #18c4e8; --fibra-deep: #0784ad; --fibra-glow: #66f0ff;
  --luz: #ffb23f; --cta: #ff8a2a; --cta-hover: #ff9b47; --cta-ink: #1f1300;
  --ok: #138a43; --ok-bg: #e3f6ea; --warn: #9a5b00; --warn-bg: #fff2d6; --bad: #b42318; --bad-bg: #fde6e4;
  --r: 18px; --shadow: 0 14px 40px -18px rgba(13, 20, 51, .28);
  --font-d: 'Space Grotesk', system-ui, sans-serif; --font: Inter, system-ui, sans-serif;
  --wrap: 1180px; --nav-h: 68px;
  --dark: linear-gradient(180deg, #0b1640, #0d1433); --dark-2: linear-gradient(135deg, #0b1640, #0d1a4f 60%, #0f2a66);
  --icon-bg: linear-gradient(135deg, #0b1640, #142a6b);
  --band: radial-gradient(120% 140% at 0% 0%, #12307a 0%, #0b1640 45%, #040816 100%);
  --on-dark: #eaf0ff; --on-dark-2: #aab6e0; --on-dark-3: #9fabd6; --badge-ink: #2a1a00;
  --glow-rgb: 24, 196, 232; --cta-rgb: 255, 138, 42; --plan-shadow: rgba(7, 132, 173, .7);
  --nav-bg: rgba(255, 255, 255, .94); --track: #e8edf7; --soft: #f6f8fd;
  --input-bg: #fbfcff; --input-line: #cfd7ea; --step-line: #dbe2f1;
  --res-ok: linear-gradient(135deg, #e6fbff, #eef6ff); --res-ok-line: #b7ecf7; --tint: #e6fbff;
  --res-no: #fff8ec; --res-no-line: #f6dcaa;
  --avatar-2: #3b4ad6; --hover-line: #c8d3ec; --map-bg: #e9eef7;
  --foot-text: #aab4d8; --foot-link: #d6def7; --foot-muted: #8691b8;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--fibra-deep); }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--fibra); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15.5px var(--font);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 8px 24px -10px rgba(var(--cta-rgb), .8); }
.btn--cta:hover { background: var(--cta-hover); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--fibra); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--night-3); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100; color: #fff; transition: background .25s, color .25s, box-shadow .25s; }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav--solid, .nav--static { background: var(--nav-bg); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 19px var(--font-d); letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font: 500 11px var(--font); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__links a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .88; }
.nav__links a:hover { opacity: 1; }
.nav__links .btn { opacity: 1; min-height: 42px; padding: 9px 18px; }
.nav__links .btn--cta { color: var(--cta-ink); }
[tabindex="-1"]:focus { outline: none; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(127, 140, 190, .16); color: inherit; cursor: pointer; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav--open .nav__toggle span { background: transparent; }
.nav--open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav--open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav__links a { padding: 12px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 10px; border: 0; }
  .nav--open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav--open { background: var(--surface); color: var(--ink); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--alt { background: var(--surface); }
.head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.head--c { margin-inline: auto; text-align: center; }
.kicker { font: 600 13px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--fibra-deep); }
.head h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 10px 0 14px; text-wrap: balance; }
.head p { color: var(--muted); font-size: 17.5px; }
.note { font-size: 13px; color: var(--muted); }

/* Revelado suave */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--hover-line); }
.plan.is-popular { background: var(--dark); color: var(--on-dark); border-color: transparent; box-shadow: 0 24px 50px -22px var(--plan-shadow); }
.plan__badge { position: absolute; top: -12px; left: 22px; background: var(--luz); color: var(--badge-ink); font: 700 12px var(--font); padding: 5px 10px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 22px; }
.plan__ideal { font-size: 14px; color: var(--muted); margin-top: 4px; min-height: 2.6em; }
.is-popular .plan__ideal { color: var(--on-dark-2); }
.plan__speed { display: flex; align-items: flex-end; gap: 8px; margin: 18px 0 10px; }
.plan__mbps { font: 700 54px/0.9 var(--font-d); letter-spacing: -.03em; }
.plan__speed span:last-child { font-size: 13px; line-height: 1.25; color: var(--muted); padding-bottom: 4px; }
.is-popular .plan__speed span:last-child { color: var(--on-dark-2); }
.plan__meter { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.is-popular .plan__meter { background: rgba(255, 255, 255, .12); }
.plan__meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--fibra-deep), var(--fibra-glow)); position: relative; overflow: hidden; }
.plan__meter i::after { content: ''; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); animation: sweep 2.2s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.plan__price { display: flex; align-items: flex-end; gap: 8px; margin: 20px 0 14px; }
.plan__amount { font: 700 34px/1 var(--font-d); }
.plan__price span:last-child { font-size: 12.5px; line-height: 1.25; color: var(--muted); }
.is-popular .plan__price span:last-child { color: var(--on-dark-2); }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: radial-gradient(circle, var(--fibra) 35%, rgba(var(--glow-rgb), .2) 40%); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 22px; text-align: center; }

/* ---------- Cobertura ---------- */
.cov { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .cov { grid-template-columns: 1fr; } }
.cov__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cov__form { display: flex; gap: 8px; }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--input-line); border-radius: 12px; font: 16px var(--font);
  color: var(--ink); background: var(--input-bg); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--fibra); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), .18); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.cov__chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); align-items: center; }
.chip { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--fibra); }
.cov__result { min-height: 150px; }
.cov__empty { color: var(--muted); font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.cov__empty svg { flex: none; width: 36px; height: 36px; color: var(--fibra-deep); }
.res { border-radius: 16px; padding: 18px; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.res--ok { background: var(--res-ok); border: 1px solid var(--res-ok-line); }
.res--no { background: var(--res-no); border: 1px solid var(--res-no-line); }
.res h3 { font-size: 20px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.res p { color: var(--ink-2); font-size: 14.5px; }
.res__plans { display: grid; gap: 8px; margin-top: 14px; }
.res__plan { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: 12px; border: 1px solid var(--res-ok-line); font-size: 14.5px; text-decoration: none; color: var(--ink); }
.res__plan:hover { border-color: var(--fibra); }
.res__plan b { font-family: var(--font-d); }
.res form { display: grid; gap: 10px; margin-top: 14px; }
.res .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .res .row2 { grid-template-columns: 1fr; } }
.cov__map { position: relative; min-height: 440px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--map-bg); }
.cov__map #covMap { position: absolute; inset: 0; }
.cov__legend { position: absolute; z-index: 500; left: 12px; bottom: 12px; background: var(--nav-bg); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; box-shadow: var(--shadow); display: flex; gap: 14px; }
.cov__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cov__legend i { width: 12px; height: 12px; border-radius: 50%; background: rgba(var(--glow-rgb), .35); border: 2px solid var(--fibra-deep); }
.cov__tip { position: absolute; z-index: 500; top: 12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.cov__fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.cov-zone { filter: drop-shadow(0 0 6px rgba(var(--glow-rgb), .6)); }
.cov-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--cta); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(var(--cta-rgb), .6); animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 18px rgba(var(--cta-rgb), 0); } }
.leaflet-container { font-family: var(--font); }

/* ---------- Beneficios ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }
.benefit { padding: 24px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.benefit svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--icon-bg); color: var(--fibra-glow); margin-bottom: 14px; }
.benefit h3 { font-size: 19px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 15px; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--font-d); color: #fff; background: linear-gradient(135deg, var(--fibra-deep), var(--avatar-2)); }
.quote footer small { display: block; color: var(--muted); }
.stars { color: var(--luz); letter-spacing: 2px; }
.badge-ficticio { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font: 600 17px var(--font); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--fibra-deep); border-bottom: 2px solid var(--fibra-deep); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- Banda CTA ---------- */
.band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 64px); background: var(--band); color: var(--on-dark); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { font-size: clamp(28px, 4vw, 44px); max-width: 16em; }
.band p { color: var(--on-dark-2); margin-top: 10px; }
.band::before { content: ''; position: absolute; left: -10%; right: -10%; top: 62%; height: 2px; background: linear-gradient(90deg, transparent, var(--fibra-glow), transparent); filter: blur(.5px); opacity: .55; animation: beam 4s ease-in-out infinite; }
@keyframes beam { 50% { transform: translateX(8%); opacity: .9; } }
.band > * { position: relative; }

/* ---------- Pie ---------- */
.footer { background: var(--night); color: var(--foot-text); padding: 64px 0 28px; font-size: 14.5px; }
.footer a { color: var(--foot-link); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font: 600 14px var(--font); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.social a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; line-height: 1.6; color: var(--foot-muted); display: grid; gap: 6px; }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 14px; height: 56px; border-radius: 999px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(16, 120, 60, .7); transition: transform .2s; }
.wa:hover { transform: translateY(-2px); }
.wa svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 600px) { .wa { width: 56px; padding: 0; justify-content: center; } .wa span { display: none; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 1100; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; max-width: calc(100% - 32px); transition: .25s; pointer-events: none; box-shadow: var(--shadow); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Páginas internas ---------- */
.page { padding: calc(var(--nav-h) + 32px) 0 80px; min-height: 100vh; }
.page__title { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 8px; }
.page__sub { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small.err { color: var(--bad); font-size: 13px; min-height: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.form-stack { display: grid; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 24px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--fibra-deep); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; }

/* Stepper con fibra */
.stepper { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 28px 0; padding: 0; }
.stepper::before, .stepper::after { content: ''; position: absolute; top: 15px; left: calc(100% / 12); height: 3px; border-radius: 3px; }
.stepper::before { right: calc(100% / 12); background: var(--step-line); }
.stepper::after { width: calc((100% - 100% / 6) * var(--fill, 0)); background: linear-gradient(90deg, var(--fibra-deep), var(--fibra-glow)); box-shadow: 0 0 10px var(--fibra-glow); transition: width .6s ease; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.stepper li i { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--step-line); font: 700 13px var(--font); font-style: normal; color: var(--muted); transition: .3s; z-index: 1; }
.stepper li.is-done i { background: var(--fibra-deep); border-color: var(--fibra-deep); color: #fff; }
.stepper li.is-active i { border-color: var(--fibra); color: var(--ink); box-shadow: 0 0 0 5px rgba(var(--glow-rgb), .2), 0 0 14px var(--fibra-glow); }
.stepper li.is-active { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .stepper li span { display: none; } .stepper li.is-active span { display: block; position: absolute; top: 40px; white-space: nowrap; } .stepper { margin-bottom: 44px; } }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 920px) { .checkout { grid-template-columns: 1fr; } .summary { order: -1; } }
.summary { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--dark); color: var(--on-dark); border-radius: 22px; padding: 22px; }
.summary h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--fibra-glow); margin-bottom: 14px; font-family: var(--font); }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.summary dt { color: var(--on-dark-3); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; margin-top: 4px; font-size: 17px; }
@media (max-width: 920px) { .summary { position: static; } }

.pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .pick { grid-template-columns: 1fr; } }
.pick label { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick .opt { display: block; padding: 16px; border: 2px solid var(--line); border-radius: 16px; transition: .2s; background: var(--surface); }
.pick input:checked + .opt { border-color: var(--fibra); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), .15); }
.pick input:focus-visible + .opt { outline: 3px solid var(--fibra); outline-offset: 2px; }
.pick input:disabled + .opt { opacity: .45; cursor: not-allowed; }
.opt b { font: 700 18px var(--font-d); }
.opt .opt__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.opt small { color: var(--muted); display: block; margin-top: 2px; }

.checks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.checks li i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--step-line); flex: none; display: grid; place-items: center; }
.checks li.is-run i { border-color: var(--fibra); border-top-color: transparent; animation: tp-spin .8s linear infinite; }
.checks li.is-ok { color: var(--ink); }
.checks li.is-ok i { background: var(--ok); border-color: var(--ok); }
.checks li.is-ok i::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
@keyframes tp-spin { to { transform: rotate(360deg); } }

.done { text-align: center; padding: 20px 0; }
.done__icon { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--tint), var(--surface)); box-shadow: 0 0 0 10px rgba(var(--glow-rgb), .1), 0 0 40px rgba(var(--glow-rgb), .45); }
.done__icon svg { width: 46px; height: 46px; stroke: var(--fibra-deep); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.folio { display: inline-block; font-family: ui-monospace, Consolas, monospace; background: var(--bg); border: 1px dashed var(--input-line); padding: 6px 12px; border-radius: 10px; margin: 10px 0 18px; }
.kv { display: grid; gap: 8px; text-align: left; max-width: 460px; margin: 0 auto 20px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg); border-radius: 12px; font-size: 14.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }

/* Panel del asinante */
.login { display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 80px); }
.login .card { width: min(420px, 100%); }
.login__demo { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.dash > * { grid-column: span 12; }
@media (min-width: 900px) { .dash .c-plan { grid-column: span 7; } .dash .c-bill { grid-column: span 5; } }
.c-plan { background: var(--dark-2); color: var(--on-dark); border: 0; position: relative; overflow: hidden; }
.c-plan::after { content: ''; position: absolute; left: 0; right: 0; bottom: 38px; height: 2px; background: linear-gradient(90deg, transparent, var(--fibra-glow) 30%, transparent 60%); background-size: 200% 100%; animation: flow 3s linear infinite; opacity: .8; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.c-plan .kicker, .c-bill .kicker { color: var(--fibra-glow); }
.c-bill .kicker { color: var(--fibra-deep); }
.c-plan h2 { font-size: 30px; margin: 6px 0 4px; }
.c-plan p { color: var(--on-dark-2); }
.big { font: 700 46px/1 var(--font-d); letter-spacing: -.02em; }
.c-plan .big span { font-size: 18px; color: var(--on-dark-2); margin-left: 6px; }
.c-plan dl { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 22px; justify-content: start; margin: 18px 0 30px; font-size: 13.5px; }
.c-plan dt { color: var(--on-dark-3); } .c-plan dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .c-plan dl { grid-template-columns: 1fr 1fr; } }
.bill__amount { font: 700 40px/1 var(--font-d); margin: 10px 0 6px; }
.bill__lines { margin: 12px 0 18px; display: grid; gap: 6px; font-size: 14px; }
.bill__lines div { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--font); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pagado { background: var(--ok-bg); color: var(--ok); }
.status--pendiente { background: var(--warn-bg); color: var(--warn); }
.status--vencido { background: var(--bad-bg); color: var(--bad); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .btn { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.table tr.is-new { animation: rowin 1.2s ease; }
@keyframes rowin { from { background: var(--tint); } }
@media (max-width: 680px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px; margin-bottom: 10px; }
  .table td { border: 0; padding: 6px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: left; }
  .table td.num { text-align: right; }
}
.ups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.up { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 10px; background: var(--bg); }
.up b { font: 700 22px var(--font-d); }
.up .plus { color: var(--fibra-deep); font-weight: 600; font-size: 14px; }
.dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.dlg { border: 0; border-radius: 20px; padding: 24px; width: min(420px, calc(100% - 24px)); box-shadow: 0 30px 80px -20px rgba(10, 8, 40, .5); }
.dlg::backdrop { background: rgba(8, 10, 30, .5); }
.dlg h3 { font-size: 22px; margin-bottom: 8px; }
.dlg p { color: var(--ink-2); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* pt-BR: preços com centavos ocupam mais espaço */
.plan__amount { font-size: 29px; white-space: nowrap; }
.plan__price span:last-child { font-size: 11.5px; }
