SÃO PAULO, Brazil — The protests were heating up on the streets of Brazil’s largest city last week, but the mayor was not in his office. He was not even in the city. He had left for Paris to try to land the 2020 World’s Fair — exactly the kind of expensive, international mega-event that demonstrators nationwide have scorned.