Global investors are rotating capital back into Brazil.