/* =========================================================================
   Globalforce · Priority ERP — hoja de estilos principal
   Estructura: 1) tokens  2) base  3) layout  4) componentes  5) secciones
               6) páginas internas  7) formularios  8) utilidades / responsive
   ========================================================================= */

/* ---------- 1) Tokens ---------- */
:root {
  --navy-950: #060d1f;
  --navy-900: #0a1531;
  --navy-800: #102047;
  --navy-700: #1a2e5e;

  --brand: #1d5bd8;
  --brand-600: #174bb5;
  --brand-400: #4f86f0;
  --brand-100: #dbe7ff;
  --brand-50: #eef4ff;

  --cyan: #22d3ee;
  --violet: #7c6cf6;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #dc2626;

  --ink: #0d1630;
  --ink-2: #2b3550;
  --muted: #5b6680;
  --line: #e3e8f2;
  --line-2: #d3dbea;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-soft-2: #edf1f9;

  --on-dark: #e8eefc;
  --on-dark-muted: #9fb0d4;
  --line-dark: rgba(255, 255, 255, .1);

  --grad-ai: linear-gradient(120deg, #7c6cf6 0%, #4f86f0 50%, #22d3ee 100%);
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #1d5bd8 50%, #1747a6 100%);

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 22, 48, .06), 0 1px 3px rgba(13, 22, 48, .05);
  --shadow: 0 8px 24px -8px rgba(13, 22, 48, .14), 0 2px 6px rgba(13, 22, 48, .05);
  --shadow-lg: 0 30px 60px -20px rgba(10, 21, 49, .35), 0 12px 24px -12px rgba(10, 21, 49, .2);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 88px;
}

/* ---------- 2) Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 650; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 1em; height: 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; color: #fff; }

/* ---------- 3) Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-950); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.125rem; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* ---------- 4) Componentes ---------- */
/* Botones */
.btn {
  --b-bg: var(--brand); --b-fg: #fff; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .975rem; line-height: 1;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { color: var(--b-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 1.1em; height: 1.1em; transition: transform .18s ease; }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-primary { box-shadow: 0 10px 24px -10px rgba(29, 91, 216, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { --b-bg: var(--brand-600); box-shadow: 0 14px 28px -10px rgba(29, 91, 216, .8); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-2); }
.btn-ghost:hover { --b-bd: var(--ink); }
.btn-light { --b-bg: #fff; --b-fg: var(--navy-900); }
.btn-light:hover { --b-bg: var(--brand-50); }
.btn-outline-light { --b-bg: rgba(255,255,255,.04); --b-fg: #fff; --b-bd: rgba(255,255,255,.28); }
.btn-outline-light:hover { --b-bd: #fff; --b-bg: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.link-arrow .i { transition: transform .18s ease; width: 1em; height: 1em; }
.link-arrow:hover .i { transform: translateX(3px); }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--on-dark);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.chip-dot { display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--grad-ai); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: .78rem; font-weight: 650; }

/* Íconos en caja */
.icon-box {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand); flex: none;
}
.icon-box .i { width: 24px; height: 24px; }
.section-dark .icon-box { background: rgba(79, 134, 240, .14); color: #8fb4ff; }
.icon-box.ai { background: linear-gradient(135deg, rgba(124,108,246,.16), rgba(34,211,238,.16)); color: #6b5cf0; }

/* Tarjetas */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card-link .link-arrow { margin-top: 18px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link a.stretched::after { content: ""; position: absolute; inset: 0; }
.section-dark .card { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.section-dark .card p { color: var(--on-dark-muted); }

.card-list { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.card-list li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.card-list li .i { color: var(--brand); margin-top: 3px; width: 1.05em; height: 1.05em; }
.section-dark .card-list li { color: var(--on-dark); }
.section-dark .card-list li .i { color: var(--cyan); }

.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5bd8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section-dark .check-list li::before, .page-hero .check-list li::before { background-color: rgba(34, 211, 238, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(13,22,48,.25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 1.2rem; letter-spacing: .01em; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.on-dark .brand, .on-dark .brand:hover { color: #fff; }
.on-dark .brand-sub { color: var(--on-dark-muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem; color: var(--ink-2);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; }
.header-login:hover { color: var(--ink); background: var(--bg-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .i { width: 22px; height: 22px; }

/* Panel móvil */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff;
  padding: 16px var(--gutter) 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mobile-nav.open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.mobile-nav a[aria-current="page"] { color: var(--brand); }
.mobile-nav .btn { margin-top: 16px; }
body.nav-open { overflow: hidden; }

/* ---------- 5) Hero (inicio) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark-muted);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(79,134,240,.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(124,108,246,.25), transparent 60%),
    var(--navy-950);
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin: 22px 0 20px; }
.hero h1 .grad, .grad-text { background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 560px; color: var(--on-dark-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: .9rem; color: var(--on-dark); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .i { color: var(--cyan); width: 18px; height: 18px; }

/* Maqueta de tablero (visual del hero) */
.mockup { position: relative; }
.mock-window {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0f1c3d; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a72; }
.mock-bar i:nth-child(1) { background: #ef6b6b; } .mock-bar i:nth-child(2) { background: #f4c152; } .mock-bar i:nth-child(3) { background: #4fd18b; }
.mock-bar span { margin-left: 12px; font-size: .72rem; color: #8d9cc3; font-family: var(--font-head); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 360px; }
.mock-side { background: rgba(255,255,255,.025); border-right: 1px solid rgba(255,255,255,.06); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock-side b { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); }
.mock-side b.on { background: var(--brand); box-shadow: 0 0 0 4px rgba(29,91,216,.25); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px; }
.mock-kpi small { display: block; font-size: .64rem; color: #8d9cc3; text-transform: uppercase; letter-spacing: .08em; }
.mock-kpi strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-top: 2px; }
.mock-kpi em { font-style: normal; font-size: .68rem; color: #4fd18b; font-weight: 700; }
.mock-chart { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 14px; }
.mock-chart-head { display: flex; justify-content: space-between; font-size: .7rem; color: #8d9cc3; margin-bottom: 12px; }
.mock-chart-head b { color: #e8eefc; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #4f86f0, #1d5bd8); opacity: .9; transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.bars span:nth-child(even) { background: linear-gradient(180deg, #6ee7f9, #22b8d4); }
.bars span:nth-child(1){height:42%;animation-delay:.05s}.bars span:nth-child(2){height:58%;animation-delay:.1s}.bars span:nth-child(3){height:50%;animation-delay:.15s}.bars span:nth-child(4){height:72%;animation-delay:.2s}.bars span:nth-child(5){height:64%;animation-delay:.25s}.bars span:nth-child(6){height:85%;animation-delay:.3s}.bars span:nth-child(7){height:78%;animation-delay:.35s}.bars span:nth-child(8){height:95%;animation-delay:.4s}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mock-rows { display: grid; gap: 6px; }
.mock-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; align-items: center; font-size: .7rem; color: #b6c3e3; background: rgba(255,255,255,.025); border-radius: 8px; padding: 8px 10px; }
.mock-row .pill { justify-self: end; padding: 2px 8px; border-radius: 999px; font-size: .62rem; font-weight: 700; background: rgba(79,209,139,.14); color: #4fd18b; }
.mock-row .pill.wait { background: rgba(244,193,82,.14); color: #f4c152; }

.mock-ai {
  position: absolute; right: -18px; bottom: -34px; width: min(300px, 78%);
  background: rgba(255,255,255,.97); color: var(--ink-2); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); font-size: .82rem; line-height: 1.45;
  animation: float 6s ease-in-out infinite;
}
.mock-ai-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: .8rem; margin-bottom: 8px; }
.mock-ai-head .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-ai); color: #fff; }
.mock-ai-head .dot .i { width: 15px; height: 15px; }
.mock-ai .q { background: var(--bg-soft-2); border-radius: 10px 10px 10px 3px; padding: 7px 10px; margin-bottom: 7px; }
.mock-ai .a { background: var(--brand-50); color: var(--ink); border-radius: 10px 10px 3px 10px; padding: 7px 10px; }
.mock-float {
  position: absolute; right: 44px; top: -28px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.97); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg);
  font-size: .78rem; color: var(--muted); animation: float 7s ease-in-out -2s infinite;
}
.mock-float strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.mock-float .icon-box { width: 36px; height: 36px; border-radius: 10px; background: #e7f8ef; color: var(--green); }
.mock-float .icon-box .i { width: 18px; height: 18px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Franja de clientes ---------- */
.logos { padding: 36px 0; border-bottom: 1px solid var(--line); background: #fff; }
.logos p { text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; color: #9aa6c0; white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat-num small { font-size: .55em; color: var(--brand); margin-left: 2px; }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.section-dark .stats { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.section-dark .stat { border-color: var(--line-dark); }
.section-dark .stat-num { color: #fff; }
.section-dark .stat-num small { color: var(--cyan); }

/* ---------- Módulos ---------- */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink-2); }
.module h3 { font-size: 1.04rem; margin: 2px 0 0; }
.module p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ---------- Sección IA ---------- */
.ai-section {
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(124,108,246,.28), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(34,211,238,.16), transparent 60%),
    var(--navy-950);
  overflow: hidden;
}
.ai-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); }
.ai-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(124,108,246,.6), transparent 40%, rgba(34,211,238,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ai-card .num { font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--cyan); }
.ai-card h3 { color: #fff; margin: 12px 0 10px; font-size: 1.3rem; }
.ai-card p { margin: 0; }
.ai-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.ai-feature { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); color: var(--on-dark); font-size: .92rem; font-weight: 500; }
.ai-feature .i { color: #a59bff; }

/* ---------- Bloques de característica (split) ---------- */
.feature-visual {
  position: relative; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(160deg, var(--brand-50), #f8faff 60%); border: 1px solid var(--line); overflow: hidden;
}
.feature-visual.dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-color: rgba(255,255,255,.08); }
.feature-copy p.lead { font-size: 1.1rem; color: var(--muted); }

/* Visual: tarjetas apiladas */
.stack { display: grid; gap: 12px; }
.stack-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.stack-item strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.stack-item span { font-size: .84rem; color: var(--muted); }
.stack-item .meter { margin-left: auto; width: 90px; height: 8px; border-radius: 99px; background: var(--bg-soft-2); overflow: hidden; }
.stack-item .meter b { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); }

/* Pasos / proceso */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--brand); letter-spacing: .08em; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.section-dark .step { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.section-dark .step::before { color: var(--cyan); }
.section-dark .step p { color: var(--on-dark-muted); }

/* Industrias */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); overflow: hidden; transition: all .2s ease;
}
.industry::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.industry:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink-2); }
.industry:hover::after { transform: scaleX(1); }
.industry h3 { font-size: 1.05rem; margin: 6px 0 0; }
.industry p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* Reconocimientos */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.award { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.award-org { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.award p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.award .i { color: var(--amber); width: 22px; height: 22px; margin-bottom: 12px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-100); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s ease; color: var(--brand); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* CTA final */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: radial-gradient(600px 300px at 90% 10%, rgba(34,211,238,.25), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(124,108,246,.35), transparent 60%), var(--grad-brand);
  color: #dbe7ff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 620px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 72px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-about p { margin: 18px 0 0; max-width: 360px; line-height: 1.6; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { color: var(--cyan); margin-top: 3px; width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.partner-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); color: var(--on-dark); font-size: .82rem; font-weight: 600; }
.partner-badge .i { color: var(--cyan); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #1fa855; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; box-shadow: 0 14px 30px -10px rgba(31,168,85,.7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(31,168,85,.8); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- 6) Páginas internas ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--on-dark-muted);
  background: radial-gradient(800px 400px at 90% -20%, rgba(79,134,240,.35), transparent 60%), radial-gradient(600px 400px at -10% 120%, rgba(124,108,246,.22), transparent 60%), var(--navy-950);
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 18px; max-width: 900px; }
.page-hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 720px; margin: 0; }
.page-hero .hero-ctas { margin-top: 28px; }
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 18px; color: var(--on-dark-muted); }
.breadcrumbs a { color: var(--on-dark); }
.breadcrumbs a:hover { color: #fff; }

/* Navegación de anclas (subnav) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 8px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover { background: var(--bg-soft); color: var(--ink); }
.subnav a.active { background: var(--brand-50); color: var(--brand); }

/* Detalle de módulo */
.module-detail { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); padding: 48px 0; border-top: 1px solid var(--line); }
.module-detail:first-of-type { border-top: 0; padding-top: 0; }
.module-detail-head h3 { font-size: 1.5rem; margin: 18px 0 10px; }
.module-detail-head p { color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; }
.feature-grid li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.feature-grid li .i { color: var(--brand); margin-top: 3px; }
.feature-grid li strong { display: block; font-family: var(--font-head); font-size: .98rem; margin-bottom: 2px; }
.feature-grid li span { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* Mini-cards de móvil, etc. */
.mini { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.mini h3 { font-size: 1.02rem; margin: 0 0 6px; }
.mini p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.section-dark .mini { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.section-dark .mini p { color: var(--on-dark-muted); }

/* Video */
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: radial-gradient(500px 300px at 70% 20%, rgba(79,134,240,.45), transparent 60%), radial-gradient(400px 300px at 10% 100%, rgba(124,108,246,.4), transparent 60%), var(--navy-900); font: inherit; }
.video-poster .play { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: 0 0 0 12px rgba(255,255,255,.12); transition: transform .2s ease; }
.video-poster:hover .play { transform: scale(1.06); }
.video-poster .play .i { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-poster .label { position: absolute; left: 24px; bottom: 22px; text-align: left; }
.video-poster .label strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.video-poster .label span { font-size: .88rem; color: var(--on-dark-muted); }

/* Clientes */
.client { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: all .2s ease; }
.client:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.client-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; color: var(--ink); }
.client .tag { align-self: flex-start; margin: 10px 0 14px; }
.client p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Línea de tiempo (nosotros) */
.timeline { list-style: none; position: relative; display: grid; gap: 28px; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--brand-100)); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.timeline strong { font-family: var(--font-head); display: block; font-size: 1.05rem; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* ---------- 7) Formularios ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--brand); }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 11px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
.input::placeholder, .textarea::placeholder { color: #9aa4ba; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9c4da; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,91,216,.14); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.field-error { display: none; font-size: .82rem; color: var(--red); font-weight: 500; }
.field.invalid .field-error { display: block; }

/* Selector de tipo de solicitud (radios como tarjetas) */
.choice-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 82px; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--line-2); font-family: var(--font-head); font-weight: 650; font-size: .86rem; color: var(--ink-2); transition: all .15s ease; line-height: 1.25; }
.choice span .i { color: var(--muted); width: 22px; height: 22px; }
.choice input:hover + span { border-color: #b9c4da; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); box-shadow: 0 0 0 3px rgba(29,91,216,.12); }
.choice input:checked + span .i { color: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--brand-400); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.field label.consent { font-family: var(--font-body); font-weight: 400; font-size: .86rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: .94rem; }
.form-status.show { display: flex; gap: 10px; align-items: flex-start; }
.form-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-success { display: none; text-align: center; padding: 28px 8px; }
.form-success.show { display: block; }
.form-success .ok-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #e7f8ef; color: var(--green); }
.form-success .ok-icon .i { width: 34px; height: 34px; stroke-width: 2.4; }
.form-success h2 { margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 440px; margin: 0 auto 22px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label-idle { display: none; }
.btn .btn-label-busy { display: none; }
.btn.loading .btn-label-busy { display: inline; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s ease; }
a.contact-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--ink-2); }
.contact-card h3 { font-size: 1rem; margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.contact-card .value { color: var(--ink); font-weight: 600; }
.contact-card.wa .icon-box { background: #e7f8ef; color: #1fa855; }
.aside-note { padding: 22px; border-radius: var(--radius); background: var(--navy-950); color: var(--on-dark-muted); font-size: .93rem; }
.aside-note h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.aside-note ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.aside-note li::marker { color: var(--cyan); font-weight: 700; }

/* ---------- 8) Utilidades / animación de entrada ---------- */
.pt-0 { padding-top: 0 !important; } .mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.center-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .modules, .industries, .awards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .ai-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 960px) {
  .nav, .header-actions .header-login, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .hero-grid, .split, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .cta-band .actions { justify-content: flex-start; }
  .mockup { max-width: 620px; margin: 0 auto; width: 100%; }
  .mock-window { transform: none; }
  .grid-3, .ai-cards { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-dark .stat:nth-child(-n+2) { border-bottom-color: var(--line-dark); }
  .module-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .modules, .industries, .awards, .grid-2, .grid-3, .grid-4, .ai-cards, .steps { grid-template-columns: 1fr; }
  .modules.two-col-sm, .industries.two-col-sm { grid-template-columns: 1fr 1fr; }
  .ai-features { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .choice-group { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .mock-float { right: 10px; top: -30px; }
  .mock-ai { right: 8px; bottom: -40px; }
  .mock-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mock-kpi strong { font-size: .9rem; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float .wa-label { display: none; }
  .cta-band { border-radius: 20px; }
}
@media (max-width: 420px) {
  .modules.two-col-sm, .industries.two-col-sm { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* =========================================================================
   v2 · Logo real, medios de Priority (capturas, GIF, Lottie, video) y animaciones
   ========================================================================= */

/* Logo */
.brand .brand-logo { height: 74px; width: auto; }
@media (max-width: 720px) { :root { --header-h: 76px; } .brand .brand-logo { height: 62px; } }
.brand-divider { width: 1px; height: 34px; background: var(--line-2); margin: 0 4px; }
.brand-partner { font-size: .7rem; line-height: 1.25; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.brand-partner strong { display: block; color: var(--brand); font-family: var(--font-head); font-size: .86rem; letter-spacing: 0; }
.site-footer .brand .brand-logo { height: 86px; }
.logo-plate { display: inline-flex; padding: 8px 12px; border-radius: 14px; background: #fff; }
@media (max-width: 420px) { .brand-divider, .brand-partner { display: none; } }

/* Insignia de versión */
.v-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--grad-ai); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .75rem; letter-spacing: .03em; }

/* Marco de navegador para capturas, GIFs y animaciones del sistema */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbea; }
.frame-bar i:nth-child(1) { background: #ef6b6b; }
.frame-bar i:nth-child(2) { background: #f4c152; }
.frame-bar i:nth-child(3) { background: #4fd18b; }
.frame-bar span { margin-left: 10px; font-size: .72rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img, .frame video { width: 100%; height: auto; display: block; }
.frame .lottie { aspect-ratio: 16 / 9; width: 100%; background: #fff; }
.section-dark .frame, .on-dark .frame { border-color: rgba(255,255,255,.12); }
.frame-caption { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }
.section-dark .frame-caption { color: var(--on-dark-muted); }

/* Hero con animación real del sistema */
.hero-media { position: relative; }
.hero-media .frame { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2,.8,.2,1); box-shadow: 0 40px 90px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06); border: 0; }
.hero-media:hover .frame { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.hero-media .glow { position: absolute; inset: -10% -6% -14% -6%; background: radial-gradient(closest-side, rgba(79,134,240,.45), transparent); filter: blur(30px); z-index: 0; animation: pulse 6s ease-in-out infinite; pointer-events: none; }
.hero-media > .frame { z-index: 1; }
.hero-media .mock-ai, .hero-media .mock-float { z-index: 2; }
@keyframes pulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.hero-media .mock-ai { bottom: -42px; right: -14px; }
.hero-media .mock-float { top: -26px; right: 30px; left: auto; }

/* Escaparate con pestañas (GIFs del sistema) */
.showcase { display: grid; grid-template-columns: 330px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.showcase-tabs { display: grid; gap: 8px; }
.showcase-tab { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: var(--ink-2); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.showcase-tab:hover { background: var(--bg-soft-2); }
.showcase-tab .icon-box { width: 40px; height: 40px; border-radius: 10px; transition: background .2s, color .2s; }
.showcase-tab .icon-box .i { width: 20px; height: 20px; }
.showcase-tab strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.showcase-tab small { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; margin-top: 2px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease; }
.showcase-tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.showcase-tab[aria-selected="true"] small { max-height: 80px; opacity: 1; }
.showcase-tab[aria-selected="true"] .icon-box { background: var(--brand); color: #fff; }
.showcase-tab .progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad-brand); }
.showcase-tab[aria-selected="true"] .progress { animation: tabprogress var(--tab-ms, 8000ms) linear forwards; }
.showcase.paused .showcase-tab .progress { animation-play-state: paused; }
@keyframes tabprogress { to { width: 100%; } }
.showcase-panel { display: none; }
.showcase-panel.active { display: block; animation: panelin .5s cubic-bezier(.2,.8,.2,1); }
@keyframes panelin { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

/* YouTube ligero: carga el reproductor solo al hacer clic */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #0a1531 center / cover no-repeat; box-shadow: var(--shadow); font: inherit; }
.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,31,0) 40%, rgba(6,13,31,.88)); }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--brand); box-shadow: 0 0 0 10px rgba(255,255,255,.15); transition: transform .2s ease; }
.yt .play .i { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.yt:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.yt .yt-title { position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: left; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.3; }
.yt .yt-title small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: #c9d5f2; margin-top: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.loaded::before, .yt.loaded .play, .yt.loaded .yt-title { display: none; }
.yt-lg .play { width: 88px; height: 88px; }
.yt-lg .yt-title { font-size: 1.25rem; left: 24px; bottom: 22px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-grid .yt { box-shadow: var(--shadow-sm); }

/* Logos de clientes */
.marquee-track.logos-track { gap: 64px; align-items: center; }
.marquee-track img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0); opacity: .42; transition: opacity .2s; }
.marquee-track img:hover { opacity: .85; }
.client-logo { height: 120px; display: grid; place-items: center; margin: -26px -26px 20px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.client-logo img { max-height: 56px; max-width: 70%; width: auto; filter: brightness(0) invert(1); transition: transform .3s ease; }
.client:hover .client-logo img { transform: scale(1.06); }

/* Módulos con medio (captura / GIF / video) */
.module-detail.has-media { grid-template-columns: 1fr 1.15fr; align-items: center; }
.module-detail.has-media.flip > .md-text { order: 2; }
.module-detail.has-media .feature-grid { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.md-media .frame-caption { text-align: left; }

/* Teléfonos con animación */
.phone { position: relative; width: min(280px, 70vw); margin: 0 auto; aspect-ratio: 465 / 960; border-radius: 38px; padding: 10px; background: #0b1226; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone .lottie { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; }
.phones { display: flex; gap: 28px; justify-content: center; align-items: flex-end; }
.phone.landscape { aspect-ratio: auto; width: min(420px, 90%); border-radius: 22px; padding: 8px; }
.phone.landscape .lottie { aspect-ratio: 16 / 9; height: auto; border-radius: 16px; }

/* Entrada escalonada y variantes */
.stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.stagger > .reveal:nth-child(4) { transition-delay: .24s; }
.stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.stagger > .reveal:nth-child(6) { transition-delay: .4s; }
.stagger > .reveal:nth-child(7) { transition-delay: .48s; }
.stagger > .reveal:nth-child(8) { transition-delay: .56s; }
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.zoom { transform: none; }

/* Brillo giratorio en la banda final */
.cta-band::after { content: ""; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.14) 80%, transparent 90%); animation: spin 10s linear infinite; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }

/* Al llegar a una sección desde un enlace, resaltarla un momento */
.flash .md-text, .flash .module-detail-head { animation: flash 1.8s ease; }
@keyframes flash { 0% { background: var(--brand-50); box-shadow: 0 0 0 14px var(--brand-50); border-radius: 12px; } 100% { background: transparent; box-shadow: 0 0 0 14px transparent; } }

/* Con sub-navegación pegajosa, compensar su altura al saltar a una sección */
html.has-subnav { scroll-padding-top: calc(var(--header-h) + 76px); }

@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-tabs { grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
  .showcase-tab small { display: none; }
  .module-detail.has-media { grid-template-columns: 1fr; }
  .module-detail.has-media.flip > .md-text { order: 0; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .hero-media .frame { transform: none; }
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
  .module-detail.has-media .feature-grid { grid-template-columns: 1fr; }
  .hero-media .mock-ai { display: none; }
  .hero-media .mock-float { right: 10px; }
  .phones .phone:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::after, .hero-media .glow { animation: none; }
}

/* Nosotros: panel de credenciales y especialidades */
.cred-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); color: var(--on-dark-muted);
  background: radial-gradient(420px 260px at 100% 0%, rgba(79,134,240,.35), transparent 60%), radial-gradient(360px 240px at 0% 100%, rgba(124,108,246,.25), transparent 60%), var(--navy-950); box-shadow: var(--shadow-lg); }
.cred-top { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); }
.cred-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad-ai); color: #fff; box-shadow: 0 10px 24px -8px rgba(124,108,246,.6); }
.cred-badge .i { width: 28px; height: 28px; }
.cred-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.cred-top strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.45rem; letter-spacing: -.02em; }
.cred-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.cred-facts > div { display: flex; flex-direction: column; gap: 6px; }
.cred-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: #fff; letter-spacing: -.03em; }
.cred-facts > div > span:last-child { font-size: .9rem; }
.cred-cycle { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 22px; }
.cred-cycle li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: var(--on-dark); font-size: .9rem; font-weight: 600; }
.cred-cycle .i { color: var(--cyan); width: 20px; height: 20px; }
.spec-card { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.spec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.spec-img { position: relative; aspect-ratio: 16 / 10; }
.spec-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.spec-img::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(180deg, transparent 50%, rgba(6,13,31,.5)); }
.spec-icon { position: absolute; left: 22px; bottom: -24px; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(29,91,216,.7); }
.spec-icon .i { width: 26px; height: 26px; }
.spec-body { padding: 38px 24px 26px; }
.spec-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.spec-body p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 420px) { .cred-cycle { grid-template-columns: 1fr; } }

/* Cobertura: México y Latinoamérica */
.coverage { background: radial-gradient(700px 500px at 85% 40%, rgba(34,211,238,.12), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(124,108,246,.2), transparent 60%), var(--navy-950); overflow: hidden; }
.coverage-map { position: relative; }
.coverage-map img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 20px 60px rgba(34,211,238,.15)); }
.coverage-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 4px; }
.coverage-stats > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.cov-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.02em; background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coverage-stats span:last-child { font-size: .9rem; color: var(--on-dark); }
.cred-coverage { display: flex; align-items: center; gap: 12px; padding: 18px 0 0; color: var(--on-dark-muted); font-size: .9rem; }
.cred-coverage .i { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(34,211,238,.12); color: var(--cyan); flex: none; }
.cred-coverage strong { display: block; color: #fff; font-family: var(--font-head); font-size: .98rem; }
.coverage-card .icon-box { background: #e6f9fd; color: #0891b2; }

