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.