#precarga-pagina{
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--gradient-linear-45-main));
    z-index: 99999;
    &.ending-preload>.loader{
        transform: translateY(calc(-50dvh - 100%));
    }
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7.33333em;
    height: 7.33333em;
    margin-left: -3.66667em;
    margin-top: -3.66667em;
    transition: transform .5s ease-in-out;
}

.loader-swal {
    transform: scale(.6);
    transform-origin: 0 0;
    position: relative;
    width: 4.33333em;
    height: 4.33333em;
    transition: transform .5s ease-in-out;
    &>.loader-block{
        --w: 2em;
        --h: 2em;
        --color: var(--color-main);
        --color2: var(--color-lightmain);
    }
}

.loader-block {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    width: var(--w, 2em);
    height: var(--h, 2em);
    background: var(--color, #fdfdfd);
    -webkit-animation: show 0.88s step-end infinite alternate, pulse 0.88s linear infinite alternate;
    animation: show 0.88s infinite alternate, pulse 0.88s linear infinite alternate;
    border-radius: var(--variable-1);
    &>span{
        opacity: .2;
        color: var(--color-main);
    }
}

/* Second */
.loader-block:nth-child(1) {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    -webkit-animation-delay: 0.065s;
    animation-delay: 0.065s;
}

/* Ninth */
.loader-block:nth-child(2) {
    -webkit-transform: translate(2.66667em, 0);
    transform: translate(2.66667em, 0);
    -webkit-animation-delay: 0.13s;
    animation-delay: 0.13s;
}

/* Fourth */
.loader-block:nth-child(3) {
    -webkit-transform: translate(5.33333em, 0);
    transform: translate(5.33333em, 0);
    -webkit-animation-delay: 0.195s;
    animation-delay: 0.195s;
}

/* Sixth */
.loader-block:nth-child(4) {
    -webkit-transform: translate(0, 2.66667em);
    transform: translate(0, 2.66667em);
    -webkit-animation-delay: 0.325s;
    animation-delay: 0.325s;
}

/* Third */
.loader-block:nth-child(5) {
    -webkit-transform: translate(2.66667em, 2.66667em);
    transform: translate(2.66667em, 2.66667em);
    -webkit-animation-delay: 0.13s;
    animation-delay: 0.13s;
}

/* Eighth */
.loader-block:nth-child(6) {
    -webkit-transform: translate(5.33333em, 2.66667em);
    transform: translate(5.33333em, 2.66667em);
    -webkit-animation-delay: 0.455s;
    animation-delay: 0.455s;
}

/* Seventh */
.loader-block:nth-child(7) {
    -webkit-transform: translate(0, 5.33333em);
    transform: translate(0, 5.33333em);
    -webkit-animation-delay: 0.39s;
    animation-delay: 0.39s;
}

/* Fifth */
.loader-block:nth-child(8) {
    -webkit-transform: translate(2.66667em, 5.33333em);
    transform: translate(2.66667em, 5.33333em);
    -webkit-animation-delay: 0.26s;
    animation-delay: 0.26s;
}

/* First */
.loader-block:nth-child(9) {
    -webkit-transform: translate(5.33333em, 5.33333em);
    transform: translate(5.33333em, 5.33333em);
}

@-webkit-keyframes pulse {
    from,
    40% {
        background: var(--color, #fdfdfd);
    }
    to {
        background: var(--color-2, #dadada);
    }
}

@-webkit-keyframes show {
    from, 40% { opacity: 0; }
    41%, to { opacity: 1; }
}

@keyframes pulse {
    from,
    40% {
        background: var(--color, #fdfdfd);
    }
    to {
        background: var(--color-2, #dadada);
    }
}

@keyframes show {
    from, 40% { opacity: 0; }
    41%, to { opacity: 1; }
}

.loading-title{
    margin-bottom: 1em;
    font-weight: bold;
    &:after{
        content: '';
        animation: ellipsis 1s linear infinite;
    }
}

@-webkit-keyframes ellipsis {
    0%{
        content: '.';
    }
    33% {
        content: '..';
    }
    66% {
        content: '...';
    }
}
