/* WRAPPER DE LA SECCIÓN */
.faqs-list {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 992px) {
    .faqs-list {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* CONTENEDOR PRINCIPAL */
.faqs-list__container {
    max-width: 960px;
    margin: 0 auto;
}

/* CABECERA: TÍTULOS */
.faqs-list__header {
    text-align: center;
    margin-bottom: 40px;
}

.faqs-list__header .section-title h1 {
    margin: 0 0 3px;
    padding: 0;
    font: 100 35px bogy, Helvetica Neue, Arial, Noto Sans, sans-serif;
    color: var(--primary-color);
    position: relative;
}

.faqs-list__header .section-subtitle h2 {
    margin: 0;
    color: var(--primary-color);
}

@media (min-width: 1024px) {
    .faqs-list__header .section-title h1 {
        font-size: 50px;
        margin: 0 0 10px;
    }
}

/* INTRODUCCIÓN Y MÁS INFO */
.faqs-list__description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
}

.faqs-list__more-info {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

/* GRID DE FAQS */
.faq-list {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 0;
    font-family: Arial, sans-serif;
    margin-bottom: var(--separation-section-desktop);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* GRUPO INDIVIDUAL DE FAQ */
.faq-list__group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

/* TÍTULO DE PREGUNTA */
.faq-list__title {
    margin: 0;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f4f4f4;
    transition: background-color 0.3s ease;
    position: relative;
    border-radius: 12px;
}

.faq-list__title:hover {
    background-color: #e9e9e9;
}

.faq-list__title::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-list__title.open::after {
    content: '−';
}

/* DESCRIPCIÓN DE LA RESPUESTA */
.faq-list__description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 20px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    border-radius: 0 0 12px 12px;
}

.faq-list__description.open {
    padding: 20px;
    max-height: 400px; /* Ajusta según necesidad */
}

/* RESPONSIVE PARA MÓVILES */
@media screen and (max-width: 768px) {
    .faq-list {
        grid-template-columns: 1fr;
    }
}
