/**
 * FAQ
 * Remodelando Pixel
 */


/* =========================================================
   SECCIÓN
   ========================================================= */

.rmd-faq {
    padding: 100px 0 105px;

    background: #f6f4ef;
}


/* =========================================================
   HEADER
   ========================================================= */

.rmd-faq__header {
    margin-bottom: 50px;
}


.rmd-faq__eyebrow {
    display: flex;

    margin-bottom: 18px;

    align-items: center;

    gap: 12px;

    color: var(--rmd-orange);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.rmd-faq__eyebrow span {
    display: block;

    width: 38px;
    height: 2px;

    background: var(--rmd-orange);
}


.rmd-faq__heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(300px, 0.85fr);

    gap: 60px;

    align-items: end;
}


.rmd-faq__heading h2 {
    max-width: 760px;

    margin: 0;

    color: var(--rmd-brown-dark);

    font-size: clamp(38px, 4.4vw, 58px);
    font-weight: 700;

    letter-spacing: -0.04em;

    line-height: 1.03;
}


.rmd-faq__heading p {
    max-width: 500px;

    margin: 0 0 6px;

    color: var(--rmd-text-soft);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   LISTA
   ========================================================= */

.rmd-faq__list {
    border-top: 1px solid rgba(40, 35, 28, 0.12);
}


/* =========================================================
   ITEM
   ========================================================= */

.rmd-faq-item {
    border-bottom: 1px solid rgba(40, 35, 28, 0.12);
}


/* =========================================================
   SUMMARY / PREGUNTA
   ========================================================= */

.rmd-faq-item summary {
    display: grid;

    min-height: 88px;

    padding: 24px 18px;

    grid-template-columns:
        56px
        minmax(0, 1fr)
        42px;

    align-items: center;

    gap: 18px;

    cursor: pointer;

    list-style: none;
}


.rmd-faq-item summary::-webkit-details-marker {
    display: none;
}


/* =========================================================
   NÚMERO
   ========================================================= */

.rmd-faq-item__number {
    padding-left: 4px;

    color: var(--rmd-orange);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.08em;
}


/* =========================================================
   PREGUNTA
   ========================================================= */

.rmd-faq-item__question {
    color: var(--rmd-brown-dark);

    font-size: 23px;
    font-weight: 700;

    line-height: 1.32;

    transition:
        color 0.22s ease;
}


/* =========================================================
   ICONO +
   ========================================================= */

.rmd-faq-item__icon {
    display: flex;

    width: 36px;
    height: 36px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(40, 35, 28, 0.18);

    border-radius: 50%;

    color: var(--rmd-orange);

    font-size: 22px;
    font-weight: 400;

    line-height: 1;

    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}


/* =========================================================
   ITEM ABIERTO
   ========================================================= */

.rmd-faq-item[open] .rmd-faq-item__icon {
    border-color: var(--rmd-orange);

    background: var(--rmd-orange);

    color: var(--rmd-white);

    transform: rotate(45deg);
}


.rmd-faq-item[open] .rmd-faq-item__question {
    color: var(--rmd-orange);
}


/* =========================================================
   RESPUESTA
   ========================================================= */

.rmd-faq-item__answer {
    max-width: 900px;

    padding:
        0
        70px
        30px
        92px;
}


.rmd-faq-item__answer p {
    margin: 0;

    color: var(--rmd-text-soft);

    font-size: 19px;

    line-height: 1.75;
}


/* =========================================================
   HOVER
   ========================================================= */

.rmd-faq-item summary:hover .rmd-faq-item__question {
    color: var(--rmd-orange);
}


.rmd-faq-item summary:hover .rmd-faq-item__icon {
    border-color: rgba(214, 108, 48, 0.55);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .rmd-faq {
        padding: 82px 0 86px;
    }


    .rmd-faq__heading {
        display: block;
    }


    .rmd-faq__heading h2 {
        margin-bottom: 18px;
    }


    .rmd-faq__heading p {
        max-width: 650px;
    }


    .rmd-faq-item summary {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            40px;
    }


    .rmd-faq-item__question {
        font-size: 22px;
    }


    .rmd-faq-item__answer {
        padding-left: 82px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .rmd-faq {
        padding: 64px 0 68px;
    }


    .rmd-faq__header {
        margin-bottom: 34px;
    }


    .rmd-faq__eyebrow {
        margin-bottom: 14px;

        font-size: 11px;
    }


    .rmd-faq__eyebrow span {
        width: 28px;
    }


    .rmd-faq__heading h2 {
        margin-bottom: 19px;

        font-size: clamp(34px, 10vw, 44px);

        line-height: 1.05;
    }


    .rmd-faq__heading p {
        font-size: 16px;

        line-height: 1.65;
    }


    /* =====================================================
       PREGUNTA MÓVIL
       ===================================================== */

    .rmd-faq-item summary {
        min-height: 78px;

        padding: 18px 8px;

        grid-template-columns:
            36px
            minmax(0, 1fr)
            34px;

        gap: 10px;
    }


    .rmd-faq-item__number {
        padding-left: 2px;

        font-size: 11px;
    }


    .rmd-faq-item__question {
        font-size: 18px;

        line-height: 1.35;
    }


    .rmd-faq-item__icon {
        width: 32px;
        height: 32px;

        font-size: 20px;
    }


    /* =====================================================
       RESPUESTA MÓVIL
       ===================================================== */

    .rmd-faq-item__answer {
        max-width: none;

        padding:
            0
            42px
            24px
            46px;
    }


    .rmd-faq-item__answer p {
        font-size: 16px;

        line-height: 1.7;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 380px) {

    .rmd-faq-item summary {
        padding-right: 4px;
        padding-left: 4px;

        grid-template-columns:
            32px
            minmax(0, 1fr)
            32px;

        gap: 8px;
    }


    .rmd-faq-item__question {
        font-size: 19px;
    }


    .rmd-faq-item__answer {
        padding:
            0
            36px
            22px
            40px;
    }


    .rmd-faq-item__answer p {
        font-size: 15px;
    }

}