Spain was scrambling on Saturday to limit the economic impact from an outbreak of African swine fever, a day after announcing its first cases in three decades in the Catalonia region.