Short answer
Next in line to King Felipe VI is his elder daughter, Leonor, Princess of Asturias, who was born in 2005. Her younger sister, Infanta Sofía, born in 2007, comes after her.
How the order is decided
The Spanish Constitution of 1978 sets the rules. The crown passes to the king’s descendants, with the closest in degree of relationship taking priority over more distant ones, and the older child before the younger. The constitution also states that a male is preferred over a female within the same degree. Since Felipe has no sons, that rule does not affect Leonor, who is his eldest child. Some Spaniards and politicians have suggested removing the male preference, but amending it would require a formal constitutional process.
The constitution also gives the Cortes Generales, Spain’s parliament, a role in settling any doubts about succession, and it can bar a person from the line if they marry against the express prohibition of the king and the Cortes.
Beyond Leonor and Sofía
Further down, the line goes to the king’s sisters, Infanta Elena and Infanta Cristina, and their descendants, in the order the constitution provides. I would not rely on a general site for the exact positions beyond the first two. For the current official picture, check the Spanish royal household’s website.
The title of the heir
Leonor holds the traditional titles of the heir, including Princess of Asturias, which was the custom in Spain since the late fourteenth century. As heir, she has been completing military training as part of the preparation for her future role as head of the armed forces. You can see how earlier successions worked in our list of Spanish monarchs, and how heirs are chosen more broadly in types of royal succession.