"use client"; import { motion } from "framer-motion"; import { BentoGrid } from "@/components/ui/BentoGrid"; import { Card } from "@/components/ui/Card"; import { Button } from "@/components/ui/Button"; import { Badge } from "@/components/ui/Badge"; import Link from "next/link"; import { useLanguage } from "@/context/LanguageContext"; export default function Home() { const { t, locale } = useLanguage(); // Helper para las etiquetas de los meses en el SVG según el idioma const months = { es: ["ENE", "MAR", "JUN", "SEP", "DIC"], ca: ["GEN", "MAR", "JUN", "SET", "DES"], en: ["JAN", "MAR", "JUN", "SEP", "DEC"] }; return (
{/* Hero Section */}
{t.home.badge}

{/* Dividimos el título para mantener el salto de línea estético */} {locale === 'en' ? "The value" : locale === 'ca' ? "El valor" : "El valor"}
{locale === 'en' ? "of knowing." : locale === 'ca' ? "de saber." : "de saber."}

{t.home.description}

{/* Gráfico Animado SVG */} {locale === 'en' ? "REAL-TIME DATA" : locale === 'ca' ? "DADES EN TEMPS REAL" : "DATOS EN TIEMPO REAL"} {locale === 'en' ? "Trends and Projections" : locale === 'ca' ? "Tendències i Projeccions" : "Tendencias y Proyecciones"} LIVE DATA 92.4% {locale === 'en' ? "analysis precision" : locale === 'ca' ? "precisió d'anàlisi" : "precisión de análisis"} {months[locale].map((month, i) => ( {month} ))}
{/* Grid de Propuesta de Valor */}

{t.home.whyUs.title}

{t.home.whyUs.desc}

{/* Card 1 */}
01 / {locale === 'en' ? "Analysis" : locale === 'ca' ? "Anàlisi" : "Análisis"}

{t.home.whyUs.card1Title}

{t.home.whyUs.card1Desc}

{/* Card 2 */}
02 / {locale === 'en' ? "Coverage" : locale === 'ca' ? "Cobertura" : "Cobertura"}

{t.home.whyUs.card2Title}

{t.home.whyUs.card2Desc}

{/* Card 3 */}
03 / {locale === 'en' ? "Flexibility" : locale === 'ca' ? "Flexibilitat" : "Flexibilidad"}

{t.home.whyUs.card3Title}

{t.home.whyUs.card3Desc}

{/* CTA Card */}

{t.home.whyUs.ctaTitle}

{t.home.whyUs.ctaDesc}

); }