pull a rabbit out of the hat
US /pʊl ə ˈræbɪt aʊt əv ðə hæt/
UK /pʊl ə ˈræbɪt aʊt əv ðə hæt/

1.
sacar un conejo de la chistera, hacer algo inesperado para resolver un problema
to do something unexpected and surprising that solves a problem
:
•
The team was losing, but the coach managed to pull a rabbit out of the hat with a last-minute strategy change.
El equipo estaba perdiendo, pero el entrenador logró sacar un conejo de la chistera con un cambio de estrategia de última hora.
•
We need someone to pull a rabbit out of the hat to save this failing project.
Necesitamos a alguien que saque un conejo de la chistera para salvar este proyecto fallido.