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';

export const revalidate = 3600; // ISR: revalidate every hour

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