/* Diagnóstico de ciberseguridad: aplicación propia. Fondo claro, colores de
   Tech del Fuego (azul magallánico, celeste glaciar, rojo fueguino) con un
   trato de herramienta, no de página institucional. */
:root {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --surface-2: #EAF1F8;
  --line: #D8E1EC;
  --text: #1F2937;
  --muted: #5B6B7A;
  --navy: #1F4E79;
  --navy-2: #163A5C;
  --accent: #2E75B6;
  --red: #C41E3A;
  --ok: #3A9A54;
  --warn: #E8833A;
  --bad: #C41E3A;
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --max: 1080px;
  --shadow: 0 10px 30px rgba(31, 78, 121, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; color: var(--navy); }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glow { display: none; }

/* ---- Barra superior ---------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { height: 40px; width: auto; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--navy); white-space: nowrap; }
.brand-by { font-size: 12px; color: var(--muted); white-space: nowrap; }
.langs { display: flex; gap: 4px; }
.langs button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 9px; font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.demo-note { text-align: center; font-size: 12px; color: var(--navy); padding: 6px 16px; background: #E4EEF8; border-bottom: 1px solid var(--line); }
.demo-note:empty { display: none; }
@media (max-width: 520px) { .brand-by { display: none; } .brand img { height: 34px; } }

main { max-width: var(--max); margin: 0 auto; padding: 24px 16px 72px; }
.foot { border-top: 1px solid var(--line); padding: 22px 16px 36px; color: var(--muted); font-size: 13px; background: var(--surface); }
.foot-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* ---- Botones ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .08s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--navy); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.mp { background: #009EE3; border-color: #009EE3; }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 6px 2px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.volver { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 700; font-size: 13px; padding: 6px 12px; }
.volver:hover { background: var(--surface-2); }

/* ---- Portada ----------------------------------------------------------- */
.hero { background: var(--navy); color: #fff; border-radius: 22px; padding: 38px 28px; display: grid; gap: 30px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding: 50px 44px; } }
.hero > * { position: relative; }
.hero h1 .kicker { display: block; font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: 0; color: #BFE0FF; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; color: #fff; }
.hero h1 em { font-style: normal; color: #9CCBE8; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: #DCE8F5; margin: 16px 0 24px; max-width: 56ch; }
.start { display: grid; gap: 10px; max-width: 560px; }
.start .field { display: flex; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 16px; align-items: center; }
.start .field:focus-within { box-shadow: 0 0 0 4px rgba(156, 203, 232, .55); }
.start input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 600 17px var(--font-body); outline: none; }
.start input::placeholder { color: #9AA8B8; font-weight: 500; }
.start .btn { background: var(--red); border-color: var(--red); }
.start .alt { color: #DCE8F5; font-size: 14px; }
.start .alt button { color: #9CCBE8; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: #DCE8F5; font-size: 14px; }
.trust span::before { content: "✓"; color: #7CE3A2; font-weight: 700; margin-right: 6px; }
.preview { background: #fff; color: var(--text); border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.preview-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.preview-top b { color: var(--navy); font-weight: 600; }
.preview .gauge { margin: 0 auto; }
.preview-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.preview-controls span { font-size: 11.5px; padding: 7px 9px; border-radius: 8px; background: var(--surface-2); display: flex; justify-content: space-between; gap: 8px; }
.preview-controls i { font-style: normal; font-weight: 700; white-space: nowrap; }
.preview-controls .ok i { color: var(--ok); }
.preview-controls .bad i { color: var(--bad); }
.preview-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.como { margin-top: 48px; }
.como h2 { font-size: 22px; margin-bottom: 16px; }
.pasos { display: grid; gap: 12px; }
@media (min-width: 720px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.paso .n { font-family: var(--font-body); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.paso h3 { font-size: 17px; margin: 8px 0 6px; }
.paso p { color: var(--muted); font-size: 14px; }
.estandares { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }

/* ---- Sobre tu empresa -------------------------------------------------- */
.empresa { max-width: 720px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; box-shadow: var(--shadow); }
.card h2 { font-size: clamp(22px, 3.4vw, 28px); }
.card .sub { color: var(--muted); margin-top: 8px; }
.grupo { margin-top: 20px; }
.grupo .lbl { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.grupo input { width: 100%; max-width: 320px; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 15px var(--font-body); color: var(--text); }
.grupo input:focus { outline: none; border-color: var(--accent); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }

/* ---- Preguntas --------------------------------------------------------- */
.quiz { max-width: 760px; margin: 0 auto; }
.banner { display: flex; gap: 12px; align-items: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; font-weight: 600; }
.banner .dot { width: 10px; height: 10px; border-radius: 50%; background: #7CE3A2; flex: none; animation: pulse 1.2s infinite; }
.banner b { font-family: var(--font-body); font-weight: 600; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.temas { display: flex; gap: 5px; margin-bottom: 18px; }
.temas span { flex: 1; height: 8px; border-radius: 999px; background: var(--line); opacity: .35; }
.temas span.hecho { opacity: 1; }
.temas span.actual { opacity: 1; box-shadow: 0 0 0 3px rgba(31, 78, 121, .18); }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; box-shadow: var(--shadow); }
.tema { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tema i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.qhead { display: flex; gap: 12px; align-items: flex-start; }
.qcard h2 { font-size: clamp(21px, 3.2vw, 27px); font-weight: 700; color: var(--text); flex: 1; min-width: 0; text-wrap: pretty; }
.tip-wrap { position: relative; display: inline-flex; flex: none; margin-top: 4px; }
.porque-ico { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; cursor: help; outline: none; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.tip-wrap:focus-within .porque-ico, .tip-wrap:hover .porque-ico, .tip-wrap.abierto .porque-ico { background: var(--accent); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 5px rgba(46, 117, 182, .16); }
.tip { position: absolute; right: 0; top: 38px; width: min(320px, 78vw); background: var(--navy); color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 5; text-align: left; font-weight: 500; }
.tip b { color: #BFE0FF; }
.tip-wrap:hover .tip, .tip-wrap:focus-within .tip, .tip-wrap.abierto .tip { opacity: 1; visibility: visible; transform: none; }
.tip::before { content: ""; position: absolute; top: -6px; right: 9px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--navy); }
.nota-perfil { color: var(--text); font-size: 15px; margin-top: 10px; background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.modal-card ul { padding-left: 18px; color: var(--muted); font-size: 14px; }
.modal-card li { margin-bottom: 8px; }
.ayuda { color: var(--muted); font-size: 15px; margin-top: 12px; }
.opciones { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 560px) { .opciones { grid-template-columns: repeat(3, 1fr); } }
.opt { padding: 15px 18px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 18px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: border-color .12s, background .12s, transform .08s; }
.opt small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); }
.opt:hover { border-color: var(--accent); }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.opt[aria-pressed="true"] small { color: #CFE0F2; }
.opt.suave { color: var(--muted); }
.opt.suave[aria-pressed="true"] { color: #fff; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; color: var(--muted); font-size: 13px; }

/* ---- Resultado --------------------------------------------------------- */
.res { display: grid; gap: 16px; }
.res-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 22px; align-items: center; box-shadow: var(--shadow); }
@media (min-width: 820px) { .res-hero { grid-template-columns: 260px 1fr; padding: 28px 32px; } }
.gauge { width: 240px; max-width: 100%; margin: 0 auto; position: relative; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .seg { fill: none; stroke-width: 18; }
.gauge .marker { fill: #fff; stroke: var(--text); stroke-width: 4; }
.gauge .num { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge .num b { font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1; color: var(--text); }
.gauge .num span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nivel-tag { display: inline-block; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 6px 12px; border-radius: 999px; color: #fff; }
.res-hero h1 { font-size: clamp(24px, 4vw, 34px); margin: 12px 0 8px; }
.res-hero .lead { color: var(--muted); font-size: 16.5px; }
.res-meta { color: var(--muted); font-size: 13px; margin-top: 10px; font-family: var(--font-body); }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.box h2 { font-size: 18px; margin-bottom: 4px; }
.box .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lista li { border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; padding: 11px 14px; background: var(--surface); }
.lista li.critico { border-left-color: var(--bad); }
.lista li.medio { border-left-color: var(--warn); }
.lista li.bien { border-left-color: var(--ok); }
.lista .que { font-weight: 600; }
.lista .num { font-family: var(--font-body); color: var(--muted); font-size: 12px; margin-right: 8px; }
.vacio { color: var(--muted); font-size: 14px; }
.areas { display: grid; gap: 10px; }
@media (min-width: 720px) { .areas.dos { grid-template-columns: 1fr 1fr; gap: 10px 22px; } }
.area { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.area .tag { font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag.bajo { background: #E3F4E8; color: var(--ok); }
.tag.medio { background: #FDE9DA; color: #9A4A12; }
.tag.critico { background: #FBE3E7; color: var(--bad); }
.barra { grid-column: 1 / -1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.barra > span { display: block; height: 100%; border-radius: 999px; width: 0; transition: width .9s ease; }
.barra .bajo { background: var(--ok); } .barra .medio { background: var(--warn); } .barra .critico { background: var(--bad); }
.scan { background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: 22px; }
.scan h2 { color: #fff; font-size: 19px; }
.scan .sub { color: #BFD4E8; font-size: 13.5px; }
.scan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.scan-score { display: flex; align-items: center; gap: 12px; }
.scan-score b { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.scan-score small { font-size: 12px; color: #BFD4E8; display: block; }
.grado { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; }
.escala { display: flex; gap: 3px; margin-top: 12px; }
.escala span { flex: 1; height: 7px; border-radius: 999px; opacity: .45; }
.escala span.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.controles { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 600px) { .controles { grid-template-columns: repeat(2, 1fr); } }
.control { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.control i { font-style: normal; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0; padding: 3px 8px; border-radius: 999px; }
.control.ok i { background: #2E7D44; color: #fff; }
.control.bad i { background: var(--red); color: #fff; }
.scan .hallazgos { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.scan .hallazgos li { background: rgba(255, 255, 255, .08); border-left: 4px solid #FF8A9A; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.scan-note { font-size: 12.5px; color: #BFD4E8; margin-top: 12px; }
.scan .btn { background: #fff; color: var(--navy); border-color: #fff; }
.lock { border: 2px dashed var(--accent); border-radius: 12px; padding: 14px 16px; margin-top: 10px; background: #F4F8FC; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.lock b { font-family: var(--font-display); color: var(--navy); display: block; }
.lock span { color: var(--muted); font-size: 13.5px; }
.guardar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.guardar h2 { font-size: 19px; }
.guardar p { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; }
.guardar form { display: flex; flex-wrap: wrap; gap: 10px; }
.guardar input[type="email"] { flex: 1 1 240px; border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: 500 15px var(--font-body); }
.guardar .ok-msg { color: var(--ok); font-weight: 600; margin-top: 10px; }
.upsell { background: var(--red); color: #fff; border-radius: 18px; padding: 26px; display: grid; gap: 14px; align-items: center; }
@media (min-width: 820px) { .upsell { grid-template-columns: 1fr auto; } }
.upsell h2 { color: #fff; font-size: 22px; }
.upsell p { color: #FBE3E7; margin-top: 6px; }
.upsell .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 4px; }
.popup .modal-card { text-align: center; }
.popup .gauge { width: 200px; }
.popup h2 { font-size: 24px; margin-top: 6px; }
.popup p { color: var(--muted); margin: 8px 0 18px; }

/* ---- Planes ------------------------------------------------------------ */
.planes-head { text-align: center; max-width: 62ch; margin: 10px auto 24px; }
.planes-head h1 { font-size: clamp(26px, 4vw, 38px); }
.planes-head p { color: var(--muted); margin-top: 10px; }
.planes { display: grid; gap: 14px; }
@media (min-width: 900px) { .planes { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.plan.destacado { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan.escudo { background: var(--navy-2); color: #fff; border: 0; }
.plan.escudo h2, .plan.escudo .precio, .plan.escudo .etq { color: #fff; }
.plan.escudo .periodo, .plan.escudo ul, .plan.escudo .nota { color: #BFD4E8; }
.plan.escudo .btn { background: #fff; color: var(--navy); border-color: #fff; }
.plan .etq { font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0; color: var(--accent); }
.plan h2 { font-size: 21px; margin: 6px 0 12px; }
.plan .precio { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; }
.plan .periodo { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.plan ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 14px; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .nota { font-size: 12px; color: var(--muted); margin-top: 10px; }
.ejemplo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 18px; display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .ejemplo { grid-template-columns: 180px 1fr; } }
.pagina { aspect-ratio: 1 / 1.35; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 6px; padding: 14px; display: grid; gap: 7px; align-content: start; }
.pagina .pl { height: 8px; border-radius: 4px; background: var(--line); }
.pagina .pl.t { background: var(--navy); height: 12px; width: 70%; }
.pagina .pl.r { background: var(--red); width: 40%; }
.pagina .pl.c { width: 85%; }
.pagina .pl.s { width: 55%; }
.ejemplo h2 { font-size: 19px; }
.ejemplo ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.certs { margin-top: 24px; }
.certs h2 { font-size: 20px; text-align: center; }
.certs > p { color: var(--muted); text-align: center; max-width: 60ch; margin: 8px auto 18px; }
.sellos { display: grid; gap: 14px; }
@media (min-width: 720px) { .sellos { grid-template-columns: repeat(3, 1fr); } }
.sello { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-align: center; }
.medalla { width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #F7F9FB, #C9D1DA 60%, #9AA6B4); box-shadow: inset 0 2px 6px rgba(255, 255, 255, .8), inset 0 -3px 8px rgba(0, 0, 0, .18), 0 8px 18px rgba(31, 78, 121, .18); border: 3px solid #E6EBF1; position: relative; }
.medalla::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px dashed rgba(31, 78, 121, .35); }
.medalla img { width: 72px; height: auto; position: relative; }
.sello b { font-family: var(--font-display); display: block; color: var(--navy); font-size: 15px; }
.sello small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 4px; }
.sello .cinta { display: inline-block; margin-top: 10px; background: var(--navy); color: #fff; font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0; padding: 4px 10px; border-radius: 999px; }
.planes-pie { color: var(--muted); font-size: 12.5px; margin-top: 16px; text-align: center; }

/* ---- Modal ------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 30, 50, .55); display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 560px; background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.modal-card h2 { font-size: 20px; }
.modal-card .sub { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.form { display: grid; gap: 10px; }
@media (min-width: 520px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form input, .form select { border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: 500 15px var(--font-body); background: #fff; }
.form .check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.form .err { grid-column: 1 / -1; color: var(--bad); font-size: 13.5px; }
.resumen { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.resumen b { font-family: var(--font-display); font-size: 20px; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }

/* ---- Panel ------------------------------------------------------------- */
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.panel-head h1 { font-size: clamp(24px, 3.5vw, 32px); }
.panel-head p { color: var(--muted); font-size: 14px; }
.kpis { display: grid; gap: 12px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi .k { font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0; color: var(--muted); }
.kpi .v { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.1; margin-top: 6px; color: var(--navy); }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.hist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hist div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.hist div:last-child { border-bottom: 0; }
.hist .f { color: var(--muted); font-family: var(--font-body); font-size: 12px; }
.hist b { font-family: var(--font-body); }
.tema-color-0 { background: #2E75B6; } .tema-color-1 { background: #7C5CFF; } .tema-color-2 { background: #19A7C4; } .tema-color-3 { background: #3A9A54; } .tema-color-4 { background: #E8833A; } .tema-color-5 { background: #E0642F; } .tema-color-6 { background: #C41E3A; }

@media (prefers-reduced-motion: reduce) { .barra > span, .banner .dot, .spin { transition: none; animation: none; } }

/* ---- Impresión --------------------------------------------------------- */
@media print {
  body { background: #fff; font-size: 12.5px; }
  .topbar, .foot, .demo-note, .btn, .link, .volver, .guardar, .cta-row, .modal, .upsell, .lock, .cookies, .faq, .contra a { display: none !important; }
  main { padding: 0; max-width: none; }
  .res-hero, .box, .scan, .lista li, .control { box-shadow: none; break-inside: avoid; }
  .res-hero { grid-template-columns: 200px 1fr; }
  .gauge { width: 190px; }
  .scan, .scan h2, .scan .sub, .control, .nivel-tag, .tag, .barra > span, .grado, .escala span, .control i, .scan .hallazgos li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-head { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 14px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
}
.print-head { display: none; }

/* preguntas frecuentes, empresa obligatoria, ciudad con sugerencias,
   comprobación contra el dominio, consentimientos y aviso de cookies. */
.faq { margin-top: 40px; }
.faq h2 { font-size: 22px; margin-bottom: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-top: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; transition: transform .18s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.grupo .otro { margin-top: 10px; }
.combo { position: relative; max-width: 420px; }
.combo input { max-width: none; }
.sugerencias { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 4px; z-index: 6; }
.sugerencias li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.sugerencias li span { color: var(--muted); }
.sugerencias li[aria-selected="true"], .sugerencias li:hover { background: var(--surface-2); }
.grupo.falta .lbl { color: var(--bad); }
.grupo.falta .chips, .grupo.falta input, .grupo.falta select { outline: 2px solid rgba(196, 30, 58, .45); outline-offset: 3px; border-radius: 12px; }
.err-msg { color: var(--bad); font-weight: 600; margin: 16px 0 0; }
.verifica { font-size: 13.5px; color: var(--accent); font-weight: 600; margin: 12px 0 0; }
.contra { background: #FDECEE; border: 1px solid #F3C1C9; border-left: 5px solid var(--red); border-radius: 12px; padding: 16px 18px; }
.contra h2 { font-size: 17px; color: var(--red); }
.contra p { margin: 6px 0 0; }
.upsell-precio { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 2px 0 6px; }
.consent { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin: 0 auto; background: var(--navy-2); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.cookies p { margin: 0; font-size: 14px; flex: 1 1 320px; color: #DCE8F5; }
.cookies a { color: #fff; }
.cookies .btn { padding: 9px 16px; }
.cookies .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }

/* Celular: la portada no se corta a la derecha y el nombre no pisa los idiomas. */
.hero { grid-template-columns: minmax(0, 1fr); }
.hero > * { min-width: 0; }
.preview-top { flex-wrap: wrap; gap: 2px 12px; }
.start { grid-template-columns: minmax(0, 1fr); }
.start .field { min-width: 0; }
.start input { width: 100%; }
@media (max-width: 560px) {
  .topbar { padding: 8px 12px; }
  .brand img { height: 32px; }
  .brand-by { display: none; }
  .brand-name { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
  .langs button { padding: 4px 7px; }
  .hero { padding: 30px 20px; }
}
.scan .comparacion { color: #FFFFFF; font-weight: 600; }

/* Conexión con el servidor: análisis en curso, señuelo anti-bots y avisos. */
.control.pend i { background: #5B6B7A; color: #fff; animation: pulse 1.6s infinite; }
.senuelo { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.box.ok-box { border-left: 4px solid var(--ok); }
.box.aviso-box { border-left: 4px solid var(--accent); }
.upsell.informe { background: var(--navy); }
.upsell.informe p { color: #D6E4F2; }
.upsell.informe .btn { color: var(--navy); border-color: #fff; }
.opciones.quieto .opt:hover { border-color: var(--line); }
.ver-mas { margin-top: 10px; }
.control.nd i { background: #8A98A6; color: #fff; }

/* Gracias, después del pago. */
.gracias-hero { background: var(--navy); color: #fff; border-radius: 22px; padding: 30px 28px; margin-bottom: 16px; }
.gracias-hero .kicker { color: #BFD4E8; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.gracias-hero h1 { color: #fff; font-size: clamp(24px, 4vw, 34px); margin: 0 0 10px; }
.gracias-hero .lead { color: #D6E4F2; font-size: 16.5px; margin: 0; }
.gracias-check { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: #2E7D44; color: #fff; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.gracias-estado { margin: 14px 0 0; font-weight: 600; color: #BFD4E8; }
@media (min-width: 700px) { .pasos.tres { grid-template-columns: repeat(3, 1fr); } }
.box ul.simple { margin: 10px 0 0; padding-left: 20px; }
.box ul.simple li { margin: 6px 0; }

/* Etiquetas de estado: nunca partidas en dos líneas (celular). */
.control i, .tag, .nivel-tag, .grado { white-space: nowrap; flex-shrink: 0; }
.control { flex-wrap: nowrap; }
.control > span, .control > b { min-width: 0; }
@media (max-width: 560px) {
  .control { font-size: 13.5px; gap: 8px; }
  .control i { font-size: 11.5px; padding: 3px 7px; }
  .tag { font-size: 11.5px; }
}

/* Provincia (lista) y los datos de contacto que aparecen al marcar «quiero que me contacten» (11/11). */
.grupo select { width: 100%; max-width: 320px; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 15px var(--font-body); color: var(--text); background: var(--surface); }
.grupo select:focus { outline: none; border-color: var(--accent); }
.contacto-extra { display: grid; gap: 6px; margin: 2px 0 8px 28px; }
.contacto-extra .lbl { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--text); margin: 6px 0 0; }
.contacto-extra input, .contacto-extra textarea { height: auto; margin-top: 0; width: 100%; max-width: 420px; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 15px var(--font-body); color: var(--text); background: var(--surface); }
.contacto-extra textarea { resize: vertical; min-height: 88px; }
.contacto-extra input:focus, .contacto-extra textarea:focus { outline: none; border-color: var(--accent); }

/* En el celular, el «?» sube a la esquina de la tarjeta (a la altura del tema) y el título de la pregunta usa todo el ancho: menos cortes de línea (12/11). */
@media (max-width: 600px) {
  .qcard { position: relative; }
  .qcard .tema { padding-right: 44px; }
  .qhead { display: block; }
  .qhead .tip-wrap { position: absolute; top: 20px; right: 20px; margin-top: 0; }
  .qcard h2 { font-size: 20px; }
}

/* El mail, al empezar: el adelanto del dominio y el campo, en una sola caja */
.correo-caja { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding: 26px; }
.correo-caja h1 { font-size: clamp(24px, 4vw, 34px); }
.correo-caja .lead { color: var(--muted); font-size: 16.5px; }
.correo-caja .sub { margin: 0; }
.correo-form { max-width: none; }
.correo-form .field { border: 2px solid var(--line); }
.correo-form .field:focus-within { border-color: var(--accent); box-shadow: none; }
.correo-legal { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.correo-legal input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.guardar .pref-form { display: grid; gap: 14px; justify-items: start; }
.start .nota-uso { font-size: 13px; margin-top: 2px; }
