Spanish and Portuguese police have seized more than 700 kg of cocaine wrapped in pineapple skins and shipped from South America.