Almost 3,000 jobs will be lost in Spain, but the carmaker says its Sunderland factory will stay open.