In María's case, she was something called androgen insensitive. Which means that she did have some sort of internal testes, they were making testosterone, but her body couldn't use it.
María tenía el síndrome de insensibilidad a los andrógenos, lo cual significa que tenía algo así como testículos internos que producían testosterona, pero su cuerpo no podía asimilarla.