This is how I understand it.
Acá....might not even be a correct word but many people use it to mean "over here"
Allá....over there
Allí.....right there
Ahí.....when people say something like...
That's where the problem is.
Ahí está el problema.
That is my understanding of those 4 words.
My