/* =================================================================
   ESTILOS GLOBALES Y RESET
   ================================================================= */
* {
    margin: 0;
    padding: 0;
}

/* =================================================================
   PANTALLA DE CARGA (LOADING SCREEN)
   ================================================================= */
.loading-screen {
    width: 100%;
    height: 100vh;
    background-color: white;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-spidi{
    display: flex;
    position: relative;
    left: 85px;
    align-items: center;
    justify-content: start;
    margin-left: 50px;
    width: 45px;
    height: 45px;
    z-index: 100;
}

/* Contenedor de la animación de carga */
.loading {
    width: 120px;
    display: flex;
    flex-wrap: wrap;
    animation: rotate 4s linear infinite;
    /*QUITAR SI QUIEREN VER SIN BLUR SIN DIFUMINADO*/
    filter: blur(1px);
}

/* Animación que hace girar el contenedor de la animación */
@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Elementos individuales de la animación */
.loading span {
    width: 40px;
    height: 40px;
    background-color: white;
    margin: 4px;
    animation: scale 1.5s linear infinite;
    filter: blur(15px)
}

/* Animación que escala los elementos individuales para crear un efecto de pulso */
@keyframes scale {
    50% {
        transform: scale(1.5);
    }
}

/* Estilos y colores específicos para cada uno de los 4 elementos de la animación */
.loading ellipse:nth-child(1) {
    border-radius: 50% 50% 0 50%;
    background-color: #ff006e;
    background-image: linear-gradient(0deg, #01dc94, #c6f221);

    transform-origin: bottom right;
}

.loading ellipse:nth-child(2) {
    border-radius: 50% 50% 50% 0;
    background-color: #ff006e;
    background-image: linear-gradient(60deg, #01dc94, #c6f221);
    transform-origin: bottom left;
    animation-delay: .5s;
}

.loading ellipse:nth-child(3) {
    border-radius: 50% 0 50% 50%;
    background-color: #fb5607;
    background-image: linear-gradient(180deg, #01dc94, #c6f221);
    transform-origin: top right;
    animation-delay: 1.5s;
}

/* .loading span:nth-child(4) {
    border-radius: 0 50% 50% 50%;
    background-color: #8338ec;
    background-image: linear-gradient(270deg, #01dc94, #c6f221);
    transform-origin: top left;
    animation-delay: 1s;
} */


/* =================================================================
   CLASES DE UTILIDAD (VISIBILIDAD)
   ================================================================= */
/* Clase para aplicar una transición de desvanecimiento a la pantalla de carga */
.splash-fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Clase para ocultar el contenido principal mientras la página carga */
.content-hidden {
    display: none;
}

/* =================================================================
   ESTILOS DE CONTENIDO Y MENSAJES
   ================================================================= */

/* Mensaje específico para mala conexión */
#connection-message.poor-connection {
    color: #01DC94;
    /* Naranja/Amarillo para advertencia */
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    width: 345px;
}

/* Centra el contenido que aparece después de la carga */
.centered-message {
    text-align: center;
    /* Hacemos que los elementos internos se alineen bien */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Unbounded", sans-serif;
    color: #02373D;
}

/* Estilos para el contenedor principal que aparece después de la carga */
#main-content {
    font-family: "Unbounded", sans-serif;
    color: #02373D;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.subtitle{
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
}

/* Estilos para el ícono de checklist */
.checkmark-icon {
    font-size: 5rem;
    /* Hacemos el ícono grande */
    background: linear-gradient(to right, #01dc94, #c6f221);
    -webkit-background-clip: text; /* Para navegadores WebKit */
    background-clip: text;
    color: transparent;
    line-height: 1;
    /* Ajustamos el espaciado vertical */
    margin-bottom: 1rem;
    /* Espacio entre el ícono y el título */
}

/* =================================================================
   ESTILOS DE TIPOGRAFÍA Y BASE
   ================================================================= */
body {
    /* Fuente SPIDI principal */
    font-family: "Unbounded", sans-serif;
}

.content {
    color: #02373D;
}
