
/*  */

.box__title {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
}

.box__title h2 {
    font-size: clamp(4rem,6vw, 6rem);
    font-family: var(--font-title);
    font-weight: 200;
    text-align: center;
    animation: slideInFromLeft 0.3s ease-out forwards;
    opacity: 0;
}

.box__title p {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-parrafo);
    text-align: center;
    animation: slideInFromLeft 0.3s ease-out forwards;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


#form {
    --blanco: #fff;
    --negro: #000;
    max-width: 1024px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    margin: 5rem auto;
}

#enviar {
    font-size: 3rem;
    font-family: var(--font-parrafo);
    font-weight: 500;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    margin: 2rem auto;
    padding: 10px 30px;
    background-color: #fff7;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}


.container--quiz {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(330px, 1fr));
    margin: 0 10px;
    gap: 20px;
}

@keyframes fadeInQuestion {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.box__quiz {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
    border-radius: 10px;

    background-color: #fffa;
    border: 1px solid #0003;
    padding: 20px;

    animation: fadeInQuestion 0.3s ease forwards;
    animation-delay: calc(var(--question-index, 0) * 0.1s);
    opacity: 0;
}

.box__quiz h3 {
    font-size: 2rem;
    font-family: var(--font-parrafo);
    font-weight: 400;
}

.radio-label {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.radio-label p {
    font-size: 1.7rem;
    font-family: var(--font-parrafo);
    cursor: pointer;
    flex: 1;
}

/* Estilos para respuestas correctas e incorrectas */

/* .box__quiz.correct {
    border: 1px solid var(--correct-border);
    background-color: var(--correct-bg);
}

.box__quiz.incorrect {
    border: 1px solid var(--incorrect-border);
    background-color: var(--incorrect-bg);
} */

.box__quiz.correct {
    border: 1px solid var(--correct-border);
    background-color: var(--correct-bg);
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.1);
}

.box__quiz.incorrect {
    border: 1px solid var(--incorrect-border);
    background-color: var(--incorrect-bg);
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.1);
}


/* === ESTILOS PARA EL BOTÓN CHECKBOX === */

.radio-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    margin: 20px 0;
}

/* Estilo para el input radio */
input[type="radio"] {
    /* Oculta el radio por defecto */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    box-sizing: border-box;
}

/* Estilo cuando el radio está seleccionado */
input[type="radio"]:checked {
    background-color: var( --color-secundary);
}

/* Estilo para el círculo interior cuando está seleccionado */
input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var( --color-secundary);
    border-radius: 50%;
}

/* === JUSTIFICACIÓN === */

.box_justify {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: #0002;
    border-radius: 5px;
}

.box_justify p, .box_justify span{
    font-size: 1.7rem;
    font-family: var(--font-parrafo);
    text-align: start;
}

.box_justify span {
    font-weight: 600;
}

/* Estilo para la respuesta correcta */

.respuesta_Correcta span {
    font-weight: 700;
}

@media screen and (min-width: 768px) {
    #enviar:hover {
        background-color: var(--color-primary);
        color: white;
    }
}