Real Madrid's 40-match unbeaten run came to an end as Sevilla scored twice late on to secure a 2-1 victory in a thrilling conclusion to Sunday's La Liga encounter.