RIO DE JANEIRO, Brazil — Just two years ago, visitors to Brazil were in for an unwelcome surprise. This country, where annual income averaged a little less than $12,000 in 2013, had nevertheless become eye-wateringly expensive for locals and visitors alike. The New York Times ran a story about $30 cheese pizzas in Brazil’s restaurants, and…