/* Loader general */
#ftco-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #fff;
    z-index: 9999; /* Asegura que esté encima de todo el contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

/* Ocultar loader al quitar la clase show */
#ftco-loader.show {
    visibility: visible;
    opacity: 1;
    z-index: 9999;
}

#ftco-loader:not(.show) {
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
}

/* Animación de las imágenes */
#ftco-loader .image2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    margin: -89px 0 0 -85px;
    z-index: 9999;
}

#ftco-loader .image4 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -92px 0 0 -11px;
    animation: spin 4s linear infinite;
    animation-fill-mode: forwards;
    z-index: 9999;
}

#ftco-loader .circular {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    animation: loader-rotate 4s linear infinite;
    display: block;
    transform: rotate(0deg);
    z-index: 9999;
}

/* Efecto de rotación para la hélice */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Animación de rotación para el loader circular */
@keyframes loader-rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Animación de trazo para la hélice */
@keyframes loader-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -136px;
    }
}

/* Estilo para mantener el loader centrado en pantalla completa */
#ftco-loader.fullscreen {
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

/* Efecto de ocultamiento */
@keyframes fadeOut {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}
