import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Lato } from "next/font/google";



export const metadata: Metadata = {
  title: 'Surtidora Ramona ERP - Gestión Empresarial Inteligente',
  description: 'Plataforma ERP completa para distribuidores y supermercados: inventario, ventas, facturación, CRM, delivery, IA y más. Moderno, confiable y escalable.',
  keywords: ["ERP, Surtidora Ramona, gestión empresarial, supermercado, distribuidora, inventario, facturación, POS, CRM, delivery, inteligencia artificial, ventas, logística"],
  openGraph: {
    "title": "Surtidora Ramona ERP - Gestión Empresarial Inteligente",
    "description": "Plataforma ERP completa para distribuidores y supermercados: inventario, ventas, facturación, CRM, delivery, IA y más. Moderno, confiable y escalable.",
    "url": "https://www.surtidoraramona.com",
    "siteName": "Surtidora Ramona",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/financial-program-user-interface-pc-screen-home-office-desk_482257-118861.jpg",
        "alt": "Surtidora Ramona ERP Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Surtidora Ramona ERP - Gestión Empresarial Inteligente",
    "description": "Plataforma ERP completa para distribuidores y supermercados: inventario, ventas, facturación, CRM, delivery, IA y más. Moderno, confiable y escalable.",
    "images": [
      "http://img.b2bpic.net/free-photo/financial-program-user-interface-pc-screen-home-office-desk_482257-118861.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const lato = Lato({
  variable: "--font-lato",
  subsets: ["latin"],
  weight: ["100", "300", "400", "700", "900"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${lato.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
