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

main {
    max-width: 1150px;
    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 #34495e;
}

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

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

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

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

.btn-salir {
    position: absolute;
    top: 25px;
    right: 30px;
    background-color: #c0392b;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 0.95em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.15s;
}
.btn-salir:hover { background-color: #a93226; }

#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: #16a085;
    height: 100%;
    width: 20%;
    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: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nomenclatura-tag {
    background-color: #16a085;
    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.1em;
    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: 12px 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: #16a085;
    border-color: #117a65;
    color: white;
    box-shadow: 0 3px 8px rgba(22, 160, 133, 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-conflictos {
    background-color: #1a252f;
    color: white;
    border: 3px solid #2c3e50;
    padding: 22px 60px;
    font-size: 1.45em;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    transition: all 0.15s ease;
}
#btn-calcular-conflictos:hover { background-color: #2c3e50; transform: scale(1.01); }

.resultados-container {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f9fa;
    border: 1px solid #d5dbdb;
    border-radius: 12px;
}

.introduccion-modelo {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e8e8;
    text-align: left;
    margin-bottom: 35px;
}

.grid-graficos-conflictos {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    margin-bottom: 35px;
}

.card-grafico {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.canvas-wrapper-barras {
    position: relative;
    height: 340px;
    width: 100%;
}

.bajada-grafico {
    font-size: 0.88em;
    color: #7f8c8d;
    text-align: left;
    margin-bottom: 15px;
}

.box-resumen-estilos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-card-estilo {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estilo-nombre-tag {
    font-weight: 700;
    font-size: 0.9em;
}

.estilo-pct-tag {
    font-weight: 900;
    font-size: 1.1em;
    color: #16a085;
}

.mini-card-estilo.ganador-resaltado {
    border: 2px solid #d4af37 !important;
    background-color: #fffdf3 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}
.mini-card-estilo.ganador-resaltado .estilo-pct-tag {
    color: #d4af37 !important;
    font-size: 1.25em;
}

#bloque-perfil-texto {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
    margin-bottom: 35px;
}

.badge-perfil {
    display: inline-block;
    background-color: #16a085;
    color: white;
    font-size: 1.35em;
    font-weight: 900;
    padding: 8px 24px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.desc-principal { font-size: 1.15em; color: #34495e; margin-bottom: 25px; }

.box-contexto { 
    background-color: #f4f6f7; 
    padding: 20px; 
    border-radius: 8px; 
    border-left: 5px solid #34495e;
    margin-bottom: 35px;
}

.lista-metricas-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.lista-metricas-custom div {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e8e8;
    font-size: 0.95em;
    text-align: center;
}

.box-copia-corporativa {
    background-color: #ebf5fb;
    border: 1px dashed #2980b9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 35px;
}
.box-copia-corporativa p {
    margin-top: 0;
    font-size: 0.9em;
    color: #2c3e50;
    font-weight: 500;
}
.btn-copiar-datos {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 0.95em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.btn-copiar-datos:hover { background-color: #1f618d; }

.btn-finalizar { background-color: #27ae60; color: white; border: none; padding: 15px 45px; font-size: 1.2em; font-weight: bold; border-radius: 6px; cursor: pointer; transition: background-color 0.15s; }
.btn-finalizar:hover { background-color: #219653; }

/* NUEVOS ESTILOS PARA EL BOTÓN DE DESCARGA PDF */
.btn-descargar-pdf {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 45px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.btn-descargar-pdf:hover {
    background-color: #c0392b;
}

footer { text-align: center; margin-top: 40px; padding: 20px 0; border-top: 1px solid #eaeded; font-size: 0.85em; color: #95a5a6; }

/* ESTILOS DE CORRECCIÓN PARA EXPORTACIÓN IMPRESA / PDF */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    .resultados-container {
        border: none;
        padding: 0;
        background: transparent;
    }
    .grid-graficos-conflictos {
        grid-template-columns: 1fr; /* Colapsar a una columna en PDF para mejor visualización */
    }
}