Ronaldo levelled from the penalty spot before his deflected effort put Madrid ahead at the break.