/* Splash Screen para PWA */
.pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0000ff url('/assets/images/splash.png') center / cover no-repeat;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.pwa-splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.pwa-splash-container {
    display: none;
}

.pwa-splash-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    animation: splash-bounce 0.6s ease-in-out;
}

.pwa-splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pwa-splash-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #0066cc;
    margin: 0;
    animation: splash-fade-in 0.8s ease-in-out 0.2s backwards;
}

.pwa-splash-subtext {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    animation: splash-fade-in 0.8s ease-in-out 0.4s backwards;
}

.pwa-splash-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 102, 204, 0.1);
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: splash-spin 0.8s linear infinite;
    margin-top: 12px;
}

@keyframes splash-bounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes splash-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes splash-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .pwa-splash-logo {
        width: 100px;
        height: 100px;
    }

    .pwa-splash-text {
        font-size: 20px;
    }

    .pwa-splash-subtext {
        font-size: 12px;
    }
}
