/* ================================================================
   PLANETA SAS ESP
   COMPONENT: SEO VACTOR VIDEO
   ================================================================ */

.VactorVideo {
    position: relative;

    display: flex;
    align-items: flex-end;

    width: 100%;
    min-height: clamp(680px, 56.25vw, 920px);

    margin: 0;

    overflow: hidden;

    background: #102b13;
    color: #ffffff;

    isolation: isolate;
}


/* ================================================================
   MEDIA
   ================================================================ */

.VactorVideo__Media {
    position: absolute;
    inset: 0;

    z-index: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #102b13;
}


/* ================================================================
   POSTER
   ================================================================ */

.VactorVideo__Poster {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    opacity: 1;

    transition:
        opacity 350ms ease,
        visibility 350ms ease;
}

.VactorVideo__Poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.01);
}


/* ================================================================
   VIDEO
   ================================================================ */

.VactorVideo__Video {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #081c0b;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    pointer-events: none;

    transition: opacity 400ms ease;
}


.VactorVideo__Video--desktop {
    display: block;
}


.VactorVideo__Video--mobile {
    display: none;
}


/* ================================================================
   ESTADO REPRODUCIENDO
   ================================================================ */

.VactorVideo.is-playing
.VactorVideo__Poster {
    opacity: 0;

    visibility: hidden;
}


.VactorVideo.is-playing
.VactorVideo__Video--desktop {
    opacity: 1;

    pointer-events: auto;
}


/* ================================================================
   OVERLAY
   ================================================================ */

.VactorVideo__Overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(7, 43, 17, 0.90) 0%,
            rgba(10, 66, 28, 0.72) 38%,
            rgba(10, 74, 31, 0.42) 68%,
            rgba(9, 58, 24, 0.32) 100%
        ),
        linear-gradient(
            180deg,
            rgba(7, 35, 14, 0.08) 0%,
            rgba(7, 35, 14, 0.16) 50%,
            rgba(5, 31, 12, 0.78) 100%
        );

    transition: opacity 350ms ease;
}


/*
   Durante la reproducción reducimos el overlay
   para que el video tenga mayor protagonismo.
*/

.VactorVideo.is-playing
.VactorVideo__Overlay {
    opacity: 0.34;
}


/* ================================================================
   BOTÓN PLAY
   ================================================================ */

.VactorVideo__Play {
    position: absolute;

    top: 38%;
    left: 70%;

    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 96px;
    height: 96px;

    margin: 0;
    padding: 0;

    border:
        10px solid
        rgba(141, 242, 31, 0.28);

    border-radius: 50%;

    background: #ffffff;

    appearance: none;

    cursor: pointer;

    transform:
        translate(-50%, -50%);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.24);

    transition:
        transform 220ms ease,
        opacity 220ms ease,
        box-shadow 220ms ease;
}


.VactorVideo__Play:hover {
    transform:
        translate(-50%, -50%)
        scale(1.07);

    box-shadow:
        0 22px 55px
        rgba(0, 0, 0, 0.32);
}


.VactorVideo__Play:focus-visible {
    outline: 3px solid #8df21f;
    outline-offset: 6px;
}


/* ================================================================
   ICONO PLAY
   ================================================================ */

.VactorVideo__PlayIcon {
    display: block;

    width: 0;
    height: 0;

    margin-left: 7px;

    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 23px solid #38951f;
}


/* Ocultar play durante reproducción */

.VactorVideo.is-playing
.VactorVideo__Play {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* ================================================================
   CONTAINER
   ================================================================ */

.VactorVideo__Container {
    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.05fr);

    align-items: end;

    gap: clamp(50px, 7vw, 100px);

    width: min(100%, 1400px);

    margin: 0 auto;

    padding:
        0
        var(--px-fluid)
        clamp(55px, 6vw, 90px);

    box-sizing: border-box;

    transition:
        opacity 300ms ease,
        transform 300ms ease;
}


/* ================================================================
   INTRO
   ================================================================ */

.VactorVideo__Intro {
    max-width: 620px;

    padding-right:
        clamp(25px, 4vw, 60px);

    border-right:
        1px solid
        rgba(255, 255, 255, 0.30);
}


/* Eyebrow */

.VactorVideo__Eyebrow {
    margin: 0 0 16px;

    color: #8df21f;

    font-family:
        "Work Sans",
        sans-serif;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* H2 */

.VactorVideo__Intro h2 {
    max-width: 620px;

    margin: 0 0 22px;

    color: #ffffff;

    font-family:
        "Montserrat",
        sans-serif;

    font-size:
        clamp(36px, 3.5vw, 54px);

    font-weight: 700;

    line-height: 1.03;

    letter-spacing: -0.04em;
}


.VactorVideo__Intro h2 span {
    color: #8df21f;
}


/* Descripción */

.VactorVideo__Description {
    max-width: 570px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.88);

    font-family:
        "Work Sans",
        sans-serif;

    font-size:
        clamp(16px, 1.15vw, 19px);

    font-weight: 400;

    line-height: 1.55;
}


/* ================================================================
   FEATURES
   ================================================================ */

.VactorVideo__Features {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-content: end;

    gap:
        24px
        32px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.VactorVideo__Features li {
    grid-template-columns:
        34px
        minmax(0, 1fr);

    align-items: center;

    gap: 13px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.92);

    font-family:
        "Work Sans",
        sans-serif;

    font-size:
        clamp(14px, 1vw, 17px);

    font-weight: 500;

    line-height: 1.35;
}


/* Número */
/* ================================================================
   CHECK
   ================================================================ */

.VactorVideo__Check {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border:
        1px solid
        rgba(141, 242, 31, 0.55);

    border-radius: 50%;

    background:
        rgba(141, 242, 31, 0.10);

    flex: 0 0 auto;
}


.VactorVideo__Check::before {
    content: "";

    width: 10px;
    height: 5px;

    border-left:
        2px solid #8df21f;

    border-bottom:
        2px solid #8df21f;

    transform:
        translateY(-1px)
        rotate(-45deg);
}


/* ================================================================
   ESTADO REPRODUCIENDO — CONTENIDO
   ================================================================ */

/*
   Dejamos visible el contenido inicialmente.
   Cuando el usuario reproduce el video lo ocultamos para que pueda
   observar la operación completa sin texto encima.
*/

.VactorVideo.is-playing
.VactorVideo__Container {
    opacity: 0;

    transform: translateY(15px);

    pointer-events: none;
}

/* ================================================================
   CONTROL DE VOLUMEN
   ================================================================ */

.VactorVideo__Volume {
    position: absolute;

    top: 28px;
    right: var(--px-fluid);

    z-index: 5;

    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 44px;

    padding:
        10px
        16px;

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    border-radius: 999px;

    background:
        rgba(7, 35, 14, 0.55);

    color: #ffffff;

    font-family:
        "Work Sans",
        sans-serif;

    font-size: 13px;
    font-weight: 500;

    line-height: 1;

    appearance: none;

    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}


.VactorVideo__Volume:hover {
    background:
        rgba(7, 35, 14, 0.82);

    border-color:
        rgba(141, 242, 31, 0.65);

    transform:
        translateY(-2px);
}


.VactorVideo__Volume:focus-visible {
    outline:
        3px solid
        #8df21f;

    outline-offset: 4px;
}


/* ================================================================
   ICONO VOLUMEN
   ================================================================ */

.VactorVideo__VolumeIcon {
    position: relative;

    display: block;

    width: 22px;
    height: 20px;

    flex: 0 0 auto;
}


.VactorVideo__Speaker::before {
    content: "";

    position: absolute;

    top: 6px;
    left: 0;

    width: 7px;
    height: 8px;

    border-radius:
        2px
        0
        0
        2px;

    background: #ffffff;
}


.VactorVideo__Speaker::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 5px;

    width: 0;
    height: 0;

    border-top:
        7px solid transparent;

    border-bottom:
        7px solid transparent;

    border-right:
        9px solid #ffffff;
}


/* X cuando está silenciado */

.VactorVideo__MuteLine::before,
.VactorVideo__MuteLine::after {
    content: "";

    position: absolute;

    top: 9px;
    right: 0;

    width: 9px;
    height: 2px;

    border-radius: 2px;

    background: #8df21f;
}


.VactorVideo__MuteLine::before {
    transform: rotate(45deg);
}


.VactorVideo__MuteLine::after {
    transform: rotate(-45deg);
}


/* Con sonido ocultamos la X */

.VactorVideo.is-unmuted
.VactorVideo__MuteLine {
    display: none;
}


/* Indicador de sonido activo */

.VactorVideo.is-unmuted
.VactorVideo__Volume {
    border-color:
        rgba(141, 242, 31, 0.65);

    background:
        rgba(18, 87, 35, 0.78);
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 700px) {

    .VactorVideo__Volume {
        top: 18px;
        right: 18px;

        min-height: 42px;

        padding:
            9px
            12px;
    }


    .VactorVideo__VolumeText {
        display: none;
    }

}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 1024px) {

    .VactorVideo {
        min-height: 780px;
    }


    .VactorVideo__Container {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(0, 1.05fr);

        gap: 45px;

        padding-inline:
            var(--tab-px);
    }


    .VactorVideo__Play {
        left: 72%;

        width: 86px;
        height: 86px;

        border-width: 9px;
    }


    .VactorVideo__Features {
        gap:
            20px
            22px;
    }

}


/* ================================================================
   MOBILE — 9:16
   ================================================================ */

@media (max-width: 700px) {

    .VactorVideo {
        min-height: 900px;
    }


    /* ============================================================
       MEDIA
       ============================================================ */

    .VactorVideo__Poster img {
        object-position: center;
    }


    .VactorVideo__Video--desktop {
        display: none;
    }


    .VactorVideo__Video--mobile {
        display: block;
    }


    .VactorVideo.is-playing
    .VactorVideo__Video--desktop {
        opacity: 0;
    }


    .VactorVideo.is-playing
    .VactorVideo__Video--mobile {
        opacity: 1;

        pointer-events: auto;
    }


    /* ============================================================
       OVERLAY
       ============================================================ */

    .VactorVideo__Overlay {
        background:
            linear-gradient(
                180deg,
                rgba(8, 65, 27, 0.35) 0%,
                rgba(8, 65, 27, 0.48) 35%,
                rgba(6, 48, 20, 0.84) 67%,
                rgba(5, 36, 15, 0.96) 100%
            );
    }


    .VactorVideo.is-playing
    .VactorVideo__Overlay {
        opacity: 0.22;
    }


    /* ============================================================
       PLAY
       ============================================================ */

    .VactorVideo__Play {
        top: 27%;
        left: 50%;

        width: 78px;
        height: 78px;

        border-width: 8px;
    }


    .VactorVideo__PlayIcon {
        margin-left: 5px;

        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 18px;
    }


    /* ============================================================
       CONTENT
       ============================================================ */

    .VactorVideo__Container {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 30px;

        width: 100%;

        padding:
            0
            20px
            45px;
    }


    .VactorVideo__Intro {
        max-width: none;

        padding: 0;

        border: 0;
    }


    .VactorVideo__Eyebrow {
        margin-bottom: 14px;

        font-size: 11px;
    }


    .VactorVideo__Intro h2 {
        margin-bottom: 18px;

        font-size:
            clamp(31px, 8.5vw, 42px);

        line-height: 1.03;
    }


    .VactorVideo__Description {
        max-width: none;

        font-size: 15px;

        line-height: 1.5;
    }


    /* ============================================================
   FEATURES
   ============================================================ */

.VactorVideo__Features {
    display: flex;
    flex-direction: column;

    gap: 14px;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}


.VactorVideo__Features li {
    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    margin: 0;
    padding: 0;

    color: rgba(255, 255, 255, 0.92);

    font-family:
        "Work Sans",
        sans-serif;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}


/* ============================================================
   CHECK
   ============================================================ */

.VactorVideo__Check {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    flex:
        0
        0
        30px;

    width: 30px;
    height: 30px;

    margin: 0;

    border:
        1px solid
        rgba(141, 242, 31, 0.55);

    border-radius: 9px;

    background:
        rgba(141, 242, 31, 0.10);
}


.VactorVideo__Check::before {
    content: "";

    display: block;

    width: 8px;
    height: 4px;

    border-left:
        2px solid #8df21f;

    border-bottom:
        2px solid #8df21f;

    transform:
        translateY(-1px)
        rotate(-45deg);
}

}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

    .VactorVideo__Poster,
    .VactorVideo__Video,
    .VactorVideo__Overlay,
    .VactorVideo__Play,
    .VactorVideo__Container {
        transition: none;
    }

}