te habías metido

you had got yourself into

→ te
phrase Uncommon #24,254
you had got yourself into Often followed by «en»; in questions about someone’s whereabouts, it can mean “where you’d got to.”
SP: No sabía dónde te habías metido.
EN: I didn’t know where you’d got to.

Bosco, ¿dónde te habías metido?

Bosco, where have you been?

— Tesis (1996)

¡Aquí es donde te habías metido!

So this is where you’d gotten yourself!

— Anaconda (2025)

¿Dónde te habías metido, Bichito?

Where have you been hiding, Bichito?

— Juno (2007)

¿Dónde te habías metido?

Where had you been?

— Amores perros (2000)