:root {
    --bg-color: #1a1a2e; --primary-color: #0f3460; --accent-color: #03dac6;
    --glow-color: rgba(3, 218, 198, 0.8); --text-color: #e0e0e0; --text-muted: #a0a0a0;
    --recommended-color: #ffab40; /* Color naranja/ámbar para el recomendado */
}
body {
    font-family: 'Roboto', sans-serif; background-color: var(--bg-color); color: var(--text-color);
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 100vh; margin: 0; padding: 40px 20px; overflow-y: auto;
}
.background-animation {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--bg-color), var(--primary-color), var(--bg-color));
    background-size: 400% 400%; animation: gradientBG 15s ease infinite; z-index: -1;
}
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.container {
    background: rgba(15, 20, 46, 0.85); /* Fondo más oscuro con transparencia */
    border: 1px solid rgba(3, 218, 198, 0.3);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* --- HEADER / BRANDING --- */
.quiz-header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(3, 218, 198, 0.2); }
.quiz-header h1 { color: var(--accent-color); text-shadow: 0 0 10px var(--glow-color); margin-bottom: 5px; }
.quiz-header p { color: var(--text-muted); font-size: 1.1em; }
.logo { max-width: 100px; height: auto; margin-bottom: 15px; border-radius: 5px; }

/* --- QUIZ SECTION --- */
.quiz-section { text-align: center; }
.progress-bar-container { width: 100%; height: 10px; background-color: rgba(224, 224, 224, 0.1); border-radius: 5px; margin-bottom: 20px; }
.progress-bar { height: 100%; background-color: var(--accent-color); border-radius: 5px; transition: width 0.5s ease-in-out; }
.pregunta-titulo { color: var(--text-muted); font-weight: 300; font-size: 1.2em; margin-bottom: 10px; }
.pregunta-texto { font-size: 1.5em; font-weight: 700; color: var(--text-color); margin-bottom: 30px; }

/* Opciones del Quiz */
.opciones-form { display: flex; flex-direction: column; gap: 15px; }
.opcion-btn {
    background: rgba(15, 20, 46, 0.9);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 400;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
}
.opcion-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}


/* --- RESULTADOS FINALES --- */
.resultado-final-section { text-align: center; }
.resultado-container { 
    background: rgba(3, 218, 198, 0.1);
    border: 1px solid var(--accent-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(3, 218, 198, 0.2);
}
.arquetipo-titulo { color: var(--accent-color); font-size: 2em; text-shadow: 0 0 8px var(--glow-color); margin: 10px 0; }
.arquetipo-descripcion { font-size: 1.1em; color: var(--text-color); }
.curso-recomendado { 
    font-size: 1.2em; 
    color: var(--recommended-color); 
    font-weight: 700;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 171, 64, 0.1);
    border-radius: 5px;
}

/* --- Votación de Cursos --- */
.voto-curso-container { 
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.descripcion-voto {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.opciones-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 3 columnas en desktop */
    gap: 15px;
    margin-top: 20px;
}

.curso-form {
    display: contents; /* Permite que los botones sean hijos del grid */
}

.curso-btn {
    background: var(--primary-color); 
    color: var(--text-color);
    border: 1px solid var(--primary-color); 
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: center;
}
.curso-btn:hover {
    background-color: rgba(3, 218, 198, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(3, 218, 198, 0.4);
}

.recommended-course {
    border-color: var(--recommended-color);
    background-color: rgba(255, 171, 64, 0.2);
    font-weight: bold;
    color: #fff;
}
.recommended-course:hover {
    background-color: rgba(255, 171, 64, 0.4);
    box-shadow: 0 0 15px var(--recommended-color);
}

.agradecimiento-voto {
    color: var(--accent-color);
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 20px;
}

/* --- EMAIL FORM CONTAINER --- */
.email-form-container {
    background: rgba(25, 25, 55, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}
.email-form-container h4 {
    color: var(--recommended-color);
    margin-top: 0;
}
.email-form-container p {
    color: var(--text-muted);
    font-size: 0.9em;
}

.email-form { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    justify-content: center;
}
.email-input {
    flex: 1; min-width: 200px; padding: 10px; border-radius: 5px; 
    border: 1px solid var(--accent-color); background: transparent; 
    color: var(--text-color);
}
.cta-button {
    background-color: var(--accent-color); color: var(--bg-color); border: none; padding: 10px 20px;
    border-radius: 5px; cursor: pointer; font-weight: bold; transition: all 0.3s ease;
}
.cta-button:hover { box-shadow: 0 0 15px var(--glow-color); }


/* --- CONTROLES FINALES --- */
.controles-finales { 
    display: flex; justify-content: space-around; 
    margin-top: 40px; 
    border-top: 1px solid rgba(3, 218, 198, 0.2); 
    padding-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}
.control-btn {
    background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted);
    padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
    font-size: 1em;
}
.control-btn:hover { color: var(--accent-color); border-color: var(--accent-color); box-shadow: 0 0 10px var(--glow-color); }


/* --- RESPONSIVE / MEDIA QUERIES --- */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    .opciones-cursos {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    .controles-finales {
        flex-direction: column;
        align-items: stretch;
    }
    .curso-btn {
        width: 100%;
    }
}