As you can see, the title "indice de figuras" (list of figures) keeps showing in all my other pages, I have separated all my chapters in different carpets, so the code i used to add the toc and the list of figures is just this:
\tableofcontents \addcontentsline{toc}{chapter}{Índice} \listoffigures \addcontentsline{toc}{chapter}{Índice de figuras}
Also, i wanted my toc and list of figures to appear on the toc, It did, but the page numeration was wrong, if you can help me with that also I would be very thankful.

\chapter*. Please provide a small compilable example that demonstrates the problem, starting with\documentclassand ends with\end{document}. Then we won't have to guess. – barbara beeton Feb 08 '23 at 19:47\chapter*, here is the link – Jonathan Gadiel Ramirez Martin Feb 08 '23 at 21:08\markboth{<text>}{<text>}immediately after the\chapter*line, as described here: https://tex.stackexchange.com/a/91468 – barbara beeton Feb 08 '23 at 21:47