The rating agency said late Thursday that Spain’s economy has shown signs of resilience this year. But S&P says the country is still burdened by high unemployment, tight credit, heavy private-sector debt loads and prospects that its main trading partners will also stumble.

It cut its long term rating to “AA-” from “AA.” The outlook on the rating is “negative,” which implies it could be lowered again at some point.

S&P, however, affirmed its short-term rating of “A-1+” on Spain.