The Motorway networks in Spain are very good and you should have no problem driving through the night .
If your familiar with the route your taking even better and if not a good Sat Nav will keep you right and a map for backup
The Spanish motorways are very quiet even at their busiest. Only place you will normally get a build up of heavy traffic is going through the likes of Madrid.