There is a prepaid taxi stand as soon as you leave customs. It is safe. They charge $25 or so to Miraflores.
I've never had a problem walking at night in Miraflores, but I'm young, not flashily dressed, and big. A bad target overall.
If you are uncomfortable, use taxis. And don't bring valuables out at night in case you are mugged.