// Variation 2 — Bold Operativo
// Same editorial DNA, but more confident. Full-bleed photography in hero,
// split color blocks for the two business lines, photo overlays on industries.

// ───────────────────────────────────────── RESPONSIVE HOOK
function useViewport() {
  const [w, setW] = React.useState(
    typeof window !== 'undefined' ? window.innerWidth : 1280
  );
  React.useEffect(() => {
    const onResize = () => setW(window.innerWidth);
    window.addEventListener('resize', onResize);
    return () => window.removeEventListener('resize', onResize);
  }, []);
  return {
    w,
    isMobile: w <= 720,
    isTablet: w > 720 && w <= 1024,
    isDesktop: w > 1024,
  };
}

function HomeBold({ tagline }) {
  return (
    <div
      data-screen-label="V2 · Bold Operativo"
      style={{
        background: WEB.paper,
        color: WEB.ink,
        fontFamily: '"Schibsted Grotesk", system-ui, sans-serif',
        lineHeight: 1.5,
        width: '100%',
        minHeight: '100vh',
      }}
    >
      <BoldNav />
      <BoldHero tagline={tagline} />
      <BoldLines />
      <BoldIndustries />
      <BoldCTA />
      <BoldFooter />
    </div>
  );
}

// ───────────────────────────────────────── NAV
function BoldNav() {
  const { isMobile } = useViewport();
  const [open, setOpen] = React.useState(false);
  const links = ['Productos', 'Servicios', 'Industrias', 'Nosotros', 'Contacto'];

  return (
    <header
      style={{
        position: 'sticky',
        top: 0,
        zIndex: 50,
        background: WEB.navy,
        color: '#fff',
      }}
    >
      <div
        style={{
          maxWidth: 1280,
          margin: '0 auto',
          padding: isMobile ? '14px 20px' : '16px 48px',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'space-between',
          gap: 12,
        }}
      >
        <div style={{ display: 'flex', alignItems: 'center', gap: 14 }}>
          <OlklinWordmark color="#fff" height={isMobile ? 18 : 20} />
        </div>

        {isMobile ? (
          <button
            type="button"
            aria-label={open ? 'Cerrar menú' : 'Abrir menú'}
            aria-expanded={open}
            onClick={() => setOpen((v) => !v)}
            style={{
              appearance: 'none',
              background: 'transparent',
              border: '1px solid rgba(255,255,255,0.25)',
              color: '#fff',
              padding: '8px 12px',
              borderRadius: 999,
              display: 'inline-flex',
              alignItems: 'center',
              gap: 8,
              fontSize: 13,
              fontWeight: 500,
              cursor: 'pointer',
              fontFamily: 'inherit',
            }}
          >
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round">
              {open ? (
                <>
                  <line x1="6" y1="6" x2="18" y2="18" />
                  <line x1="6" y1="18" x2="18" y2="6" />
                </>
              ) : (
                <>
                  <line x1="4" y1="7" x2="20" y2="7" />
                  <line x1="4" y1="12" x2="20" y2="12" />
                  <line x1="4" y1="17" x2="20" y2="17" />
                </>
              )}
            </svg>
            {open ? 'Cerrar' : 'Menú'}
          </button>
        ) : (
          <nav style={{ display: 'flex', gap: 28, alignItems: 'center' }}>
            {links.map((l) => (
              <a
                key={l}
                href="#"
                style={{
                  color: '#fff',
                  fontSize: 13.5,
                  fontWeight: 500,
                  textDecoration: 'none',
                  letterSpacing: '-0.005em',
                  opacity: 0.9,
                }}
              >
                {l}
              </a>
            ))}
            <a
              href="#"
              style={{
                display: 'inline-flex',
                alignItems: 'center',
                gap: 8,
                background: '#fff',
                color: WEB.navy,
                padding: '10px 16px',
                borderRadius: 999,
                fontSize: 13,
                fontWeight: 600,
                textDecoration: 'none',
                letterSpacing: '-0.005em',
              }}
            >
              <WIconWhatsApp size={16} stroke={1.7} />
              WhatsApp
            </a>
          </nav>
        )}
      </div>

      {/* Mobile dropdown panel */}
      {isMobile && open && (
        <nav
          style={{
            borderTop: '1px solid rgba(255,255,255,0.12)',
            background: WEB.navyDeep,
            padding: '8px 20px 20px',
            display: 'flex',
            flexDirection: 'column',
            gap: 4,
          }}
        >
          {links.map((l) => (
            <a
              key={l}
              href="#"
              onClick={() => setOpen(false)}
              style={{
                color: '#fff',
                fontSize: 18,
                fontWeight: 500,
                textDecoration: 'none',
                letterSpacing: '-0.01em',
                padding: '14px 0',
                borderBottom: '1px solid rgba(255,255,255,0.08)',
              }}
            >
              {l}
            </a>
          ))}
          <a
            href="#"
            onClick={() => setOpen(false)}
            style={{
              marginTop: 14,
              display: 'inline-flex',
              alignItems: 'center',
              justifyContent: 'center',
              gap: 10,
              background: '#25d366',
              color: '#0a1d12',
              padding: '14px 20px',
              borderRadius: 999,
              fontSize: 15,
              fontWeight: 700,
              textDecoration: 'none',
              letterSpacing: '-0.005em',
            }}
          >
            <WIconWhatsApp size={18} stroke={1.7} />
            Cotizar por WhatsApp
          </a>
        </nav>
      )}
    </header>
  );
}

// ───────────────────────────────────────── HERO
function BoldHero({ tagline }) {
  const { isMobile } = useViewport();
  return (
    <section
      style={{
        position: 'relative',
        background: WEB.navy,
        color: '#fff',
        minHeight: isMobile ? 560 : 720,
        overflow: 'hidden',
      }}
    >
      {/* Background image */}
      <div
        style={{
          position: 'absolute',
          inset: 0,
          backgroundImage: `url(${PHOTOS.factory})`,
          backgroundSize: 'cover',
          backgroundPosition: 'center',
          opacity: 0.42,
          filter: 'saturate(0.7)',
        }}
      />
      {/* Navy gradient */}
      <div
        style={{
          position: 'absolute',
          inset: 0,
          background: `linear-gradient(180deg, ${WEB.navy} 0%, rgba(17,45,112,0.4) 40%, ${WEB.navyDeep} 100%)`,
        }}
      />

      <div
        style={{
          position: 'relative',
          maxWidth: 1280,
          margin: '0 auto',
          padding: isMobile ? '0 20px' : '0 48px',
          color: '#fff',
        }}
      >
        {/* Top metabar */}
        <div
          style={{
            display: 'flex',
            alignItems: 'center',
            gap: 16,
            padding: isMobile ? '20px 0 40px' : '20px 0 80px',
            fontFamily: '"JetBrains Mono", monospace',
            fontSize: isMobile ? 9 : 10,
            letterSpacing: '0.22em',
            opacity: 0.7,
          }}
        >
          <span>01 — INICIO</span>
          <span style={{ flex: 1, height: 1, background: 'rgba(255,255,255,0.18)' }} />
          {!isMobile && <span>FABRICAMOS · OPERAMOS · DESDE MÉXICO</span>}
          {isMobile && <span>MÉXICO</span>}
        </div>

        <div style={{ maxWidth: 980, paddingBottom: isMobile ? 64 : 120 }}>
          <h1
            style={{
              fontWeight: 600,
              fontSize: 'clamp(40px, 11vw, 108px)',
              lineHeight: 0.95,
              letterSpacing: '-0.035em',
              margin: 0,
              textWrap: 'pretty',
            }}
          >
            {tagline}
          </h1>
          <p
            style={{
              marginTop: isMobile ? 24 : 32,
              fontSize: 'clamp(15px, 2.2vw, 19px)',
              lineHeight: 1.45,
              maxWidth: 620,
              opacity: 0.85,
              letterSpacing: '-0.005em',
            }}
          >
            Dos líneas de negocio, una sola disciplina: productos profesionales
            de fórmula propia, y personal capacitado que los opera en plantas,
            hospitales, oficinas y desarrollos en todo México.
          </p>
          <div style={{ marginTop: isMobile ? 28 : 40, display: 'flex', gap: 10, flexWrap: 'wrap' }}>
            <a
              href="#"
              style={{
                display: 'inline-flex',
                alignItems: 'center',
                gap: 10,
                background: '#fff',
                color: WEB.navy,
                padding: isMobile ? '14px 20px' : '16px 24px',
                borderRadius: 999,
                fontSize: isMobile ? 14 : 15,
                fontWeight: 600,
                textDecoration: 'none',
                letterSpacing: '-0.005em',
              }}
            >
              <WIconWhatsApp size={18} stroke={1.6} />
              Cotizar por WhatsApp
            </a>
            <a
              href="#lineas-bold"
              style={{
                display: 'inline-flex',
                alignItems: 'center',
                gap: 10,
                color: '#fff',
                padding: isMobile ? '14px 18px' : '16px 22px',
                borderRadius: 999,
                fontSize: isMobile ? 14 : 15,
                fontWeight: 500,
                textDecoration: 'none',
                letterSpacing: '-0.005em',
                border: '1px solid rgba(255,255,255,0.3)',
              }}
            >
              Conoce las dos líneas
              <WIconArrow size={16} stroke={1.6} />
            </a>
          </div>
        </div>
      </div>
    </section>
  );
}

// ───────────────────────────────────────── LINES (split-screen)
function BoldLines() {
  const { isMobile } = useViewport();
  return (
    <section id="lineas-bold" style={{ paddingTop: isMobile ? 40 : 64 }}>
      <div style={{ maxWidth: 1280, margin: '0 auto', padding: isMobile ? '0 20px' : '0 48px' }}>
        <div
          style={{
            display: 'flex',
            alignItems: 'center',
            gap: 16,
            padding: '14px 0',
            fontFamily: '"JetBrains Mono", monospace',
            fontSize: isMobile ? 9 : 10,
            letterSpacing: '0.22em',
            color: WEB.navy,
            opacity: 0.7,
            borderBottom: `1px solid ${WEB.lineSoft}`,
          }}
        >
          <span>02 — DOS LÍNEAS</span>
          <span style={{ flex: 1, height: 1, background: WEB.line }} />
          <span>UNA DISCIPLINA</span>
        </div>

        <div style={{ padding: isMobile ? '40px 0 8px' : '64px 0 16px', maxWidth: 760 }}>
          <h2
            style={{
              fontWeight: 600,
              fontSize: 'clamp(32px, 7vw, 64px)',
              lineHeight: 0.98,
              letterSpacing: '-0.03em',
              color: WEB.navy,
              margin: 0,
              textWrap: 'pretty',
            }}
          >
            Fabricamos con lo que limpiamos.
          </h2>
        </div>
      </div>

      {/* Split blocks full-width */}
      <div
        style={{
          marginTop: isMobile ? 24 : 32,
          display: 'grid',
          gridTemplateColumns: isMobile ? '1fr' : '1fr 1fr',
          minHeight: isMobile ? 'auto' : 620,
        }}
      >
        <BoldLineBlock
          number="01"
          tag="OLKLIN INDUSTRIAL"
          title="Productos de limpieza"
          accent={WEB.accentProducts}
          accentDeep={WEB.navy}
          bgPhoto={PHOTOS.productShelf}
          description="Línea profesional de fórmula propia, fabricada en México. Multiusos, desengrasante, desinfectante, aromatizante y cloro — disponibles en presentaciones de 1 L y 5 L."
          items={PRODUCT_LINE.map((p) => `${p.sku}  ·  ${p.name}`)}
          cta="Ver catálogo →"
          Icon={WIconBottle}
        />
        <BoldLineBlock
          number="02"
          tag="OLKLIN OPERACIONES"
          title="Personal de limpieza"
          accent={WEB.accentService}
          accentDeep={WEB.navy}
          bgPhoto={PHOTOS.team}
          description="Servicio continuo de limpieza con personal capacitado, uniformado y supervisado. Cobertura para industrias, oficinas, hospitales y desarrollos residenciales en turnos hasta 24/7."
          items={[
            'Limpieza general continua',
            'Supervisión por sitio',
            'Capacitación y uniforme incluidos',
            'Reemplazos garantizados en 24 h',
            'Productos Olklin opcionales',
          ]}
          cta="Solicitar propuesta →"
          Icon={WIconStaff}
          dark
        />
      </div>
    </section>
  );
}

function BoldLineBlock({ number, tag, title, accent, accentDeep, bgPhoto, description, items, cta, Icon, dark = false }) {
  const { isMobile } = useViewport();
  const fg = dark ? '#fff' : WEB.navy;
  const fgMuted = dark ? 'rgba(255,255,255,0.7)' : 'rgba(17,45,112,0.7)';
  const lineColor = dark ? 'rgba(255,255,255,0.16)' : WEB.lineSoft;
  return (
    <div
      style={{
        position: 'relative',
        background: dark ? WEB.navy : WEB.paperCool,
        color: fg,
        padding: isMobile ? '40px 20px' : '56px 48px',
        overflow: 'hidden',
      }}
    >
      {/* Background photo (subtle) */}
      <div
        style={{
          position: 'absolute',
          inset: 0,
          backgroundImage: `url(${bgPhoto})`,
          backgroundSize: 'cover',
          backgroundPosition: 'center',
          opacity: dark ? 0.18 : 0.1,
          filter: dark ? 'saturate(0.7)' : 'saturate(0.9)',
        }}
      />
      <div style={{ position: 'relative', display: 'flex', flexDirection: 'column', height: '100%' }}>
        {/* Top row: number + tag */}
        <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}>
          <div
            style={{
              fontWeight: 600,
              fontSize: isMobile ? 56 : 80,
              lineHeight: 0.85,
              letterSpacing: '-0.04em',
              color: fg,
              opacity: 0.25,
            }}
          >
            {number}
          </div>
          <div
            style={{
              display: 'inline-flex',
              alignItems: 'center',
              gap: 8,
              padding: '6px 12px',
              background: accent,
              color: dark ? WEB.navy : '#fff',
              borderRadius: 999,
              fontFamily: '"JetBrains Mono", monospace',
              fontSize: isMobile ? 8.5 : 9.5,
              letterSpacing: '0.22em',
              fontWeight: 500,
            }}
          >
            {tag}
          </div>
        </div>

        {/* Title */}
        <h3
          style={{
            marginTop: isMobile ? 18 : 24,
            fontWeight: 600,
            fontSize: 'clamp(30px, 6vw, 56px)',
            lineHeight: 0.98,
            letterSpacing: '-0.03em',
            color: fg,
            display: 'flex',
            alignItems: 'center',
            gap: isMobile ? 12 : 18,
            flexWrap: 'wrap',
          }}
        >
          <span
            style={{
              width: isMobile ? 44 : 56,
              height: isMobile ? 44 : 56,
              borderRadius: 999,
              background: accent,
              color: dark ? WEB.navy : '#fff',
              display: 'inline-flex',
              alignItems: 'center',
              justifyContent: 'center',
              flexShrink: 0,
            }}
          >
            <Icon size={isMobile ? 22 : 28} stroke={1.5} />
          </span>
          {title}
        </h3>

        {/* Description */}
        <p
          style={{
            marginTop: 16,
            fontSize: isMobile ? 15 : 16,
            lineHeight: 1.5,
            color: fgMuted,
            maxWidth: 460,
            letterSpacing: '-0.005em',
          }}
        >
          {description}
        </p>

        {/* Items */}
        <ul
          style={{
            listStyle: 'none',
            margin: isMobile ? '20px 0 0' : '28px 0 0',
            padding: 0,
            display: 'grid',
            gridTemplateColumns: '1fr',
            gap: 8,
            borderTop: `1px solid ${lineColor}`,
            paddingTop: 12,
          }}
        >
          {items.map((it, i) => (
            <li
              key={i}
              style={{
                display: 'flex',
                alignItems: 'center',
                gap: 12,
                fontSize: isMobile ? 13.5 : 14.5,
                color: fg,
                padding: '8px 0',
                borderBottom: `1px solid ${lineColor}`,
                letterSpacing: '-0.005em',
              }}
            >
              <WIconCheck size={16} stroke={1.8} style={{ color: accent, flexShrink: 0 }} />
              <span>{it}</span>
            </li>
          ))}
        </ul>

        {/* CTA */}
        <a
          href="#"
          style={{
            marginTop: isMobile ? 24 : 32,
            display: 'inline-flex',
            alignSelf: 'flex-start',
            alignItems: 'center',
            gap: 10,
            color: fg,
            fontSize: isMobile ? 14 : 15,
            fontWeight: 600,
            textDecoration: 'none',
            paddingBottom: 6,
            borderBottom: `2px solid ${accent}`,
            letterSpacing: '-0.005em',
          }}
        >
          {cta}
        </a>
      </div>
    </div>
  );
}

// ───────────────────────────────────────── INDUSTRIES
function BoldIndustries() {
  const { isMobile, isTablet } = useViewport();
  const cols = isMobile ? '1fr 1fr' : isTablet ? 'repeat(2, 1fr)' : 'repeat(3, 1fr)';
  return (
    <section style={{ paddingTop: isMobile ? 56 : 96, paddingBottom: isMobile ? 56 : 96 }}>
      <div style={{ maxWidth: 1280, margin: '0 auto', padding: isMobile ? '0 20px' : '0 48px' }}>
        <div
          style={{
            display: 'flex',
            alignItems: 'center',
            gap: 16,
            padding: '14px 0',
            fontFamily: '"JetBrains Mono", monospace',
            fontSize: isMobile ? 9 : 10,
            letterSpacing: '0.22em',
            color: WEB.navy,
            opacity: 0.7,
            borderBottom: `1px solid ${WEB.lineSoft}`,
          }}
        >
          <span>03 — INDUSTRIAS</span>
          <span style={{ flex: 1, height: 1, background: WEB.line }} />
          {!isMobile && <span>SEIS VERTICALES, UNA OPERACIÓN</span>}
          {isMobile && <span>6 VERTICALES</span>}
        </div>

        <div
          style={{
            display: 'grid',
            gridTemplateColumns: isMobile ? '1fr' : '1fr 1fr',
            gap: isMobile ? 20 : 48,
            paddingTop: isMobile ? 36 : 56,
            alignItems: 'end',
          }}
        >
          <h3
            style={{
              fontWeight: 600,
              fontSize: 'clamp(28px, 6vw, 56px)',
              lineHeight: 0.98,
              letterSpacing: '-0.03em',
              color: WEB.navy,
              margin: 0,
              textWrap: 'pretty',
            }}
          >
            Donde la limpieza no es opcional, estamos.
          </h3>
          <p
            style={{
              fontSize: isMobile ? 15 : 16,
              lineHeight: 1.55,
              color: WEB.navy,
              opacity: 0.75,
              margin: 0,
              letterSpacing: '-0.005em',
            }}
          >
            Atendemos verticales que dependen de protocolos estrictos, continuidad
            operativa y respuesta inmediata. Adaptamos productos y personal a las
            exigencias específicas de cada industria.
          </p>
        </div>

        {/* Industry grid — large photo cards */}
        <div
          style={{
            marginTop: isMobile ? 32 : 56,
            display: 'grid',
            gridTemplateColumns: cols,
            gap: isMobile ? 10 : 16,
          }}
        >
          {INDUSTRIES.map((ind, i) => (
            <a
              key={ind.key}
              href="#"
              style={{
                position: 'relative',
                aspectRatio: '4 / 5',
                backgroundImage: `linear-gradient(180deg, rgba(17,45,112,0.05) 0%, rgba(17,45,112,0.85) 100%), url(${ind.photo})`,
                backgroundSize: 'cover',
                backgroundPosition: 'center',
                color: '#fff',
                textDecoration: 'none',
                padding: isMobile ? 16 : 22,
                display: 'flex',
                flexDirection: 'column',
                justifyContent: 'space-between',
                overflow: 'hidden',
              }}
            >
              <div
                style={{
                  display: 'flex',
                  alignItems: 'center',
                  justifyContent: 'space-between',
                  fontFamily: '"JetBrains Mono", monospace',
                  fontSize: isMobile ? 8 : 9,
                  letterSpacing: '0.22em',
                  opacity: 0.9,
                  gap: 8,
                }}
              >
                <span>0{i + 1}</span>
                {!isMobile && <span>{ind.meta.toUpperCase()}</span>}
              </div>
              <div>
                <div
                  style={{
                    fontWeight: 600,
                    fontSize: isMobile ? 17 : 26,
                    lineHeight: 1.05,
                    letterSpacing: '-0.02em',
                  }}
                >
                  {ind.name}
                </div>
                <div
                  style={{
                    marginTop: isMobile ? 8 : 14,
                    display: 'inline-flex',
                    alignItems: 'center',
                    gap: 8,
                    fontSize: isMobile ? 10 : 12,
                    fontFamily: '"JetBrains Mono", monospace',
                    letterSpacing: '0.15em',
                    opacity: 0.9,
                  }}
                >
                  <span>VER MÁS</span>
                  <WIconArrow size={isMobile ? 10 : 12} stroke={1.6} />
                </div>
              </div>
            </a>
          ))}
        </div>
      </div>
    </section>
  );
}

// ───────────────────────────────────────── CTA
function BoldCTA() {
  const { isMobile } = useViewport();
  return (
    <section
      style={{
        background: WEB.navy,
        color: '#fff',
        position: 'relative',
        overflow: 'hidden',
      }}
    >
      <div
        style={{
          position: 'absolute',
          inset: 0,
          backgroundImage: `url(${PHOTOS.cleaningHands})`,
          backgroundSize: 'cover',
          backgroundPosition: 'center right',
          opacity: 0.18,
        }}
      />
      <div
        style={{
          position: 'relative',
          maxWidth: 1280,
          margin: '0 auto',
          padding: isMobile ? '0 20px' : '0 48px',
        }}
      >
        <div
          style={{
            display: 'flex',
            alignItems: 'center',
            gap: 16,
            padding: '14px 0',
            fontFamily: '"JetBrains Mono", monospace',
            fontSize: isMobile ? 9 : 10,
            letterSpacing: '0.22em',
            opacity: 0.6,
            borderBottom: '1px solid rgba(255,255,255,0.15)',
          }}
        >
          <span>04 — CONTACTO</span>
          <span style={{ flex: 1, height: 1, background: 'rgba(255,255,255,0.15)' }} />
          {!isMobile && <span>RESPUESTA EN MENOS DE 24 H</span>}
          {isMobile && <span>RESPUESTA &lt;24 H</span>}
        </div>

        <div style={{ padding: isMobile ? '56px 0' : '96px 0', maxWidth: 920 }}>
          <h3
            style={{
              fontWeight: 600,
              fontSize: 'clamp(36px, 9vw, 96px)',
              lineHeight: 0.95,
              letterSpacing: '-0.035em',
              margin: 0,
              textWrap: 'pretty',
            }}
          >
            Cuéntanos sobre tu operación.
          </h3>
          <p
            style={{
              marginTop: isMobile ? 18 : 24,
              fontSize: 'clamp(15px, 2.1vw, 19px)',
              opacity: 0.8,
              lineHeight: 1.45,
              maxWidth: 640,
              letterSpacing: '-0.005em',
            }}
          >
            Te respondemos por WhatsApp con una propuesta clara, sin compromiso.
            Productos, personal, o ambos.
          </p>

          <div style={{ marginTop: isMobile ? 28 : 40, display: 'flex', flexWrap: 'wrap', gap: 12 }}>
            <a
              href="#"
              style={{
                display: 'inline-flex',
                alignItems: 'center',
                gap: 12,
                background: '#25d366',
                color: '#0a1d12',
                padding: isMobile ? '16px 22px' : '20px 28px',
                fontSize: isMobile ? 15 : 17,
                fontWeight: 700,
                textDecoration: 'none',
                letterSpacing: '-0.01em',
                borderRadius: 999,
              }}
            >
              <WIconWhatsApp size={isMobile ? 18 : 22} stroke={1.6} />
              Cotizar por WhatsApp
            </a>
            <a
              href="mailto:hola@olklin.com.mx"
              style={{
                display: 'inline-flex',
                alignItems: 'center',
                gap: 12,
                background: 'transparent',
                color: '#fff',
                padding: isMobile ? '16px 22px' : '20px 28px',
                fontSize: isMobile ? 14 : 17,
                fontWeight: 500,
                textDecoration: 'none',
                letterSpacing: '-0.005em',
                borderRadius: 999,
                border: '1px solid rgba(255,255,255,0.3)',
                wordBreak: 'break-all',
              }}
            >
              hola@olklin.com.mx
            </a>
          </div>
        </div>
      </div>
    </section>
  );
}

// ───────────────────────────────────────── FOOTER
function BoldFooter() {
  const { isMobile } = useViewport();
  return (
    <footer style={{ background: WEB.navyDeep, color: '#fff' }}>
      <div
        style={{
          maxWidth: 1280,
          margin: '0 auto',
          padding: isMobile ? '32px 20px' : '40px 48px',
          display: 'flex',
          flexDirection: isMobile ? 'column' : 'row',
          justifyContent: 'space-between',
          alignItems: isMobile ? 'flex-start' : 'flex-end',
          gap: isMobile ? 24 : 24,
        }}
      >
        <div>
          <OlklinWordmark color="#fff" height={isMobile ? 18 : 20} />
          <div
            style={{
              marginTop: 12,
              fontFamily: '"JetBrains Mono", monospace',
              fontSize: isMobile ? 9 : 10,
              letterSpacing: '0.2em',
              opacity: 0.55,
              lineHeight: 1.6,
            }}
          >
            © 2026 · OLKLIN · OLKLIN.COM.MX
            {!isMobile && ' · HECHO EN MÉXICO'}
            {isMobile && <><br />HECHO EN MÉXICO</>}
          </div>
        </div>
        <div
          style={{
            display: 'flex',
            flexWrap: 'wrap',
            gap: isMobile ? 16 : 28,
            fontFamily: '"JetBrains Mono", monospace',
            fontSize: isMobile ? 9 : 10,
            letterSpacing: '0.2em',
            opacity: 0.7,
          }}
        >
          <a href="#" style={{ color: '#fff', textDecoration: 'none' }}>AVISO DE PRIVACIDAD</a>
          <a href="#" style={{ color: '#fff', textDecoration: 'none' }}>TÉRMINOS</a>
          <a href="#" style={{ color: '#fff', textDecoration: 'none' }}>LINKEDIN</a>
        </div>
      </div>
    </footer>
  );
}

Object.assign(window, { HomeBold });
