to have done something
No deberías haber hecho algo así.
You shouldn't have done something like that.
Al haber hecho algo malo debes pedir disculpas de inmediato.
If you have done something wrong, you should apologize immediately.
Él no pudo haber hecho algo así.
He couldn't have done something like that.
Tú y la señora deben haber hecho algo bien.
You and the lady must have done something right.
— Avatar: Fuego y ceniza (2025)
You could have done something.
Y yo me quité la idea de que pudiera haber hecho algo de la cabeza.
And I dismissed the idea that I might have done something wrong.
— Pacto de sangre (1944)