Before the pandemic, Peru's economy was actually the only one in South America projected for growth. But I wonder how much of the infrastructure projects are going specifically to the tourist sector or other high end consumers. For instance, the Cuzco-Arequipa train is Chilean-owned I believe, and while very nice and efficient, is also very expensive and has no practical purpose outside of tourism.
The Peruvian government deserves credit for knowing how to milk its tourists attractions ($50 entrance fee for Machu Picchu) but there isn't a lot of evidence of that income being reinvested elsewhere. Public transport and traffic in Lima are probably among the worst in South America, and definitely the worst I've experienced (with Bogotá a distant second). I lived in Callao while volunteering for an NGO and it would take a good 2 hours, and 3 or 4 micros just to get to the city center. I went to Miraflores maybe once it was about a 6 hour round trip journey just to pay US prices for a coffee.
Agreed Lima is a lot more gritty outside the "nice neighborhoods". Even in the middle, lower class neighborhoods in CABA...not counting pompeya, soldati, lugano...they aren't all that bad in my opinion.
I suspect that like in many cases the infrastructure projects are more to support tourism, mining, agriculture than actually making a significant impact on the lives of the common people.
You're right. Traffic in Lima and Bogota is horrendous. Even with their every other day license plate rules.