When applying for a Schengen visa please select the destination you will be staying in for the lengthiest time as you will be required to submit an application to the consulate of the country you will be staying in for the longest duration.
Spain tourist visa is not required for citizens of Switzerland for a stay up to 90 days.
Check with your airline in case you have connecting flights overseas as part of your journey to Spain. It may be the case that countries you pass through en route to your destination may require a separate transit visa. Please refer to visa requirements of the specific country.