/* =========================================================
   PROACRÍLICOS
   COMPONENT: STAND FAQ
   ========================================================= */

.proa-stand-faq {
    width: 100%;

    margin: 0;

    padding:
        clamp(90px, 9vw, 150px)
        clamp(24px, 5vw, 64px);

    background: #f6faf0;

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.proa-stand-faq__container {
    width: min(100%, 1240px);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.proa-stand-faq__header {
    max-width: 900px;

    margin-bottom:
        clamp(45px, 5vw, 70px);
}


/* =========================================================
   EYEBROW
   ========================================================= */

.proa-stand-faq__eyebrow {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    min-height: 34px;

    margin:
        0
        0
        22px;

    padding:
        7px
        14px;

    border-radius: 999px;

    background: #076e49;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   TITLE
   ========================================================= */

.proa-stand-faq__title {
    max-width: 820px;

    margin: 0;

    color: #030704;

    font-size:
        clamp(32px, 3.2vw, 46px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -0.035em;

    text-wrap: balance;
}


/* =========================================================
   INTRO
   ========================================================= */

.proa-stand-faq__intro {
    max-width: 720px;

    margin:
        22px
        0
        0;

    color: #4b5563;

    font-size:
        clamp(15px, 1.15vw, 18px);

    line-height: 1.65;
}


/* =========================================================
   FAQ LIST
   ========================================================= */

.proa-stand-faq__list {
    width: 100%;

    border-top:
        1px solid
        rgba(7, 110, 73, 0.20);
}


/* =========================================================
   ITEM
   ========================================================= */

.proa-stand-faq__item {
    width: 100%;

    margin: 0;

    border-bottom:
        1px solid
        rgba(7, 110, 73, 0.20);

    background: transparent;
}


/* Eliminar marcador nativo */

.proa-stand-faq__question {
    list-style: none;
}


.proa-stand-faq__question::-webkit-details-marker {
    display: none;
}


/* =========================================================
   QUESTION
   ========================================================= */

.proa-stand-faq__question {
    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr)
        42px;

    align-items: center;

    gap: 20px;

    min-height: 94px;

    padding:
        26px
        4px;

    color: #030704;

    font-size:
        clamp(19px, 1.65vw, 25px);

    font-weight: 700;

    line-height: 1.22;

    cursor: pointer;

    transition:
        color 250ms ease,
        padding-bottom 450ms cubic-bezier(0.22, 1, 0.36, 1);
}


.proa-stand-faq__question:hover {
    color: #076e49;
}


/* =========================================================
   NUMBER
   ========================================================= */

.proa-stand-faq__number {
    color: #076e49;

    font-size: 12px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.08em;
}


/* =========================================================
   QUESTION TEXT
   ========================================================= */

.proa-stand-faq__question-text {
    min-width: 0;
}


/* =========================================================
   + / -
   ========================================================= */

.proa-stand-faq__icon {
    position: relative;

    display: block;

    width: 28px;
    height: 28px;

    justify-self: end;
}


.proa-stand-faq__icon::before,
.proa-stand-faq__icon::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 999px;

    background: #076e49;

    transform:
        translate(-50%, -50%);

    transition:
        transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 300ms ease,
        background-color 300ms ease;
}


/* Horizontal */

.proa-stand-faq__icon::before {
    width: 24px;
    height: 3px;
}


/* Vertical */

.proa-stand-faq__icon::after {
    width: 3px;
    height: 24px;
}


/* =========================================================
   OPEN QUESTION
   ========================================================= */

.proa-stand-faq__item[open]
.proa-stand-faq__question {
    color: #076e49;

    padding-bottom: 14px;
}


.proa-stand-faq__item[open]
.proa-stand-faq__icon::after {
    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(90deg);
}


.proa-stand-faq__item[open]
.proa-stand-faq__icon::before {
    background: #14d92f;
}


/* =========================================================
   ANSWER
   ========================================================= */

.proa-stand-faq__answer {
    display: grid;

    grid-template-rows: 0fr;

    max-width: 950px;

    padding:
        0
        70px
        0
        68px;

    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);
}


/* Esta capa permite la animación 0fr → 1fr */

.proa-stand-faq__answer-inner {
    min-height: 0;

    overflow: hidden;
}


/* =========================================================
   ANSWER TEXT
   ========================================================= */

.proa-stand-faq__answer p {
    margin:
        0
        0
        14px;

    color: #4b5563;

    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);
}


.proa-stand-faq__answer p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   OPEN ANSWER
   ========================================================= */

.proa-stand-faq__item[open]
.proa-stand-faq__answer {
    grid-template-rows: 1fr;

    padding-bottom: 32px;

    opacity: 1;
}


.proa-stand-faq__item[open]
.proa-stand-faq__answer p {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   FOCUS / ACCESSIBILITY
   ========================================================= */

.proa-stand-faq__question:focus-visible {
    outline:
        2px solid
        #14d92f;

    outline-offset: 5px;

    border-radius: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .proa-stand-faq {
        padding:
            80px
            32px;
    }


    .proa-stand-faq__header {
        margin-bottom: 55px;
    }


    .proa-stand-faq__question {
        min-height: 86px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .proa-stand-faq {
        padding:
            64px
            20px;
    }


    .proa-stand-faq__header {
        margin-bottom: 42px;
    }


    .proa-stand-faq__eyebrow {
        margin-bottom: 18px;

        font-size: 12px;
    }


    .proa-stand-faq__title {
        font-size:
            clamp(27px, 7.5vw, 34px);

        line-height: 1.08;
    }


    .proa-stand-faq__intro {
        margin-top: 18px;

        font-size: 15px;

        line-height: 1.6;
    }


    /* QUESTION */

    .proa-stand-faq__question {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            30px;

        gap: 12px;

        min-height: 78px;

        padding:
            22px
            0;

        font-size:
            clamp(17px, 5vw, 20px);

        line-height: 1.25;
    }


    .proa-stand-faq__number {
        font-size: 10px;
    }


    /* TOGGLE */

    .proa-stand-faq__icon {
        width: 24px;
        height: 24px;
    }


    .proa-stand-faq__icon::before {
        width: 20px;
        height: 2px;
    }


    .proa-stand-faq__icon::after {
        width: 2px;
        height: 20px;
    }


    /* ANSWER */

    .proa-stand-faq__answer {
        max-width: none;

        padding:
            0
            40px
            0
            42px;
    }


    .proa-stand-faq__answer p {
        font-size: 15px;

        line-height: 1.6;
    }


    .proa-stand-faq__item[open]
    .proa-stand-faq__answer {
        padding-bottom: 26px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .proa-stand-faq__question,
    .proa-stand-faq__icon::before,
    .proa-stand-faq__icon::after,
    .proa-stand-faq__answer,
    .proa-stand-faq__answer p {
        transition: none;
    }

}