/* ========================================
   FAQ ACF - INSTITUTO FORMA-T
======================================== */

.faq-acf {
    width: 100%;
    color: #111;
    font-family: inherit;
}

/* TÍTULO */

.faq-acf .faq-acf-title {
    margin: 0 0 50px;
    padding: 0;
    color: #3154FF;
    font-family: inherit;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

/* LISTADO */

.faq-acf .faq-acf-list {
    width: 100%;
    border-top: 3px solid #3154FF;
}

/* ELEMENTO FAQ */

.faq-acf .faq-acf-item {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e9e9e9;
}

/* PREGUNTA */

.faq-acf .faq-acf-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    margin: 0;
    padding: 30px;
    color: #111;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    border: 0;
}

.faq-acf .faq-acf-question::-webkit-details-marker {
    display: none;
}

.faq-acf .faq-acf-question::marker {
    content: "";
}

.faq-acf .faq-acf-question-text {
    flex: 1;
}

/* ICONOS */

.faq-acf .faq-acf-icon {
    position: relative;
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #111;
}

.faq-acf .faq-acf-icon::before,
.faq-acf .faq-acf-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.faq-acf .faq-acf-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* FAQ ABIERTA */

.faq-acf .faq-acf-item[open] .faq-acf-question {
    color: #3154FF;
    border-bottom: 1px solid #e9e9e9;
}

.faq-acf .faq-acf-item[open] .faq-acf-icon {
    color: #3154FF;
}

.faq-acf .faq-acf-item[open] .faq-acf-icon::after {
    display: none;
}

/* RESPUESTA */

.faq-acf .faq-acf-answer {
    margin: 0;
    padding: 27px 30px 52px;
    color: #111;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    border: 0;
}

.faq-acf .faq-acf-answer p {
    margin: 0 0 15px;
}

.faq-acf .faq-acf-answer p:last-child {
    margin-bottom: 0;
}

/* HOVER */

.faq-acf .faq-acf-item:not([open]) .faq-acf-question:hover {
    color: #3154FF;
}

.faq-acf .faq-acf-item:not([open]) .faq-acf-question:hover .faq-acf-icon {
    color: #3154FF;
}

/* TABLET */

@media (max-width: 1024px) {
    .faq-acf .faq-acf-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .faq-acf .faq-acf-question {
        padding: 38px 20px;
    }

    .faq-acf .faq-acf-answer {
        padding: 25px 20px 38px;
    }
}

/* MÓVIL */

@media (max-width: 767px) {
    .faq-acf .faq-acf-title {
        font-size: 30px;
        letter-spacing: -0.5px;
        margin-bottom: 30px;
    }

    .faq-acf .faq-acf-list {
        border-top-width: 2px;
    }

    .faq-acf .faq-acf-question {
        padding: 25px 12px;
        gap: 15px;
        font-size: 17px;
    }

    .faq-acf .faq-acf-icon {
        flex-basis: 20px;
    }

    .faq-acf .faq-acf-answer {
        padding: 22px 12px 30px;
        font-size: 16px;
    }
}