/*
Theme Name: Manifiesto
Theme URI: https://tienda.legimus.ai
Description: Tema hijo de Storefront para Manifiesto Store — tienda demo de Legimus AI. Diseño premium oscuro/eléctrico de clase mundial (nivel Linear/Vercel/Apple) con la IA de Legimus (Cortex) como protagonista. Español peruano de Lima.
Author: Legimus AI
Author URI: https://legimus.ai
Template: storefront
Version: 1.1.0
Text Domain: manifiesto
*/

/* ============================================================================
   MANIFIESTO STORE — DESIGN SYSTEM
   Autosuficiente: la home se ve hermosa aunque Storefront falle por completo.
   Reglas de color:
     - Neutro oscuro/eléctrico para el sitio.
     - Acento violeta -> cian EXCLUSIVO para la IA (el cerebro de la tienda).
   Firma visual: beam que recorre el borde del teléfono + grain sutil anti-banding.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Lienzo oscuro */
  --mf-bg:            #07080f;   /* fondo base, casi negro azulado */
  --mf-bg-2:          #0b0d1a;   /* superficies elevadas */
  --mf-bg-3:          #11142480; /* tarjetas con transparencia (glass) */
  --mf-surface:       #12152a;   /* tarjetas sólidas */
  --mf-surface-2:     #171a33;   /* hover de tarjeta */

  /* Texto */
  --mf-ink:           #f4f5fb;   /* texto principal */
  --mf-ink-soft:      #aab0c8;   /* texto secundario */
  --mf-ink-mut:       #8a90ad;   /* texto terciario / labels — AA sobre --mf-bg (>=4.5:1) */

  /* Líneas / bordes */
  --mf-line:          rgba(255, 255, 255, 0.08);
  --mf-line-2:        rgba(255, 255, 255, 0.14);

  /* Acento de marca neutro (CTA de producto, no-IA) */
  --mf-accent:        #f5d33f;   /* dorado eléctrico, evoca Yape/energía */
  --mf-accent-ink:    #1a1500;   /* texto sobre dorado */

  /* Acento IA (violeta -> cian) — coincide con _design/manifiesto-ia-* */
  --mf-ai-1:          #6d5efc;
  --mf-ai-2:          #8b5cf6;
  --mf-ai-3:          #22d3ee;
  --mf-ai-grad:       linear-gradient(120deg, var(--mf-ai-1) 0%, var(--mf-ai-2) 45%, var(--mf-ai-3) 110%);
  --mf-ai-grad-soft:  linear-gradient(120deg, rgba(109,94,252,0.16), rgba(34,211,238,0.16));

  /* Semánticos */
  --mf-green:         #2dd4a7;
  --mf-red:           #ff5d5d;

  /* Geometría */
  --mf-r-sm:          12px;
  --mf-r:             18px;
  --mf-r-lg:          26px;
  --mf-r-xl:          34px;

  /* Sombras */
  --mf-shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.35);
  --mf-shadow:        0 18px 50px rgba(0, 0, 0, 0.45);
  --mf-shadow-ai:     0 14px 40px rgba(109, 94, 252, 0.35);

  /* Tipografía — Inter variable (encolada en functions.php). El system stack es
     SOLO fallback mientras carga la fuente real; Inter es la identidad. */
  --mf-font: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --mf-maxw:          1200px;
  --mf-gutter:        clamp(20px, 5vw, 64px);
}

/* ----------------------------------------------------------------------------
   2. RESET SUAVE + BASE (scoped al body del front para no romper wp-admin)
   Glow reducido: un solo radial-gradient violeta de fondo + grain anti-banding.
   -------------------------------------------------------------------------- */
.mf-home {
  margin: 0;
  position: relative;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(109, 94, 252, 0.14), transparent 60%),
    var(--mf-bg);
  color: var(--mf-ink);
  font-family: var(--mf-font);
  font-feature-settings: "cv05" 1, "ss01" 1; /* Inter: italic-friendly l + alt a */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
/* Grain sutil (2.5%) sobre TODO el fondo: mata el banding de los blur grandes
   sobre near-black, que en pantallas reales se ve en bandas y delata 'CSS rápido'. */
.mf-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mf-home > * { position: relative; z-index: 1; }

.mf-home *,
.mf-home *::before,
.mf-home *::after { box-sizing: border-box; }

.mf-home img { max-width: 100%; height: auto; display: block; }
.mf-home a { color: inherit; text-decoration: none; }

.mf-wrap {
  width: 100%;
  max-width: var(--mf-maxw);
  margin: 0 auto;
  padding-left: var(--mf-gutter);
  padding-right: var(--mf-gutter);
}

/* Tipografía display */
.mf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mf-ink-soft);
}

.mf-h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}
.mf-section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--mf-ink-soft);
  max-width: 620px;
  margin: 14px 0 0;
  line-height: 1.55;
}

.mf-section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.mf-section-head { margin-bottom: clamp(28px, 4vw, 52px); }

/* ----------------------------------------------------------------------------
   3. BOTONES
   -------------------------------------------------------------------------- */
.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.mf-btn svg { transition: transform .18s ease; }
.mf-btn:hover svg { transform: translateX(3px); }

/* Primario neutro (productos) */
.mf-btn--primary {
  background: var(--mf-accent);
  color: var(--mf-accent-ink);
  box-shadow: 0 10px 28px rgba(245, 211, 63, 0.28);
}
.mf-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(245, 211, 63, 0.38);
}

/* Secundario / ghost */
.mf-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--mf-ink);
  border-color: var(--mf-line-2);
  backdrop-filter: blur(6px);
}
.mf-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

/* IA (violeta -> cian) */
.mf-btn--ai {
  background: var(--mf-ai-grad);
  color: #fff;
  box-shadow: var(--mf-shadow-ai);
}
.mf-btn--ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(109, 94, 252, 0.5);
}

.mf-btn--lg { font-size: 17px; padding: 17px 30px; }

/* ----------------------------------------------------------------------------
   4. HERO — SPLIT: copy IA a la izquierda, mockup del teléfono a la derecha.
   La IA es protagonista del primer viewport. El chat se ve SIN scroll.
   -------------------------------------------------------------------------- */
.mf-hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.mf-hero::before {
  /* Grid sutil de fondo */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(1000px 600px at 70% 10%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 600px at 70% 10%, #000 25%, transparent 78%);
  pointer-events: none;
}
.mf-hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.mf-hero-copy { max-width: 600px; }
.mf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--mf-ai-grad);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--mf-shadow-ai);
  margin-bottom: 24px;
}
.mf-hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.7);
  animation: mf-dot-pulse 2s infinite;
}
.mf-hero-title {
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 20px;
}
.mf-grad {
  background: var(--mf-ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mf-hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--mf-ink-soft);
  max-width: 520px;
  margin: 0 0 32px;
}
.mf-hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
/* Halo orgánico detrás del hero — opacidad reducida (0.3 / 0.2). */
.mf-hero-orb {
  position: absolute;
  z-index: 0;
  width: 560px; height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}
.mf-hero-orb--1 { background: var(--mf-ai-1); top: -240px; left: -140px; }
.mf-hero-orb--2 { background: var(--mf-ai-3); top: -160px; right: -180px; opacity: 0.2; }

/* Columna del teléfono dentro del hero */
.mf-hero-phone { position: relative; }

/* ----------------------------------------------------------------------------
   5. BARRA DE CONFIANZA
   -------------------------------------------------------------------------- */
.mf-trust {
  border-top: 1px solid var(--mf-line);
  border-bottom: 1px solid var(--mf-line);
  background: rgba(255, 255, 255, 0.015);
}
.mf-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--mf-line);
}
.mf-trust-item {
  background: var(--mf-bg);
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mf-trust-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--mf-ai-3);
  background: var(--mf-ai-grad-soft);
  margin-bottom: 4px;
}
.mf-trust-title { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.mf-trust-copy { font-size: 13.5px; color: var(--mf-ink-soft); line-height: 1.45; }

/* ----------------------------------------------------------------------------
   6. SHOWCASE IA — refuerza (no presenta). El hero ya mostró la estrella.
   Copy a la izquierda, bullets + chips. SIN ::before duplicado (el glow del
   teléfono vive en .mf-phone-glow del hero; aquí ya no hay teléfono).
   -------------------------------------------------------------------------- */
.mf-ai {
  position: relative;
  overflow: hidden;
}
.mf-ai-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  max-width: 820px;
}

/* Columna de copy */
.mf-ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c9c2ff;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.34);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.mf-ai-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mf-ai-3);
  animation: mf-pulse 2s infinite;
}
.mf-ai-headline {
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
}
.mf-ai-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--mf-ink-soft);
  max-width: 560px;
  margin: 0 0 28px;
}
.mf-ai-sub strong { color: var(--mf-ink); }
.mf-ai-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.mf-ai-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--mf-ink);
}
.mf-ai-bullets b { color: var(--mf-ink); font-weight: 700; }
.mf-ai-check {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 13px; font-weight: 800;
  color: #fff;
  background: var(--mf-ai-grad);
  margin-top: 1px;
}

/* Chips de prompts sugeridos */
.mf-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}
.mf-chip {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mf-ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mf-line-2);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.mf-chip:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

/* ----- Teléfono / mockup (vive en el hero) ----- */
.mf-phone-wrap { position: relative; display: grid; place-items: center; }
.mf-phone-glow {
  position: absolute;
  inset: -8% -4%;
  background: var(--mf-ai-grad);
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}
.mf-phone {
  position: relative;
  z-index: 1;
  width: min(376px, 100%);
  background: #0f1326;
  border-radius: 34px;
  border: 1px solid var(--mf-line-2);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* FIRMA VISUAL: beam que recorre el borde del teléfono (gradiente cónico girando
   bajo una máscara que solo deja ver el contorno). Memorable y barato. */
.mf-phone::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 35px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--mf-beam-angle, 0deg),
    transparent 0deg,
    transparent 250deg,
    var(--mf-ai-3) 300deg,
    var(--mf-ai-1) 340deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: mf-beam 5.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.mf-phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--mf-line);
  background: rgba(255, 255, 255, 0.03);
}
.mf-phone-avatar {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--mf-ai-grad);
  flex: 0 0 auto;
}
.mf-phone-avatar-glow {
  position: absolute; inset: -3px;
  border-radius: 16px;
  background: var(--mf-ai-grad);
  filter: blur(10px);
  opacity: 0.55;
  z-index: -1;
}
.mf-phone-id { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mf-phone-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.mf-phone-status {
  font-size: 12px; color: var(--mf-ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.mf-phone-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mf-green); }
.mf-phone-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  color: #fff;
  background: var(--mf-ai-grad);
  padding: 4px 9px;
  border-radius: 7px;
}

.mf-chat {
  position: relative;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(109, 94, 252, 0.08), transparent 70%),
    #0c0f20;
  min-height: 360px;
}
.mf-chat-day {
  align-self: center;
  font-size: 11px;
  color: var(--mf-ink-mut);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.mf-msg { display: flex; }
.mf-msg--user { justify-content: flex-end; }
.mf-msg--ai { justify-content: flex-start; }

/* ----- Estados de animación del chat (JS añade .is-shown a cada paso) -----
   Por defecto los pasos están ocultos; JS los va revelando en secuencia.
   El .mf-chat[data-static] (reduce-motion / no-JS) los muestra todos. */
.mf-step {
  display: flex;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.mf-step.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mf-chat[data-static] .mf-step {
  opacity: 1;
  transform: none;
}
/* El step de typing se colapsa cuando no está activo para no dejar hueco. */
.mf-step--typing { height: 0; overflow: hidden; transition: height .25s ease, opacity .25s ease; }
.mf-step--typing.is-shown { height: 44px; }
.mf-chat[data-static] .mf-step--typing { display: none; }

.mf-bubble {
  max-width: 80%;
  font-size: 14.5px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 19px;
}
.mf-msg--user .mf-bubble {
  background: var(--mf-ai-grad);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 14px rgba(109, 94, 252, 0.32);
}
.mf-msg--ai .mf-bubble {
  background: #1a1e38;
  color: var(--mf-ink);
  border-bottom-left-radius: 6px;
}
.mf-msg--ai .mf-bubble strong { color: #c9c2ff; }

.mf-product-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #141833;
  border: 1px solid var(--mf-line-2);
  border-radius: 16px;
  padding: 12px;
  max-width: 88%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.mf-product-thumb {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #c9c2ff;
  background: var(--mf-ai-grad-soft);
  flex: 0 0 auto;
}
.mf-product-info { display: flex; flex-direction: column; gap: 3px; }
.mf-product-name { font-size: 14px; font-weight: 700; }
.mf-product-price { display: flex; align-items: center; gap: 8px; }
.mf-price-now { font-size: 16px; font-weight: 800; color: var(--mf-ink); }
.mf-price-old { font-size: 13px; color: var(--mf-ink-soft); text-decoration: line-through; }
.mf-price-tag {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--mf-red); padding: 2px 7px; border-radius: 6px;
}
.mf-product-stock { font-size: 12px; color: var(--mf-green); font-weight: 600; }

.mf-typing {
  display: inline-flex; gap: 4px;
  background: #1a1e38;
  padding: 13px 16px;
  border-radius: 19px;
  border-bottom-left-radius: 6px;
}
.mf-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #aab0c8;
  animation: mf-blink 1.4s infinite both;
}
.mf-typing span:nth-child(2) { animation-delay: .2s; }
.mf-typing span:nth-child(3) { animation-delay: .4s; }

.mf-inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--mf-line);
  background: #0f1326;
}
.mf-fakeinput {
  flex: 1;
  font-size: 14px;
  color: var(--mf-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  padding: 11px 16px;
  border-radius: 999px;
}
.mf-send {
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: var(--mf-ai-grad);
  cursor: default;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------------------
   6b. CAPA B2B PARA PROSPECTOS — sección propia (el verdadero objetivo del demo)
   -------------------------------------------------------------------------- */
.mf-b2b {
  position: relative;
  overflow: hidden;
}
.mf-b2b-card {
  position: relative;
  border-radius: var(--mf-r-xl);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(620px 320px at 50% -10%, rgba(109, 94, 252, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(20, 24, 58, 0.7), rgba(11, 13, 31, 0.7));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.mf-b2b-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9c2ff;
  margin-bottom: 16px;
}
.mf-b2b-line {
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 auto 8px;
  max-width: 760px;
}
.mf-b2b-line strong { color: #fff; }
.mf-b2b-line .mf-grad { font-weight: 800; }
.mf-b2b-metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  margin: clamp(26px, 3.4vw, 40px) 0;
}
.mf-b2b-metric { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.mf-b2b-metric-num {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--mf-ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mf-b2b-metric-label { font-size: 13.5px; color: var(--mf-ink-soft); }

/* ----------------------------------------------------------------------------
   7. VALUE PROPS
   -------------------------------------------------------------------------- */
.mf-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 22px);
}
.mf-value-card {
  position: relative;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-lg);
  padding: clamp(24px, 2.4vw, 32px);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mf-value-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mf-line);
  transition: background .2s ease;
}
.mf-value-card:hover {
  transform: translateY(-4px);
  border-color: var(--mf-line-2);
  box-shadow: var(--mf-shadow);
}
/* La card de IA brilla en violeta -> cian */
.mf-value-card--ai::after { background: var(--mf-ai-grad); }
.mf-value-card--ai {
  background: linear-gradient(180deg, rgba(109, 94, 252, 0.08), var(--mf-surface));
  border-color: rgba(139, 92, 246, 0.28);
}
.mf-value-card--ai:hover { box-shadow: var(--mf-shadow-ai); }
.mf-value-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--mf-ink);
  margin-bottom: 18px;
}
.mf-value-card--ai .mf-value-ico { background: var(--mf-ai-grad); color: #fff; }
.mf-value-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mf-ink-soft);
  margin: 0 0 6px;
}
.mf-value-card--ai .mf-value-kicker { color: #c9c2ff; }
.mf-value-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.mf-value-copy { font-size: 14.5px; color: var(--mf-ink-soft); line-height: 1.5; margin: 0; }

/* ----------------------------------------------------------------------------
   8. CATEGORÍAS (12) — iconos SVG de línea (sin emoji)
   -------------------------------------------------------------------------- */
.mf-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.mf-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 20px;
  border-radius: var(--mf-r);
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.mf-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140px 120px at 100% 0%, rgba(109, 94, 252, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
}
.mf-cat:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.32);
  background: var(--mf-surface-2);
}
.mf-cat:hover::before { opacity: 1; }
.mf-cat-ico {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #c9c2ff;
  background: var(--mf-ai-grad-soft);
}
.mf-cat-ico svg { width: 24px; height: 24px; }
.mf-cat-name { position: relative; z-index: 1; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.mf-cat-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mf-ink-soft);
  transition: color .2s ease, gap .2s ease;
}
.mf-cat:hover .mf-cat-arrow { color: var(--mf-ink); gap: 9px; }

/* ----------------------------------------------------------------------------
   9. DESTACADOS / OFERTAS — wrapper para los shortcodes de WooCommerce
   El grid de productos lo pinta Woo; aquí solo encuadramos.
   -------------------------------------------------------------------------- */
.mf-products {
  position: relative;
}
.mf-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.mf-tabs { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.mf-tab {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mf-ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mf-line);
  padding: 9px 16px;
  border-radius: 999px;
}
.mf-tab--active {
  color: var(--mf-accent-ink);
  background: var(--mf-accent);
  border-color: transparent;
}

/* Reencuadre del output de WooCommerce dentro de la home oscura.
   Defensivo: si Storefront carga, esto solo afina; si no, da una rejilla básica. */
.mf-woo .woocommerce ul.products,
.mf-woo ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.mf-woo ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r);
  padding: 16px !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mf-woo ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: var(--mf-line-2);
  box-shadow: var(--mf-shadow);
}
.mf-woo ul.products li.product img {
  border-radius: var(--mf-r-sm);
  margin-bottom: 14px;
  background: #fff;
}
.mf-woo ul.products li.product .woocommerce-loop-product__title {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--mf-ink) !important;
  padding: 0 !important;
  line-height: 1.35;
}
.mf-woo ul.products li.product .price {
  color: var(--mf-ink) !important;
  font-weight: 700;
}
.mf-woo ul.products li.product .price del { color: var(--mf-ink-soft) !important; opacity: 1; }
.mf-woo ul.products li.product .price ins { color: var(--mf-accent) !important; text-decoration: none; }
.mf-woo ul.products li.product .button {
  background: var(--mf-accent) !important;
  color: var(--mf-accent-ink) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  margin-top: 6px !important;
}
.mf-woo ul.products li.product .onsale {
  background: var(--mf-red) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* Fallback elegante si no hay productos (demo sin Woo) */
.mf-products-empty {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.mf-skel {
  border-radius: var(--mf-r);
  background: linear-gradient(110deg, var(--mf-surface) 30%, var(--mf-surface-2) 50%, var(--mf-surface) 70%);
  background-size: 200% 100%;
  animation: mf-shimmer 1.6s infinite;
  min-height: 280px;
  border: 1px solid var(--mf-line);
}

/* ----------------------------------------------------------------------------
   10. CTA FINAL
   -------------------------------------------------------------------------- */
.mf-finalcta {
  position: relative;
  overflow: hidden;
}
.mf-finalcta-card {
  position: relative;
  border-radius: var(--mf-r-xl);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 72px);
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(109, 94, 252, 0.32), transparent 65%),
    linear-gradient(180deg, #14183a, #0b0d1f);
  border: 1px solid rgba(139, 92, 246, 0.3);
  overflow: hidden;
}
.mf-finalcta-card::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: var(--mf-ai-3);
  filter: blur(140px);
  opacity: 0.2;
  bottom: -260px; right: -120px;
  pointer-events: none;
}
.mf-finalcta-title {
  position: relative; z-index: 1;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
}
.mf-finalcta-sub {
  position: relative; z-index: 1;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--mf-ink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.mf-finalcta .mf-btn { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   11. FRANJA DE MARCA / TAGLINE (mini-footer del front)
   -------------------------------------------------------------------------- */
.mf-tagline {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--mf-line);
}
.mf-tagline-mark {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mf-tagline-sub { color: var(--mf-ink-soft); font-size: 14.5px; margin-top: 8px; }

/* ----------------------------------------------------------------------------
   11b. NUDGE DEL WIDGET (lo renderiza functions.php en wp_footer)
   Prefijo lgm- para alinear con _design/manifiesto-ia-* y el widget de Legimus.
   -------------------------------------------------------------------------- */
.lgm-nudge {
  position: fixed;
  right: 24px;
  bottom: 96px;            /* por encima del launcher flotante del widget */
  z-index: 2147483000;     /* debajo del widget de Legimus, sobre el resto */
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 290px;
  max-width: calc(100vw - 40px);
  padding: 14px 16px;
  background: #12152a;
  border: 1px solid var(--mf-line-2);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  font-family: var(--mf-font);
  color: var(--mf-ink);
  cursor: pointer;
  animation: lgm-nudge-in .45s cubic-bezier(.18, .9, .32, 1.2) both;
}
.lgm-nudge[hidden] { display: none; }
.lgm-nudge:hover { transform: translateY(-2px); transition: transform .18s ease; }
.lgm-nudge-avatar {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--mf-ai-grad);
}
.lgm-nudge-text { display: flex; flex-direction: column; gap: 3px; }
.lgm-nudge-text strong { font-size: 14px; color: var(--mf-ink); }
.lgm-nudge-text span { font-size: 12.5px; line-height: 1.4; color: var(--mf-ink-soft); }
.lgm-nudge-close {
  position: absolute;
  top: 6px; right: 8px;
  border: none; background: none;
  font-size: 18px; line-height: 1;
  color: var(--mf-ink-soft); cursor: pointer;
  padding: 2px 4px;
}
.lgm-nudge-close:hover { color: var(--mf-ink); }
@keyframes lgm-nudge-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lgm-nudge { animation: none; }
}

/* ----------------------------------------------------------------------------
   12. ANIMACIONES
   -------------------------------------------------------------------------- */
@property --mf-beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes mf-beam {
  to { --mf-beam-angle: 360deg; }
}
@keyframes mf-blink {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes mf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
@keyframes mf-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(110, 231, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0); }
}
@keyframes mf-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .mf-trust-grid    { grid-template-columns: repeat(2, 1fr); }
  .mf-values-grid   { grid-template-columns: repeat(2, 1fr); }
  .mf-cats-grid     { grid-template-columns: repeat(3, 1fr); }
  .mf-ai-bullets    { grid-template-columns: 1fr; }
  .mf-woo ul.products,
  .mf-products-empty { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .mf-hero-split { grid-template-columns: 1fr; text-align: center; gap: clamp(28px, 6vw, 44px); }
  .mf-hero-copy  { max-width: 560px; margin: 0 auto; }
  .mf-hero-sub   { margin-left: auto; margin-right: auto; }
  .mf-hero-cta   { justify-content: center; }
  .mf-hero-phone { order: -1; }
}
@media (max-width: 880px) {
  .mf-ai-grid { max-width: none; }
  .mf-ai-prompts { justify-content: flex-start; }
  .mf-cats-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mf-trust-grid  { grid-template-columns: 1fr; }
  .mf-values-grid { grid-template-columns: 1fr; }
  .mf-cats-grid   { grid-template-columns: 1fr 1fr; }
  .mf-woo ul.products,
  .mf-products-empty { grid-template-columns: 1fr 1fr; }
  .mf-hero-cta .mf-btn,
  .mf-finalcta .mf-btn { width: 100%; }
  .mf-b2b-metric { min-width: 0; flex: 1 1 40%; }
}

/* Accesibilidad: respeta reduce-motion. El chat se muestra estático (data-static
   lo activa el JS), y el beam del teléfono se detiene. */
@media (prefers-reduced-motion: reduce) {
  .mf-home *,
  .mf-home *::before,
  .mf-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mf-step { opacity: 1; transform: none; }
}

/* ============================================================================
   OVERRIDES v1.2 — beat Storefront parent: text was inheriting dark colors
   (invisible headline) + dark header/footer to match the premium store.
   ========================================================================== */
.mf-home h1,.mf-home h2,.mf-home h3,.mf-home h4,
.mf-home .mf-hero-title,.mf-home .mf-h2,.mf-home .mf-h3{ color:var(--mf-ink)!important; }
.mf-home .mf-grad{ color:transparent!important; }
.mf-home p,.mf-home li,.mf-home .mf-section-sub,.mf-home .mf-hero-sub{ color:var(--mf-ink-soft)!important; }
.mf-home .mf-eyebrow{ color:var(--mf-ink-mut)!important; }

/* Header dark (Storefront es claro y choca con la home premium) */
.site-header{ background:#0b0d1a!important; border-bottom:1px solid rgba(255,255,255,.08)!important; }
.site-header a,.site-header .site-title a,.site-branding a,.site-header .site-title{ color:#f4f5fb!important; text-decoration:none!important; }
.main-navigation ul li a,.storefront-primary-navigation a,.handheld-navigation a{ color:#aab0c8!important; }
.main-navigation ul li a:hover,.main-navigation ul li.current-menu-item>a{ color:#fff!important; }
.site-header input[type="search"],.site-header .search-field{ background:#12152a!important; color:#f4f5fb!important; border:1px solid rgba(255,255,255,.14)!important; border-radius:10px!important; }
.site-header input[type="search"]::placeholder{ color:#8a90ad!important; }
.site-header .site-header-cart .cart-contents,.site-header .amount,.site-header .count{ color:#f4f5fb!important; }
.storefront-primary-navigation,.main-navigation{ background:transparent!important; }

/* Footer dark */
.site-footer{ background:#07080f!important; color:#8a90ad!important; border-top:1px solid rgba(255,255,255,.08)!important; }
.site-footer a{ color:#aab0c8!important; }
