Glory to Brazil

What if; in the era of the 19th century, Brazil diverged from a slave based Empire, to a neo-socialist, capitalist system which would allow it to prosper and Brazil would become a superpower. To put it simply, Brazil in our world would be like saying what if the US never had the northern states.