Hide text if query has no posts

Remove line#5 and do the following:

if ($query->have_posts()) :
echo '<h2 class="seccion col-sm-12">Tour</h2>'; //we are showing the div inside the conditional

I removed unnecessary <div>, as <h2> itself is a block element and can do the trick for you.

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduedueduseduseduseduedusedusedus