<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <!-- Página principal -->
    <url>
        <loc>https://crvaker.com/</loc>
        <lastmod>2026-07-15</lastmod>
        <changefreq>weekly</changefreq>
        <priority>1.0</priority>
    </url>
    
    <!-- Tienda de productos -->
    <url>
        <loc>https://crvaker.com/productos</loc>
        <lastmod>2026-07-15</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <!-- Página de Novedades -->
    <url>
        <loc>https://crvaker.com/novedades</loc>
        <lastmod>2026-07-15</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <!-- Página de Ofertas -->
    <url>
        <loc>https://crvaker.com/ofertas</loc>
        <lastmod>2026-07-15</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <!-- Páginas principales de información -->
    <url>
        <loc>https://crvaker.com/nosotros</loc>
        <lastmod>2026-07-15</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>
    
    <url>
        <loc>https://crvaker.com/servicios</loc>
        <lastmod>2026-07-15</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>
    
    <!-- NOTA IMPORTANTE:
    Para agregar dinámicamente todos tus productos, crea una ruta en Laravel:
    
    En routes/web.php agrega esto:
    
    Route::get('/sitemap.xml', function() {
        $productos = \App\Models\Productos::where('estado', true)
            ->select('url_slug', 'updated_at')
            ->orderBy('updated_at', 'desc')
            ->get();
        
        return response()->view('sitemap', ['productos' => $productos])
            ->header('Content-Type', 'application/xml');
    });
    
    Y crea una vista: resources/views/sitemap.blade.php con:
    
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
        @foreach($productos as $producto)
        <url>
            <loc>{{ route('leer_producto', $producto->url_slug) }}</loc>
            <lastmod>{{ $producto->updated_at->format('Y-m-d') }}</lastmod>
            <changefreq>weekly</changefreq>
            <priority>0.8</priority>
        </url>
        @endforeach
    </urlset>
    -->
    
</urlset>
