/* --- ESTILOS UNEMI 2026: AZUL SÓLIDO (FLAT DESIGN) --- */
:root {
    /* Paleta de Colores */
    --primary-blue: #002F47;   /* Azul Sólido de Fondo */
    --accent-orange: #FF6400;  /* Naranja Vibrante */
    
    --text-white: #ffffff;
    
    /* Fondo del contenedor */
    --card-bg: rgba(0, 30, 45, 0.6); 
    --card-border: rgba(255, 100, 0, 0.3);
    
    --correct-color: #00e676;
    --wrong-color: #ff1744;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-blue);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    color: var(--text-white);
}

/* Ocultamos las luces/blobs */
.blob { display: none; }

/* --- CONTENEDOR PRINCIPAL --- */
.container {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 45px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Logos */
.logo {
    max-width: 260px; 
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); 
}

.logo-medium {
    width: 220px;
    height: auto;
}

/* Tipografía */
h1 {
    font-weight: 800;
    font-size: 2.4rem;
    margin: 10px 0 25px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

h2 {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- BOTONES E ICONOS --- */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.carrera-btn {
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para los Iconos */
.fa-solid, .fa-brands {
    margin-right: 10px; /* Separación entre icono y texto */
}

/* Botón Principal (INSCRIPCION) */
.primary-btn {
    background-color: var(--accent-orange);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 100, 0, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    background-color: #ff7b24;
}

/* Botón Secundario (REGISTRO) */
.secondary-btn {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background-color: rgba(255, 255, 255, 0.05);
}

.link-text {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.link-text:hover {
    color: #fff;
    gap: 12px;
}

/* --- QUIZ UI --- */
.quiz-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

#timer-container {
    background-color: rgba(255, 100, 0, 0.1); 
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Barra de Progreso */
#progress-container {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-orange);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Preguntas */
#pregunta {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f0f0f0;
    margin: 25px 0;
    line-height: 1.6;
}

.pregunta-img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Opciones */
.opciones-grid { display: grid; gap: 14px; }

.opcion-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 22px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: #e0e0e0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.opcion-btn:hover:not([disabled]) {
    border-color: var(--accent-orange);
    background-color: rgba(255, 100, 0, 0.1);
    transform: translateX(5px);
}

.opcion-btn.correcto {
    background-color: rgba(0, 230, 118, 0.2);
    border-color: var(--correct-color);
    color: var(--correct-color);
    font-weight: 700;
}

.opcion-btn.incorrecto {
    background-color: rgba(255, 23, 68, 0.2);
    border-color: var(--wrong-color);
    color: var(--wrong-color);
    font-weight: 700;
}

/* Botón Siguiente */
.action-btn {
    margin-top: 30px;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}

.action-btn .fa-circle-arrow-right {
    margin-left: 10px;
    margin-right: 0;
}

.action-btn:hover {
    transform: translateY(-2px);
    background-color: #ff7b24;
}

/* --- RESULTADOS (Imagen Ajustada) --- */
.score-card {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 20px;
    margin: 25px 0;
    border: 1px dashed var(--accent-orange);
}

#resultado-texto {
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
}

.resultado-frase {
    font-style: italic;
    color: #b0bec5;
    font-weight: 400;
    margin-bottom: 20px;
}

/* NUEVO ESTILO: Imagen de Resultado */
.resultado-img {
    width: 100%;
    max-width: 350px; /* Tamaño controlado */
    height: auto;
    display: block;
    margin: 0 auto 20px auto; /* Centrado */
    border-radius: 15px;
    border: 3px solid var(--accent-orange);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.registro-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--accent-orange);
}

.volver-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.volver-btn:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.oculto { display: none; }

/* --- ANIMACIONES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out forwards; }

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-pop { animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 100, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 100, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 100, 0, 0); }
}
.pulse-effect { animation: pulse 2s infinite; }