/* Estilos específicos para el quiz */

/* Header con banner */
.quiz-header-banner {
    background: url('../images/banner.jpg') center center/cover no-repeat;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.banner-overlay {
    background: rgba(9, 0, 106, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: var(--accent-text);
    z-index: 2;
}

.banner-logo {
    height: 80px;
    width: auto;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.banner-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.banner-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-light);
}

/* Contenedor de resultados más ancho en desktop */
@media (min-width: 1200px) {
    .quiz-container {
        max-width: 100%;
        padding: 2rem 3rem;
    }
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.quiz-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Contenedor de preguntas */
.question-container {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.question-container.active {
    display: block;
}

.question-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Grid de opciones */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Tarjetas de opción */
.option-card {
    background: var(--background-light);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-medium);
    border-color: var(--accent-color);
}

.option-card.selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--accent-text);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 89, 149, 0.4);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.option-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Navegación */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.nav-btn {
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: #3a4f7a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 89, 149, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
}

.prev-btn {
    background: var(--text-light);
}

.prev-btn:hover {
    background: #8a6b3a;
}

.submit-btn {
    background: var(--secondary-color);
}

.submit-btn:hover {
    background: #8a6b3a;
}

/* Pantalla de carga */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 0, 106, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: var(--accent-text);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

.loading-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-header-banner {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .banner-logo {
        height: 60px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .quiz-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .quiz-header h1 {
        font-size: 2rem;
    }
    
    .question-container h2 {
        font-size: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-card {
        padding: 1.2rem;
    }
    
    .nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .loading-content h2 {
        font-size: 1.6rem;
    }
    
    .loading-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .quiz-header-banner {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .banner-logo {
        height: 50px;
    }
    
    .banner-title {
        font-size: 1.6rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .quiz-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .quiz-header h1 {
        font-size: 1.8rem;
    }
    
    .question-container h2 {
        font-size: 1.3rem;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .option-icon {
        font-size: 2rem;
    }
    
    .nav-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}
