* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #3498db;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-top: 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.hidden {
    display: none;
}

.pregunta {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pregunta-imagen {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.pregunta-texto {
    flex: 1;
}

.opciones {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.opcion {
    padding: 0.8rem 1.5rem;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: #333;
}

.opcion:hover {
    background-color: #e0e0e0;
    color: #000;
}

.opcion.selected {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.opcion.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.opcion.correct {
    background-color: #2ecc71;
    color: white;
    border-color: #27ae60;
}

.opcion.incorrect {
    background-color: #e74c3c;
    color: white;
    border-color: #c0392b;
}

#resultados {
    margin-top: 2rem;
    text-align: center;
}

#puntaje {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
}

.correcta {
    color: green;
    font-weight: bold;
}

.incorrecta {
    color: red;
    font-weight: bold;
}

.respuesta-correcta {
    margin-top: 0.5rem;
    font-style: italic;
}

#navegacion-btn {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.nav-btn.active {
    background-color: #3498db;
    color: white;
}

.nav-btn.respondida {
    background-color: #2ecc71;
    color: white;
}

#verificar-btn {
    background-color: #2ecc71;
    margin-top: 1rem;
}

#verificar-btn:hover {
    background-color: #27ae60;
}

#descargar-btn {
    background-color: #9b59b6;
    margin-top: 1rem;
}

#descargar-btn:hover {
    background-color: #8e44ad;
}

#siguiente-btn {
    background-color: #f39c12;
    margin-top: 1rem;
}

#siguiente-btn:hover {
    background-color: #e67e22;
}

#otro-btn {
    background-color: #e74c3c;
    margin-top: 1rem;
}

#otro-btn:hover {
    background-color: #c0392b;
}

/* Estilos para el loading spinner */
#loading {
    text-align: center;
    margin-top: 2rem;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footnote {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}