Powering the transition: lessons from Spain’s grid disruption