I've backpacked solo through Ecuador, Peru, and Bolivia. Always use licensed taxis or rideshare apps. Learn the basics of Spanish—it helps a lot. In markets, keep your bag in front of you. And always have a travel insurance just to be on the safe side.