/* Interfaz PWA: estado, sincronización e instalación */
#pwaEstadoBar {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 10000000;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#pwaEstadoBar.pwa-online {
    color: #155724;
    background: #e9f8ef;
    border: 1px solid #28a745;
}

#pwaEstadoBar.pwa-offline {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffc107;
}

#pwaEstadoBar.pwa-sync-error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #dc3545;
}

#pwaEstadoBar button,
.pwa-btn-instalar {
    border: 0;
    border-radius: 7px;
    padding: 7px 10px;
    color: #ffffff;
    background: #28a745;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

#pwaEstadoTexto {
    flex: 1;
}

.pwa-btn-instalar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 10000001;
    display: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    #pwaEstadoBar {
        bottom: 66px;
        font-size: 11px;
    }

    .pwa-btn-instalar {
        right: 10px;
        bottom: 68px;
    }
}
