/* ===================================================== */
/* FAQS – SECCIÓN                                        */
/* ===================================================== */

/* ACTIVO EN NAV */
.header-nav .faqs a {
    text-decoration: underline;
    color: var(--fid-primary);
    font-weight: bold;
}

/* CONTENEDOR GENERAL */
.faqs-section-container {
    margin-bottom: 5vh;
    width: 100%;
}

/* ===================================================== */
/* BANNER / TITLE                                        */
/* ===================================================== */

.title-section {
    padding-top: 5vh;
    padding-bottom: 3vh;
    padding-left: 8vw;
    padding-right: 8vw;

    background-image: url('../img_new/banners_productos/banner_faqs.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    width: 100%;
    height: 35vh;

    margin-bottom: 2.5vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-section h2 {
    color: white;
    font-weight: bold;
}

.title-section span {
    color: white;
    width: 60%;
    line-height: 1.4;
    font-size: 1.15rem;
}

/* ===================================================== */
/* FILTROS                                               */
/* ===================================================== */

.filter-section {
    margin-left: 7vw;
    margin-right: 7vw;
    display: flex;
    flex-wrap: wrap;
}

/* BOTONES */
.btn-filter {
    background-color: #f1f5f9;
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    color: var(--neutral-primary);
    position: relative;

    padding: 0.6rem 1.5rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--fid-800);
    color: white;
}

.btn-filter.active {
    padding-right: 2.2rem;
}

/* X DE CIERRE */
.btn-filter.active::after {
    content: "×";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
}

.faqs-list{
    margin-left: 8vw;
    margin-right: 9vw;
}
.faqs-section{
    margin-top: 3vh;
    margin-bottom: 3vh;
}
.faqs-section h3{
    color: var(--fid-800);
    font-weight: bold;
    padding-bottom: 2vh;
    border-bottom: 1px solid var(--fid-dark);
}
.faq-item {
    border-bottom: 1px solid var(--neutral-200);
}
.faq-item.active {
    border: none;
}
.faq-item.active .faq-question{
    background-color: var(--fid-800);
    color: white;
    font-weight: var(--font-semibold);
    border-bottom: 1px solid var(--fid-800);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.faq-item.active .faq-answer{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid var(--fid-800);
}
.faq-item.active .faq-question{
    border-bottom-left-radius:0px;
    border-bottom-right-radius:0px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 18px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question:hover {
    background-color: var(--fid-50);
    color: var(--fid-primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 10px;
}

.faq-answer p {
    margin: 10px 0 18px;
}

.faq-answer .conocer-mas a{
    color: var(--fid-primary);
    font-weight: var(--font-semibold);
    text-decoration: none;
    text-align: left;
}

.faq-answer .conocer-mas a:hover{
    text-decoration: underline;
}
/* Estado activo */
.faq-item.active .faq-answer {
    max-height: 500px; /* suficiente para texto */
}


/* ===================================================== */
/* TABLET ≤ 992px                                        */
/* ===================================================== */

@media (max-width: 992px) {

    .title-section {
        height: auto;
        padding: 60px 6vw;
    }

    .title-section h6 {
        width: 75%;
    }

    .filter-section {
        margin-left: 6vw;
        margin-right: 6vw;
        gap: 10px;
    }

    .btn-filter {
        font-size: 0.75rem;
    }
}

/* ===================================================== */
/* MOBILE ≤ 768px                                        */
/* ===================================================== */

@media (max-width: 768px) {

    .title-section {
        padding: 50px 5vw;
        text-align: left;
    }

    .title-section h2 {
        font-size: 24px;
    }

    .title-section span {
        width: 100%;
        font-size: 14px;
    }

    .filter-section {
        margin: 20px 5vw;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .filter-section::-webkit-scrollbar {
        display: none;
    }

    .btn-filter {
        flex: 0 0 auto;
        font-size: 0.75rem;
    }
}

/* ===================================================== */
/* MOBILE SMALL ≤ 480px                                  */
/* ===================================================== */

@media (max-width: 480px) {

    .title-section h2 {
        font-size: 22px;
    }

    .title-section h6 {
        font-size: 13px;
    }

    .btn-filter {
        font-size: 0.7rem;
        padding: 0.5rem 1.2rem;
    }
}