:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-dark: #0b1426;
  --text: #0f1b2d;
  --muted: #5a6b82;
  --line: #dfe6ef;
  --brand: #0a6cf5;
  --brand-2: #14d4c0;
  --brand-ink: #ffffff;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --radius: 14px;
  --warn: #f2a20f;
  --bad: #e5484d;
  --good: #12a150;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; max-width: 26ch; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(800px, 100% - 32px); }
.mt { margin-top: 28px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--brand); margin-bottom: .8em;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.hl { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-weight: 600; padding: 13px 22px; border-radius: 10px; border: 2px solid var(--brand);
  cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 108, 242, .25); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--sm { padding: 8px 16px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-2); outline-offset: 2px;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0b1f4d; font-family: Orbitron, Inter, sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; }
.brand strong { font-weight: 800; color: #0a7dff; }
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__menu a:not(.btn):hover { color: var(--brand); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero { padding: 72px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, rgba(0,194,168,.14), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(15,108,242,.12), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero__checks li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.hero__card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--line); }
.hero__card-foot { font-size: .78rem; color: var(--muted); margin: 18px 0 0; }
.score { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.score__ring {
  --p: 50; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0);
  position: relative; font-weight: 800; font-size: 1.3rem;
}
.score__ring::before { content: ""; position: absolute; inset: 9px; background: var(--card); border-radius: 50%; }
.score__ring span { position: relative; }
.score__label { margin: 0; font-weight: 700; }
.score__delta { margin: 0; color: var(--good); font-weight: 600; font-size: .92rem; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.bars i { display: block; height: 8px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: inherit; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #e7eefa; }
.section--dark .eyebrow { color: var(--brand-2); }
.section--dark p { color: #a9b8cf; }

.grid { display: grid; gap: 22px; margin-top: 36px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.card--service h3 { color: var(--brand); }
.card--note { border-left: 4px solid var(--brand-2); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .93rem; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { border-top: 2px solid rgba(255,255,255,.15); padding-top: 22px; }
.steps__n { font-size: 2.4rem; font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { color: #fff; margin-top: 6px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { border: 1px solid var(--line); background: var(--bg-alt); padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: .9rem; }

/* Quiz */
.quiz { margin-top: 32px; display: grid; gap: 14px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0; }
.q legend { font-weight: 600; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.q__tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 700; margin-right: 8px; }
.q__opts { display: flex; gap: 8px; flex-wrap: wrap; clear: both; }
.q__opts label { cursor: pointer; }
.q__opts input { position: absolute; opacity: 0; pointer-events: none; }
.q__opts span { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: .92rem; transition: all .15s; }
.q__opts input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.q__opts input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.q--missing { border-color: var(--bad); }
.quiz__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }

.result { margin-top: 32px; background: var(--card); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.result__head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.result__level { font-size: 1.4rem; font-weight: 800; margin: 0; }
.result__fn { display: grid; gap: 10px; margin-bottom: 24px; }
.result__fn li { grid-template-columns: 110px 1fr 48px; }
.result__gaps { padding-left: 20px; }
.result__gaps li { margin-bottom: 6px; }

/* Plans */
.plans { align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.plan .ticks { flex: 1; margin: 10px 0 18px; }
.plan--featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(15,108,242,.15); }
.plan__badge { position: absolute; top: -13px; left: 30px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plan__for { color: var(--muted); margin: 0; }
.plan__price { font-size: 1.5rem; font-weight: 800; margin: 0; }
.plan__price small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__info { list-style: none; padding: 0; display: grid; gap: 8px; }
.form { background: var(--bg-alt); padding: 30px; border-radius: 18px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.form .check input { width: 18px; height: 18px; }
.form [aria-invalid="true"] { border-color: var(--bad); }
.form__status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form__status.ok { color: var(--good); }
.form__status.err { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Modal de confirmación */
.modal {
  border: 0; border-radius: 20px; padding: 36px 32px 28px; width: min(420px, 100% - 32px);
  text-align: center; box-shadow: 0 30px 80px rgba(11, 20, 38, .35); color: var(--text);
}
.modal::backdrop { background: rgba(11, 20, 38, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease-out; }
.modal h2 { margin: 0 auto .3em; max-width: none; }
.modal p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.4em; }
.modal form { margin: 0; }
.modal__icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* Footer */
.footer { background: var(--bg-dark); color: #a9b8cf; padding: 34px 0; font-size: .92rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #e7eefa; }
.footer .brand { color: #fff; }

/* Legal page */
.legal { padding: 60px 0 90px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; max-width: none; }
.legal p, .legal li { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .contact { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px; gap: 6px; display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 10px 6px; }
  .grid--2, .grid--3, .steps, .form__row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
