/* --- ESTILOS "TOTAL GREEN" CON ÍCONOS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --main-green: #005121;       /* Verde UNESUM */
    --accent-red: #D11B1A;       /* Rojo */
    --text-color: #ffffff;       /* Blanco */
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;   
    overflow-x: hidden; 
    padding: 40px 0;    
    background: radial-gradient(circle at center, #006026 0%, #003010 100%);
    color: var(--text-color);
}

/* --- ANIMACIONES DE FONDO --- */
.bg-animation {
    position: fixed; 
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: moveUp 10s linear infinite;
}
.c1 { width: 100px; height: 100px; left: 10%; bottom: -100px; animation-duration: 7s; }
.c2 { width: 200px; height: 200px; left: 80%; bottom: -200px; animation-duration: 12s; }
.c3 { width: 50px; height: 50px; left: 40%; bottom: -50px; animation-duration: 5s; }

@keyframes moveUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* --- CONTENEDOR PRINCIPAL --- */
.container {
    background: var(--main-green);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 20px auto; 
}

/* Logos */
.logo {
    max-width: 200px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    margin-bottom: 15px;
}
.logo-medium { width: 140px; }

/* Tipografía */
h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 10px 0 20px 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

h2 { color: #ffffff; font-weight: 700; margin-bottom: 20px; }
p { color: #e0e0e0; font-size: 0.95rem; }

/* --- AJUSTE DE ÍCONOS --- */
/* Esto separa el icono del texto en los botones */
.carrera-btn i, .link-text i, .action-btn i {
    margin-right: 8px;
}
.action-btn i {
    margin-left: 5px;
    margin-right: 0;
}

/* --- BOTONES --- */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.carrera-btn {
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    
    /* Para centrar icono y texto */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botón Principal: ROJO */
.primary-btn {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 5px 15px rgba(209, 27, 26, 0.4);
}

.primary-btn:hover {
    background: #ff1f1e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(209, 27, 26, 0.6);
}

/* Botón Secundario: Borde Blanco */
.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Link */
.link-text {
    color: #ffcccc;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    margin-top: 10px;
}
.link-text:hover { color: white; letter-spacing: 0.5px; }

/* --- QUIZ INTERFACE --- */
.quiz-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#timer-container {
    background: rgba(0,0,0,0.3);
    color: #ff4d4d;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid var(--accent-red);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Barra de progreso */
#progress-container {
    background: rgba(255,255,255,0.1);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}
#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-red);
    border-radius: 10px;
    transition: width 0.4s;
}

/* Pregunta */
#pregunta {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 0;
    color: white;
}
.pregunta-img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

/* OPCIONES */
.opciones-grid { display: grid; gap: 12px; margin-bottom: 20px; }

.opcion-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.opcion-btn:hover:not([disabled]) {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateX(5px);
}

.opcion-btn.correcto {
    background: white;
    color: var(--main-green);
    font-weight: 800;
    border-color: white;
}

.opcion-btn.incorrecto {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* Botón Siguiente */
.action-btn {
    margin-top: 10px;
    background: white;
    color: var(--main-green);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* Centrar icono */
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.action-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

/* Resultados */
.score-card {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    border: 1px dashed rgba(255,255,255,0.3);
    margin: 20px 0;
}
#resultado-texto { font-size: 2rem; color: white; margin: 0; font-weight: 800; }

/* Utilidades */
.oculto { display: none !important; }
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }

.pulse-effect { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(209, 27, 26, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(209, 27, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(209, 27, 26, 0); }
}

/* Responsive */
@media (max-width: 600px) {
    .container { width: 95%; padding: 30px 20px; margin: 10px auto; }
    h1 { font-size: 1.8rem; }
    body { padding: 20px 0; } 
}