Real Madrid lost ground in La Liga on Sunday after relegation-threatened Girona came from behind to beat them 2-1 at the Santiago Bernabeu.
Casemiro gave Real the lead after 25 minutes, when he rose to head home Toni Kroos' cross following a corner.
Marcelo thought he'd made it 2-0 shortly before the break, but his effort was correctly disallowed for offside following a VAR consultation.
Cristhian Stuani levelled proceedings from the penalty spot in the 65th minute, after Sergio Ramos was penalised for blocking Aleix Garcia's goal-bound shot with his arm.
Girona were in front 10 minutes later thanks to Portu, who beat a sleeping Marcelo to head home at the back post after Thibaut Courtois had kept out Anthony Lozano's effort.