Real Madrid's faint hopes of retaining their La Liga title receded further when Kaka was sent off and they drew 0-0 at struggling Osasuna on Saturday, while Valencia climbed to seventh with a 2-0 win over Sevilla.
Jose Mourinho's Real side seemed lost without inspirational top scorer Cristiano Ronaldo, suspended for the game in Pamplona, and unbeaten leaders Barcelona can go 18 points clear of their rivals with a win at fourth-placed Malaga on Sunday.
Real stay third on 37 points, four behind Atletico Madrid, who host Real Zaragoza on Sunday.
The little-used Brazilian playmaker had been on the pitch for a little over a quarter of an hour and was booked moments after coming off the bench for jumping with a flailing arm.
It was the 2007 World Player of the Year's first sending off at Real since he joined from AC Milan in 2009 and his first red card since he was dismissed playing for Brazil against the Ivory Coast at the 2010 World Cup.
Argentina forward Gonzalo Higuain had a frustrating game before being substituted, and even the introduction of Germany playmaker Mesut Ozil and France striker Karim Benzema in the second half failed to lift Real.
They dropped only 14 points in the whole of their triumphant 2011-12 campaign but have already drawn four games and lost four this term, while Barca have won all their matches except for a 2-2 draw at home to Real in October, when Ronaldo scored twice.
The Portuguese forward's absence was sorely felt, and Real have now failed to win the last three La Liga matches in which Ronaldo, who has scored 16 times this season, did not play.
Real defender Raul Albiol, handed a rare start at centre back in the absence of the injured Pepe and the suspended Sergio Ramos, suggested the club had given up on their bid for a second successive domestic title.
"The league has to help us for the (King's) Cup and the Champions League," the Spain international said in an interview with television broadcaster Canal Plus.
"To build rhythm and get on a run of victories that will allow us to perform well in those competitions," he added.
"We have to find a positive dynamic, although it's clear that things are not going well in the league.
"We should have won. This is a tough stadium to play at and we suffered with a man down, but there is no excuse."
The victory lifted Valencia above Levante, who play at fifth-placed Real Betis on Sunday, on goal difference and improved their chances of playing European football again next season after an erratic first half of the campaign.
Sevilla stay 12th on 22 points.
German midfielder Patrick Ebert produced a scintillating performance to lead Real Valladolid to a 3-1 win at home to Real Mallorca in the earlier kickoff that lifted Miroslav Djukic's side to 10th on 25 points.
Espanyol recovered from last week's 4-0 drubbing at Barca and climbed to 16th on 18 points with a 1-0 home win over Celta Vigo.
La Liga: Barca strengthen hold at top, Real scrape
Ronaldo hat-trick fires Real Madrid into quarters
Ronaldo backs Mourinho following fans' backlash
Valencia, Malaga cruise into King's Cup quarters
Real's Ramos gets five-match ban for insulting ref