/* --- ESTILOS "ACADEMIC PRO WHITE" --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --primary-dark: #053965;     /* Azul Marino */
    --primary-light: #0975D0;    /* Azul Eléctrico */
    --accent-glow: #00d2ff;      /* Celeste */
    --success: #00c851;          /* Verde */
    --error: #ff4444;            /* Rojo */
    --text-dark: #2c3e50;        /* Texto oscuro */
    --container-bg: #ffffff;     /* Fondo Caja */
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    
    /* FONDO ESTÁTICO OSCURO */
    background: radial-gradient(circle at center, var(--primary-dark) 0%, #021B33 100%);
    color: var(--text-dark);
}

/* --- ICONOS FLOTANTES (MÁS VISIBLES Y FLUIDOS) --- */
.bg-floating-icons {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.floating-icon {
    position: absolute;
    /* CAMBIO: Opacidad subida a 0.15 para que se noten más */
    color: rgba(255, 255, 255, 0.15); 
    bottom: -250px; /* Empiezan más abajo para no aparecer de golpe */
    animation: floatUpRotate linear infinite;
}

/* Configuraciones individuales para aleatoriedad */
/* Izquierda | Tamaño | Duración (Velocidad) | Retraso */
.i1 { left: 5%; font-size: 140px; animation-duration: 18s; animation-delay: 0s; }
.i2 { left: 15%; font-size: 100px; animation-duration: 25s; animation-delay: 5s; }
.i3 { left: 25%; font-size: 160px; animation-duration: 20s; animation-delay: 2s; }
.i4 { left: 35%; font-size: 120px; animation-duration: 28s; animation-delay: 8s; }
.i5 { left: 45%; font-size: 150px; animation-duration: 22s; animation-delay: 12s; }
.i6 { left: 55%; font-size: 110px; animation-duration: 26s; animation-delay: 3s; }
.i7 { left: 65%; font-size: 170px; animation-duration: 19s; animation-delay: 7s; }
.i8 { left: 75%; font-size: 130px; animation-duration: 24s; animation-delay: 1s; }
.i9 { left: 85%; font-size: 140px; animation-duration: 21s; animation-delay: 9s; }
.i10 { left: 95%; font-size: 90px; animation-duration: 29s; animation-delay: 4s; }

@keyframes floatUpRotate {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    15% { opacity: 1; } /* Aparecen rápido */
    85% { opacity: 1; } /* Se mantienen visibles */
    100% { transform: translateY(-130vh) rotate(360deg); opacity: 0; }
}


/* --- CONTENEDOR PRINCIPAL --- */
.container {
    background: var(--container-bg);
    border-top: 6px solid var(--primary-light);
    border-bottom: 3px solid var(--primary-dark);
    box-shadow: 0 20px 60px rgba(5, 57, 101, 0.5);
    border-radius: 25px;
    padding: 45px;
    width: 100%;
    max-width: 680px;
    text-align: center;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Logos y Títulos */
.logo {
    max-width: 180px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1)); 
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 { font-weight: 700; color: var(--primary-dark); margin-bottom: 25px; }

/* --- BOTONES --- */
.btn-group { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; }

.carrera-btn {
    border: none; padding: 16px; border-radius: 12px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer;
    font-family: 'Poppins', sans-serif; text-transform: uppercase;
    letter-spacing: 0.5px; transition: all 0.3s ease;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.primary-btn { background: var(--primary-light); color: white; }
.primary-btn:hover {
    background: var(--primary-dark); transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(5, 57, 101, 0.3);
}

.secondary-btn {
    background: white; color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}
.secondary-btn:hover {
    background: var(--primary-dark); color: white; transform: translateY(-3px);
}

.link-text {
    color: var(--primary-light); text-decoration: none; font-weight: 600;
    transition: 0.3s; display: inline-block; margin-top: 15px;
}
.link-text:hover { color: var(--primary-dark); text-decoration: underline; }

/* --- QUIZ UI --- */
.quiz-top-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: #f0f4f8; padding: 15px; border-radius: 15px; margin-bottom: 25px;
}
.logo-medium { width: 100px; }

#timer-container {
    background: var(--primary-dark); color: white;
    padding: 8px 18px; border-radius: 50px; font-weight: 700;
    box-shadow: 0 4px 10px rgba(5, 57, 101, 0.3);
}

#progress-container {
    background: #e0e0e0; height: 10px; border-radius: 20px;
    overflow: hidden; margin-bottom: 30px;
}
#progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-glow));
    border-radius: 20px; transition: width 0.5s ease;
}

#pregunta { 
    font-size: 1.3rem; font-weight: 600; line-height: 1.5; margin-bottom: 25px; 
    color: var(--text-dark);
}
.pregunta-img {
    width: 100%; border-radius: 15px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin-bottom: 25px;
}

.opciones-grid { display: grid; gap: 15px; }

.opcion-btn {
    background: #f8faff; border: 2px solid #dceeff;
    color: var(--primary-dark); padding: 18px 25px;
    border-radius: 12px; font-size: 1rem; text-align: left;
    cursor: pointer; transition: all 0.2s ease; font-weight: 500;
}

.opcion-btn:hover:not([disabled]) {
    background: var(--primary-light); border-color: var(--primary-light);
    color: white; transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(9, 117, 208, 0.3);
}

.opcion-btn.correcto { background: var(--success); border-color: var(--success); color: white; font-weight: 700; }
.opcion-btn.incorrecto { background: var(--error); border-color: var(--error); color: white; opacity: 0.9; }

.action-btn {
    margin-top: 30px; background: var(--primary-dark); color: white;
    border: none; padding: 15px 50px; border-radius: 50px;
    font-weight: 700; cursor: pointer;
    box-shadow: 0 5px 15px rgba(5, 57, 101, 0.4);
    transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.action-btn:hover { transform: scale(1.05); background: var(--primary-light); }

.score-card {
    background: #f0f8ff; padding: 30px; border-radius: 20px;
    border: 2px solid var(--primary-light); margin: 25px 0;
}
#resultado-texto { font-size: 3rem; color: var(--primary-dark); margin: 10px 0 0 0; font-weight: 800; }

.oculto { display: none !important; }
.fade-in { animation: fadeInUp 0.6s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.pulse-effect { animation: pulseBlue 2s infinite; }
@keyframes pulseBlue {
    0% { box-shadow: 0 0 0 0 rgba(9, 117, 208, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(9, 117, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(9, 117, 208, 0); }
}

@media (max-width: 600px) {
    .container { padding: 30px 20px; width: 95%; margin: 10px auto; border-top-width: 4px; }
    h1 { font-size: 1.8rem; }
    .floating-icon { font-size: 80px !important; }
}