You might want to stop for a day in Pamplona. San Fermin is Jul 7 and the festivities (day & night) continue for a week.
You might want to check out resorts along the Costa Brava and Costa Dorada (close to Barcelona) or the north coast from San Sebastian westward to Bilbao and all the way to Asturias. (Santander, Laredo, Comillas, Santillana del Mar, San vicente de la Barquera). July is prety busy there