Lionel Messi celebrates after scoring Barcelona's third goal.
Lionel Messi's 93rd-minute victor put Barcelona ahead of Real Madrid on goal difference at the top of the table, although Madrid do have an extra game left to play.
"Leo's 500th goal had to be special, just like he is", Barcelona defender Gerard Pique said.
"It is marvellous for us to win in the 92nd minute".
Asked in a news conference afterwards if Messi was the sole difference in the game, Luis Enrique added: "Of course - that's why he plays for Barca".
The party in question was due to be at Ronaldo's house - had Real triumphed at the Bernabeu it would have seen them move six points clear at the top of La Liga with a game in hand. "We have to try to keep up with him as much as possible so we can all play well and stay in contention in La Liga, which is wide open".
However, Madrid rallied when a man down as substitute James Rodriguez fired home an equaliser four minutes from time.
Rockets bench laughs as Andre Roberson misses free throw
Russell Westbrook's season has been dogged by questions about what impact his ball-dominant play has on the rest of his team. James Harden totaled a whopping 44 points on only 11 made field goals because he made all of his 18 free throw attempts.
This campaign is the last season in which Luis Enrique will coach Messi, having announced his intention to leave the club at the end of the term back in March.
Barcelona will look to maintain their slender advantage at the top when they host Osasuna on Wednesday before Real visit Deportivo La Coruna.
"I can not be happy", Zidane told reporters after his first loss in three Clasicos.
Ivan Rakitic gave Barcelona 2-1 lead with a superb strike in the 73rd minute of the game shortly after Ronaldo waste a chance to put Madrid on the lead.
"The games from here until the end of the season are the most risky as everyone is desperate for points and we have had problems with teams near the bottom, which makes this a unsafe game for us", added Luis Enrique.
Madrid were also dealt a fresh injury blow for the remainder of their league season and upcoming Champions League semi-finals against Atletico Madrid as Gareth Bale faces another spell on the sidelines.
"We created a lot during the whole game. It went as we'd hoped".