/* ==========================================================
   MANOSALVA — FAQ
   Estilos globales del módulo
   ========================================================== */


/* ==========================================================
   CABECERA
   ========================================================== */

.faq .heading {
    position: relative;

    width: fit-content;

    margin:
        0 auto
        14px;

    padding-bottom: 10px;

    font-size:
        clamp(
            30px,
            3vw,
            42px
        );

    font-weight: 800;
    line-height: 1.1;

    text-align: center;

    color: #10234b;
}


.faq .heading::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 72px;
    height: 4px;

    border-radius: 999px;

    background: #ed1c2e;

    transform:
        translateX(-50%);
}


.faq .subheading {
    margin:
        0 auto
        32px;

    text-align: center;

    color: #5a6575;
}


/* ==========================================================
   ACORDEÓN
   ========================================================== */

.faq .accordion {
    display: grid !important;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        ) !important;

    gap:
        12px
        18px !important;

    width: 100%;

    margin:
        0 !important;
}


/*
 * Bootstrap añade márgenes negativos a .row.
 * Los anulamos porque aquí la fila funciona como grid.
 */
.faq .accordion.row {
    margin-left:
        0 !important;

    margin-right:
        0 !important;
}


/* ==========================================================
   ITEM
   ========================================================== */

.faq .accordion-item {
    width: 100% !important;

    overflow: hidden;

    margin: 0 !important;
    padding: 0 !important;

    border:
        1px solid
        rgba(7, 59, 112, 0.09) !important;

    border-radius: 12px !important;

    background:
        #ffffff !important;

    box-shadow:
        0 5px 16px
        rgba(15, 48, 84, 0.05);
}


/* ==========================================================
   BOTÓN / PREGUNTA
   ========================================================== */

.faq .accordion-button {
    width: 100%;

    padding:
        16px
        20px !important;

    background:
        #ffffff !important;

    font-size:
        15px !important;

    font-weight:
        700 !important;

    line-height:
        1.35 !important;

    text-align: left;

    color:
        #10234b !important;

    box-shadow:
        none !important;
}


.faq .accordion-button:hover {
    background:
        #f8fbfe !important;
}


.faq .accordion-button:not(.collapsed) {
    background:
        #f2f7fc !important;

    color:
        #07539a !important;

    box-shadow:
        none !important;
}


/* ==========================================================
   RESPUESTA
   ========================================================== */

.faq .accordion-body {
    padding:
        4px
        20px
        18px !important;

    font-size:
        14px;

    line-height:
        1.55;

    color:
        #526174;
}


.faq .accordion-body p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    .faq .heading {
        font-size:
            clamp(
                27px,
                4vw,
                36px
            );
    }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 767.98px) {

    .faq .accordion {
        grid-template-columns:
            1fr !important;

        gap:
            10px !important;
    }


    .faq .heading {
        font-size:
            clamp(
                25px,
                7vw,
                32px
            );
    }


    .faq .subheading {
        margin-bottom: 24px;
    }


    .faq .accordion-button {
        padding:
            15px
            17px !important;

        font-size:
            14px !important;

        line-height:
            1.35 !important;
    }


    .faq .accordion-body {
        padding:
            8px
            17px
            16px !important;

        font-size:
            13px !important;

        line-height:
            1.45 !important;
    }


    .faq .accordion-body p {
        margin-bottom:
            10px;

        font-size:
            13px !important;

        line-height:
            1.45 !important;
    }


    .faq .accordion-body p:last-child {
        margin-bottom: 0;
    }

}