<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">

  <!-- ── Página principal ──────────────────────────────────────────────────── -->
  <url>
    <loc>https://diverneuro.com/</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
    <xhtml:link rel="alternate" hreflang="es" href="https://diverneuro.com/"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://diverneuro.com/?lang=en"/>
  </url>

  <!-- ── Páginas comerciales ───────────────────────────────────────────────── -->
  <url>
    <loc>https://diverneuro.com/catalogo</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://diverneuro.com/docentes</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://diverneuro.com/recursos</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://diverneuro.com/formacion</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>

  <!-- ── Blog ─────────────────────────────────────────────────────────────── -->
  <url>
    <loc>https://diverneuro.com/blog</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <!-- Los artículos del blog se añaden dinámicamente — ver nota abajo -->

  <!-- ── Legal ────────────────────────────────────────────────────────────── -->
  <url>
    <loc>https://diverneuro.com/privacidad</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.4</priority>
  </url>
  <url>
    <loc>https://diverneuro.com/aviso-legal</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>
  <url>
    <loc>https://diverneuro.com/cookies</loc>
    <lastmod>2026-05-22</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>

</urlset>

<!--
  NOTA: Para añadir artículos del blog automáticamente al sitemap:
  
  Opción 1 — Endpoint backend que genera el sitemap dinámicamente:
    GET /sitemap.xml → AdminBlogController añade un endpoint que genera el XML
    con todos los artículos publicados. Netlify puede hacer fetch de este endpoint.
  
  Opción 2 — GitHub Action semanal que regenera el sitemap:
    - Hace GET /api/blog/articles para obtener todos los artículos publicados
    - Genera el sitemap.xml y lo sube al repo
    - Netlify redeploya automáticamente
  
  Por ahora, añadir los artículos manualmente cuando se publiquen nuevos
  o implementar la Opción 1 en el backend.
-->
