Panama was scrambling to restore power Sunday after a nighttime blackout plunged the Central American country into darkness.