at the last moment
Tom llegó al aeropuerto justo en el último momento.
Tom arrived at the airport just at the last minute.
Mi determinación desapareció en el último momento.
My determination vanished at the last moment.
Iba a estudiar medicina pero cambió de opinión en el último momento.
She was going to study medicine but changed her mind at the last minute.
Mejor cancelarlo ahora que en el último momento.
It's better to cancel it now than at the last minute.
— Dolor y gloria (2019)
Ella se echó atrás en el último momento.
She backed out at the last minute.
Al fin y al cabo, en el último momento él también la dejará.
In the end, he'll leave her too at the last minute.
— La ironía del destino, o goce de su baño (1976)
Se le ocurrió una buena idea en el último momento.
He had a good idea at the last minute.