it occurs to you
I'm sure you can think of something.
Pero si acaso se te ocurre robarme, te corto los huevos.
But if you even think about stealing from me, I’ll cut your balls off.
— Voces inocentes (2005)
¿Tu amigo salta por los aires y sólo se te ocurre eso?
Your friend blows up, and that’s all you can think of?
— El salario del miedo (1953)
Cómo se te ocurre molestarme a estas horas.
How could you possibly bother me at this hour?
— Una historia china de fantasmas (1987)
Pero ¿cómo se te ocurre decirle eso?
But how could you even think of saying that to them?
— Volver (2006)
¿Cómo se te ocurre dejarlo plantado en vivo?
How could you stand him up live on air?
— Bardo, falsa crónica de unas cuantas verdades (2022)
¿No se te ocurre una respuesta?
Can't you think of an answer?