Granada works for families for reasons most guides don't mention. The free tapas tradition means a full evening's food for adults comes with the drinks, so you're not paying separately for children's plates every time someone orders. The historic centre is compact enough to walk between the main sights without long transfers. And Parque de las Ciencias is the best interactive science museum in Andalusia. It covers 70,000 m², runs a working planetarium with timed shows, and has a tropical greenhouse children can walk through. They are hard to extract at closing time.
The honest caveat: the Alhambra's Nasrid Palaces are not suited to children under 8. Two hours of slow movement through crowded rooms with no seating is exactly what it sounds like. The gardens and the Alcazaba fortress are a different story — plenty of space, great views, and enough to keep active children occupied for a morning. This guide separates what works from what doesn't.