.M21{
    min-height: calc(100vh - 58px);
    height: calc(100vh - 58px);
    position: relative;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.M21 .contData .contCubes{
    padding: 30px;
    width: 100%;
    height: 100%;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
}

.M21 .contData .contCubes .cube{
    width: 30px;
    height: 30px;
    position: absolute;
    z-index: 2;
}

.M21 .contData .contCubes .cube.red {
    background-color: #FF0066;
    bottom: 50%;
    left: calc(50% - 45px);
    transition: all .3s linear;
    animation:
            animateRedCubePart1 .5s ease-in-out forwards .5s, /* espera medio segundo */
            animateRedCubePart2 .5s ease-in-out forwards 1.5s; /* 1s + 0.5s */
}

.M21 .contData .contCubes .cube.pink {
    background-color: #FF00FF;
    top: calc(50% - 30px);
    right: calc(50% - 15px);
    transition: all .3s linear;
    animation:
            animatePinkCubePart1 .5s ease-in-out forwards .5s, /* espera medio segundo */
            animatePinkCubePart2 .5s ease-in-out forwards 1.5s; /* 1s + 0.5s */
}

.M21 .contImg{
    width: 100%;
    height: 100%;
    position:absolute;
    top: 0;
    left: 0;
    transform: scale(0);
    animation: toBig .5s ease-in-out forwards 1.55s;
    transition-origin: center;
}

.M21 .contImg::after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(117deg, rgba(34, 34, 34, 0.00) 57.53%, rgba(34, 34, 34, 0.00) 62.15%, rgba(34, 34, 34, 0.02) 65.91%, rgba(34, 34, 34, 0.04) 68.94%, rgba(34, 34, 34, 0.06) 71.37%, rgba(34, 34, 34, 0.09) 73.34%, rgba(34, 34, 34, 0.13) 74.99%, rgba(34, 34, 34, 0.16) 76.43%, rgba(34, 34, 34, 0.21) 77.81%, rgba(34, 34, 34, 0.25) 79.25%, rgba(34, 34, 34, 0.29) 80.89%, rgba(34, 34, 34, 0.34) 82.86%, rgba(34, 34, 34, 0.38) 85.3%, rgba(34, 34, 34, 0.42) 88.33%, rgba(34, 34, 34, 0.46) 92.09%, rgba(34, 34, 34, 0.50) 96.7%),
            linear-gradient(180deg, rgba(34, 34, 34, 0.00) 60.44%, rgba(34, 34, 34, 0.01) 65.1%, rgba(34, 34, 34, 0.02) 68.9%, rgba(34, 34, 34, 0.05) 71.96%, rgba(34, 34, 34, 0.08) 74.42%, rgba(34, 34, 34, 0.13) 76.41%, rgba(34, 34, 34, 0.18) 78.07%, rgba(34, 34, 34, 0.23) 79.52%, rgba(34, 34, 34, 0.29) 80.91%, rgba(34, 34, 34, 0.35) 82.37%, rgba(34, 34, 34, 0.41) 84.03%, rgba(34, 34, 34, 0.47) 86.02%, rgba(34, 34, 34, 0.53) 88.48%, rgba(34, 34, 34, 0.59) 91.54%, rgba(34, 34, 34, 0.65) 95.34%, rgba(34, 34, 34, 0.70) 100%),
            linear-gradient(296deg, rgba(33, 37, 41, 0.60) 2.35%, rgba(33, 37, 41, 0.59) 6.92%, rgba(33, 37, 41, 0.58) 10.65%, rgba(33, 37, 41, 0.56) 13.65%, rgba(33, 37, 41, 0.53) 16.06%, rgba(33, 37, 41, 0.49) 18.02%, rgba(33, 37, 41, 0.45) 19.64%, rgba(33, 37, 41, 0.40) 21.07%, rgba(33, 37, 41, 0.35) 22.44%, rgba(33, 37, 41, 0.30) 23.87%, rgba(33, 37, 41, 0.25) 25.49%, rgba(33, 37, 41, 0.20) 27.45%, rgba(33, 37, 41, 0.14) 29.86%, rgba(33, 37, 41, 0.09) 32.86%, rgba(33, 37, 41, 0.07) 34.31%, rgba(33, 37, 41, 0.04) 36.59%, rgba(33, 37, 41, 0.00) 41.16%);
}

.M21.active .contSwiper .cifrasCont,
.M21.active .contSwiper .contInfoTexts .titles{
    transform: translateY(0);
}

.M21 .plusIcon{
    opacity: 0;
    min-width: 88px;
    height: 99px;
}

.M21.active .plusIcon{
    transition: all .3s linear;
    opacity: 1;
}

.M21.active .toggle {
    transition: all .3s linear;
    transform: translate(0,0)
}

.M21 .contSwiper .imgBack{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.M21 .contSwiper{
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px 50px;
}

.M21 .contSwiper .contInfoTexts{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.M21 .contSwiper .contInfoTexts .titles{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    width: 100%;
    margin-top: 40px;
    transition: all .3s linear;
    transform: translateY(-100px);
    gap: 30px;
}

.M21 .contSwiper .contInfoTexts .titles .titulo{
    max-width: 450px;
    width: 100%;
}

.M21 .contSwiper .contInfoTexts .titles .titulo,
.M21 .contSwiper .contInfoTexts .titles .titulo *{
    color: #FFF;
    font-family: "FS Emeric";
    font-size: 48px;
    font-style: normal;
    font-weight: 350;
    line-height: 100%; /* 48px */
    letter-spacing: -0.65px;
    margin-bottom: 0;
}

.M21 .contSwiper .contInfoTexts .titles .subtitulo{
    max-width: 366px;
    width: 100%;
}

.M21 .contSwiper .contInfoTexts .titles .subtitulo,
.M21 .contSwiper .contInfoTexts .titles .subtitulo *{
    color: #FFF;
    font-family: "FS Emeric";
    font-size: 24px;
    font-style: normal;
    font-weight: 450;
    line-height: 120%; /* 28.8px */
    letter-spacing: -0.25px;
    margin-bottom: 0;
}

/*Swiper Config*/
.M21 .cifrasCont{
    width: 100%;
    transition: all .3s linear;
    transform: translateY(-100px);
}

.M21 .cifras{
    border-top: 1px solid #FFFFFF;
    padding-top: 20px;
}

.M21 .swiper .swiper-wrapper,
.M21 .swiper {
    width: 100%;
    height: fit-content;
}

.M21 .swiper-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: fit-content;
}

.M21 .cifras .swiper-slide.is-first-visible{
    align-items: flex-start;
    padding-right: 0px;
}

.M21 .cifras .swiper-slide.is-last-visible{
    align-items: flex-end;
    padding-right: 0px;
}

.M21 .cifras .swiper-slide{
    align-items: center;
    padding-right: 40px;
}

.M21 .swiper-slide .cifra,
.M21 .swiper-slide .cifra *{
    color: #FFF;
    font-family: "FS Emeric";
    font-size: 52px;
    font-style: normal;
    font-weight: 350;
    line-height: 100%;
    letter-spacing: -3px;
    margin-bottom: 0;
    text-align: left;
    word-break: break-all;
}

.M21 .swiper-slide .texto,
.M21 .swiper-slide .texto *{
    color: #FFF;
    font-family: "FS Emeric";
    font-size: 20px;
    font-style: normal;
    font-weight: 350;
    line-height: 120%;
    margin-bottom: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/*Stop Carousel*/
.M21 .toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    width: fit-content;
    position: relative;
}

.M21 .toggle-wrapper .accInd{
    opacity: 0;
    transition: all .3s linear;
    position: absolute;
    content: '';
    top: -3px;
    right: 45px;
    color: #FFF;
    font-family: "FS Emeric";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 14px */
    letter-spacing: -0.2px;
    border-radius: 4px;
    background: #212529;
    padding: 8px 16px;
    z-index: 10;
    width: max-content;
}

.M21 .toggle-wrapper:hover .accInd{
    opacity: 1;
}

.M21 .toggle {
    transition: all .3s linear;
    transform: translate(980px, 80px);
    width: 39px;
    height: 23px;
    background-color: rgba(0, 0, 0, 0.01);
    border: 1px solid #FFFFFF;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
}

.M21 .toggle::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    background-color: #666666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.M21 .toggle:hover::before {
    background-color: #FFFFFF;
}

.M21 #togglePause {
    display: none;
}

.M21 #togglePause:checked + .toggle {
    background-color: #FFFFFF;
}

.M21 #togglePause:checked + .toggle::before {
    transform: translateX(16px);
    background-color: #005cff;
}

.M21 #togglePause:checked + .toggle:hover::before{
    background-color: #666666;
}

@media screen and (min-width:1024px){
    .M21 .swiperPatentes .swiper-slide { width: fit-content !important; }
}
.M21 .swiperPatentes .patente {
    color: #FFF;
    font-family: "FS Emeric";
    font-size: 20px;
    font-style: normal;
    font-weight: 450;
    line-height: 110%;
    letter-spacing: -0.25px;
    text-decoration: none;
}
.M21 .link {
    display: flex;
    padding: 8px 24px 6px 24px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 100px;
    border: 1px solid var(--Neutros-Blanco, #FFF);
    color: var(--Neutros-Blanco, #FFF);
    font-family: "FS Emeric";
    font-size: 16px;
    font-weight: 450;
    line-height: 100%;
    text-decoration: none;
    letter-spacing: -0.25px;
    width: fit-content;
    margin-top: 27px;
    transition: .3s all ease-in-out;
}
.M21 .link:hover {
    background-color: #fff;
    color: #000;
}
.M21 .swiperPatentes .swiper-slide:not(:last-child) {
    padding-right: 60px;
    border-right: 1px solid #fff;
}

/* === RED CUBE === */
@keyframes animateRedCubePart1 {
    0% {
        bottom: 50%;
        left: calc(50% - 45px);
    }
    100% {
        left: calc(50% - 45px);
        bottom: calc(50% - 15px);
    }
}

@keyframes animateRedCubePart2 {
    0% {
        left: calc(50% - 45px);
        bottom: calc(50% - 15px);
    }
    100% {
        left: 0;
        bottom: 0;
    }
}

/* === PINK CUBE === */
@keyframes animatePinkCubePart1 {
    0% {
        top: calc(50% - 30px);
        right: calc(50% - 15px);
    }
    100% {
        right: calc(50% - 15px);
        top: calc(50% - 45px);
    }
}

@keyframes animatePinkCubePart2 {
    0% {
        right: calc(50% - 15px);
        top: calc(50% - 45px);
    }
    100% {
        right: 0;
        top: 0;
    }
}

@keyframes toBig{
    0%{ transform: scale(0); }
    100%{ transform: scale(1); }
}

@media screen and (max-width:992px){
    .M21 .link { margin: 38px auto 60px auto; }
    .M21 .cifras .swiper-slide { align-items: center !important; }
    .M21 .swiper-slide .cifra, .M21 .swiper-slide .cifra *, .M21 .swiper-slide .texto, .M21 .swiper-slide .texto * { text-align: center; }
    .M21 .swiperPatentes { max-width: 80%; margin-left: 0; }
    .M21 .swiperPatentes .swiper-slide:not(:last-child) { padding-right: 20px; }
    .M21 .toggle-wrapper {
        margin: 0;
    }

    .M21 .contSwiper{
        padding: 20px 12px;
    }

    .M21 .contSwiper .contInfoTexts .titles .titulo,
    .M21 .contSwiper .contInfoTexts .titles .titulo * {
        text-align: center;
        font-size: 32px;
        font-style: normal;
        font-weight: 350;
        line-height: 100%;
        letter-spacing: -0.25px;
    }

    .M21 .contSwiper .contInfoTexts .titles .subtitulo, .M21 .contSwiper .contInfoTexts .titles .subtitulo * {
        text-align: center;
        font-size: 20px;
        font-style: normal;
        font-weight: 450;
        line-height: 110%;
        letter-spacing: -0.25px;
    }

    .M21 .contSwiper .contInfoTexts .titles{
        gap: 38px;
        justify-content: center;
    }

}

@media screen and (max-width:767px){
    .M21{
        height: fit-content;
        min-height: unset;
    }

    /* === RED CUBE === */
    @keyframes animateRedCubePart1 {
        0% {
            bottom: 50%;
            left: calc(50% - 30px);
        }
        100% {
            left: calc(50% - 30px);
            bottom: calc(50% - 10px);
        }
    }

    @keyframes animateRedCubePart2 {
        0% {
            left: calc(50% - 30px);
            bottom: calc(50% - 10px);
        }
        100% {
            left: 0;
            bottom: 0;
        }
    }

    /* === PINK CUBE === */
    @keyframes animatePinkCubePart1 {
        0% {
            top: calc(50% - 20px);
            right: calc(50% - 10px);
        }
        100% {
            right: calc(50% - 10px);
            top: calc(50% - 30px);
        }
    }

    @keyframes animatePinkCubePart2 {
        0% {
            right: calc(50% - 10px);
            top: calc(50% - 30px);
        }
        100% {
            right: 0;
            top: 0;
        }
    }

    .M21 .contData .contCubes .cube.red {
        background-color: #FF0066;
        bottom: 50%;
        left: calc(50% - 30px);
        transition: all .3s linear;
        animation:
                animateRedCubePart1 .5s ease-in-out forwards .5s, /* espera medio segundo */
                animateRedCubePart2 .5s ease-in-out forwards 1.5s; /* 1s + 0.5s */
    }

    .M21 .contData .contCubes .cube.pink {
        background-color: #FF00FF;
        top: calc(50% - 20px);
        right: calc(50% - 10px);
        transition: all .3s linear;
        animation:
                animatePinkCubePart1 .5s ease-in-out forwards .5s, /* espera medio segundo */
                animatePinkCubePart2 .5s ease-in-out forwards 1.5s; /* 1s + 0.5s */
    }

    .M21 .contData .contCubes .cube{
        width: 20px;
        height: 20px;
    }
    .M21 .contData .contCubes{
        padding: 20px;
    }

    .M21 .contSwiper .contInfoTexts .titles{
        flex-direction: column;
        margin-top: 68px;
    }
    .cifras .swiper-slide{ padding-right: 0; }


}