The thought horrified me
And this is why you are thinking these thoughts. It's not actually pedophilia, but rather the fact that doing such things frighten you so much.
What you have is POCD and is a very, very common form of OCD so you are definitely not alone.
I've actually read a lot about POCD because I find it so fascinating in its uniqueness. It seems to strike peolple in the USA and UK the most for some reason. I've noticed anecdotally that it's cultural. People in other parts of Europe often don't quite 'understand' POCD or suffer from it nearly as much as Americans and British from what I gather.
I have to admit that POCD fascinates me most because I don't suffer from OCD so I can look from the outside rationally at this. I have had mild OCD during my anixety peaks (repeating phrases and thoughts in my head all day.. superstition, etc), but I've never suffered primarily from OCD.
Both women and men struggle with POCD. I don't want to be the barer of bad news, but it can certainly stay with you and get worse. You can have it through the years and as a woman it can effect you with your own children (boy or girl) and other peoples kids. I've read countless stories of mothers being tormented of bathing their kids.
POCD is strange because there's glimpses of truth in things that the OCD will amplify. For instance, little kids
are cute. They have nice skin and of course it feels good.. that's where the saying 'smooth as a baby's skin' comes from. It's what we all want. Some kids will grow up to be pretty or handsome or will be prettier or more handsome than other kids. Kids have thick, awesome hair, no cellulite, fat, etc. Teens have bodies that most women would love to rewind and have again. So yes there's a lot of truths in that. Oh and also I've had many ex gf's and *all* of them were attracted to other women and fantasized about them. I'm talking ALL of them so don't think you are alone there either.
What you're OCD then does, is take those things a step further to thoughts which you can't fathom. Then the OCD consumes you.
Someone from Latin America or Europe may have different viewpoints of children and sexuality. When I was in the Dominican Republic for a vacation, there were many guests from Spain. They had kids completely nude running around and jumping all over moms and dads. Some in early teens. Every time I go on vacation I always see stuff with kids and parents from Europe that even make me a bit uncomfortable, but to them it's nothing and completely normal. Actually many of the parents topless themselves. They culturally are different so they always have a 'different' opinion on POCD, but one thing is for sure, they seem to suffer much less from it.
Eventually, things can get bad enough where you may begin to really believe that you actually touched a child after you have been just in the same room. You'll know you didn't, but your OCD will have you really, truly believe that you did and that you actually liked it and want to do it again. This is very, very... VERY common and classic POCD.
There's 2 things I think that cause POCD.
1 - What you said "The thought horrified me". Like any OCD, OCD will often pick what 'scares you most' and use that against you. Treat OCD as something separate from you. Some it might be getting cut, another getting rabies, and some it could be children.
2 - Anxiety (having a non sober state of mind). Remember OCD is anxiety. Throughout my own experience and research, it seems that the more anxiety someone suffers, the more taboo the thoughts and imagination to get someone sexually aroused. It's the thing about anxiety that people don't discuss very often. It can often cause spice actually in a rather mundane, typical fantasies. It's something new. So lets suppose a female gets panic attacks and anxiety after a job loss. When she has some 'alone time', she might be dreaming of much more taboo things to excite her. The age thing is definitely a factor as well as race and gender. She will find that she doesn't want to fantasize about the 'usual'. I can say though, that this only lasts through the peak of anxiety. When you 'get better', your sexual fantasies and such get back to normal.
So what happens with the POCD, is the person suffering worries that the pedo thoughts, are mixing in with her animal instinct to want to be aroused. This is where POCD is different than something like a phobia of knives or sickness. POCD is special in this regard. Your anxiety will naturally make your libido want to reach for more taboo sexual fantasies when you are suffering from anxiety. Combine this with POCD and you do not have a winning combination.
The way to fight POCD? Well.. many suffer their whole lives, raise kids, and live with it forever. All I can say, is there's one common denominator:
The thought horrified me
The above is the big thing that seems to give people POCD as compared to others who do not suffer. To me (and my wife who I have discussed this with in the past), a thought of myself doing pedo stuff just doesn't bother me that much. Neither my wife. I mean.. I don't like it obviously, but it's just a thought. I have imagined the most worst things trust me. And the reason why it doesn't bother me is because I don't find it horrifying like you do. I know that sounds really bad lol. I do NOT endorse the real thing happening of course. I just had my first daughter 2 months ago and I can imagine bad thoughts on that too and you know what? It just doesn't bother me because it's just a thought. It's like imagining taking a machine gun and like Rambo and shooting everything in site. It's just imagination and not reality. It means nothing. I know and you know that we're both non pedophiles. But the OCD is blowing it out of control and giving your doubts.
Medication will help greatly with this if you aren't taking any. It will allow you to not get so 'upset' at the mental images and then brush it aside when it happens. That is the only way that the POCD will go away. You don't want it for life and to end up with this your whole life.