/* COLOR PREGUNTAS */
.cuestion.activa {
    background: grey;
    color: white;
}

.cuestion.correcta {
    background: green;
    color: white;
}

.cuestion.incorrecta {
    background: red;
    color: white;
}

.respuesta-correcta {
    background-color: #4CAF50; /* verde para la respuesta correcta */
    color: white;
    padding: 5px;
    border-radius: 4px;
}


 
 /* TEXTO */
#info {
    width: 100%;
    display: flex;
    flex-direction: row;
    color: var(--color_p);
    font-size: 1.5rem;
    gap: 1rem;
}

#input_preguntas {
    padding: 2rem;
    color: var(--color_p);
    font-size: 1.5rem;
}

#botones_pregunta {
    padding: 0 2rem 2rem 2rem;
}

#input_preguntas label {
    font-size: 20px;
    cursor: pointer;
    position: relative;
    margin: 1rem 0 1rem 1rem;
}

#input_preguntas input {
    margin: 1rem 0;
    cursor: pointer;
    position: relative;
    width: 1rem;
    height: 1rem;
}

#input_preguntas label:hover {
    position: relative;
    width: 100%;
}

#cuestiones {
    border: var(--border);
    border-radius: 16px;
    padding: 1rem;
    width: 100%;
    
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    box-sizing: border-box;
}

.cuestion {
    padding: 0.5rem;
    text-decoration: none;
    color: var(--color_p);
    border: var(--border);
    border-radius: 10px;
    font-weight: 900;
    background: transparent;
    cursor: pointer;
    
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.cuestion:hover {
    background: white;
    coloR: black;
}


#seccion {
    border-top: var(--border);
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
    gap: 1rem;
    display: flex;
    flex-direction: row;
    position: relative;
}



#texto {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.3) 0%, rgba(80, 80, 80, 0.2) 50%, rgba(100, 100, 100, 0.2) 100%);
    border-radius: 16px;
    border: var(--border);
    position: relative;
    width: 70%;
    color: #3A3617;
}

#texto button {
    border-radius: 99px;
    width: fit-content;
    color: black;
    background: white;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    /* border-radius: 16px; */
    text-decoration: none;
    gap: 1rem;
    display: flex;
}

#texto button:hover {
    background: white;
    color: black;
}

#texto .examen {
    padding: 1.5rem 0;
    position: relative;
    text-decoration: none;
    width: 100%;
    height: auto;
    border: solid white;
    border-width: 0 0 1px 0;
}

#texto h2 {
    background: var(--background_div);
    border-bottom: var(--border);
    padding: 2rem;
    color: var(--color_p);
    font-size: 28px;
}

#texto h3 {
    margin-top: 1rem;
    color: var(--color_p);
	font-size: 2rem;
	margin-right: 1rem;
}


#texto p {
    color: var(--color_p);
	font-size: 1.5rem;
}

#texto b {
    color: orange;
	font-size: 1.5rem;
	margin-top: 6rem;
}

#texto ul li {
    color: var(--color_p);
	font-size: 1.5rem;
	margin-right: 1rem;
}

.caja_resumen {
    width: 6rem;
}



/* RESPONSIVE */
@media (max-width: 800px) {
    #texto {
	    width: 100%;
	}
	
	#seccion {
	    flex-direction: column;
	    padding : 1rem;
	}
	
	#pregunta_imagen {
	    width: 20rem;
	}

}
.test-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.pregunta-titulo {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.pregunta-img {
    max-width: 80%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.respuestas-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.respuesta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.respuesta-item:hover {
    border-color: #ff7a00;
    background: #fff6ef;
}

.respuesta-item input {
    transform: scale(1.2);
}

.botones-test {
    display: flex;
    gap: 12px;
}

.btn-principal {
    background: #ff7a00;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-secundario {
    background: #eee;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.progreso {
    margin-bottom: 20px;
}

.barra {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.barra-fill {
    height: 100%;
    width: 0%;
    background: #ff7a00;
    transition: width 0.3s ease;
}