body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #4a4a4a;
}

p {
    text-align: center;
    margin-bottom: 20px;
}

.pregunta {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 8px;
    border-left: 5px solid #007bff;
}

.pregunta p {
    font-weight: bold;
    margin: 0 0 10px 0;
    text-align: left;
}

.opciones {
    display: flex;
    gap: 20px;
}

.opciones input[type="radio"] {
    display: none;
}

.opciones label {
    cursor: pointer;
    padding: 8px 20px;
    border: 2px solid #ccc;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.opciones input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

/* Estilos para las páginas de los días */
.dia-titulo {
    text-align: center;
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 30px;
}

.seccion {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

.seccion p, .seccion ul, .seccion h2 {
    text-align: left;
}

.subtitulo {
    color: #28a745;
    font-size: 1.5em;
    margin-top: 0;
}

.cita {
    font-style: italic;
    text-align: left;
    font-size: 1.2em;
    color: #555;
}

.referencia {
    text-align: left;
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.seccion ul {
    list-style-type: none;
    padding-left: 0;
}

.seccion ul li {
    background-color: #e9ecef;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-left: 3px solid #007bff;
    border-radius: 4px;
}

#dia-siguiente {
    background-color: #007bff;
}

#dia-siguiente:hover {
    background-color: #0056b3;
}

/* Nuevos estilos para la sección de resultados del diagnóstico */
.seccion-resultados {
    text-align: center;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 10px;
}

.seccion-resultados h2 {
    color: #007bff;
}

.resumen-texto {
    font-size: 1.1em;
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
}

.grafico-respuestas {
    display: flex;
    width: 100%;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.barra-correctas {
    background-color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    transition: width 0.5s ease-in-out;
}

.barra-incorrectas {
    background-color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    transition: width 0.5s ease-in-out;
}

.seccion-resultados ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin-top: 30px;
}

.seccion-resultados ul li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #e9ecef;
    border-left: 4px solid #007bff;
    border-radius: 5px;
}

.descargar-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.descargar-btn:hover {
    background-color: #138496;
}

/* Estilos para el cuestionario del día */
.seccion-quiz {
    margin-top: 50px;
    padding: 30px;
    background-color: #e9f5ff; /* Un color de fondo diferente para el cuestionario */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.pregunta-quiz {
    margin-bottom: 20px;
    text-align: left; /* Alineamos el texto a la izquierda */
}

.pregunta-quiz p {
    font-weight: bold;
    text-align: left; /* Alineamos el texto de la pregunta a la izquierda */
}

.seccion-resultados-quiz {
    margin-top: 20px;
    text-align: left; /* Alineamos los resultados a la izquierda */
    border-radius: 8px;
    padding: 20px;
}

.mensaje-exito {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
}

.mensaje-fallo {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
}
/* Estilos para la página de inicio */
.lista-lecciones {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.leccion-btn, #leccion-diagnostico {
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #6c757d; /* Color por defecto, como "bloqueado" */
    color: #fff;
    cursor: pointer;
}

.leccion-btn:hover:not([disabled]), #leccion-diagnostico:hover:not([disabled]) {
    background-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leccion-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    color: #888;
}

#leccion-diagnostico {
    background-color: #28a745;
    margin-bottom: 20px;
}