Hi Inma,
If you can skip tan solo as in the last example, how do you know whether the meaning is "just before" or "within"? For example:
A 2 minutos de empezar la película me llamó mi madre para charlar.
Couldn't this mean either that my mother called me just before the film started or that she called me just after it started?