<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    SITEMAP.XML para CodeLearn - https://codelearn.cl
    
    SEO TÉCNICO: Mapa del sitio para Google y otros motores de búsqueda
    
    ¿Qué hace?
    - Lista todas las páginas importantes del sitio que queremos que Google indexe
    - Indica la prioridad de cada página (0.0 a 1.0)
    - Indica frecuencia de actualización
    - Ayuda a Google a descubrir y rastrear páginas más eficientemente
    
    IMPORTANTE:
    1. Subir este archivo a la raíz del dominio: https://codelearn.cl/sitemap.xml
    2. Registrar el sitemap en Google Search Console
    3. Actualizar cuando se agreguen nuevas páginas o módulos
    4. Las URLs deben ser absolutas (con https://)
    
    PRIORIDADES:
    - 1.0: Página principal (máxima prioridad)
    - 0.9: Páginas de conversión (registro)
    - 0.8: Contenido principal (módulos, FAQ)
    - 0.6-0.7: Páginas secundarias
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

    <!-- 
        PÁGINA PRINCIPAL - Máxima prioridad
        Landing page con keywords principales
    -->
    <url>
        <loc>https://codelearn.cl/</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>weekly</changefreq>
        <priority>1.0</priority>
    </url>

    <!-- 
        PÁGINA DE REGISTRO - Alta prioridad (conversión)
        Página clave para adquisición de usuarios
    -->
    <url>
        <loc>https://codelearn.cl/auth/register.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.9</priority>
    </url>

    <!-- 
        FAQ - Alta prioridad
        Contenido educativo que responde preguntas frecuentes
        Bueno para SEO de long-tail keywords
    -->
    <url>
        <loc>https://codelearn.cl/faq.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <!-- 
        MÓDULOS EDUCATIVOS - Contenido principal
        Indexar módulos para aparecer en búsquedas de temas específicos
        Ejemplo: "aprender HTML", "tutorial CSS", "curso JavaScript"
    -->
    
    <!-- Tutorial (introducción) -->
    <url>
        <loc>https://codelearn.cl/modules/tutorial-1.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>
    
    <url>
        <loc>https://codelearn.cl/modules/tutorial-2.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- Módulo HTML (10 lecciones) -->
    <url>
        <loc>https://codelearn.cl/modules/html-1.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>
    
    <url>
        <loc>https://codelearn.cl/modules/html-2.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- 
        NOTA: Agregar aquí todas las lecciones restantes de HTML (3-10)
        Mismo formato que arriba, prioridad 0.6-0.7
    -->

    <!-- Módulo CSS (15 lecciones) - Primeras lecciones con mayor prioridad -->
    <url>
        <loc>https://codelearn.cl/modules/css-1.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>
    
    <url>
        <loc>https://codelearn.cl/modules/css-2.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- 
        NOTA: Agregar aquí todas las lecciones restantes de CSS (3-15)
        Mismo formato que arriba, prioridad 0.6-0.7
    -->

    <!-- Módulo JavaScript (20 lecciones) - Primeras lecciones con mayor prioridad -->
    <url>
        <loc>https://codelearn.cl/modules/js-1.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>
    
    <url>
        <loc>https://codelearn.cl/modules/js-2.html</loc>
        <lastmod>2026-01-16</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <!-- 
        NOTA: Agregar aquí todas las lecciones restantes de JavaScript (3-20)
        Mismo formato que arriba, prioridad 0.6-0.7
    -->

    <!-- 
        PÁGINAS EXCLUIDAS (no incluir en sitemap):
        - /dashboard.html (requiere login, noindex)
        - /profile.html (privado)
        - /auth/login.html (funcional, no necesita ranking)
        - /admin/* (administrativo)
        - /payments/* (proceso de pago, no indexable)
    -->

</urlset>

<!-- 
    INSTRUCCIONES POST-CREACIÓN:
    
    1. COMPLETAR TODAS LAS LECCIONES:
       - Agregar las URLs faltantes de html-3 a html-10
       - Agregar las URLs faltantes de css-3 a css-15  
       - Agregar las URLs faltantes de js-3 a js-20
    
    2. ACTUALIZAR FECHAS:
       - Cambiar <lastmod> cuando se actualice contenido de lecciones
       - Google usa esto para saber qué páginas re-rastrear
    
    3. VALIDAR SITEMAP:
       - Usar: https://www.xml-sitemaps.com/validate-xml-sitemap.html
       - Verificar que no haya errores de formato
    
    4. ENVIAR A GOOGLE SEARCH CONSOLE:
       - Ir a: https://search.google.com/search-console
       - Sitemaps > Agregar nuevo sitemap
       - URL: https://codelearn.cl/sitemap.xml
    
    5. MANTENER ACTUALIZADO:
       - Agregar nuevas lecciones cuando se creen
       - Actualizar lastmod cuando se modifique contenido
       - Re-enviar a Google Search Console si hay cambios importantes
-->
