#precarga-pagina {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(var(--gradient-linear-45-main));
    z-index: 99999;
}

/* Desanidado para compatibilidad WebKit */
#precarga-pagina.ending-preload > .loader {
    -webkit-transform: translateY(calc(-50vh - 100%));
    transform: translateY(calc(-50vh - 100%));
}

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

.loader-swal {
    -webkit-transform: scale(.6);
    transform: scale(.6);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    position: relative;
    width: 4.33333em;
    height: 4.33333em;
    -webkit-transition: -webkit-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}

.loader-swal > .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);
    border-radius: var(--variable-1);

    /* Animación unificada y declarada correctamente para WebKit */
    -webkit-animation: show 0.88s step-end infinite alternate, pulse 0.88s linear infinite alternate;
    animation: show 0.88s step-end infinite alternate, pulse 0.88s linear infinite alternate;
}

.loader-block > span {
    opacity: .2;
    color: var(--color-main);
}

/* Posiciones y Delays de los bloques */
.loader-block:nth-child(1) {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    -webkit-animation-delay: 0.065s;
    animation-delay: 0.065s;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

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

/* Keyframes de pulso y opacidad */
@-webkit-keyframes pulse {
    from, 40% { background: var(--color, #fdfdfd); }
    to { background: var(--color-2, #dadada); }
}

@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 show {
    from, 40% { opacity: 0; }
    41%, to { opacity: 1; }
}

/* Título con animación de puntos funcional para Safari */
.loading-title {
    margin-bottom: 1em;
    font-weight: bold;
}

.loading-title::after {
    content: '...';
    display: inline-block;
    width: 1em;
    vertical-align: bottom;
    overflow: hidden;
    white-space: nowrap;
    -webkit-animation: ellipsis-safari 1s steps(4, end) infinite;
    animation: ellipsis-safari 1s steps(4, end) infinite;
}

@-webkit-keyframes ellipsis-safari {
    to { width: 0; }
}

@keyframes ellipsis-safari {
    to { width: 0; }
}