Spain said on Friday it had largely reversed a surge of migrants into its North African enclave of Ceuta, with 48,000 of the people who crossed from Morocco by land and sea already returning voluntarily.