/* Estilos para el Splash Screen de la PWA */

.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--splash-bg-color, #4e871c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
    transform: translateY(0);
}

.splash-container.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.splash-logo {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
    object-fit: contain;
}

.splash-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    text-align: center;
    max-width: 80%;
    animation: fadeIn 2s ease-out;
}

.splash-loader {
    margin-top: 30px;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .splash-logo {
        width: 250px;
        height: 250px;
    }
    
    .splash-title {
        font-size: 20px;
    }
    
    .splash-subtitle {
        font-size: 14px;
    }
}
