You've got quite of bit of research to do. You need to go to the Spanish Consulate website to determine which type of visa you need to apply for. Keep in mind that you must apply for a work visa in the US, so if you go to Spain looking for work, you will have to come back to apply for your visa AFTER you have found a job. Do a search on this board and you will find many threads discussing the issue. Bear in mind that the rules for Americans are different than rules for Europeans. Good luck!