/* =========================================================
   PLANETA SAS ESP
   COMPONENT: SEO SERVICE VIDEO
   ========================================================= */

.SeoServiceVideo {
    position: relative;

    display: flex;
    align-items: flex-end;

    width: 100%;
    min-height: clamp(650px, 56.25vw, 900px);

    margin: 0;

    overflow: hidden;

    background: #163b20;

    color: #ffffff;

    isolation: isolate;
}


/* =========================================================
   MEDIA / PORTADA
   ========================================================= */

.SeoServiceVideo__Media {
    position: absolute;
    inset: 0;

    z-index: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background-image:
        url("../../../../Servicios/Recursos/Tanques/portada-video-empresa-tanques.jpg");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* =========================================================
   VIDEO
   ========================================================= */

.SeoServiceVideo__Video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    transition:
        opacity 350ms ease;
}


.SeoServiceVideo__Video--desktop {
    display: block;
}


.SeoServiceVideo__Video--mobile {
    display: none;
}


/* Cuando el video está reproduciéndose */

.SeoServiceVideo.is-playing
.SeoServiceVideo__Video--desktop {
    opacity: 1;
}


/* =========================================================
   OVERLAY VERDE
   ========================================================= */

.SeoServiceVideo__Overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(13, 118, 55, 0.62) 0%,
            rgba(13, 118, 55, 0.64) 45%,
            rgba(10, 92, 42, 0.82) 100%
        );
}


/* =========================================================
   BOTÓN PLAY
   ========================================================= */

.SeoServiceVideo__Play {
    position: absolute;

    top: 40%;
    left: 50%;

    z-index: 4;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 94px;
    height: 94px;

    margin: 0;
    padding: 0;

    border:
        11px solid
        rgba(30, 201, 104, 0.82);

    border-radius: 50%;

    background: #ffffff;

    appearance: none;

    cursor: pointer;

    transform:
        translate(-50%, -50%);

    box-shadow:
        0
        12px
        35px
        rgba(0, 0, 0, 0.18);

    transition:
        transform 250ms ease,
        opacity 250ms ease,
        box-shadow 250ms ease;
}


.SeoServiceVideo__Play:hover {
    transform:
        translate(-50%, -50%)
        scale(1.06);

    box-shadow:
        0
        16px
        45px
        rgba(0, 0, 0, 0.25);
}


.SeoServiceVideo__Play:focus-visible {
    outline:
        3px solid
        #ffffff;

    outline-offset: 5px;
}


/* =========================================================
   TRIÁNGULO PLAY
   ========================================================= */

.SeoServiceVideo__PlayIcon {
    display: block;

    width: 0;
    height: 0;

    margin-left: 7px;

    border-top:
        14px solid transparent;

    border-bottom:
        14px solid transparent;

    border-left:
        22px solid #18a950;
}


/* =========================================================
   ESTADO REPRODUCIENDO
   ========================================================= */

.SeoServiceVideo.is-playing
.SeoServiceVideo__Play {
    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.SeoServiceVideo__Container {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.35fr);

    gap:
        clamp(45px, 6vw, 90px);

    width: 100%;

    padding:
        0
        var(--px-fluid)
        clamp(55px, 6vw, 90px);

    box-sizing: border-box;
}


/* =========================================================
   INTRO
   ========================================================= */

.SeoServiceVideo__Intro {
    padding-right:
        clamp(25px, 4vw, 60px);

    border-right:
        1px solid
        rgba(255, 255, 255, 0.40);
}


.SeoServiceVideo__Intro h2 {
    margin:
        0
        0
        24px;

    color: #ffffff;

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(32px, 3vw, 48px);

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -0.035em;
}


.SeoServiceVideo__Intro p {
    max-width: 570px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.94);

    font-family:
        "Work Sans",
        sans-serif;

    font-size:
        clamp(16px, 1.25vw, 20px);

    font-weight: 500;

    line-height: 1.35;
}


/* =========================================================
   STEPS
   ========================================================= */

.SeoServiceVideo__Steps {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-content: end;

    gap:
        24px
        40px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.SeoServiceVideo__Steps li {
    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    color: #ffffff;

    font-family:
        "Work Sans",
        sans-serif;

    font-size:
        clamp(15px, 1.15vw, 19px);

    font-weight: 400;

    line-height: 1.25;
}


.SeoServiceVideo__Steps li span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border:
        2px solid
        rgba(255, 255, 255, 0.90);

    border-radius: 6px;

    color: #8ee43f;

    font-size: 20px;

    line-height: 1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .SeoServiceVideo {
        min-height: 760px;
    }


    .SeoServiceVideo__Container {
        padding-inline:
            var(--tab-px);

        gap: 40px;
    }


    .SeoServiceVideo__Steps {
        gap:
            20px
            24px;
    }

}


/* =========================================================
   MOBILE - 9:16
   ========================================================= */

@media (max-width: 700px) {

    .SeoServiceVideo {
        min-height: 900px;
    }


    /* Portada vertical */

    .SeoServiceVideo__Media {
        background-image:
            url("../../../../Servicios/Recursos/Tanques/portada-video-empresa-tanques-mobile.jpg");

        background-position: center;
    }


    .SeoServiceVideo__Video--desktop {
        display: none;
    }


    .SeoServiceVideo__Video--mobile {
        display: block;
    }


    .SeoServiceVideo.is-playing
    .SeoServiceVideo__Video--desktop {
        opacity: 0;
    }


    .SeoServiceVideo.is-playing
    .SeoServiceVideo__Video--mobile {
        opacity: 1;
    }


    .SeoServiceVideo__Overlay {
        background:
            linear-gradient(
                180deg,
                rgba(13, 118, 55, 0.48) 0%,
                rgba(13, 118, 55, 0.64) 42%,
                rgba(8, 70, 31, 0.94) 100%
            );
    }


    /* PLAY */

    .SeoServiceVideo__Play {
        top: 27%;

        width: 78px;
        height: 78px;

        border-width: 9px;
    }


    .SeoServiceVideo__PlayIcon {
        margin-left: 5px;

        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 18px;
    }


    /* CONTENT */

    .SeoServiceVideo__Container {
        display: flex;

        flex-direction: column;

        gap: 30px;

        padding:
            0
            20px
            46px;
    }


    .SeoServiceVideo__Intro {
        padding: 0;

        border: 0;
    }


    .SeoServiceVideo__Intro h2 {
        margin-bottom: 16px;

        font-size:
            clamp(30px, 8.5vw, 40px);

        line-height: 1.04;
    }


    .SeoServiceVideo__Intro p {
        font-size: 15px;

        line-height: 1.4;
    }


    .SeoServiceVideo__Steps {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .SeoServiceVideo__Steps li {
        grid-template-columns:
            30px
            minmax(0, 1fr);

        gap: 10px;

        font-size: 14px;
    }


    .SeoServiceVideo__Steps li span {
        width: 27px;
        height: 27px;

        font-size: 18px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .SeoServiceVideo__Video,
    .SeoServiceVideo__Play {
        transition: none;
    }

}