.faq-container {
    max-width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 3rem;
}

.faq-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

p {
    text-align: justify;
    font-size: 2rem;
}

/* Preguntas */
.pregunta {
    background-color: #7D0988;
    color: gold;
    font-size: 2rem;
    border: 2px solid gold;
    padding: 12px 20px;
    border-radius: 20px 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 2;
}

.pregunta:hover, .faq-item.active .pregunta {
    background-color: rgba(255, 255, 255, 0.55);
    color: #7D0988;
}

/*  Respuestas */
.respuesta {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background-color: gold;
    font-size: 2rem;
    color: #7D0988;
    margin-top: 10px;
    margin-left: 30px; 
    border-radius: 20px 20px 0 20px;
    transition: all 0.4s ease; 
    align-self: flex-end; 
}

/* Clase que activa el JS */
.faq-item.active .respuesta {
    max-height: 1500px; 
    opacity: 1;
    padding: 15px 20px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {

    p {
        font-size: 1.5rem;
        text-align: left; 
    }
}
