Real Madrid will take a 2-1 lead into the the second leg of their Champions League last-16 tie against Atletico Madrid.