:root { --rojo: #bd242b; --rojo-osc: #8e1a1f; --gris: #444; --claro: #f5f5f7; --borde: #ddd; --azul: #5398C4; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #222; background: var(--claro); line-height: 1.5; }
a { color: var(--rojo); }
.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.cabecera { background: #fff; border-bottom: 1px solid var(--borde); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #222; font-weight: 600; }
.marca img { height: 40px; }
nav { display: flex; gap: 18px; align-items: center; }
nav a { color: var(--gris); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--rojo); }
.enlinea { display: inline; }
.enlace { background: none; border: 0; color: var(--gris); font: inherit; cursor: pointer; padding: 0; font-weight: 500; }
main { padding: 24px 16px 40px; }
.pie { border-top: 1px solid var(--borde); background: #fff; padding: 16px 0; margin-top: 24px; font-size: 14px; }
.pie .contenedor { display: flex; justify-content: space-between; align-items: center; }
.pie-marca img { height: 22px; }
.tarjeta { background: #fff; border-radius: 10px; padding: 24px 28px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 20px; }
h1 { color: var(--rojo); margin: 0 0 12px; font-size: 28px; }
h2 { font-size: 19px; margin: 24px 0 8px; color: #222; }
h3 { font-size: 16px; margin: 16px 0 6px; }
.portada { border-radius: 12px; background-size: cover; background-position: center; min-height: 320px; display: flex; align-items: center; margin-bottom: 20px; }
.portada-texto { background: rgba(255,255,255,.92); margin: 24px; padding: 28px; border-radius: 10px; max-width: 560px; }
.portada-texto h1 { font-size: 32px; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--gris); margin-bottom: 8px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input:not([type]), select, textarea {
  display: block; width: 100%; padding: 9px 10px; border: 1px solid var(--borde); border-radius: 6px; font: inherit; margin-top: 4px; background: #fff; }
textarea { resize: vertical; }
.casilla { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: #222; }
.casilla input { margin-top: 4px; }
.boton { display: inline-block; background: var(--rojo); color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.boton:hover { background: var(--rojo-osc); }
.boton-grande { padding: 14px 26px; font-size: 17px; margin-top: 16px; }
.boton-chico { padding: 6px 12px; font-size: 14px; }
.boton-gris { background: #777; }
.botones { display: flex; gap: 16px; flex-wrap: wrap; }
.aviso { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.aviso-ok { background: #e6f4ea; color: #1e4620; }
.aviso-error { background: #fdecea; color: #7a1c1c; }
.aviso-alerta { background: #fff4e0; color: #6b4a00; }
.error { color: var(--rojo); font-size: 13px; margin: 4px 0 0; }
.nota { color: #666; font-size: 14px; }
.recuadro { border: 1px solid var(--borde); border-radius: 8px; padding: 16px 20px; margin: 16px 0; background: #fafafa; }
.pasos li { margin-bottom: 8px; }
.paso { color: #666; margin: 0; font-size: 14px; }
.progreso { height: 10px; background: #eee; border-radius: 5px; overflow: hidden; margin: 6px 0 16px; }
.progreso div { height: 100%; background: var(--rojo); }
.instrucciones { background: #fafafa; border-left: 4px solid var(--rojo); padding: 10px 14px; }
.guia { color: var(--rojo); font-size: 17px; margin-top: 28px; }
.pregunta { border: 0; border-bottom: 1px solid #eee; padding: 14px 0; margin: 0; }
.pregunta.con-error { background: #fff5f5; }
.pregunta legend { font-weight: 500; padding: 0; margin-bottom: 8px; }
.pregunta .num { color: var(--rojo); font-weight: 700; }
.escala { display: flex; gap: 8px; flex-wrap: wrap; }
.escala label { margin: 0; cursor: pointer; }
.escala input { position: absolute; opacity: 0; }
.escala span { display: inline-block; min-width: 44px; padding: 8px 12px; border: 1px solid var(--borde); border-radius: 6px; text-align: center; color: #222; }
.escala input:checked + span { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.escala-texto span { min-width: 90px; }
.escala-texto small { display: block; font-size: 11px; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opciones label { margin: 0; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; }
.opciones span { display: block; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 6px; color: #222; }
.opciones input:checked + span { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.centrado { text-align: center; }
.girando { width: 48px; height: 48px; border: 5px solid #eee; border-top-color: var(--rojo); border-radius: 50%; margin: 20px auto; animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.encabezado-informe { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.informe h2 { color: var(--rojo); border-bottom: 2px solid var(--rojo); padding-bottom: 4px; margin-top: 32px; }
.codigo { font-size: 18px; }
.radar { max-width: 100%; height: auto; }
.carrera { border: 1px solid var(--borde); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.carrera h3 { margin-top: 0; }
.carrera p { margin: 4px 0; }
.ajuste { font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 8px; font-weight: 500; vertical-align: middle; }
.ajuste-alto { background: #e6f4ea; color: #1e4620; }
.ajuste-medio { background: #fff4e0; color: #6b4a00; }
.barras { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.barras th { text-align: left; font-weight: 500; width: 36%; padding: 3px 8px 3px 0; font-size: 14px; }
.barras td { padding: 3px 0; }
.barras .valor { width: 40px; text-align: right; font-weight: 600; font-size: 14px; }
.barra { height: 12px; background: #eee; border-radius: 6px; overflow: hidden; }
.barra div { height: 100%; background: var(--rojo); }
.lista { width: 100%; border-collapse: collapse; font-size: 14px; }
.lista th, .lista td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.lista th { color: var(--gris); font-weight: 600; }
.compacta th, .compacta td { padding: 6px; font-size: 13px; }
.desplazable { overflow-x: auto; }
.totales { display: flex; gap: 20px; margin: 12px 0; }
.totales span { background: #fafafa; border: 1px solid var(--borde); border-radius: 6px; padding: 8px 14px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 16px; }
.filtros select, .filtros input { width: auto; margin: 0; padding: 6px 8px; }
.cal { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.cal-caliente { color: #7a1c1c; }
.cal-tibio { color: #6b4a00; }
.cal-frio { color: #1e4a7a; }
span.cal-caliente { background: #fdecea; }
span.cal-tibio { background: #fff4e0; }
span.cal-frio { background: #e8f1fb; }
@media (max-width: 760px) {
  .dos-columnas, .opciones { grid-template-columns: 1fr; }
  .cabecera .contenedor { height: auto; flex-direction: column; padding: 10px 16px; gap: 8px; }
  .tarjeta { padding: 18px 16px; }
}

/* Aviso de privacidad: texto largo, se lee mejor con un poco mas de aire. */
.aviso-legal p, .aviso-legal li { line-height: 1.55; }
.aviso-legal h2 { margin-top: 26px; }
.aviso-legal table.lista td, .aviso-legal table.lista th { vertical-align: top; padding: 6px 8px; }
