/* =================================================================================
   SPLASH SCREEN BÁSICO - LOGO PADELMATCH
   ================================================================================= */

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: 'Montserrat', sans-serif;
}

/* Contenedor del logo */
.logo-container {
    text-align: center;
    animation: logoFadeInOut 5s ease-in-out forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}




/* Logo principal */
.logo-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1;
}

/* Parte "Padel" en amarillo */
.logo-padel {
    color: #ffd700;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
}

/* Parte "Match" en blanco */
.logo-match {
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
}

/* Animación de aparición y desvanecimiento */
@keyframes logoFadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    15% {
        opacity: 1;
        transform: scale(1);
    }
    85% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Clase para ocultar la splash screen */
#splash-screen.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* Animación de salida */
#splash-screen.splash-exit {
    animation: splashExit 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes splashExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 2.5rem;
    }
}

/* =================================================================================
   BARRA DE CARGA
   ================================================================================= */

/* Contenedor de la barra de carga */
.loading-container {
    position: relative;
    text-align: center;
    opacity: 0;
    animation: loadingFadeIn 1s ease-in-out forwards;
    margin-top: 2rem;
}

/* Barra de carga */
.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
    position: relative;
}

/* Progreso de la barra de carga */
.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 2.5s ease-in-out 0.5s forwards;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en la barra de progreso */
.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loadingShine 2s ease-in-out 1s infinite;
}

/* Texto de carga */
.loading-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
    animation: loadingTextPulse 2s ease-in-out 1s infinite;
}

/* Animación de aparición del contenedor de carga */
@keyframes loadingFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación del progreso de la barra */
@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    20% {
        width: 25%;
    }
    50% {
        width: 60%;
    }
    80% {
        width: 85%;
    }
    100% {
        width: 100%;
    }
}

/* Animación del brillo */
@keyframes loadingShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animación del texto de carga */
@keyframes loadingTextPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive para la barra de carga */
@media (max-width: 768px) {
    .loading-container {
        margin-top: 1.5rem;
    }
    
    .loading-bar {
        width: 160px;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .loading-container {
        margin-top: 1rem;
    }
    
    .loading-bar {
        width: 140px;
    }
    
    .loading-text {
        font-size: 0.75rem;
    }
}

/* =================================================================================
   POWERED BY MEGASPORT CENTRE
   ================================================================================= */

/* Contenedor del texto "Powered by" */
.powered-by {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    text-align: center;
}

/* Texto "MegaSport Centre" con estilo especial */
.megasport-text {
    color: #ef4444;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}


/* Responsive para "Powered by" */
@media (max-width: 768px) {
    .powered-by {
        font-size: 0.75rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    .powered-by {
        font-size: 0.7rem;
        margin-top: 0.6rem;
    }
}