<?xml version="1.0" encoding="UTF-8"?>
<!--
  sitemap.xml — https://www.mantra.chat
  Last updated: 2026-08-06

  Locales: es (default, no prefix), en (/en), pt (/pt) — see next-i18next.config.js.
  Every URL declares its full hreflang set, and every URL referenced as an
  alternate now also appears as its own <loc>. Google requires this to be
  reciprocal: if A lists B as an alternate, B must exist in the sitemap and
  list A back. The previous version declared /en/privacy, /pt/privacy,
  /en/terms-cond and /pt/terms-cond as alternates but never listed them as
  URLs, so the whole legal cluster's hreflang was being ignored.

  WHAT MATTERS TO GOOGLE:
  - <lastmod> is read and used. It must reflect a real, meaningful content
    change. Do not auto-stamp it on every deploy — a sitemap where every
    lastmod is today's date gets the signal discounted entirely.
  - <changefreq> and <priority> are ignored by Google. Kept here because
    Bing and some AI crawlers still read them; harmless either way.

  Excluded on purpose: /api/*, /unsubscribe (utility, noindex), /404.
  Anchors (/#planes, /#contacto) are not valid sitemap URLs — they are
  sections of the homepage, not separate documents. Do not add them.

  BEFORE SHIPPING — verify:
  1. /pt/privacy and /pt/terms-cond actually return 200. /en/privacy and
     /en/terms-cond are confirmed live (linked in the English footer).
  2. Every page's <link rel="canonical"> matches its own <loc> here. As of
     2026-08-06 the English homepage sets canonical to https://www.mantra.chat,
     which tells Google to drop /en from the index and directly contradicts
     this file. Fix the canonical to https://www.mantra.chat/en first —
     otherwise the hreflang below cannot take effect.
  3. Keep in sync with pages/ when routes are added or removed.
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">

  <!-- ===================================================================
       Home (es / en / pt)
       =================================================================== -->
  <url>
    <loc>https://www.mantra.chat/</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/"/>
    <lastmod>2026-08-06</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>

  <url>
    <loc>https://www.mantra.chat/en</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/"/>
    <lastmod>2026-08-06</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>

  <url>
    <loc>https://www.mantra.chat/pt</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/"/>
    <lastmod>2026-08-06</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>

  <!-- ===================================================================
       Privacy Policy (es / en / pt)
       =================================================================== -->
  <url>
    <loc>https://www.mantra.chat/privacy</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/privacy"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en/privacy"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt/privacy"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/privacy"/>
    <lastmod>2026-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>

  <url>
    <loc>https://www.mantra.chat/en/privacy</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/privacy"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en/privacy"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt/privacy"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/privacy"/>
    <lastmod>2026-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>

  <url>
    <loc>https://www.mantra.chat/pt/privacy</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/privacy"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en/privacy"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt/privacy"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/privacy"/>
    <lastmod>2026-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>

  <!-- ===================================================================
       Terms and Conditions (es / en / pt)
       =================================================================== -->
  <url>
    <loc>https://www.mantra.chat/terms-cond</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/terms-cond"/>
    <lastmod>2026-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.4</priority>
  </url>

  <url>
    <loc>https://www.mantra.chat/en/terms-cond</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/terms-cond"/>
    <lastmod>2026-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.4</priority>
  </url>

  <url>
    <loc>https://www.mantra.chat/pt/terms-cond</loc>
    <xhtml:link rel="alternate" hreflang="es" href="https://www.mantra.chat/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://www.mantra.chat/en/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="pt" href="https://www.mantra.chat/pt/terms-cond"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://www.mantra.chat/terms-cond"/>
    <lastmod>2026-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.4</priority>
  </url>

</urlset>