/* style.css - VERSIÓN CON IMÁGENES MÁS GRANDES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    /* Paleta UTM */
    --primary: #008f3e;       
    --primary-dark: #005c28;  
    --accent: #ffd600;        
    
    --text-main: #1a1a1a;
    --text-light: #555;
    
    /* Efecto Vidrio */
    --white-glass: rgba(255, 255, 255, 0.95);
    --shadow-glass: 0 20px 40px 0 rgba(0, 0, 0, 0.2);
    
    /* Colores de estado */
    --success: #00c853;
    --error: #ff1744;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-color: #008f3e; 
}

/* --- ESTILOS DE ICONOS --- */
.icon-left {
    margin-right: 10px;
}

/* Animación: Rebote continuo (para el cohete y trofeo) */
.icon-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-6px);}
    60% {transform: translateY(-3px);}
}

/* Animación: Balanceo (para el cerebro) */
.icon-wobble {
    display: inline-block;
    color: var(--primary);
    margin-right: 8px;
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Animación: Deslizamiento lateral (para flechas) */
.icon-slide {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.action-btn:hover .icon-slide {
    transform: translateX(5px);
}

/* --- CONTENEDOR PRINCIPAL --- */
.container {
    background: var(--white-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: var(--shadow-glass);
    padding: 40px;
    width: 90%;
    max-width: 650px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Logos */
.logo, .logo-medium {
    max-width: 220px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Tipografía */
h1 {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 2.2rem;
    margin: 15px 0;
    letter-spacing: -1px;
    text-transform: uppercase;
}

h2 {
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BOTONES --- */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.carrera-btn {
    position: relative;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: block;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    background: #004d20;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
    background: white;
    color: var(--primary-dark);
    border: 2px solid #e0e0e0;
}
.secondary-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Enlaces */
.link-text {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}
.link-text i { margin-right: 5px; }
.link-text::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.link-text:hover::before {
    width: 100%;
}

/* --- INTERFAZ DEL QUIZ --- */
.quiz-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

#timer-container {
    background: #e8f5e9;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#progress-container {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--success); 
    border-radius: 10px;
    transition: width 0.4s ease;
}

#pregunta {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 20px 0;
    line-height: 1.4;
}

/* --- CAMBIO: CLASE IMAGEN MODIFICADA --- */
.pregunta-img {
    width: 100%;
    max-width: 400px; /* AUMENTADO DE 250px A 400px */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 10px auto 25px auto;
    display: block;
    transition: transform 0.3s;
}
/* ------------------------------------- */

.pregunta-img:hover {
    transform: scale(1.02);
}

/* Opciones */
.opciones-grid { display: grid; gap: 15px; }

.opcion-btn {
    background: white;
    border: 2px solid #f0f0f0;
    padding: 18px 22px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.opcion-btn:hover:not([disabled]) {
    border-color: var(--primary);
    background-color: #f9fbe7;
    transform: translateY(-2px);
    color: var(--primary-dark);
    font-weight: 600;
}

.opcion-btn.correcto {
    background-color: #e8f5e9;
    border-color: var(--success);
    color: #1b5e20;
    font-weight: 700;
}

.opcion-btn.incorrecto {
    background-color: #ffebee;
    border-color: var(--error);
    color: #b71c1c;
    font-weight: 700;
}

.action-btn {
    margin-top: 30px;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.action-btn:hover {
    transform: scale(1.05);
    background: black;
}

/* --- RESULTADOS --- */
.score-card {
    background: #e8f5e9;
    padding: 30px;
    border-radius: 20px;
    margin: 25px 0;
    border: 2px solid var(--primary);
}

#resultado-texto {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.5rem;
    white-space: pre-line;
    line-height: 1.8;
}

.resultado-frase {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.registro-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.resultado-img {
    width: 100%;
    max-width: 350px; /* Tamaño controlado para la imagen final */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* Utilidades */
.oculto { display: none !important; }

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-pop { animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsivo */
@media (max-width: 600px) {
    .container { padding: 25px 20px; width: 85%; }
    h1 { font-size: 1.6rem; }
    .quiz-top-bar { flex-direction: column; gap: 10px; }
    #timer-container { width: 100%; box-sizing: border-box; justify-content: center;}
}

/* --- FONDO ANIMADO --- */
#dynamic-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: -1; pointer-events: none;
}

.anim-circle {
    position: absolute; border-radius: 50%; opacity: 0.8;
    bottom: -250px; animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
    100% { transform: translateY(-130vh) rotate(360deg); opacity: 0; }
}