﻿/* Pantalla de carga */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0D0E12;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

/* Contenedor principal */
.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo */
.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 250px;
    height: auto;
}

/* Mensaje de carga */
.loading-message {
    color: white;
    font-size: 16px;
    font-weight: 300;
    margin-top: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Animación centrada */
.loading-animation {
    width: 400px; /* Ancho más grande */
    height: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center; /* 🔹 Centrado total */
    align-items: center;
    position: relative;
    margin-top: 20px;
}

/* Punto animado */
.loading-dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    animation: moveDot 2s infinite ease-in-out;
    will-change: transform, opacity;
}

/* Animación centrada */
@keyframes moveDot {
    0% {
        transform: translateX(-200px); /* 🔹 Ahora empieza desde más atrás */
        opacity: 1;
    }

    50% {
        transform: translateX(0); /* 🔹 Pasa por el centro */
        opacity: 1;
    }

    100% {
        transform: translateX(200px); /* 🔹 Termina en el otro extremo */
        opacity: 0;
    }
}