* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* BARRA SUPERIOR DE NAVEGACIÓN ESTÁNDAR NOSCE™ */
.test-navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #0f172a !important;
    padding: 12px 24px !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    width: 100% !important;
}

.test-navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.brand-title {
    color: #38bdf8 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.brand-sub {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
}

.btn-return-hub {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #38bdf8 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.btn-return-hub:hover {
    background-color: #0369a1 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

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

h1 {
    color: #1a252f;
    font-weight: 900;
    font-size: 2.2em;
    margin: 10px 0;
}

.subtitulo {
    color: #2980b9;
    font-weight: 700;
    font-size: 1.15em;
    margin-bottom: 20px;
}

.instrucciones {
    background-color: #fdfefe;
    border-left: 5px solid #2980b9;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.instrucciones h2 {
    color: #2c3e50;
    font-size: 1.25em;
    margin-top: 0;
}

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

/* BARRA DE PROGRESO DE AVANCE */
#progreso-container {
    margin: 20px auto 35px auto;
    max-width: 600px;
    text-align: center;
}

#progreso-texto {
    font-weight: 700;
    color: #34495e;
    display: inline-block;
    margin-bottom: 8px;
}

#progreso-barra-fondo {
    background-color: #eaeded;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

#progreso-barra-llena {
    background-color: #2980b9;
    height: 100%;
    width: 25%;
    transition: width 0.3s ease-in-out;
}

#bloques-dinamicos-container {
    display: block;
    width: 100%;
}

.bloque-test {
    width: 100%;
    margin-bottom: 20px;
}

.afirmacion-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nomenclatura-tag {
    background-color: #2c3e50;
    color: white;
    font-size: 0.8em;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 12px;
    display: inline-block;
}

.afirmacion-texto {
    font-size: 1.05em;
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #2c3e50;
    text-align: left;
}

.likert-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.likert-option {
    flex: 1;
    text-align: center;
}

.likert-option input[type="radio"] { 
    display: none !important; 
}

.likert-option label {
    display: block;
    background-color: #f8f9f9;
    border: 2px solid #d5dbdb;
    padding: 10px 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 700;
    color: #7f8c8d;
    text-align: center;
    transition: all 0.12s ease-in-out;
    user-select: none;
}

.likert-option input[type="radio"]:checked + label {
    background-color: #2980b9;
    border-color: #1f618d;
    color: white;
    box-shadow: 0 3px 8px rgba(41, 128, 185, 0.3);
}

.navegacion-bloques {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.navegacion-bloques button {
    padding: 12px 35px;
    font-size: 1.05em;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#btn-bloque-anterior { background-color: #95a5a6; color: white; }
#btn-bloque-siguiente { background-color: #27ae60; color: white; margin-left: auto; }

#btn-calcular-ocean {
    background-color: #1a252f;
    color: white;
    border: 3px solid #2c3e50;
    padding: 18px 50px;
    font-size: 1.3em;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    transition: all 0.15s ease;
}
#btn-calcular-ocean:hover { background-color: #2c3e50; transform: scale(1.01); }

/* ------------------- CONFIGURACIÓN REPORTE IMPRESO PDF ------------------- */
.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: #ebf5fb;
    border: 1px solid #a9cce3;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.score-label { display: block; font-size: 0.85em; font-weight: 700; color: #1b4f72; letter-spacing: 0.5px; }
.score-numero { font-size: 2em; font-weight: 900; color: #2980b9; }

#ocean-table-container {
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: left;
}

#ocean-table-container h3 {
    margin-bottom: 8px;
    font-size: 1.05em;
    color: #333;
}

#ocean-table {
    width: 100%;
    border-collapse: collapse;
}

#ocean-table th, #ocean-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.9em;
}

#ocean-table th {
    background-color: #2c3e50;
    color: white;
}

.predominante {
    background-color: #d4efdf !important;
    font-weight: bold;
}

.grafico-general-container {
    width: 100%; 
    max-width: 320px;
    margin: 15px auto 30px auto; 
    height: 260px;
    position: relative;
    box-sizing: border-box;
}

.factor-resultado-caja {
    background-color: #f9f9f9;
    border-left: 5px solid #2980b9;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 18px;
    text-align: left;
}

.factor-resultado-caja h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.1em;
    color: #2c3e50;
}

.factor-resultado-caja p {
    margin: 0;
    font-size: 0.88em;
    line-height: 1.5;
}

.sintesis-caja {
    background-color: #fcf3cf;
    border: 1px solid #f9e79f;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
    margin-top: 15px;
}

.sintesis-caja h4 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #7d6608;
}

.sintesis-caja p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.pdf-pagina-bloque {
    box-sizing: border-box;
    width: 100%;
    clear: both;
}

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

.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;
}

@media print {
    .test-navbar {
        display: none !important;
    }
}