.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Mayor que el navbar */
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-screen img {
    max-width: 320px;
    width: 60vw;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Prevent scrolling while loading screen is active */
body.loading {
    overflow: hidden;
}

/* Ensure content fades in smoothly */
.content-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.content-wrapper.visible {
    opacity: 1;
}