Para = the reason to do something. I want a coffe to dont fall sleep - quiero un café para no quedarme dormido
Por = the path you take to go or motive to do something. Can you go for wine ? Yes, I go for the short path - puedes ir por vino? Si, ire por el camino corto