A flight from Paris to Casablanca has declared an emergency over Spain.

The Air France flight #AF1896 from Paris CDG was cruising at 35,000 feet when the crew declared a general emergency (squawk 7700).

The Airbus A320 (registration F-GKXC) is diverting to Adolfo Suárez Madrid–Barajas Airport.

UPDATE #1
Touch down on runway 18R.

UPDATE #2
Now on stand.

UPDATE #3
The airline is planning a stopover of 40 minutes.