Introduction The recent wave of power outages in Spain and Portugal has brought to light critical issues regarding energy resilience and infrastructure reliability in both countries. These outages not only disrupted daily life for thousands but also raised concerns about the integrity of the electrical grid, especially as both nations face growing demand and challenges