Text this: Exploring solutions to the muon g-2 anomaly in a 3-3-1 model under flavor constraints