/* =========================================================
   PLANETA SAS ESP
   COMPONENT: SEO CTA
   ========================================================= */

.SeoCta {
    position: relative;

    width: calc(100% - 48px);
    min-height: clamp(430px, 35vw, 590px);

    margin: 0 auto;

    overflow: hidden;

    border-radius: 30px;

    background: #063d31;

    isolation: isolate;
}


/* =========================================================
   MEDIA
   ========================================================= */

.SeoCta__Media {
    position: absolute;
    inset: 0;

    z-index: -3;
}


.SeoCta__Media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
     * Protegemos principalmente la zona central/derecha
     * donde se encuentra el contexto operativo.
     */
    object-position: center center;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.SeoCta__Overlay {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(4, 55, 43, 0.98) 0%,
            rgba(4, 55, 43, 0.95) 22%,
            rgba(4, 55, 43, 0.76) 35%,
            rgba(4, 55, 43, 0.18) 58%,
            rgba(4, 55, 43, 0.05) 100%
        );
}


/* =========================================================
   CONTAINER
   ========================================================= */

.SeoCta__Container {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(340px, 0.8fr)
        minmax(420px, 1.2fr);

    align-items: center;

    width: 100%;
    min-height: inherit;

    padding:
        clamp(55px, 6vw, 90px)
        clamp(55px, 6vw, 110px);

    box-sizing: border-box;
}


/* =========================================================
   CONTENT
   ========================================================= */

.SeoCta__Content {
    width: min(480px, 100%);
}


/* =========================================================
   TITLE
   ========================================================= */

.SeoCta__Title {
    margin:
        0
        0
        24px;

    color: #ffffff;

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(42px, 4vw, 68px);

    font-weight: 700;

    line-height: 1.02;

    letter-spacing: -0.04em;
}


.SeoCta__Title span {
    display: block;

    color: #63c83b;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.SeoCta__Description {
    max-width: 410px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.90);

    font-family:
        "Work Sans",
        sans-serif;

    font-size:
        clamp(16px, 1.25vw, 20px);

    font-weight: 400;

    line-height: 1.5;
}


/* =========================================================
   ACCENT
   ========================================================= */

.SeoCta__Accent {
    display: block;

    width: 76px;
    height: 5px;

    margin-top: 32px;

    border-radius: 999px;

    background: #63c83b;
}


/* =========================================================
   ACTION
   ========================================================= */

.SeoCta__Action {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    padding-top: 20px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.SeoCta__Button,
.SeoCta__Button:link,
.SeoCta__Button:visited {
    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    gap: 34px;

    min-width: 310px;

    padding:
        20px
        30px;

    border: 0;
    border-radius: 999px;

    background: #59c83a;

    color: #ffffff;

    font-family:
        "Work Sans",
        sans-serif;

    font-size: 18px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    box-shadow:
        0 16px 35px
        rgba(19, 91, 38, 0.22);

    transition:
        transform 250ms ease,
        background-color 250ms ease,
        box-shadow 250ms ease,
        color 250ms ease;
}

.SeoCta__Button span,
.SeoCta__Button:link span,
.SeoCta__Button:visited span {
    color: #ffffff;
}

.SeoCta__Arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 30px;

    font-weight: 300;

    line-height: 0.7;

    transition:
        transform 250ms ease;
}


.SeoCta__Arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 30px;

    font-weight: 300;

    line-height: 0.7;

    transition:
        transform 250ms ease;
}


/* =========================================================
   INTERACTION
   ========================================================= */

@media (hover: hover) {

    .SeoCta__Button:hover {
        transform: translateY(-3px);

        background: #4db72f;

        color: #ffffff;

        box-shadow:
            0 20px 42px
            rgba(19, 91, 38, 0.30);
    }


    .SeoCta__Button:hover span {
        color: #ffffff;
    }


    .SeoCta__Button:hover
    .SeoCta__Arrow {
        transform: translateX(5px);
    }
}


.SeoCta__Button:focus-visible {
    outline:
        3px solid
        rgba(255, 255, 255, 0.95);

    outline-offset: 4px;
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1450px) {

    .SeoCta {
        width:
            calc(100% - 40px);
    }


    .SeoCta__Container {
        padding:
            60px
            var(--lap-px);
    }


    .SeoCta__Button {
        min-width: 280px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .SeoCta {
        width:
            calc(100% - 32px);

        min-height: 520px;
    }


    .SeoCta__Container {
        grid-template-columns:
            minmax(300px, 0.9fr)
            minmax(300px, 1.1fr);

        padding:
            55px
            var(--tab-px);
    }


    .SeoCta__Title {
        font-size:
            clamp(38px, 6vw, 54px);
    }


    .SeoCta__Button {
        min-width: 0;

        padding:
            18px
            24px;

        font-size: 16px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .SeoCta {
        width:
            calc(100% - 24px);

        min-height: 620px;

        margin: 0 auto;
        

        border-radius: 24px;
    }


    .SeoCta__Media img {
        object-position: 62% center;
    }


    .SeoCta__Overlay {
        background:
            linear-gradient(
                180deg,
                rgba(4, 55, 43, 0.96) 0%,
                rgba(4, 55, 43, 0.86) 42%,
                rgba(4, 55, 43, 0.28) 72%,
                rgba(4, 55, 43, 0.22) 100%
            );
    }


    .SeoCta__Container {
        display: flex;

        flex-direction: column;

        align-items: stretch;
        justify-content: space-between;

        padding:
            44px
            24px
            30px;
    }


    .SeoCta__Content {
        width: 100%;
    }


    .SeoCta__Title {
        margin-bottom: 18px;

        font-size:
            clamp(36px, 10vw, 48px);

        line-height: 1.02;
    }


    .SeoCta__Description {
        max-width: 340px;

        font-size: 15px;

        line-height: 1.45;
    }


    .SeoCta__Accent {
        width: 58px;
        height: 4px;

        margin-top: 24px;
    }


    .SeoCta__Action {
        width: 100%;

        padding: 0;
    }


    .SeoCta__Button {
        width: 100%;
        min-width: 0;

        box-sizing: border-box;

        padding:
            19px
            24px;

        font-size: 16px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .SeoCta__Button,
    .SeoCta__Arrow {
        transition: none;
    }

}