I have done multiple transits at GRU but the max was 5 hours.
With checked bags over 12 hours it is unclear if it is possible. With carry on in theory you should be OK but if the check-in agent is uncertain you might run into trouble. They will err on the side of caution with Brazil. I don't think anyone can give you a 100% certainty on that.
You are welcome.