I read a theory somewhere that because of the massive amounts of gold, silver, slaves and other resources from the Americas, Spain never had a good incentive to build up a strong industry, since resources were so plentiful. This was supposedly one of the main reasons for why Spain was surpassed by Britain in the long term
While you wait for answers, you might be interested in some threads from the FAQ section on "The Decline of the Spanish Empire":