
:root{--idem:#8c1414;--idem-dark:#651010;--paper:#fff;--ink:#202020;--muted:#667085;--line:#e5e7eb}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;background:#f3f4f6;color:var(--ink);min-height:100vh}
.hover-red:hover{color:var(--idem)}
.test-hero{background:linear-gradient(135deg,#741010,#9b1919);color:#fff;padding:64px 0 78px}
.test-hero h1{font-size:clamp(2.25rem,6vw,4.5rem);line-height:1.05;font-weight:800;margin:10px 0 20px}
.test-hero p{font-size:clamp(1.05rem,2vw,1.35rem);max-width:760px;margin:0 auto;line-height:1.6;color:#f9e9e9}
.test-hero .test-eyebrow{font-size:.82rem;letter-spacing:.22em;font-weight:800;color:#fde68a}
.test-main{max-width:960px;margin:-42px auto 72px;padding:0 22px;position:relative;z-index:2}
.contenedor,#resultado{background:#fff;border-radius:24px;padding:clamp(24px,5vw,48px);box-shadow:0 22px 60px rgba(15,23,42,.14)}
.test-card-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.test-step-label{text-transform:uppercase;letter-spacing:.12em;color:var(--idem);font-size:.8rem;font-weight:800}
#progresoTexto{color:var(--muted);font-size:.95rem;font-weight:600}
.barra{width:100%;height:10px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-bottom:38px}
#barraProgreso{width:0;height:100%;background:var(--idem);transition:width .35s ease}
#pregunta{min-height:390px}
#pregunta h2{font-size:clamp(1.45rem,3vw,2rem);line-height:1.35;margin-bottom:30px;color:#111827}
.listaOpciones{display:grid;gap:15px}
.listaOpciones .opcion{display:block!important;width:100%!important;background:#fff!important;color:#222!important;border:2px solid var(--line)!important;border-radius:14px;padding:18px 20px;text-align:left;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;font-size:1.05rem;line-height:1.45;transition:border-color .2s,box-shadow .2s,transform .2s}
@media(hover:hover){.listaOpciones .opcion:hover{border-color:var(--idem)!important;box-shadow:0 8px 20px rgba(140,20,20,.08);transform:translateY(-1px)}}
.listaOpciones .opcion.seleccionada,.listaOpciones .opcion.seleccionada:hover,.listaOpciones .opcion.seleccionada:active{background:var(--idem)!important;color:#fff!important;border-color:var(--idem)!important;box-shadow:0 8px 20px rgba(140,20,20,.2)}
.botones{display:flex;justify-content:space-between;gap:15px;margin-top:36px}
button,.botonCarrera,.botonCompartirPrincipal{border:0;border-radius:13px;padding:14px 25px;font-size:1rem;font-weight:700;cursor:pointer;text-decoration:none;transition:.2s;display:inline-flex;align-items:center;justify-content:center}
#btnSiguiente,#reiniciar,.botonCompartirPrincipal{background:var(--idem);color:#fff}
#btnAnterior{background:#eef0f3;color:#374151}
button:hover,.botonCarrera:hover,.botonCompartirPrincipal:hover{transform:translateY(-1px);filter:brightness(.95)}
button:disabled{background:#d1d5db!important;color:#6b7280!important;cursor:not-allowed;transform:none}
.oculto{display:none!important}
#resultado{text-align:center}
#resultado h2{font-size:clamp(1.8rem,4vw,2.7rem);color:#111827;margin:10px 0 14px}
.resultadoIntro{max-width:720px;margin:0 auto 34px;color:var(--muted);line-height:1.6}
#ranking{display:grid;gap:22px;text-align:left}
.resultadoCarrera{position:relative;padding:28px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(0,0,0,.06)}
.resultadoCarrera.principal{border:2px solid var(--idem);box-shadow:0 14px 35px rgba(140,20,20,.13)}
.medalla{font-size:36px;margin-bottom:10px}
.resultadoCarrera h3{font-size:clamp(1.35rem,3vw,1.8rem);color:var(--idem);margin-bottom:12px}
.porcentaje{display:inline-block;background:#f8eaea;color:var(--idem);padding:8px 16px;border-radius:999px;font-weight:800}
.accionesCarrera{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.botonCarrera{background:#202020;color:#fff}
.accionesResultado{margin-top:32px}
.test-cta{background:var(--idem);color:#fff;padding:64px 0}
.test-cta h2{font-size:clamp(2rem,4vw,3rem);font-weight:800;margin-bottom:14px}
.test-cta p{font-size:1.2rem;color:#f8dddd;margin-bottom:28px}
.test-cta-actions{display:flex;justify-content:center;gap:15px;flex-wrap:wrap}
.test-cta-actions a{background:#fff;color:var(--idem);padding:15px 28px;border-radius:14px;text-decoration:none;font-weight:800}
.test-cta-actions a.secondary{background:transparent;color:#fff;border:2px solid #fff}
@media(max-width:700px){
 .test-hero{padding:44px 0 66px}.test-main{margin-top:-30px;padding:0 14px}.contenedor,#resultado{border-radius:18px;padding:24px 18px}
 .test-card-header{align-items:flex-start;flex-direction:column;gap:6px}.barra{margin-bottom:28px}#pregunta{min-height:430px}
 .botones{flex-direction:column-reverse}.botones button,.accionesCarrera a,.accionesCarrera button,#reiniciar{width:100%}.accionesCarrera{flex-direction:column}
}
