Breakdown of Mi compañero se llevó una bronca por llegar tarde.
un
a, an, some
llegar
to arrive
mi
my
tarde
late
Questions & Answers about Mi compañero se llevó una bronca por llegar tarde.
Why is "se llevó" used here instead of just "recibió"?
What exactly does "bronca" mean in Spain?
Why do we use "por" before "llegar" instead of "para"?
Here, por expresses the cause or reason for the action. The colleague got a telling-off because of arriving late. If you used para, it would incorrectly imply purpose, as if he got scolded in order to arrive late. Remember that por followed directly by an infinitive is the standard way to express "for doing something".
Since the action of arriving late happened in the past, shouldn't it be "por haber llegado tarde"?
You can absolutely say por haber llegado tarde (for having arrived late), and it is perfectly correct. However, native speakers frequently use the simple infinitive llegar even for past actions when the surrounding context already makes the timeline clear. It sounds a bit more direct and conversational.