/* ============================================
   SPLASH SCREEN
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(160deg, #5BBFB5 0%, #8DD4B8 18%, #C5E8C0 35%, #EAF2D0 50%, #C5E8C0 65%, #8DD4B8 82%, #5BBFB5 100%);
}

.splash-screen.hidden {
    display: none;
}

.splash-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.splash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.splash-orb-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 70%);
    top: -10%; left: -15%;
    animation: orbFloat1 6s ease-in-out infinite;
}

.splash-orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
    bottom: -5%; right: -10%;
    animation: orbFloat2 7s ease-in-out infinite;
}

.splash-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 5s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.15); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -40px) scale(1.1); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.splash-particle {
    position: absolute;
    width: 6px; height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    left: var(--x); top: var(--y);
    animation: particleFloat var(--d) ease-in-out infinite;
    animation-delay: var(--s);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
    50% { transform: translateY(-25px) scale(1.8); opacity: 1; }
}

.splash-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-glow-ring {
    position: relative;
    border-radius: 50%;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-glow-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(124,179,66,0.5) 25%, rgba(174,213,129,0.3) 50%, rgba(124,179,66,0.5) 65%, transparent 100%);
    animation: glowSpin 3s linear infinite;
    z-index: 0;
}

.splash-glow-ring::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, transparent 0%, rgba(124,179,66,0.25) 30%, transparent 60%);
    animation: glowSpin 3s linear infinite reverse;
    filter: blur(14px);
    z-index: 0;
}

@keyframes glowSpin {
    to { transform: rotate(360deg); }
}

.splash-logo {
    width: 140px; height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
}

.splash-logo img {
    width: 100%;
    height: auto;
}

.splash-text-group {
    text-align: center;
    margin-top: 32px;
}

.splash-text {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 4px;
    animation: textReveal 0.8s ease-out 0.3s backwards;
}

.splash-text-qadux {
    color: #8A8D8F;
}

.splash-text-accent {
    color: #7CB342;
}

.splash-subtitle {
    color: #555859;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.splash-word {
    display: inline-block;
    opacity: 0;
    animation: wordDrop 0.5s ease forwards;
}

.sw-1 { animation-delay: 0.5s; }
.sw-2 { animation-delay: 0.8s; }
.sw-3 { animation-delay: 1.1s; }

@keyframes wordDrop {
    0% { opacity: 0; transform: translateY(-30px); }
    60% { opacity: 1; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124,179,66,0.5), transparent);
    margin: 16px auto 0;
    animation: lineExpand 1s ease-out 1.3s backwards;
}

@keyframes textReveal {
    from { opacity: 0; transform: translateY(20px); }
}

@keyframes lineExpand {
    from { width: 0; opacity: 0; }
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-top: 40px;
    animation: textReveal 0.6s ease-out 1.5s backwards;
}

.loading-dots span {
    width: 8px; height: 8px;
    background: rgba(124, 179, 66, 0.5);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

/* dotPulse: se define en login.css (se carga después y era la que ganaba;
   aquí había otra con el mismo nombre que no se aplicaba nunca) */

.skip-text {
    position: absolute;
    bottom: 48px;
    color: rgba(90, 93, 95, 0.4);
    font-size: 13px;
    animation: textReveal 0.8s ease-out 1.8s backwards;
}

