/* ===========================================================================
   ASTROTING · Detalle de producto — Sistema visual
   Derivado de la homepage: Geist + Geist Mono, tema violeta, glass, ink scale.
   =========================================================================== */

/* ---- Tokens base (DARK por defecto, igual que el sitio) ---- */
:root {
  --hue: 295;            /* acento, controlable por Tweaks */
  --chroma: 0.21;
  --d: 1;                /* multiplicador de densidad */
  --radius: 18px;
  --font-sans: "Geist", "Geist Fallback", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* escala ink (neutro tintado violeta) */
  --ink-950: oklch(0.13 0.012 292);
  --ink-900: oklch(0.16 0.012 292);
  --ink-800: oklch(0.21 0.012 292);
  --ink-700: oklch(0.28 0.01 292);
  --ink-600: oklch(0.40 0.01 291);
  --ink-500: oklch(0.55 0.012 291);
  --ink-400: oklch(0.68 0.013 291);
  --ink-300: oklch(0.78 0.012 290);
  --ink-200: oklch(0.88 0.008 290);
  --ink-100: oklch(0.94 0.006 290);
  --ink-50:  oklch(0.975 0.004 290);

  --bg:        oklch(0.145 0.012 292);
  --bg-2:      oklch(0.115 0.011 292);
  --fg:        var(--ink-50);
  --fg-soft:   oklch(0.78 0.012 290);
  --fg-faint:  oklch(0.62 0.012 291);
  --card:      oklch(0.185 0.011 292);
  --card-2:    oklch(0.215 0.011 292);
  --border:    oklch(1 0 0 / 0.10);
  --border-2:  oklch(1 0 0 / 0.16);
  --hairline:  oklch(1 0 0 / 0.07);

  --primary:    oklch(0.70 var(--chroma) var(--hue));
  --primary-2:  oklch(0.62 var(--chroma) var(--hue));
  --primary-fg: oklch(0.14 0.012 292);
  --on-primary: oklch(0.99 0.01 var(--hue));
  --glow:       oklch(0.70 var(--chroma) var(--hue) / 0.38);
  --glow-soft:  oklch(0.70 var(--chroma) var(--hue) / 0.16);

  --grad-ai: linear-gradient(120deg,
    oklch(0.70 0.22 var(--hue)),
    oklch(0.72 0.25 calc(var(--hue) + 70)) 55%,
    oklch(0.80 0.18 calc(var(--hue) + 115)));
  --grad-digital: linear-gradient(135deg,
    oklch(0.72 0.21 var(--hue)),
    oklch(0.82 0.13 calc(var(--hue) - 95)));

  --shadow-card: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 18px 50px -28px oklch(0 0 0 / 0.7);
  --shadow-pop: 0 30px 80px -40px oklch(0 0 0 / 0.85);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Tema CLARO ---- */
html.light {
  --bg:        oklch(0.985 0.004 290);
  --bg-2:      oklch(0.965 0.006 290);
  --fg:        var(--ink-950);
  --fg-soft:   oklch(0.40 0.01 291);
  --fg-faint:  oklch(0.55 0.012 291);
  --card:      oklch(1 0 0);
  --card-2:    oklch(0.985 0.004 290);
  --border:    oklch(0.13 0.02 292 / 0.12);
  --border-2:  oklch(0.13 0.02 292 / 0.20);
  --hairline:  oklch(0.13 0.02 292 / 0.08);
  --primary:    oklch(0.58 var(--chroma) var(--hue));
  --primary-2:  oklch(0.50 var(--chroma) var(--hue));
  --primary-fg: oklch(0.99 0.01 var(--hue));
  --on-primary: oklch(0.99 0.01 var(--hue));
  --glow:       oklch(0.62 var(--chroma) var(--hue) / 0.22);
  --glow-soft:  oklch(0.62 var(--chroma) var(--hue) / 0.10);
  --shadow-card: 0 1px 0 oklch(1 0 0 / 0.7) inset, 0 18px 40px -30px oklch(0.2 0.04 292 / 0.45);
  --shadow-pop: 0 40px 80px -45px oklch(0.2 0.04 292 / 0.4);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--glow); color: var(--fg); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: calc(96px * var(--d)); position: relative; }
.section--tight { padding-block: calc(64px * var(--d)); }
.center { text-align: center; }

/* ---- Tipografía ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--glow); }
.h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--fg-soft); text-wrap: pretty; }
.muted { color: var(--fg-soft); }
.faint { color: var(--fg-faint); }
.mono { font-family: var(--font-mono); }
.grad-text {
  background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding-inline: 24px; border-radius: 13px;
  font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 0 0 1px var(--glow), 0 14px 40px -12px var(--glow); font-weight: 600; }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--glow), 0 18px 50px -10px var(--glow); transform: translateY(-2px); filter: brightness(1.04); }
.btn-ghost { background: color-mix(in oklab, var(--fg) 4%, transparent); border: 1px solid var(--border); color: var(--fg); }
.btn-ghost:hover { background: color-mix(in oklab, var(--fg) 8%, transparent); border-color: var(--border-2); transform: translateY(-2px); }
.btn-sm { height: 40px; padding-inline: 16px; font-size: 0.85rem; border-radius: 11px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding-inline: 13px; border-radius: 999px;
  font-size: 0.8rem; color: var(--fg-soft);
  background: color-mix(in oklab, var(--fg) 3%, transparent);
  border: 1px solid var(--border);
}
.chip svg { width: 14px; height: 14px; color: var(--primary); }

.tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 7px; color: var(--fg-soft);
  background: color-mix(in oklab, var(--fg) 4%, transparent); border: 1px solid var(--hairline);
}

/* ---- Card base + estilos por Tweak ---- */
.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
body.cards-glass .card {
  background: color-mix(in oklab, var(--card) 55%, transparent);
  backdrop-filter: blur(16px);
}
body.cards-bordered .card {
  background: transparent;
  box-shadow: none;
  border-color: var(--border-2);
}
body.cards-solid .card { /* default look, opaque */ }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto; }
}

/* ===========================================================================
   NAV
   =========================================================================== */
.nav-wrap { position: fixed; inset-inline: 0; top: 0; z-index: 60; padding: 16px; }
.nav {
  max-width: var(--maxw); margin-inline: auto;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding-left: 18px; padding-right: 10px;
  border-radius: 17px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav.scrolled { box-shadow: var(--shadow-pop); border-color: var(--border-2); background: color-mix(in oklab, var(--bg) 78%, transparent); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; }
.brand .wm { height: 56px; width: auto; display: block; }
.foot-brand .brand .wm { height: 56px; }
.brand .wm-on-light { display: none; }
html.light .brand .wm-on-dark { display: none; }
html.light .brand .wm-on-light { display: block; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.7); opacity: 0.15; } }
.nav-links { display: none; gap: 2px; }
.nav-links a { padding: 9px 13px; border-radius: 10px; font-size: 0.88rem; color: var(--fg-soft); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--fg); background: color-mix(in oklab, var(--fg) 5%, transparent); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-content: center; border-radius: 11px;
  color: var(--fg-soft); border: 1px solid transparent; transition: all 0.2s;
}
.icon-btn:hover { background: color-mix(in oklab, var(--fg) 6%, transparent); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* ---- Hamburguesa + menú móvil ---- */
.nav { position: relative; }
.nav-burger {
  display: none; width: 40px; height: 40px; place-content: center; border-radius: 11px;
  color: var(--fg-soft); border: 1px solid transparent; transition: background 0.2s, color 0.2s;
}
.nav-burger:hover { background: color-mix(in oklab, var(--fg) 6%, transparent); color: var(--fg); }
.nav-burger svg { width: 20px; height: 20px; }
.nav.open .nav-burger .i-burger { display: none; }
.nav.open .nav-burger .i-x { display: block !important; }
.nav-menu {
  position: absolute; inset-inline: 0; top: calc(100% + 10px);
  display: flex; flex-direction: column; gap: 2px; padding: 12px;
  border-radius: 17px; border: 1px solid var(--border-2);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav.open .nav-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.nav-menu a:not(.btn) {
  padding: 12px 14px; border-radius: 11px; font-size: 0.98rem; color: var(--fg-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:not(.btn):hover { color: var(--fg); background: color-mix(in oklab, var(--fg) 5%, transparent); }
.nav-menu .btn { margin-top: 8px; width: 100%; }
@media (min-width: 880px) { .nav-menu { display: none; } }
@media (max-width: 879px) {
  .nav-burger { display: grid; }
  .nav .nav-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-menu { transition: none; } }

/* ---- Mega-menú "Web" (desktop: hover/focus; cero JS) ---- */
.nav-item { position: relative; display: inline-flex; }
.nav-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-trigger .chev { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.has-menu:hover .nav-trigger .chev,
.has-menu:focus-within .nav-trigger .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  border-radius: 16px; border: 1px solid var(--border-2);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
/* Puente invisible que cubre el hueco entre el trigger y el panel, para no
   perder el :hover al bajar el mouse hacia las opciones. */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; }
.has-menu:hover .nav-dropdown,
.has-menu:focus-within .nav-dropdown { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: 10px; transition: background 0.2s; }
.nav-dropdown a:hover { background: color-mix(in oklab, var(--fg) 5%, transparent); }
.nav-dropdown a b { display: block; font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.nav-dropdown a span { display: block; font-size: 0.76rem; color: var(--fg-faint); margin-top: 2px; }
.nav-dd-all { margin-top: 4px; border-top: 1px solid var(--hairline); border-radius: 0 0 10px 10px !important; color: var(--primary) !important; font-size: 0.85rem; font-weight: 500; }
.nav-dd-all:hover { color: var(--primary) !important; }
/* sub-links de "Web" en el menú móvil */
.nav-menu .nav-sub { padding-left: 28px !important; font-size: 0.92rem; color: var(--fg-faint); }
@media (prefers-reduced-motion: reduce) { .nav-dropdown { transition: none; } }

/* ---- Checklist de páginas de servicio (qué incluye / para quién) ---- */
.check-grid { display: grid; gap: 12px 28px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-grid li { display: flex; gap: 11px; align-items: flex-start; color: var(--fg-soft); line-height: 1.5; font-size: 0.95rem; }
.check-grid li svg { width: 19px; height: 19px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ---- Tarjeta de sitio de ejemplo: pantallazo que se desliza solo al hover ---- */
.shot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 980px; margin-inline: auto; }
.shot-card { display: block; }
.shot-frame {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2);
  background: var(--card); box-shadow: var(--shadow-pop);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.shot-card:hover .shot-frame { transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: color-mix(in oklab, var(--bg-2) 70%, var(--card)); border-bottom: 1px solid var(--hairline); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--card-2); display: inline-block; }
.shot-bar .url { margin-left: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-faint); }
.shot-window { position: relative; height: 320px; overflow: hidden; background: var(--bg-2); }
.shot-img { width: 100%; display: block; transform: translateY(0); transition: transform 6.5s linear; }
.shot-card:hover .shot-window .shot-img { transform: translateY(calc(320px - 100%)); }
.shot-hint {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.74rem; color: #fff;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); pointer-events: none;
  opacity: 1; transition: opacity 0.3s;
}
.shot-card:hover .shot-hint { opacity: 0; }
.shot-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.shot-meta h3 { font-size: 1.05rem; }
.shot-meta .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--fg-faint); }
@media (prefers-reduced-motion: reduce) {
  .shot-frame, .shot-img { transition: none; }
  .shot-card:hover .shot-frame { transform: none; }
  .shot-card:hover .shot-window .shot-img { transform: none; }
}

/* ===========================================================================
   PRODUCT SHOWCASE — nuestras herramientas reales (CRM, cazador, demos, bot)
   Tarjetas con marco de navegador (capturas reales) y una con teléfono LIVE.
   =========================================================================== */
.prod-grid { display: grid; gap: 22px; grid-template-columns: 1fr; max-width: 980px; margin-inline: auto; }
@media (min-width: 740px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
.prod-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), border-color 0.3s; }
.prod-card:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--primary) 38%, transparent); }
.prod-preview { height: 332px; background: var(--bg-2); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.prod-win { flex: 1; overflow: hidden; position: relative; }
.prod-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: object-position 5.5s var(--ease); }
.prod-card:hover .prod-win img { object-position: 50% 100%; }
.prod-meta { padding: 20px 22px 22px; }
.prod-meta .tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: 7px; }
.prod-meta .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.prod-meta h3 { font-size: 1.16rem; margin-top: 10px; }
.prod-meta p { font-size: 0.9rem; margin-top: 7px; line-height: 1.55; }

/* phone variant */
.prod-preview.is-phone { align-items: center; justify-content: center; background: radial-gradient(135% 120% at 50% -10%, color-mix(in oklab, var(--primary) 16%, var(--bg-2)), var(--bg-2) 62%); }

/* ── Telegram phone (live) ── */
.tgm { width: 250px; border-radius: 34px; background: #0c0c10; padding: 7px; box-shadow: 0 24px 55px -20px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.05); }
.tgm-screen { border-radius: 28px; overflow: hidden; background: #b3c79b; display: flex; flex-direction: column; height: 304px; }
.tgm-status { display: flex; align-items: center; justify-content: space-between; padding: 6px 15px 3px; background: #fbfbfb; color: #000; font-weight: 600; font-size: 11.5px; position: relative; }
.tgm-status .island { position: absolute; left: 50%; top: 5px; transform: translateX(-50%); width: 70px; height: 17px; background: #000; border-radius: 11px; }
.tgm-status .r { display: flex; align-items: center; gap: 4px; font-size: 10px; }
.tgm-status .bat { width: 17px; height: 9px; border: 1.3px solid #000; border-radius: 2px; position: relative; display: inline-block; }
.tgm-status .bat::after { content: ""; position: absolute; right: -2.5px; top: 2px; width: 1.6px; height: 4px; background: #000; border-radius: 0 2px 2px 0; }
.tgm-status .bat i { position: absolute; inset: 1.3px; width: 60%; background: #000; border-radius: 1px; display: block; }
.tgm-nav { display: flex; align-items: center; gap: 7px; padding: 5px 9px 6px; background: #fbfbfb; border-bottom: 1px solid #e4e4e4; }
.tgm-nav .back { color: #1a8fe3; font-size: 19px; line-height: 1; width: 12px; flex-shrink: 0; }
.tgm-nav .who { flex: 1; text-align: center; line-height: 1.05; }
.tgm-nav .who b { font-size: 12.5px; color: #000; font-weight: 600; }
.tgm-nav .who span { display: block; font-size: 10px; color: #8e8e93; }
.tgm-nav .who span.is-typing { color: #1a8fe3; }
.tgm-nav .ava { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #241f38; }
.tgm-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 7px 7px 8px; overflow: hidden;
  background-color: #b3c79b;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='130' height='130' viewBox='0 0 150 150'><g fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M25 30 q6 -9 12 0 q6 9 12 0'/><circle cx='110' cy='28' r='9'/><path d='M104 26 q0 7 6 9 q6 -2 6 -9'/><path d='M70 70 l4 8 8 1 -6 6 2 8 -8 -4 -8 4 2 -8 -6 -6 8 -1z'/><path d='M30 110 q10 -14 20 0'/><path d='M115 115 c-6 -8 -16 -2 -8 6 l8 8 8 -8 c8 -8 -2 -14 -8 -6z'/><circle cx='35' cy='72' r='3'/></g></svg>");
  background-size: 130px 130px; }
.tgm-day { display: flex; justify-content: center; margin: 2px 0 3px; }
.tgm-day span { background: rgba(40,55,30,0.34); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.tgm-row { display: flex; padding: 0 2px; }
.tgm-row.me { justify-content: flex-end; }
.tgm-bubble { max-width: 85%; border-radius: 13px; padding: 6px 9px 5px; font-size: 11.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,0.1); animation: tgmIn 0.32s var(--ease) both; }
.tgm-row.bot .tgm-bubble { background: #fff; color: #0b0b0b; border-bottom-left-radius: 5px; }
.tgm-row.me .tgm-bubble { background: linear-gradient(135deg, #62c25b, #4caa45); color: #fff; border-bottom-right-radius: 5px; }
.tgm-bubble b { font-weight: 600; }
.tgm-bubble .t { font-size: 9px; color: #9b9b9f; float: right; margin: 5px 0 -2px 7px; position: relative; top: 2px; }
.tgm-row.me .tgm-bubble .t { color: rgba(255,255,255,0.85); }
.tgm-bubble .lk { color: #1a8fe3; }
.tgm-kbd { display: flex; flex-direction: column; gap: 2px; padding: 1px 2px 2px; max-width: 85%; animation: tgmIn 0.32s var(--ease) both; }
.tgm-kbtn { background: rgba(83,140,62,0.6); color: #fff; font-size: 11px; font-weight: 500; padding: 7px 8px; border-radius: 7px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgm-typing { align-self: flex-start; display: inline-flex; gap: 3px; padding: 9px 11px; background: #fff; border-radius: 13px; border-bottom-left-radius: 5px; box-shadow: 0 1px 1px rgba(0,0,0,0.1); animation: tgmIn 0.25s var(--ease) both; }
.tgm-typing span { width: 5px; height: 5px; border-radius: 50%; background: #9b9b9f; animation: bounce 1.3s infinite; }
.tgm-typing span:nth-child(2) { animation-delay: 0.18s; }
.tgm-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes tgmIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }
.tgm-input { display: flex; align-items: center; gap: 7px; padding: 6px 9px 9px; background: #fbfbfb; border-top: 1px solid #e4e4e4; }
.tgm-input .ic { color: #9a9a9f; display: flex; }
.tgm-input .ic svg { width: 18px; height: 18px; }
.tgm-input .pill { flex: 1; background: #fff; border: 1px solid #e0e0e0; border-radius: 14px; padding: 6px 11px; color: #9a9a9f; font-size: 12px; }
/* monto oculto dentro de un bubble (mismo criterio que el CRM: se ve que hay cifra, no se lee) */
.tgm-money { display: inline-block; padding: 0 5px; border-radius: 5px; background: rgba(0,0,0,0.07); vertical-align: -1px; }
.tgm-money .n { display: inline-block; filter: blur(3.5px); letter-spacing: 0.02em; color: #0b0b0b; user-select: none; }

/* ===========================================================================
   COTIZADOR — demo interactivo (Soluciones IA)
   =========================================================================== */
.coti-demo { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 940px; margin-inline: auto; }
@media (min-width: 820px) { .coti-demo { grid-template-columns: 0.95fr 1.05fr; align-items: start; } }

.coti-form { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 9px; }
.cf-field > label { font-size: 0.8rem; font-weight: 500; color: var(--fg-soft); display: flex; justify-content: space-between; align-items: baseline; }
.cf-val { color: var(--primary); font-weight: 600; font-family: var(--font-mono); font-size: 0.82rem; }
.seg { display: flex; flex-wrap: wrap; gap: 7px; }
.seg button { flex: 1 1 auto; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--card-2); color: var(--fg-soft); font: inherit; font-size: 0.82rem; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap; }
.seg.seg-2 button { flex: 1 1 0; }
.seg button:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); color: var(--fg); }
.seg button.active { background: color-mix(in oklab, var(--primary) 16%, var(--card-2)); border-color: var(--primary); color: var(--fg); }
#cotiRange { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--hairline); outline: none; }
#cotiRange::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--primary); cursor: pointer; }
#cotiRange::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); cursor: pointer; }
.cf-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--fg-soft); cursor: pointer; user-select: none; }
.cf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tg-track { width: 38px; height: 22px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--hairline); position: relative; flex-shrink: 0; transition: background 0.2s, border-color 0.2s; }
.tg-dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg-faint); transition: transform 0.2s var(--ease), background 0.2s; }
.cf-toggle input:checked + .tg-track { background: color-mix(in oklab, var(--primary) 60%, transparent); border-color: var(--primary); }
.cf-toggle input:checked + .tg-track .tg-dot { transform: translateX(16px); background: #fff; }
.cf-gen { width: 100%; justify-content: center; margin-top: 2px; }
.cf-note { font-size: 0.72rem; color: var(--fg-faint); text-align: center; }

.coti-doc { background: var(--card-2); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; min-height: 348px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.coti-empty { margin: auto; color: var(--fg-faint); font-size: 0.9rem; text-align: center; max-width: 22ch; }
.cd-body { display: flex; flex-direction: column; transition: opacity 0.25s, filter 0.25s; }
.cd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.cd-head .ttl { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); font-family: var(--font-mono); }
.cd-head h4 { font-size: 1.05rem; margin-top: 3px; }
.cd-head .folio { text-align: right; font-size: 0.7rem; color: var(--fg-faint); font-family: var(--font-mono); line-height: 1.6; }
.cd-rows { display: flex; flex-direction: column; margin-top: 4px; }
.cd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--hairline); font-size: 0.86rem; opacity: 0; transform: translateY(6px); }
.cd-row.in { opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.cd-row .d { color: var(--fg-soft); }
.cd-row .a { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.cd-row.express .d { color: var(--primary); }
.cd-sub { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; font-size: 0.84rem; color: var(--fg-soft); }
.cd-sub .a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.cd-total .l { font-size: 0.95rem; font-weight: 600; }
.cd-total .a { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.72rem; color: var(--fg-faint); }
.cd-foot .ok { color: oklch(0.78 0.15 150); display: inline-flex; align-items: center; gap: 5px; }
.coti-doc.is-loading .cd-body { opacity: 0.25; filter: blur(1px); }
.coti-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--fg-soft); font-size: 0.85rem; background: color-mix(in oklab, var(--card-2) 65%, transparent); backdrop-filter: blur(2px); z-index: 2; }
.coti-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--hairline); border-top-color: var(--primary); animation: cotiSpin 0.7s linear infinite; }
@keyframes cotiSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cd-row { opacity: 1; transform: none; transition: none; }
  .coti-spin { animation: none; }
}

/* ===========================================================================
   AUTOMATIZACIÓN — flujo animado (Soluciones IA)
   =========================================================================== */
.flow-demo { max-width: 960px; margin-inline: auto; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px 22px; }
.flow-chain { display: flex; align-items: stretch; }
@media (max-width: 780px) { .flow-chain { flex-direction: column; } }
.flow-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--card-2); position: relative; opacity: 0.5; transition: opacity 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, transform 0.35s; }
.flow-node.active { opacity: 1; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 12px 30px -14px var(--glow); transform: translateY(-3px); }
.flow-node.done { opacity: 1; border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.fn-kick { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); font-family: var(--font-mono); margin-bottom: 6px; }
.fn-top { display: flex; align-items: flex-start; justify-content: space-between; }
.fn-ico { width: 36px; height: 36px; border-radius: 10px; background: color-mix(in oklab, var(--primary) 14%, transparent); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.fn-ico svg { width: 19px; height: 19px; }
.fn-check { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.5); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.fn-check svg { width: 12px; height: 12px; }
.flow-node.done .fn-check { opacity: 1; transform: none; }
.fn-h { font-size: 0.92rem; font-weight: 600; margin-top: 10px; }
.fn-s { font-size: 0.78rem; color: var(--fg-faint); margin-top: 2px; }
.flow-link { flex: 0 0 30px; align-self: center; height: 2px; background: var(--hairline); position: relative; overflow: hidden; border-radius: 2px; }
.flow-link i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--primary); transition: width 0.4s var(--ease); }
.flow-link.fill i { width: 100%; }
@media (max-width: 780px) {
  .flow-link { flex-basis: 24px; width: 2px; height: 24px; }
  .flow-link i { width: 100%; height: 0; transition: height 0.4s var(--ease); }
  .flow-link.fill i { height: 100%; }
}
.flow-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.flow-status { font-size: 0.85rem; color: var(--fg-soft); display: inline-flex; align-items: center; gap: 8px; }
.flow-status.running::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: flowPulse 1s infinite; }
.flow-status.ok { color: oklch(0.78 0.15 150); }
@keyframes flowPulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.flow-replay { font: inherit; font-size: 0.82rem; color: var(--fg-soft); background: var(--card-2); border: 1px solid var(--hairline); border-radius: 9px; padding: 8px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s, border-color 0.2s; }
.flow-replay svg { width: 14px; height: 14px; }
.flow-replay:hover { color: var(--fg); border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .flow-node, .flow-link i, .fn-check { transition: none; }
  .flow-status.running::before { animation: none; }
}

/* ===========================================================================
   SOLUCIONES — página única (secciones por solución)
   =========================================================================== */
.sol-nav { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.sol-nav a { font-size: 0.85rem; color: var(--fg-soft); border: 1px solid var(--hairline); background: var(--card); border-radius: 999px; padding: 8px 16px; transition: color 0.2s, border-color 0.2s; }
.sol-nav a:hover { color: var(--fg); border-color: color-mix(in oklab, var(--primary) 40%, transparent); }

.sol-row { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .sol-row { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 900px) { .sol-row--rev .sol-copy { order: 2; } .sol-row--rev .sw-stack { order: 1; } }
.sol-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sol-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--fg-soft); }
.sol-list li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); margin-top: 1px; }

.sw-stack { position: relative; }
.sw-frame { border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6); }
.sw-win { overflow: hidden; }
.sw-win img { width: 100%; display: block; }
.sw-back { width: 82%; margin-left: auto; transform: rotate(2.5deg); }
.sw-front { width: 88%; margin-top: -56px; position: relative; z-index: 2; }
@media (max-width: 560px) { .sw-back { display: none; } .sw-front { width: 100%; margin-top: 0; } }
/* mosaico interactivo: tilt 3D al pasar el mouse */
.sw-stack { perspective: 1100px; }
.sw-frame { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); transform-style: preserve-3d; }
.sw-stack.tilt .sw-front { transform: rotateY(calc(var(--tx, 0) * 9deg)) rotateX(calc(var(--ty, 0) * -9deg)) translateZ(28px); box-shadow: 0 44px 80px -34px rgba(0, 0, 0, 0.75); }
.sw-stack.tilt .sw-back { transform: rotate(2.5deg) rotateY(calc(var(--tx, 0) * 5deg)) rotateX(calc(var(--ty, 0) * -5deg)) translateZ(0); }
@media (prefers-reduced-motion: reduce) { .sw-frame { transition: none; } }

/* ===========================================================================
   PARTNERS / EXPERTISE — validez (home)
   =========================================================================== */
.partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.partner-card { display: inline-flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 13px 22px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.partner-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.partner-card .plogo { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: #fff; flex-shrink: 0; }
.partner-card .plogo svg { display: block; }
.partner-card .plogo--meta svg { width: 30px; height: auto; }
.partner-card .plogo--shopify svg { height: 32px; width: auto; }
.partner-card .ptext { font-size: 1rem; color: var(--fg-soft); white-space: nowrap; }
.partner-card .ptext b { color: var(--fg); font-weight: 700; }
.exp-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.exp-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 15px; font-size: 0.88rem; color: var(--fg-soft); }
.exp-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ===========================================================================
   AMBIENT — fondo vivo (degradado + estela del mouse + onda al click)
   =========================================================================== */
:root {
  --amb-size: 520px;
  --amb-glow-strength: 18%;
  --amb-orb-op: 0.6;
  --amb-grid-op: 0.65;
}
/* En tema claro el fondo vivo va más tenue (orbes saturados sobre blanco cansan) */
html.light { --amb-orb-op: 0.26; --amb-grid-op: 0.5; --amb-glow-strength: 9%; }
/* El fondo vivo global reemplaza los orbes/grilla locales del hero (evita duplicar) */
.orbs, .hero-grid-bg { display: none; }
.amb-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.amb-orbs { position: absolute; inset: 0; will-change: transform; }
.amb-orb { position: absolute; border-radius: 50%; filter: blur(120px); }
.amb-orb.o1 { width: 48vw; height: 48vw; top: -16%; left: -12%; background: var(--grad-digital); opacity: var(--amb-orb-op); animation: drift1 26s var(--ease) infinite alternate; }
.amb-orb.o2 { width: 44vw; height: 44vw; top: -8%; right: -14%; background: var(--grad-ai); opacity: calc(var(--amb-orb-op) * 0.8); animation: drift2 30s var(--ease) infinite alternate; }
.amb-orb.o3 { width: 40vw; height: 40vw; bottom: -22%; left: 32%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: calc(var(--amb-orb-op) * 0.9); animation: drift1 34s var(--ease) infinite alternate; }
.amb-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 16%, transparent 74%);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 16%, transparent 74%);
  opacity: var(--amb-grid-op);
}
.amb-glow {
  position: absolute; top: 0; left: 0;
  width: var(--amb-size); height: var(--amb-size);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) var(--amb-glow-strength), transparent) 0%, transparent 64%);
  opacity: 0; transition: opacity 0.8s ease;
  will-change: transform;
}
.amb-bg.amb-live .amb-glow { opacity: 1; }
.amb-bg.amb-noglow .amb-glow { display: none; }
html.amb-off-grad .amb-orbs { opacity: 0; }
html.amb-off-grid .amb-grid { opacity: 0; }
html.amb-off-glow .amb-glow { opacity: 0 !important; }
.amb-fx { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.amb-ripple {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--primary) 75%, transparent);
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 22%, transparent), transparent 68%);
  box-shadow: 0 0 26px 5px var(--glow), inset 0 0 14px var(--glow-soft);
  transform: scale(0); opacity: 0.85;
  animation: ambRipple 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ambRipple { 0% { transform: scale(0); opacity: 0.85; } 100% { transform: scale(8.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .amb-glow { display: none; }
  .amb-orb { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .prod-card, .prod-win img { transition: none; }
  .prod-card:hover { transform: none; }
  .prod-card:hover .prod-win img { object-position: 50% 0%; }
  .tgm-bubble, .tgm-kbd, .tgm-typing { animation: none; }
  .tgm-typing span { animation: none; }
}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { position: relative; padding-top: 150px; padding-bottom: 40px; overflow: hidden; }
.orbs { position: absolute; inset: -10% -5% auto; height: 120%; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.orb.o1 { width: 46vw; height: 46vw; top: -12%; left: -8%; background: var(--grad-digital); animation: drift1 22s var(--ease) infinite alternate; }
.orb.o2 { width: 42vw; height: 42vw; top: -6%; right: -10%; background: var(--grad-ai); opacity: 0.42; animation: drift2 26s var(--ease) infinite alternate; }
.orb.o3 { width: 30vw; height: 30vw; bottom: -20%; left: 30%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: 0.5; }
@keyframes drift1 { to { transform: translate(8%, 6%) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7%, 9%) scale(1.08); } }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}

.hero-layout { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-layout { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--fg-faint); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.6; }

.verified {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  padding: 7px 14px 7px 9px; border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent);
  font-size: 0.8rem; color: var(--fg);
}
.verified .v-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-content: center; }
.verified .v-ico svg { width: 13px; height: 13px; }

.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 30ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; }
.trust-row .ti { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--fg-faint); }
.trust-row .ti svg { width: 15px; height: 15px; color: var(--primary); }

/* meta strip under hero */
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline);
}
.hero-meta .m { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); }
.hero-meta .m .v { font-size: 0.95rem; font-weight: 500; }
.hero-meta .sep { width: 1px; height: 30px; background: var(--hairline); }

/* ===========================================================================
   DEMO (chat) — el "showcase"
   =========================================================================== */
.demo-frame {
  position: relative; border-radius: 26px; padding: 14px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--glow-soft);
  backdrop-filter: blur(20px);
}
.demo-frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: 27px; z-index: -1;
  background: var(--grad-ai); opacity: 0.18; filter: blur(22px);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
.demo-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in oklab, var(--fg) 5%, transparent); }
.demo-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 9px;
  font-size: 0.8rem; color: var(--fg-faint); transition: all 0.25s var(--ease); white-space: nowrap;
}
.demo-tab svg { width: 15px; height: 15px; }
.demo-tab.active { background: var(--card); color: var(--fg); box-shadow: var(--shadow-card); }
.demo-tab[data-ch="wa"].active { color: oklch(0.78 0.16 150); }
.demo-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--fg-faint); }
.demo-status .live { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.78 0.16 150); box-shadow: 0 0 8px oklch(0.78 0.16 150); animation: pulse 2s infinite; }

.chat {
  height: 430px; border-radius: 18px; padding: 18px;
  background: color-mix(in oklab, var(--bg-2) 50%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden; position: relative;
}
.chat-scroll { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: 0.9rem; line-height: 1.45; opacity: 0; transform: translateY(10px) scale(0.97); animation: msgIn 0.45s var(--ease) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; background: var(--primary); color: var(--primary-fg); border-bottom-right-radius: 5px; font-weight: 450; }
.msg.bot { align-self: flex-start; background: var(--card-2); border: 1px solid var(--hairline); border-bottom-left-radius: 5px; }
.msg .lbl { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 4px; }
.msg.bot .lbl { color: var(--primary); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 16px; background: var(--card-2); border: 1px solid var(--hairline); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-faint); animation: bounce 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.demo-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 4px; }
.demo-foot .repbtn { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--fg-soft); }
.demo-foot .repbtn:hover { color: var(--fg); }
.demo-foot .repbtn svg { width: 14px; height: 14px; }
.demo-handoff { font-size: 0.74rem; color: var(--fg-faint); font-family: var(--font-mono); }

/* ===========================================================================
   FEATURES GRID
   =========================================================================== */
.feat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat {
  padding: 26px; border-radius: var(--radius); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feat .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-content: center;
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  color: var(--primary); margin-bottom: 18px;
}
.feat .ico svg { width: 22px; height: 22px; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--fg-soft); font-size: 0.92rem; line-height: 1.55; }
.feat .glow-corner { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; background: radial-gradient(circle, var(--glow-soft), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.feat:hover .glow-corner { opacity: 1; }

/* ===========================================================================
   STEPS
   =========================================================================== */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 26px 24px; border-radius: var(--radius); position: relative; }
.step .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); letter-spacing: 0.1em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.step .num::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--fg-soft); line-height: 1.5; }

/* ===========================================================================
   PLANS + ESTIMADOR
   =========================================================================== */
.plans-layout { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .plans-layout { grid-template-columns: 1fr 1fr 1fr; align-items: start; } }
/* Variante de 4 planes (hub /web con Ecommerce con precio): 2x2 en pantallas
   medianas, 4 columnas en anchas, con el monto un poco mas compacto. */
@media (min-width: 1000px) and (max-width: 1279px) { .plans-layout.plans-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .plans-layout.plans-4 { grid-template-columns: repeat(4, 1fr); } .plans-4 .plan .price .amt { font-size: 1.9rem; } }
.plan { padding: 30px 26px; border-radius: 20px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: color-mix(in oklab, var(--primary) 45%, transparent); box-shadow: 0 0 0 1px var(--glow), var(--shadow-pop); }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: 20px; background: var(--glow-soft); opacity: 0.5; z-index: -1; }
.plan .badge { position: absolute; top: -12px; left: 26px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 8px; background: var(--primary); color: var(--primary-fg); font-weight: 600; }
.plan .pname { font-size: 0.82rem; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 6px; }
.plan .pdesc { font-size: 0.9rem; color: var(--fg-soft); margin-bottom: 22px; min-height: 42px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price .amt { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; }
.plan .price .per { font-size: 0.85rem; color: var(--fg-faint); }
.plan .setup { font-size: 0.8rem; color: var(--fg-faint); margin-bottom: 22px; }
.plan ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--fg-soft); align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.plan .btn { width: 100%; margin-top: auto; }

.estimator { padding: 30px; border-radius: 20px; margin-top: 22px; }
.estimator-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .estimator-grid { grid-template-columns: 1.3fr 1fr; } }
.est-controls { display: flex; flex-direction: column; gap: 22px; }
.est-ctl label { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 10px; }
.est-ctl label .val { font-family: var(--font-mono); color: var(--primary); }
.est-ctl input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--card-2); outline: none; }
.est-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 0 4px var(--glow-soft), 0 2px 8px oklch(0 0 0 / 0.4); transition: transform 0.15s; }
.est-ctl input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.est-ctl input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--primary); cursor: pointer; }
.est-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.est-seg button { padding: 9px 15px; border-radius: 10px; font-size: 0.85rem; border: 1px solid var(--border); color: var(--fg-soft); transition: all 0.2s; }
.est-seg button.on { background: var(--primary); color: var(--primary-fg); border-color: transparent; font-weight: 600; }
.est-out { text-align: center; padding: 30px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--hairline); }
.est-out .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); }
.est-out .big { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0; }
.est-out .big .cur { font-size: 1.2rem; color: var(--fg-faint); vertical-align: top; }
.est-out .sub { font-size: 0.82rem; color: var(--fg-soft); }
.est-out .divider { height: 1px; background: var(--hairline); margin: 20px 0; }

/* ===========================================================================
   INTEGRACIONES
   =========================================================================== */
.integr { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.integr .pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 13px;
  font-size: 0.9rem; color: var(--fg-soft);
  background: color-mix(in oklab, var(--fg) 3%, transparent); border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}
.integr .pill:hover { transform: translateY(-3px); color: var(--fg); border-color: var(--border-2); }
.integr .pill .lg { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-digital); opacity: 0.85; display: grid; place-content: center; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: oklch(0.1 0 0); }

/* ===========================================================================
   RELATED solutions
   =========================================================================== */
.rel-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }
.rel {
  padding: 24px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease), border-color 0.3s; cursor: pointer;
}
.rel:hover { transform: translateY(-4px); border-color: var(--border-2); }
.rel .top { display: flex; align-items: center; justify-content: space-between; }
.rel .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-content: center; background: color-mix(in oklab, var(--primary) 13%, transparent); border: 1px solid color-mix(in oklab, var(--primary) 28%, transparent); color: var(--primary); }
.rel .ico svg { width: 20px; height: 20px; }
.rel .arrow { color: var(--fg-faint); transition: transform 0.3s, color 0.3s; }
.rel:hover .arrow { transform: translate(3px,-3px); color: var(--primary); }
.rel h3 { font-size: 1.05rem; }
.rel p { font-size: 0.88rem; color: var(--fg-soft); line-height: 1.5; }

/* ===========================================================================
   FAQ
   =========================================================================== */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; background: color-mix(in oklab, var(--card) 55%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 18px; padding: 4px 24px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-size: 1.05rem; font-weight: 500; }
.faq-q .pm { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-content: center; transition: all 0.3s var(--ease); color: var(--fg-soft); }
.faq-q .pm svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-item.open .pm { background: var(--primary); color: var(--primary-fg); border-color: transparent; }
.faq-item.open .pm svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--fg-soft); line-height: 1.6; max-width: 64ch; }

/* ===========================================================================
   CTA + FOOTER
   =========================================================================== */
.cta-band { position: relative; border-radius: 28px; padding: clamp(40px, 6vw, 72px); overflow: hidden; text-align: center; border: 1px solid var(--border-2); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-ai); opacity: 0.13; z-index: -1; }
.cta-band::after { content: ""; position: absolute; inset: -50% 20% auto; height: 80%; background: radial-gradient(ellipse at center top, var(--glow), transparent 70%); z-index: -1; }
.cta-band .h2 { margin-bottom: 16px; }
.cta-band .lead { max-width: 52ch; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; }

footer { border-top: 1px solid var(--hairline); padding-block: 56px 40px; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot-brand .lead { font-size: 0.92rem; max-width: 36ch; margin-top: 14px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; }
.foot-col a { display: block; padding: 6px 0; font-size: 0.9rem; color: var(--fg-soft); transition: color 0.2s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { max-width: var(--maxw); margin: 40px auto 0; padding: 24px 24px 0; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.82rem; color: var(--fg-faint); }
.foot-legal { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-bottom a { color: var(--fg-faint); transition: color 0.2s; }
.foot-bottom a:hover { color: var(--fg); }
.foot-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.foot-contact a { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--fg-soft); transition: color 0.2s; width: fit-content; }
.foot-contact a:hover { color: var(--fg); }
.foot-contact svg { width: 16px; height: 16px; color: var(--fg-faint); flex-shrink: 0; }
.foot-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 36px; }
@media (max-width: 600px) { .foot-partners { justify-content: flex-start; margin-top: 28px; } }
.fp-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-right: 4px; }
.fp-badge { display: inline-flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--hairline); border-radius: 10px; padding: 7px 13px 7px 8px; font-size: 0.85rem; color: var(--fg-soft); }
.fp-logo { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; flex-shrink: 0; }
.fp-logo svg { display: block; }
.fp-badge[title*="Meta"] .fp-logo svg { width: 17px; height: auto; }
.fp-badge[title*="Shopify"] .fp-logo svg { height: 17px; width: auto; }

/* ── Botón volver arriba ── */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); background: color-mix(in oklab, var(--card) 78%, transparent); border: 1px solid var(--hairline); backdrop-filter: blur(12px); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6); cursor: pointer; opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s, background 0.2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 16%, var(--card)); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity 0.25s; transform: none; } }

/* density compact */
body.compact { --d: 0.66; }
body.compact .demo-frame, body.compact .plan, body.compact .feat, body.compact .step { } /* handled by --d on section padding */

/* sticky section labels for comments */
[data-screen-label] { scroll-margin-top: 90px; }

/* ---- Hovers: interacción en secciones que faltaban ---- */
.step { transition: transform 0.35s var(--ease), border-color 0.3s; }
.step:hover { transform: translateY(-4px); border-color: var(--border-2); }
.step:hover .num { color: var(--primary); }
.plan { transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.plan:hover { transform: translateY(-5px); }
.plan:not(.featured):hover { border-color: var(--border-2); }
@media (prefers-reduced-motion: reduce) {
  .step, .plan { transition: none; }
  .step:hover, .plan:hover { transform: none; }
}

/* ===========================================================================
   CONTACTO — formulario + canales
   =========================================================================== */
.contact-layout { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.25fr 1fr; gap: 28px; } }

.contact-form { padding: clamp(24px, 4vw, 36px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label,
.consent { font-size: 0.85rem; color: var(--fg-soft); }
.field label .opt { color: var(--fg-faint); font-weight: 400; }
.field-hint { font-size: 0.76rem; color: var(--fg-faint); }
.field input,
.field select,
.field textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  box-shadow: 0 0 0 3px var(--glow-soft); background: color-mix(in oklab, var(--bg-2) 60%, var(--card));
}
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-faint) 50%), linear-gradient(135deg, var(--fg-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1.15em), calc(100% - 13px) calc(1.15em);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

/* honeypot anti-bot: fuera de pantalla, invisible para humanos */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 20px; line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }

.form-msg { font-size: 0.88rem; line-height: 1.45; margin-top: 14px; }
.form-msg:empty { margin-top: 0; }
.form-msg.ok { color: oklch(0.78 0.16 150); }
.form-msg.err { color: oklch(0.72 0.2 25); }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.chan { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s; }
a.chan:hover { transform: translateY(-3px); border-color: var(--border-2); }
.chan-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-content: center;
  background: color-mix(in oklab, var(--primary) 13%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 28%, transparent); color: var(--primary); }
.chan-ico svg { width: 21px; height: 21px; }
.chan-body { flex: 1; min-width: 0; }
.chan-h { font-weight: 600; font-size: 0.98rem; }
.chan-p { font-size: 0.85rem; color: var(--fg-soft); margin-top: 2px; }
.chan-arrow { width: 18px; height: 18px; color: var(--fg-faint); flex-shrink: 0; transition: transform 0.3s, color 0.3s; }
a.chan:hover .chan-arrow { transform: translate(3px, -3px); color: var(--primary); }
.contact-trust { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; }
.contact-trust .ti { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--fg-soft); }
.contact-trust .ti svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .chan { transition: none; } a.chan:hover { transform: none; } }

/* ===========================================================================
   COMPONENTES REUTILIZABLES (antes inline en la home; ahora globales para
   que los reusen /web y otras páginas)
   =========================================================================== */
/* Texto con gradiente "Presencia" (violeta→cyan) */
.grad-digital { background: var(--grad-digital); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }

/* Tabla comparativa */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in oklab, var(--card) 55%, transparent); backdrop-filter: blur(16px); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
.cmp th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-faint); font-weight: 500; }
.cmp td:first-child, .cmp th:first-child { text-align: left; color: var(--fg); }
.cmp-logo { height: 44px; width: auto; display: inline-block; vertical-align: middle; }
.cmp-logo.wm-on-light { display: none; }
html.light .cmp-logo.wm-on-dark { display: none; }
html.light .cmp-logo.wm-on-light { display: inline-block; }
.cmp .us { background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--fg); font-weight: 600; }
.cmp .yes { color: oklch(0.78 0.16 150); font-weight: 700; }
.cmp .no { color: var(--fg-faint); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp tbody tr { transition: background 0.2s; }
.cmp tbody tr:hover { background: color-mix(in oklab, var(--fg) 3%, transparent); }
/* Refinamientos móviles: chat más bajo y tabla comparativa más compacta */
@media (max-width: 640px) {
  .chat { height: 330px; }
}
@media (max-width: 540px) {
  .cmp { min-width: 480px; }
  .cmp th, .cmp td { padding: 10px 8px; font-size: 0.8rem; }
  .cmp th { font-size: 0.66rem; }
}

/* Bloque de garantía "Primero ves, después decides" */
.warranty { position: relative; border-radius: 24px; border: 1px solid var(--border-2); padding: clamp(32px, 5vw, 52px); text-align: center; overflow: hidden; }
.warranty::before { content: ""; position: absolute; inset: 0; background: var(--grad-digital); opacity: 0.1; z-index: -1; }
.warranty .wico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-content: center; margin: 0 auto 18px; background: color-mix(in oklab, var(--primary) 16%, transparent); border: 1px solid color-mix(in oklab, var(--primary) 32%, transparent); color: var(--primary); }
.warranty .wico svg { width: 26px; height: 26px; }

/* Dos columnas / tarjetas de "camino" (home: dos caminos) */
.two-col { display: grid; gap: 18px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.path-card { padding: 32px 30px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.path-card .top-line { position: absolute; inset-inline: 0; top: 0; height: 2px; }
.path-card .price-tag { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-soft); margin-top: 4px; }
.path-card .cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }

/* Franja de stats con contadores (+6 años / +150 proyectos) */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; border: 1px solid var(--border); border-radius: 20px; padding: 34px 28px; background: color-mix(in oklab, var(--card) 55%, transparent); backdrop-filter: blur(16px); text-align: center; }
@media (min-width: 760px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band .num { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stats-band .lbl { font-size: 0.82rem; color: var(--fg-soft); margin-top: 7px; }
.stats-band .stat { transition: transform 0.3s var(--ease); }
.stats-band .stat:hover { transform: translateY(-3px); }

/* Lista de beneficios en línea */
.bene3 { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; }
.bene3 .b3 { display: inline-flex; align-items: center; gap: 9px; font-size: 0.95rem; color: var(--fg-soft); }
.bene3 .b3 svg { width: 18px; height: 18px; color: var(--primary); }

/* Testimonios */
.testi { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .testi { grid-template-columns: repeat(3, 1fr); } }
.testi .t { padding: 24px; transition: transform 0.35s var(--ease), border-color 0.3s; }
.testi .t:hover { transform: translateY(-4px); border-color: var(--border-2); }
.testi .t .q { font-size: 0.95rem; line-height: 1.55; color: var(--fg); }
.testi .t .who { margin-top: 16px; font-size: 0.78rem; color: var(--fg-faint); font-family: var(--font-mono); }
.stars { display: flex; gap: 3px; margin-bottom: 13px; }
.stars svg { width: 16px; height: 16px; color: #FFB400; }

/* Marquee de rubros */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marq 32s linear infinite; font-family: var(--font-mono); font-size: 0.86rem; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.1em; will-change: transform; }
.marquee-track span { padding: 0 20px; }
.marquee-track .d { color: var(--primary); opacity: 0.6; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Pulso del ícono en tarjetas de solución (.rel) */
.rel .ico { position: relative; }
.rel .ico::after { content: ""; position: absolute; inset: -6px; border-radius: 15px; background: radial-gradient(circle, color-mix(in oklab, var(--primary) 45%, transparent), transparent 70%); opacity: 0; animation: icopulse 3.2s var(--ease) infinite; z-index: -1; }
@keyframes icopulse { 0%, 100% { opacity: 0; transform: scale(0.85); } 50% { opacity: 0.5; transform: scale(1.2); } }

/* Tarjetas de casos */
.case-card { transition: transform 0.35s var(--ease), border-color 0.3s; }
.case-card:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.case-thumb { height: 220px; overflow: hidden; position: relative; background: var(--bg-2); }
.case-thumb img { width: 100%; height: auto; display: block; transform: translateY(0); transition: transform 7s linear; }
.case-card:hover .case-thumb img { transform: translateY(calc(220px - 100%)); }
.case-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; color: #fff; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); pointer-events: none; transition: opacity 0.3s; }
.case-card:hover .case-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .rel .ico::after { animation: none; }
  .testi .t, .case-card, .stats-band .stat { transition: none; }
  .testi .t:hover, .case-card:hover, .stats-band .stat:hover { transform: none; }
  .case-thumb img, .case-card:hover .case-thumb img { transition: none; transform: none; }
}

/* ===========================================================================
   LEGALES (privacidad / términos) — texto largo legible
   =========================================================================== */
.legal-prose { max-width: 760px; margin-inline: auto; }
.legal-prose .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-faint); letter-spacing: 0.04em; margin-bottom: 8px; }
.legal-prose h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal-prose h3 { font-size: 1.02rem; margin: 24px 0 8px; color: var(--fg); }
.legal-prose p { color: var(--fg-soft); line-height: 1.7; margin-bottom: 14px; }
.legal-prose ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 4px 0 18px; }
.legal-prose li { position: relative; padding-left: 20px; color: var(--fg-soft); line-height: 1.6; }
.legal-prose li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.legal-prose a { color: var(--primary); }
.legal-prose strong { color: var(--fg); font-weight: 600; }
.legal-prose .legal-disclaimer { margin-top: 36px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in oklab, var(--fg) 3%, transparent); font-size: 0.88rem; color: var(--fg-faint); line-height: 1.6; }
.legal-prose .legal-data { margin-top: 8px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--bg-2); font-size: 0.9rem; line-height: 1.7; }
.legal-prose .legal-data b { color: var(--fg); }
