/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141b34;
    /* Fondo blanco */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Asegura que esté encima de todo */
    transition: opacity 0.5s ease-out;
}

#splash-screen img {
    width: 100%;
    max-width: 528px;
    /* Tamaño del logo */
    height: auto;
}

/* Spinner Styles */
.spinner {
    position: absolute;
    margin-top: 10px;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #ef2e32;
    color: #ef2e32;
    border-radius: 50%;

    animation: spin 1s linear infinite;
}

/* Animación del spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Asegura que el contenedor de tu app esté oculto al inicio */
#root {
    display: none;
}

/* Muestra el contenedor de la app después del splash */
body.loaded #root {
    display: block;
}