Desenrascanço
Etymology
European Portuguese, from "desenrascar" ("to disentangle, to get out of a jam"), itself "des-" ("un-") plus "enrascar" ("to tangle up, to land in trouble"). So it is literally an "un-tangling." The Portuguese often claim it as a national trait, a point of pride in cheerful improvisation.
noun · /duh-zen-rrahsh-KAHN-soo/
The knack for improvising a clever, last-minute solution out of whatever’s at hand.
What it names
The resourceful art of wriggling out of a tight spot with no proper tools, time, or plan.
Example
With no map and a dead phone, pure desenrascanço got us back to the hotel.
Related idea
It overlaps with the English verb “to MacGyver,” but where a workaround can be planned, desenrascanço prizes the improvised save under pressure.