How China’s rise forced Latin America to wake up and innovate