Cheapest time to go to Brazil

I’m looking to go to Brazil this year, but have to do it on the cheap. I know our summer/their winter is probably cheapest, but if I’m going all the way down I’d like to at least enjoy some of the nice weather. What months are the best weather/cheapness combos for traveling down? Especially for flights.