body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

h1 {
    color: #4a4a4a;
    font-weight: 700;
}

.subtitulo {
    color: #007bff;
    font-weight: 700;
}

.instrucciones {
    background-color: #e9f5ff;
    border: 1px solid #b3d9ff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: left;
}

.instrucciones h2 {
    color: #004085;
    margin-top: 0;
}

.advertencia {
    font-weight: 700;
    color: #ff5733; 
}

.pregunta {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid #007bff;
    border-radius: 4px;
    text-align: left;
}

.titulo-pregunta {
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.opciones label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.opciones label:hover {
    background-color: #e9e9e9;
}

input[type="radio"] {
    margin-right: 10px;
    accent-color: #007bff; 
}

.boton-container {
    text-align: center;
    margin-top: 30px;
}

button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

/* ------------------- CONFIGURACIÓN REPORTE PDF (4 PÁGINAS STRICTAS) ------------------- */
.hidden { display: none !important; }

.pdf-reporte-contenedor {
    background-color: #ffffff;
    padding: 10px;
    box-sizing: border-box;
}

.reporte-titulo-pdf {
    font-size: 1.4em;
    font-weight: 900;
    color: #111;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #111;
    padding-bottom: 4px;
    text-transform: uppercase;
    text-align: left;
}

.score-resumen-caja {
    background-color: #f4f6f9;
    border: 1px solid #dcdfe6;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.score-item-unico { display: inline-block; }
.score-label { display: block; font-size: 0.85em; font-weight: 700; color: #555; letter-spacing: 0.5px; }
.score-numero { font-size: 2.5em; font-weight: 900; color: #007bff; }

.grafico-general-ie {
    width: 100%;
    max-width: 280px; 
    height: 250px; 
    margin: 0 auto;
}

/* MEDIDA MÁXIMA COMPATIBLE CON A4 IMPRESO */
.grafico-competencias-container {
    width: 100%;
    max-width: 620px; 
    height: 320px; 
    margin: 0 auto;
    box-sizing: border-box;
}

.grafico-competencias-container h3 {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #004085;
}

.interpretacion-general-bloque {
    text-align: left; 
    padding: 12px 15px;
    margin-bottom: 20px; 
    border: 1px dashed #b3d9ff; 
    border-radius: 6px;
}

.interpretacion-general-bloque h2 {
    font-size: 1.15em;
    color: #004085;
    margin-top: 0;
    margin-bottom: 8px;
}

.interpretacion-general-bloque p {
    margin: 4px 0;
    font-size: 0.9em;
}

/* CAJAS COMPACTAS DE COMPETENCIA */
.competencia-resultado {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 0.83em;
    text-align: left;
    line-height: 1.35;
}

.competencia-resultado h3 {
    color: #007bff;
    border-bottom: 1px solid #e9f5ff;
    padding-bottom: 3px;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.05em;
}

.competencia-resultado h4 {
    margin-top: 6px;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.95em;
}

.competencia-resultado p {
    margin: 4px 0;
}

.competencia-resultado ul {
    list-style-type: none;
    padding-left: 8px;
    margin: 4px 0;
}

.competencia-resultado ul li {
    margin-bottom: 2px;
    color: #333;
}

/* SALTO DE PÁGINA FÍSICO Y STRICTO PARA PDF */
.pdf-pagina-bloque {
    box-sizing: border-box;
    width: 100%;
}

.break-seccion-hoja {
    page-break-before: always !important;
    break-before: page !important;
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* INTERFAZ FINAL */
.boton-container-final {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.btn-finalizar { background-color: #6c757d; color: white; border: none; padding: 12px 30px; font-weight: bold; border-radius: 50px; cursor: pointer; }
.btn-descargar-pdf { background-color: #dc3545; color: white; border: none; padding: 12px 30px; font-weight: bold; border-radius: 50px; cursor: pointer; }

footer {
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    font-size: 0.85em;
    color: #888;
}