AHC: Spain doesn't lose to America

So the challenge is to have the Spaniards not lose to the USA in 1898. They must keep at least some overseas territories in the Americas and the Pacific. Bonus points if they manage to keep everything. More bonus points if it allows for them to eventually integrate Cuba and the Philippines into Spain itself.
 
What if the US went to war over the Viginius Affair which lasted from October 1873 to February 1875? What would the USA's chances of winning be during that period?

Wasn't that at the time when the USN could have beaten by the Chilean or Argentinian fleets? I don't know how well the Spanish fleet compares to the South American ones, but that doesn't augur well for the US in this scenario.
 
Top