Victory for TV celebrity-turned politician catapults South America’s second-largest economy into an unpredictable future