Question: do ranged spell attacks crit?
Answer: Then add any relevant modifiers as normal. This applies to all attacks, whether they are melee weapon attacks, ranged weapon attacks, melee spell attacks, ranged spell attacks, etc. If you are rolling a d20 versus AC, then you score a critical hit on a 20, and unless you have a class feature, feat, etc.