/* --- ESTILOS DE LA PANTALLA DE CARGA --- */

:root {
    /* Colores Modo Claro */
    --color-bg-light: #F0F2F9;
    --color-text-primary-light: #1A202C;
    --color-text-secondary-light: #5A677D;
    --color-accent-light: #3B82F6;
            
    /* Colores Modo Oscuro */
    --color-bg-dark: #0D1117;
    --color-text-primary-dark: #E6EDF3;
    --color-text-secondary-dark: #9DA5B2;
    --color-accent-dark: #58A6FF;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    --bg-color: var(--color-bg-light);
    --text-primary: var(--color-text-primary-light);
    --text-secondary: var(--color-text-secondary-light);
    --accent-color: var(--color-accent-light);
    --color-accent: var(--color-accent-light);
}

html.dark {
    --bg-color: var(--color-bg-dark);
    --text-primary: var(--color-text-primary-dark);
    --text-secondary: var(--color-text-secondary-dark);
    --accent-color: var(--color-accent-dark);
    --color-accent: var(--color-accent-dark);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.background-blob { position: fixed; border-radius: 50%; filter: blur(150px); z-index: -1; opacity: 0.3; transition: var(--transition-fast); }
.blob1 { width: 400px; height: 400px; top: -150px; left: -150px; background: var(--color-accent); }
.blob2 { width: 300px; height: 300px; bottom: -100px; right: -100px; background: var(--color-good); }
html.dark .background-blob { opacity: 0.15; }

/* Contenedor de partículas */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 10s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-105vh);
        opacity: 0;
    }
}

/* Contenedor principal */
.splash-container {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Icono de bombilla */
.splash-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}
        
.splash-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 15px var(--accent-color-trans));
}
        
html { --accent-color-trans: rgba(59, 130, 246, 0.4); }
html.dark { --accent-color-trans: rgba(88, 166, 255, 0.3); }

.spark {
    animation: sparkle 2.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
        
@keyframes sparkle {
    0%, 100% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}
       
.app-logo {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.app-tagline {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.loader-container {
    position: relative;
    width: 100%;
    height: auto;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 20px 0;
}

.loader-container.hide {
    opacity: 0;
    visibility: hidden;
}

.orbital-loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icono Central */
.core-icon {
    font-size: 24px;
    color: var(--color-accent);
    z-index: 10;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
    animation: corePulse 2s ease-in-out infinite;
}

.orbit-ring-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    opacity: 0.9;
    animation: spinOrbit 1.2s linear infinite;
}

.orbit-ring-2 {
    position: absolute;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    border: 5px solid transparent;
    border-bottom-color: var(--color-text-secondary);
    border-left-color: var(--color-text-secondary);
    opacity: 0.5; 
    animation: spinOrbitReverse 1.8s linear infinite;
}

.orbital-blur-bg {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.25;
    z-index: 1;
}

/* Animaciones del Loader */
@keyframes spinOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinOrbitReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes corePulse { 
    0% { transform: scale(0.9); opacity: 0.7; } 
    50% { transform: scale(1.1); opacity: 1; } 
    100% { transform: scale(0.9); opacity: 0.7; } 
}