Lopez has traditionally played working-class strivers. In her new romantic comedy, she's the superstar.