Federico Valverde put Madrid in pole position to advance and left Man City with a huge task at home next week.