/* Estilos para el banner de instalación PWA */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4c8056;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    max-width: 90%;
    width: 400px;
    font-family: Arial, sans-serif;
}

#pwa-install-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

#pwa-install-banner .banner-text {
    flex: 1;
}

#pwa-install-banner .banner-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

#pwa-install-banner .banner-description {
    font-size: 12px;
    opacity: 0.9;
}

#pwa-install-banner .banner-buttons {
    display: flex;
    gap: 10px;
}

#pwa-install-banner button {
    background: white;
    color: #4c8056;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.3s;
}

#pwa-install-banner button:hover {
    background: #f0f0f0;
}

#pwa-install-banner .close-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#pwa-install-banner .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Para dispositivos móviles */
@media (max-width: 480px) {
    #pwa-install-banner {
        width: 95%;
        bottom: 10px;
    }

    #pwa-install-banner .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    #pwa-install-banner .banner-buttons {
        width: 100%;
        justify-content: center;
    }
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4c8056;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.splash-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

#flutter-app {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.app-loaded #flutter-app {
    opacity: 1;
}