/* ===============================================
   SPLASH SCREEN - PUNTOS NET
   Opción 3: Sofisticado y Corporativo
   Colores corporativos basados en el logo
   =============================================== */

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #30586B 0%, #407C94 50%, #6DA6C1 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

/* Líneas geométricas animadas de fondo */
.splash-bg-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.splash-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: left center;
}

.splash-line:nth-child(1) {
    top: 20%;
    width: 300px;
    left: -300px;
    animation: slideLine1 4s ease-out forwards;
}

.splash-line:nth-child(2) {
    top: 35%;
    width: 400px;
    right: -400px;
    animation: slideLine2 4s ease-out 0.2s forwards;
}

.splash-line:nth-child(3) {
    top: 50%;
    width: 500px;
    left: -500px;
    animation: slideLine1 4s ease-out 0.4s forwards;
}

.splash-line:nth-child(4) {
    top: 65%;
    width: 350px;
    right: -350px;
    animation: slideLine2 4s ease-out 0.6s forwards;
}

.splash-line:nth-child(5) {
    top: 80%;
    width: 450px;
    left: -450px;
    animation: slideLine1 4s ease-out 0.8s forwards;
}

@keyframes slideLine1 {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes slideLine2 {
    0% { right: -100%; }
    100% { right: 100%; }
}

/* Contenedor principal del splash */
.splash-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Logo container */
.splash-logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-50px);
    animation: logoSlideIn 0.8s ease-out 0.8s forwards;
}

.splash-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: logoBounce 0.6s ease-out 1.6s;
}

@keyframes logoSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Texto institucional */
.splash-text {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2.5rem;
}

.splash-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: textFadeIn 0.6s ease-out 1.5s forwards;
    letter-spacing: 1px;
}

.splash-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0;
    animation: textFadeIn 0.6s ease-out 2s forwards;
    letter-spacing: 2px;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra de progreso */
.splash-progress-container {
    width: 400px;
    max-width: 80%;
    opacity: 0;
    animation: progressFadeIn 0.4s ease-out 2.5s forwards;
}

@keyframes progressFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.splash-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.splash-progress-label {
    font-weight: 500;
}

.splash-progress-percent {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
}

.splash-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.splash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en la barra de progreso */
.splash-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Fade out del splash completo */
#splash.fade-out {
    animation: splashFadeOut 0.5s ease-out forwards;
}

@keyframes splashFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .splash-logo {
        width: 140px;
    }
    
    .splash-title {
        font-size: 1.5rem;
    }
    
    .splash-subtitle {
        font-size: 0.9rem;
    }
    
    .splash-progress-container {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 120px;
    }
    
    .splash-title {
        font-size: 1.3rem;
    }
    
    .splash-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .splash-progress-container {
        width: 250px;
    }
}
