/* =========================================================
   PLANETA SAS ESP
   COMPONENT: SEO FAQ
   ========================================================= */

.SeoFaq {
    width: 100%;

    margin: 0;

    padding:
        clamp(90px, 9vw, 150px)
        var(--px-fluid);

    background: #f4f8f1;

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.SeoFaq__Container {
    width: min(100%, 1240px);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.SeoFaq__Header {
    max-width: 900px;

    margin-bottom:
        clamp(45px, 5vw, 70px);
}



.SeoFaq__Eyebrow {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    min-height: 34px;

    margin:
        0
        0
        22px;

    padding:
        7px
        14px;

    border-radius: 999px;

    background: #177d89;

    color: #ffffff;

    font-family:
        "Work Sans",
        sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1;
}



.SeoFaq__Header h2 {
    margin: 0;

    color: #292929;

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(32px, 3.2vw, 46px);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.035em;
}


.SeoFaq__Header h2 span {
    color: #38951f;
}


/* =========================================================
   FAQ LIST
   ========================================================= */

.SeoFaq__List {
    width: 100%;

    border-top:
        1px solid
        rgba(23, 125, 137, 0.22);
}


/* =========================================================
   ITEM
   ========================================================= */

.SeoFaq__Item {
    width: 100%;

    margin: 0;

    border-bottom:
        1px solid
        rgba(23, 125, 137, 0.22);

    background: transparent;
}


/* Elimina marcador nativo */

.SeoFaq__Question {
    list-style: none;
}


.SeoFaq__Question::-webkit-details-marker {
    display: none;
}


/* =========================================================
   QUESTION
   ========================================================= */

.SeoFaq__Question {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        42px;

    align-items: center;

    gap: 30px;

    min-height: 94px;

    padding:
        26px
        4px;

    color: #292929;

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(19px, 1.65vw, 25px);

    font-weight: 600;

    line-height: 1.22;

    cursor: pointer;

    transition:
        color 250ms ease;
}


.SeoFaq__Question:hover {
    color: #38951f;
}


/* =========================================================
   + / -
   ========================================================= */

.SeoFaq__Toggle {
    position: relative;

    display: block;

    width: 28px;
    height: 28px;

    justify-self: end;
}


.SeoFaq__Toggle::before,
.SeoFaq__Toggle::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 999px;

    background: #177d89;

    transform:
        translate(-50%, -50%);

    transition:
        transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 300ms ease,
        background-color 300ms ease;
}


/* Línea horizontal */

.SeoFaq__Toggle::before {
    width: 24px;
    height: 3px;
}


/* Línea vertical */

.SeoFaq__Toggle::after {
    width: 3px;
    height: 24px;
}


/* Al abrir: + se convierte en - */

.SeoFaq__Item[open]
.SeoFaq__Toggle::after {
    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(90deg);
}


.SeoFaq__Item[open]
.SeoFaq__Toggle::before {
    background: #38951f;
}


/* =========================================================
   OPEN QUESTION
   ========================================================= */

.SeoFaq__Item[open]
.SeoFaq__Question {
    color: #38951f;

    padding-bottom: 14px;
}


/* =========================================================
   ANSWER
   ========================================================= */

.SeoFaq__Answer {
    display: grid;

    grid-template-rows: 0fr;

    max-width: 900px;

    padding:
        0
        70px
        0
        4px;

    opacity: 0;

    transition:
        grid-template-rows 550ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 400ms ease,
        padding-bottom 550ms cubic-bezier(0.22, 1, 0.36, 1);
}


.SeoFaq__AnswerInner {
    min-height: 0;

    overflow: hidden;
}


.SeoFaq__Answer p {
    margin: 0;

    color: #555555;

    font-family:
        "Work Sans",
        sans-serif;

    font-size:
        clamp(15px, 1.15vw, 18px);

    font-weight: 400;

    line-height: 1.65;

    opacity: 0;

    transform: translateY(-10px);

    transition:
        opacity 350ms ease 80ms,
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   OPEN
   ========================================================= */

.SeoFaq__Item[open]
.SeoFaq__Answer {
    grid-template-rows: 1fr;

    padding-bottom: 32px;

    opacity: 1;
}


.SeoFaq__Item[open]
.SeoFaq__Answer p {
    opacity: 1;

    transform: translateY(0);
}

/* =========================================================
   FOCUS / ACCESSIBILITY
   ========================================================= */

.SeoFaq__Question:focus-visible {
    outline:
        2px solid
        #38951f;

    outline-offset: 5px;

    border-radius: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .SeoFaq {
        padding:
            80px
            var(--tab-px);
    }


    .SeoFaq__Header {
        margin-bottom: 55px;
    }


    .SeoFaq__Question {
        min-height: 86px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .SeoFaq {
        padding:
            64px
            20px;
    }


    .SeoFaq__Header {
        margin-bottom: 42px;
    }


    .SeoFaq__Eyebrow {
        margin-bottom: 18px;

        font-size: 12px;
    }


    .SeoFaq__Header h2 {
        font-size:
            clamp(27px, 7.5vw, 34px);

        line-height: 1.08;
    }


    .SeoFaq__Question {
        grid-template-columns:
            minmax(0, 1fr)
            30px;

        gap: 18px;

        min-height: 78px;

        padding:
            22px
            0;

        font-size:
            clamp(17px, 5vw, 20px);

        line-height: 1.25;
    }


    .SeoFaq__Toggle {
        width: 24px;
        height: 24px;
    }


    .SeoFaq__Toggle::before {
        width: 20px;
        height: 2px;
    }


    .SeoFaq__Toggle::after {
        width: 2px;
        height: 20px;
    }


      .SeoFaq__Answer {
        max-width: none;

        padding:
            0
            40px
            0
            0;
    }


    .SeoFaq__Answer p {
        font-size: 15px;

        line-height: 1.55;
    }

    .SeoFaq__Item[open]
    .SeoFaq__Answer {
        padding-bottom: 26px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .SeoFaq__Question,
    .SeoFaq__Toggle::before,
    .SeoFaq__Toggle::after {
        transition: none;
    }

}