It will be hot and a great time to understand why siestas are a part of the culture.
Spain offers a large and varied menu to keep the interest of travelers for two weeks.
Due to the size of the country strongly suggest you purchase open jaw tickets and fly into one city while departing another. This will greatly increase trip efficiency and effectiveness.
I would keave out attempts to add portugal or france on this visit.
Following is a sample itinerary:
Fly into Seville, via a flight transfer in Madrid. Arrive Day two (day one is the travel day to Spain), stay day three and on day four depart for Granada.
Train from seville to granada. Arrive day four and depart on day six for Madrid.
Train from granada to madrid. Arrive day six and depart on day nine for barcelona.
Train from madrid to Barcelona. Arrive on day nine and depart for home on day 14 (which is a full travel day)
What you obtain in terms of time:
Seville: 1/2 day, full day and 1/2 day
Granada: 1/2 day, full day and half day
Madrid: 1/2 day, full day, full day and 1/2 day
Barcelona: 1/2 day, three full days and then a travel day home
Now there are a number of options/variations to this trip and i am confident fellow posters will help provide excellent input. But I caution you about the following:
It will be hot and you should consider not trying to max your time in the midst of the heat. Slow down and accept a siesta is a wonderful way to beat the heat.
It will be crowded in august and spain has been experiencing annual tourism increases. Plan carefully how to purchase and obtain entry tickets so you can bypass the lines.
Save money by learning how to purchase advance train tickets. Do your on line research on train ticket purchase in order to max savings and minimize glitches.
Stay up late! Immediately adopt the spanish culture if late night eating and entertaining. A big advanatge is late night means cooler temps.
Seriously consider only three stops: seville, madrid and barcelona. I outlined four cuz most first time travelers want the overpacked trip itinerary. There is ample to do by staying in three cities and allowing time to make day trips. Far less travel hassle and more than you can imagine to do.
Pack lite, really lite. Luggae is a pain in the butt.
Finally, if you are minimum three nights per location then strongly suggest you rent apts.