[hidden] { display: none !important; }

/* RutaTest · Página principal (portada pública, diseño con fotos reales).
   Hoja independiente de app.css: la portada usa layouts/landing.html. */
:root, [data-theme="light"] {
  --bg: #fbfaf7;
  --bg-2: #f2f0ea;
  --card: #ffffff;
  --ink: #102035;
  --ink-2: #45546a;
  --muted: #6c7787;
  --line: #e4e1d8;
  --green: #0a9e63;
  --green-ink: #ffffff;
  --green-soft: #e3f6ed;
  --green-text: #08804f;
  --yellow: #ffc83d;
  --red: #d93f45;
  --red-soft: #fde7e7;
  --shadow: 0 1px 2px rgba(16,32,53,.06), 0 10px 30px rgba(16,32,53,.08);
  --shadow-lg: 0 2px 8px rgba(16,32,53,.08), 0 30px 70px rgba(16,32,53,.16);
  --photo-tint: none;
}
[data-theme="dark"] {
  --bg: #0b1016;
  --bg-2: #111821;
  --card: #151d27;
  --ink: #edf2f7;
  --ink-2: #b3bfcc;
  --muted: #8592a1;
  --line: #233040;
  --green: #22d68b;
  --green-ink: #04150d;
  --green-soft: rgba(34,214,139,.13);
  --green-text: #3fe6a0;
  --red-soft: rgba(217,63,69,.18);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.4), 0 30px 70px rgba(0,0,0,.55);
  --photo-tint: brightness(.92);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "DM Sans", "Inter", system-ui, sans-serif; margin: 0; line-height: 1.12; letter-spacing: -.025em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: .93rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--green); color: var(--green-ink); box-shadow: 0 8px 22px rgba(10,158,99,.3); }
.btn-main:hover { box-shadow: 0 12px 28px rgba(10,158,99,.38); }
.btn-line { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.tick { display: inline-flex; align-items: center; gap: 7px; }
.tick::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a9e63' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; flex: none; }
.kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }

/* Aviso superior */
.notice { background: var(--ink); color: var(--bg); font-size: .8rem; text-align: center; padding: 6px 16px; }
[data-theme="dark"] .notice { background: #16212c; color: var(--ink-2); }
.notice b { color: var(--yellow); }

/* Cabecera */
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "DM Sans", sans-serif; font-weight: 800; font-size: 1.08rem; letter-spacing: -.03em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--green); display: grid; place-items: center; }
.logo b { color: var(--green-text); }
.logo .tld { color: var(--muted); font-weight: 600; }
nav.main { display: flex; gap: 22px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
nav.main a { text-decoration: none; }
nav.main a:hover { color: var(--ink); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-actions .btn { min-height: 38px; padding: 0 14px; font-size: .86rem; }
.theme { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; }

/* Portada */
.hero { padding: 40px 0 52px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); font-weight: 600; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; }
.rating .pill { background: var(--green-soft); color: var(--green-text); border-radius: 999px; padding: 2px 9px; font-size: .76rem; font-weight: 800; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 16px 0 14px; }
.hero h1 span { color: var(--green-text); }
.hero .lead { font-size: 1.02rem; color: var(--ink-2); max-width: 560px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .small { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); width: fit-content; }
.facts b { display: block; font-family: "DM Sans", sans-serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.facts span { font-size: .8rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-media .photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.9; }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; filter: var(--photo-tint); }
.exam-card { position: absolute; left: -30px; bottom: 26px; width: min(290px, 78%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px; box-shadow: var(--shadow-lg); }
.exam-card .row { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.exam-card h3 { font-size: 1rem; margin: 6px 0 10px; }
.exam-card ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: .84rem; color: var(--ink-2); }
.exam-card .btn { width: 100%; min-height: 40px; }
.apto { position: absolute; right: -18px; top: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.apto .ok { width: 34px; height: 34px; border-radius: 12px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-weight: 800; }
.apto b { display: block; font-family: "DM Sans", sans-serif; }
.apto span { font-size: .8rem; color: var(--muted); }

/* Franja de garantías */
.trust { border-block: 1px solid var(--line); background: var(--card); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust div { padding: 18px 18px; display: flex; gap: 14px; align-items: flex-start; border-left: 1px solid var(--line); }
.trust div:first-child { border-left: 0; padding-left: 0; }
.trust .ti { width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; font-style: normal; font-size: 1.1rem; }
.trust b { display: block; font-size: .88rem; }
.trust span { font-size: .78rem; color: var(--muted); }

/* Secciones */
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-2); }
.head { max-width: 680px; margin-bottom: 34px; }
.head h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 800; margin-top: 10px; }
.head p { color: var(--ink-2); font-size: .98rem; margin-top: 10px; }
.head.c { margin-inline: auto; text-align: center; }

/* Cómo practicar */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mode:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.mode .mi { width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 14px; }
.mode h3 { font-size: 1.02rem; }
.mode p { color: var(--ink-2); font-size: .86rem; margin: 6px 0 14px; }
.mode .go { margin-top: auto; font-weight: 700; color: var(--green-text); font-size: .86rem; }

/* Pregunta de ejemplo */
.demo { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.demo figure { margin: 0; position: relative; min-height: 330px; }
.demo figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-tint); }
.demo figure figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(16,32,53,.82); color: #fff; font-size: .8rem; font-weight: 600; border-radius: 8px; padding: 6px 10px; }
.demo .q { padding: 26px; }
.demo .meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-weight: 600; }
.demo .meta .bar { flex: 1; max-width: 160px; height: 6px; border-radius: 3px; background: var(--bg-2); margin-left: 12px; align-self: center; overflow: hidden; }
.demo .meta .bar i { display: block; width: 3.3%; height: 100%; background: var(--green); }
.demo h3 { font-family: "Inter", sans-serif; font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; margin: 16px 0; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; font: inherit; font-weight: 500; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 12px; cursor: pointer; transition: border-color .15s; font-size: .93rem; }
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt .l { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .88rem; background: var(--card); border: 1px solid var(--line); }
.opt.ok { border-color: var(--green); background: var(--green-soft); }
.opt.ok .l { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.opt.ko { border-color: var(--red); background: var(--red-soft); }
.opt.ko .l { background: var(--red); color: #fff; border-color: var(--red); }
.opt.dim { opacity: .5; }
.opt:disabled { cursor: default; }
.why { display: none; margin-top: 14px; padding: 13px 15px; border-radius: 12px; background: var(--bg); border-left: 4px solid var(--green); font-size: .88rem; color: var(--ink-2); }
.why.show { display: block; animation: in .3s ease; }
.why b { display: block; color: var(--ink); margin-bottom: 3px; }
.why small { display: block; margin-top: 8px; font-weight: 700; color: var(--green-text); }
.why .next { margin-top: 14px; }
@keyframes in { from { opacity: 0; transform: translateY(5px); } }

/* Examen (tabla informativa) */
.exam { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.facts-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts-table th, .facts-table td { padding: 11px 16px; font-size: .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { font-weight: 600; color: var(--ink-2); width: 55%; }
.facts-table td { font-family: "DM Sans", sans-serif; font-weight: 800; font-size: .98rem; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.prose ul { padding-left: 20px; color: var(--ink-2); margin: 0 0 14px; }
.prose li { margin: 6px 0; }

/* Método */
.method { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.method .photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; }
.method .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; filter: var(--photo-tint); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.steps li::before { counter-increment: s; content: counter(s); width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: "DM Sans", sans-serif; font-weight: 800; font-size: 1rem; }
.steps h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.steps p { color: var(--ink-2); font-size: .88rem; }

/* Temas */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.block h3 { font-size: 1rem; margin-bottom: 10px; }
.block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.block a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; text-decoration: none; color: var(--ink-2); border-bottom: 1px dashed var(--line); font-size: .87rem; }
.block li:last-child a { border-bottom: 0; }
.block a:hover { color: var(--green-text); }
.block a::after { content: "→"; color: var(--muted); }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--green); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 22px; background: var(--green); color: var(--green-ink); font-size: .74rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 1.08rem; }
.plan .for { color: var(--muted); font-size: .82rem; margin-top: 4px; min-height: 2.8em; }
.plan .price { font-family: "DM Sans", sans-serif; font-size: 1.95rem; font-weight: 800; letter-spacing: -.03em; margin-top: 12px; line-height: 1; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .eq { font-size: .78rem; color: var(--green-text); font-weight: 700; margin-top: 6px; min-height: 1.3em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 7px; font-size: .85rem; color: var(--ink-2); }
.plan .btn { margin-top: auto; width: 100%; min-height: 40px; font-size: .88rem; }
.pay { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* Teórica por libre */
.libre { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--ink); color: var(--bg); }
[data-theme="dark"] .libre { background: #16212c; color: var(--ink); }
.libre .txt { padding: 40px; }
.libre .kicker { color: var(--yellow); }
.libre h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); margin: 10px 0 12px; font-weight: 800; }
.libre p { opacity: .82; }
.libre ol { margin: 16px 0 22px; padding-left: 20px; display: grid; gap: 6px; font-size: .92rem; }
.libre ol li { opacity: .9; }
.libre .btn-line { background: transparent; color: inherit; border-color: rgba(255,255,255,.3); }
[data-theme="light"] .libre .btn-line { border-color: rgba(255,255,255,.35); }
.libre .photo { position: relative; min-height: 300px; }
.libre .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-tint); }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 700; font-size: .94rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 15px; font-size: .9rem; }

/* Cierre */
.final { position: relative; border-radius: 24px; overflow: hidden; isolation: isolate; min-height: 310px; display: flex; align-items: center; }
.final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,20,32,.9) 0%, rgba(10,20,32,.65) 50%, rgba(10,20,32,.15) 100%); }
.final .in { padding: 44px; max-width: 540px; color: #fff; }
.final h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
.final p { margin: 10px 0 22px; color: rgba(255,255,255,.85); font-size: .98rem; }

footer { padding: 52px 0 32px; font-size: .85rem; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
footer h4 { font-size: .85rem; color: var(--ink); margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; }

/* Responsive */
@media (max-width: 1020px) {
  nav.main { display: none; }
  .hero .wrap, .exam, .method, .demo, .libre { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .modes, .plans { grid-template-columns: repeat(2, 1fr); }
  .blocks { grid-template-columns: 1fr 1fr; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .demo figure { min-height: 0; aspect-ratio: 3 / 2; }
  .method .photo { aspect-ratio: 16 / 10; }
  .libre .photo { min-height: 260px; order: -1; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .sec { padding: 72px 0; }
  .hero { padding-top: 32px; }
  .head-actions .btn-line { display: none; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
  .facts b { font-size: 1.35rem; }
  .exam-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -60px; }
  .apto { right: 10px; top: 10px; }
  .modes, .plans, .blocks, .trust .wrap { grid-template-columns: 1fr; }
  .trust div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust div:first-child { border-top: 0; }
  .demo .q { padding: 24px 20px; }
  .libre .txt, .final .in { padding: 34px 24px; }
  .final::before { background: linear-gradient(0deg, rgba(10,20,32,.92), rgba(10,20,32,.55)); }
  footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Iconos Lucide dentro de los elementos del diseño */
.ic { flex: none; }
.trust .ti svg, .mode .mi svg { width: 19px; height: 19px; }
.theme svg { width: 18px; height: 18px; }

/* Avisos (mensajes de Django: p. ej. «Has cerrado sesión») */
.messages { position: fixed; top: 76px; right: 16px; z-index: 60; display: grid; gap: 8px; max-width: min(380px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 11px 12px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.toast.tone-critical { border-left-color: var(--red); }
.toast.tone-warning { border-left-color: var(--yellow); }
.toast span { flex: 1; }
.toast button { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 2px; }

/* Aviso de cookies (siteconfig/analytics.html usa los nombres de app.css) */
:root, [data-theme] { --surface-2: var(--card); --border-strong: var(--line); --text: var(--ink); --text-2: var(--ink-2); }
.cookie-banner .row { display: flex; gap: 8px; }
.cookie-banner .btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.cookie-banner .btn-primary { background: var(--green); color: var(--green-ink); }
.cookie-banner .btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.cookie-banner .link { color: var(--green-text); }

.exam-card .row span { display: inline-flex; align-items: center; gap: 4px; }

/* ================= Páginas interiores: test gratis y guías ================= */
.page-top { padding-top: 36px; }
.wrap.narrow { width: min(860px, 100% - 32px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--green-text); }
.crumbs svg { width: 14px; height: 14px; opacity: .7; }
.page-h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-top: 10px; }
.sec-h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; margin: 10px 0 14px; }

.runner { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 80px; }
.runner-top { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.runner-top .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.runner-top .bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .3s; }
.runner-top .aciertos { display: inline-flex; align-items: center; gap: 5px; color: var(--green-text); }
.runner-top .aciertos svg { width: 15px; height: 15px; }
.q-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.q-item:not(:has(.q-img)) { grid-template-columns: 1fr; }
.q-img { margin: 0; background: var(--bg-2); display: grid; align-content: start; border-right: 1px solid var(--line); }
.q-img img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.q-body { padding: 22px 24px 24px; }
.q-topic { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); }
.q-text { font-family: "Inter", sans-serif; font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; margin: 8px 0 16px; }
.why .next { margin-top: 14px; }
.why .next svg { width: 16px; height: 16px; }
.why.bad { border-left-color: var(--red); }
.result { padding: 38px 26px; text-align: center; }
.result-icon { width: 64px; height: 64px; border-radius: 18px; display: inline-grid; place-items: center; margin-bottom: 14px; }
.result-icon.res-ok { background: var(--green); color: var(--green-ink); }
.result-icon.res-ko { background: var(--red); color: #fff; }
.result h2 { font-size: 1.5rem; }
.result p { color: var(--ink-2); margin: 10px auto 0; max-width: 520px; }
.result .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 14px; }
.result .ctas svg { width: 16px; height: 16px; }
.small { font-size: .84rem; }
.muted { color: var(--muted); }

.topic-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.topic-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; font-size: .88rem; color: var(--ink-2); transition: border-color .15s, color .15s; }
.topic-links a:hover { border-color: var(--green); color: var(--green-text); }
.topic-links svg { width: 15px; height: 15px; flex: none; opacity: .6; }

/* Guía */
.guide-steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; counter-reset: g; }
.guide-steps > li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.guide-steps > li .gi { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; }
.guide-steps > li .gi svg { width: 20px; height: 20px; }
.guide-steps h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.guide-steps p, .guide-steps li li { color: var(--ink-2); font-size: .92rem; }
.guide-steps ul { margin: 8px 0 0; padding-left: 18px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); color: var(--ink); font-size: .9rem; margin: 18px 0; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green-text); }
.prose a { color: var(--green-text); }

@media (max-width: 760px) {
  .q-item { grid-template-columns: 1fr; }
  .q-img { border-right: 0; border-bottom: 1px solid var(--line); }
  .topic-links { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1020px) { .topic-links { grid-template-columns: 1fr 1fr; } }
.logo-mark .logo-svg { width: 70%; height: 70%; }
.logo-mark .carril { stroke: var(--green); }

/* Prueba gratis en los planes */
.plan .trial { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-text); font-size: .74rem; font-weight: 700; }
.plan .trial svg { width: 13px; height: 13px; }
.plan .after { margin-top: 8px; font-size: .75rem; color: var(--muted); text-align: center; }

/* Recuadro de la prueba gratis */
.rating { text-decoration: none; }
.hero .ctas .btn svg { width: 17px; height: 17px; }
.trial-band { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; padding: 36px 40px; border-radius: 24px;
  background: linear-gradient(135deg, var(--green-soft), transparent 70%), var(--card); border: 1.5px solid var(--green); box-shadow: var(--shadow); }
.trial-copy .kicker { display: inline-flex; align-items: center; gap: 6px; }
.trial-copy .kicker svg { width: 14px; height: 14px; }
.trial-copy h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 800; margin: 10px 0 12px; }
.trial-copy p { color: var(--ink-2); margin-bottom: 20px; }
.trial-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trial-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.trial-steps .ts { width: 40px; height: 40px; border-radius: 11px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; }
.trial-steps .ts svg { width: 18px; height: 18px; }
.trial-steps b { display: block; font-size: .95rem; }
.trial-steps span:not(.ts) { font-size: .86rem; color: var(--ink-2); }
.trial-note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.btn-glass svg { width: 17px; height: 17px; }
@media (max-width: 1020px) { .trial-band { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }
.rating .pill { white-space: nowrap; flex: none; }

/* Test gratis ya hecho */
.done-box { padding: 38px 26px; text-align: center; }
.done-box h2 { font-size: 1.5rem; }
.done-box p { color: var(--ink-2); margin: 10px auto 0; max-width: 540px; }
.done-box .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 14px; }
.done-box .ctas svg, .result .ctas svg { width: 16px; height: 16px; }
.seo-preguntas { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctas .btn-main svg, .final-ctas svg { width: 17px; height: 17px; }
#precios .plans { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
@media (max-width: 1020px) { #precios .plans { grid-template-columns: 1fr; max-width: 460px; } }
.head-actions .btn { white-space: nowrap; }
@media (max-width: 420px) { .head-actions .btn-main { padding: 0 11px; font-size: .8rem; } }
.final .in .btn svg { width: 17px; height: 17px; }
