import { Hero } from '@/components/home/Hero';
import FeaturedProducts from '@/components/home/FeaturedProducts';
import CategoriesGrid from '@/components/home/CategoriesGrid';
import BrandsSection from '@/components/home/BrandsSection';
import { CmsBlock } from '@/components/content/CmsBlock';

// Home sections load catalog/CMS data from the live backend.
export const dynamic = 'force-dynamic';

export default async function HomePage() {
  return (
    <>
      <Hero />
      <FeaturedProducts />
      <CategoriesGrid />
      {/* Plantilla CMS editable desde Admin → CMS (slug: home) */}
      <CmsBlock slug="home" variant="section" />
      <BrandsSection />
    </>
  );
}
