/* =========================================================
   DOLCI HANDS — FAQ
========================================================= */

.faq-page {
    min-height: 100vh;
    background: #f7f0e8;
    color: #351f19;
    overflow-x: hidden;
}


/* =========================================================
   HERO
========================================================= */

.faq-hero {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.faq-hero-image {
    position: absolute;
    inset: 0;
}

.faq-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.faq-hero-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(247, 240, 232, .98) 0%,
            rgba(247, 240, 232, .96) 20%,
            rgba(247, 240, 232, .82) 29%,
            rgba(247, 240, 232, .42) 36%,
            rgba(247, 240, 232, .08) 43%,
            rgba(247, 240, 232, 0) 48%
        );
}

.faq-hero-content {
    position: relative;
    z-index: 2;

    width: min(
        1180px,
        calc(100% - 72px)
    );

    margin: 0 auto;
    padding: 70px 0;
}

.faq-eyebrow {
    display: block;

    margin-bottom: 16px;

    color: #b95f42;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
}

.faq-hero h1 {
    max-width: 520px;

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        52px,
        6vw,
        78px
    );

    font-weight: 500;
    line-height: .95;
    letter-spacing: -.04em;
}

.faq-title-line {
    display: block;

    width: 70px;
    height: 3px;

    margin-top: 28px;

    background: #b95f42;
}

.faq-hero-content p {
    max-width: 440px;

    margin: 25px 0 0;

    color: #66534c;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   CONTENIDO
========================================================= */

.faq-content {
    padding: 52px 0 90px;
}

.faq-container {
    width: min(
        1320px,
        calc(100% - 80px)
    );

    margin: 0 auto;
}


/* =========================================================
   GRID
========================================================= */

.faq-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 14px 22px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   ITEM
========================================================= */

.faq-item {
    overflow: hidden;

    border:
        1px solid
        rgba(91, 63, 51, .13);

    border-radius: 14px;

    background:
        rgba(255, 252, 247, .78);

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.faq-item.is-open {
    background: #fbf5ee;

    border-color:
        rgba(184, 111, 91, .32);

    box-shadow:
        0 8px 24px
        rgba(73, 53, 44, .05);
}


/* =========================================================
   QUESTION
========================================================= */

.faq-question {
    width: 100%;

    min-height: 66px;

    padding:
        18px 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: 0;

    background: transparent;

    color: #351f19;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;

    text-align: left;

    cursor: pointer;
}

.faq-question > span:first-child {
    flex: 1;
}

.faq-icon {
    width: 26px;
    height: 26px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #8f5947;

    font-size: 21px;
    font-weight: 400;

    line-height: 1;
}


/* =========================================================
   ANSWER
========================================================= */

.faq-answer {
    display: none;

    padding:
        0 20px 20px;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-answer p {
    max-width: 700px;

    margin: 0;

    color: #6d5a51;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   SOPORTE
========================================================= */

.faq-support {
    margin-top: 26px;

    padding:
        25px 28px;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 20px;

    border:
        1px solid
        rgba(91, 63, 51, .10);

    border-radius: 18px;

    background:
        #f4e9df;
}

.faq-support-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #694538;

    font-size: 30px;
}

.faq-support-content h2 {
    margin: 0 0 5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 500;
}

.faq-support-content p {
    margin: 0;

    color: #725e55;

    font-size: 13px;
}

.faq-support-button {
    min-height: 46px;

    padding:
        0 24px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #4a2c24;

    color: #fffaf5;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease;
}

.faq-support-button:hover {
    background: #351f19;

    transform:
        translateY(-1px);
}


/* =========================================================
   NAVEGACIÓN INFERIOR
========================================================= */

.faq-mobile-navigation {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .faq-hero {
        min-height: 400px;
    }

    .faq-container,
    .faq-hero-content {
        width:
            min(
                100% - 48px,
                760px
            );
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .faq-page {
        padding-bottom: 82px;
    }


    /* =====================================================
       HERO — MÓVIL
       TEXTO DENTRO DE LA IMAGEN
    ===================================================== */

    .faq-hero {
        position: relative;

        width: 100%;
        height: 390px;

        overflow: hidden;
    }


    /* -----------------------------------------------------
       IMAGEN
    ----------------------------------------------------- */

    .faq-hero-image {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;
    }

    .faq-hero-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    /* -----------------------------------------------------
       OVERLAY
    ----------------------------------------------------- */

    .faq-hero-overlay {
        position: absolute;

        inset: 0;

        z-index: 1;

        background:
            linear-gradient(
                to bottom,
                rgba(247, 240, 232, 0.00) 20%,
                rgba(247, 240, 232, 0.10) 42%,
                rgba(247, 240, 232, 0.78) 72%,
                rgba(247, 240, 232, 0.98) 100%
            );
    }


    /* -----------------------------------------------------
       CONTENIDO — DENTRO DEL HERO
    ----------------------------------------------------- */

    .faq-hero-content {
        position: absolute;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 2;

        width: 100%;

        padding:
            0 28px 32px;

        box-sizing: border-box;

        text-align: left;
    }


    /* -----------------------------------------------------
       EYEBROW
    ----------------------------------------------------- */

    .faq-eyebrow {
        display: block;

        margin-bottom: 10px;

        font-size: 9px;

        line-height: 1.2;

        letter-spacing: 0.17em;
    }


    /* -----------------------------------------------------
       TÍTULO
    ----------------------------------------------------- */

    .faq-hero-content h1 {
        margin: 0;

        max-width: 340px;

        font-size: 42px;

        line-height: 0.98;

        letter-spacing: -0.03em;
    }


    /* -----------------------------------------------------
       LÍNEA
    ----------------------------------------------------- */

    .faq-title-line {
        display: block;

        width: 64px;
        height: 2px;

        margin:
            18px 0 16px;
    }


    /* -----------------------------------------------------
       DESCRIPCIÓN
    ----------------------------------------------------- */

    .faq-hero-content p {
        max-width: 320px;

        margin: 0;

        font-size: 12px;

        line-height: 1.55;
    }


    /* CONTENT */

    .faq-content {
        padding:
            28px 0 35px;
    }

    .faq-container {
        width: calc(100% - 28px);
        margin: 0 auto;
    }

    .faq-grid {
        display: block;
    }

    .faq-column {
        gap: 8px;
    }

    .faq-column + .faq-column {
        margin-top: 8px;
    }


    /* ITEMS */

    .faq-item {
        border-radius: 12px;
    }

    .faq-question {
    min-height: 56px;

    padding:
        15px 16px;

    font-size: 13px;

    line-height: 1.4;

    gap: 12px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;

        font-size: 18px;
    }

    .faq-answer {
        padding:
            0 16px 16px;
    }

    .faq-answer p {
        font-size: 10px;
        line-height: 1.6;
    }


    /* SUPPORT */

    .faq-support {
        margin-top: 18px;

        padding:
            18px;

        display: grid;

        grid-template-columns:
            auto
            minmax(0, 1fr);

        gap: 12px;
    }

    .faq-support-icon {
        width: 42px;
        height: 42px;

        font-size: 24px;
    }

    .faq-support-content h2 {
        font-size: 17px;
    }

    .faq-support-content p {
        font-size: 10px;
    }

    .faq-support-button {
        grid-column: 1 / -1;

        width: 100%;

        min-height: 42px;

        font-size: 11px;
    }


    /* BOTTOM NAV */

    .faq-mobile-navigation {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 99999;

        height: 82px;

        padding:
            7px 10px
            calc(
                7px +
                env(safe-area-inset-bottom)
            );

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        border-top:
            1px solid
            rgba(91, 63, 51, .12);

        background:
            rgba(255, 250, 245, .97);

        backdrop-filter:
            blur(12px);
    }

    .faq-mobile-navigation
    .mobile-bottom-link {
        min-height: 68px;

        display: flex;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        gap: 3px;

        color: #6d5a51;

        text-decoration: none;

        font-size: 10px;
        font-weight: 600;
    }

    .faq-mobile-navigation
    .mobile-bottom-icon {
        width: 42px;
        height: 42px;

        display: flex;

        align-items: center;
        justify-content: center;

        margin-bottom: 1px;

        border-radius: 50%;

        font-size: 23px;

        color: #6d5a51;
    }

    .faq-mobile-navigation
    .mobile-bottom-icon img {
        width: 25px;
        height: 25px;

        object-fit: contain;
    }

    .faq-mobile-navigation
    .mobile-bottom-link.active {
        color: #8f5947;
    }

    .faq-mobile-navigation
    .mobile-bottom-link.active
    .mobile-bottom-icon {
        background: #ead9cc;
        color: #8f5947;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    .faq-hero {
        min-height: 500px;
    }

    .faq-hero h1 {
        font-size: 42px;
    }

    .faq-container {
        width:
            calc(100% - 22px);
    }

}
