You are always on your toes and rarely caught off guard.
If you are unable to act in a surprise round because of failing a Perception check, you still roll initiative normally. You can act on your initiative count in the surprise round, but you can take only the total defense action.
The text on this page is Open Game Content, and is licensed for public use under the terms of the Open Game License v1.0a.
Sources:
SECTION 15