Since almost all cases of syphilis are genital and you used a condom and your pubic mound area did not make any rubbing contact with hers and she did not have any open syphilis sores and you did not have any open gential sores for the bacteria to enter, you cant contract syphilis.
Unles your head had rubbing contact with her genital area you cant contract it on your head.