Real Madrid moved quickly on Friday to secure an extra goalkeeper in light of the hand injury that will sideline veteran Blancos netminder and captain Iker Casillas for up to 12 weeks.

The club agreed to pay Sevilla 3.5 million euros ($4.7 million) for Diego Lopez, who was part of Real Madrid from 2000-2007.

News of the deal came as Casillas underwent surgery to repair damage to his left hand suffered when one of his teammates accidentally clipped him during Real Madrid's Copa del Rey quarterfinal match with Valencia.

The operation went "very well," surgeon Miguel del Cerro said, while urging that the acclaimed Spanish international approach his recovery at a measured pace.

Casillas will be out of action for eight to 12 weeks, the doctor said.

"We will follow the rehabilitation steps set out by Dr. Del Cerro," Real Madrid's director of medical services, Carlos Diez, said.

The 31-year-old Lopez is expected to serve as backup to Antonio Adan, who had begun to move into the role of starting goalkeeper before a two-match suspension that opened the door for Casillas to return.

While out of contention for the 2012-2013 La Liga title, Real Madrid has a berth in the Copa del Rey semis and qualified for the knockout stage of the Champions League. EFE