Real Madrid recovered from an early scare to beat Benfica 2-1 on Wednesday and secure a 3-1 aggregate victory to reach the Champions League last 16 after a pulsating game at the Bernabeu.