Latin America Is Rewriting the Rules and Spooking Investors