/* ==========================================================================
   YAQHA v2.1 — LUMINOUS ROYAL & HUMMINGBIRD BRAND SYSTEM
   Consultora de IA & Software · +9 años · +2,000 empresas
   Código de marca: Blanco Luminoso · Azul Real YAQHA (#171BA8) · Cian · Verde Colibrí
   ========================================================================== */

:root {
  --bg: #f8faff;
  --bg-2: #f0f4fc;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #e8effa;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(23, 27, 168, 0.15);
  --text: #0b1120;
  --muted: #475569;
  --dim: #64748b;

  --royal: #171ba8;
  --royal-bright: #2563eb;
  --leaf: #4d7c0f;
  --leaf-bright: #8dba2c;
  --leaf-deep: #3f6212;
  --cyan: #0284c7;
  --cyan-bright: #22c3e6;
  --azure: #2563eb;
  --indigo: #4338ca;
  --violet: #6d28d9;
  --violet-deep: #4e34b2;

  --grad: linear-gradient(100deg, #171ba8 0%, #0284c7 42%, #4f46e5 74%, #4d7c0f 100%);
  --grad-ribbon: linear-gradient(100deg, #8dba2c 0%, #22c3e6 42%, #2563eb 74%, #5b21b6 100%);
  --grad-btn: linear-gradient(100deg, #171ba8 0%, #2563eb 52%, #0284c7 100%);
  --grad-soft: linear-gradient(135deg, rgba(23, 27, 168, 0.08), rgba(34, 195, 230, 0.10) 50%, rgba(141, 186, 44, 0.10));

  --paper: #f1f5fb;
  --paper-2: #ffffff;
  --ink: #0b1120;
  --ink-muted: #475569;
  --ink-line: #dde5f2;

  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1280px;
  --header-h: 78px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.12);
  --glow: 0 0 0 1px rgba(23, 27, 168, 0.18), 0 20px 50px -14px rgba(37, 99, 235, 0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--royal); color: #ffffff; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }

.hl-brand {
  color: var(--royal);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   SECCIONES (Sistema Luminoso Editorial)
   -------------------------------------------------------------------------- */
.sec { position: relative; padding: 7rem 0; }
.sec-sm { padding: 4.5rem 0; }
.sec-dark { background: var(--bg); color: var(--text); }
.sec-deep { background: var(--bg-2); color: var(--text); }
.sec-light { background: var(--paper); color: var(--ink); }
.sec-white { background: var(--paper-2); color: var(--ink); }
.sec-line { border-top: 1px solid var(--line); }
.sec-light.sec-line, .sec-white.sec-line { border-top-color: var(--ink-line); }

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 27, 168, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 27, 168, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 90%);
}

.sec > .wrap { position: relative; z-index: 1; }

/* Aurora luminosa del colibrí */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.22;
  will-change: transform;
}
.aurora .a1 { width: 540px; height: 540px; background: #8dba2c; top: -180px; left: -120px; animation: drift1 22s ease-in-out infinite; }
.aurora .a2 { width: 580px; height: 580px; background: #22c3e6; top: 5%; right: -160px; opacity: 0.24; animation: drift2 26s ease-in-out infinite; }
.aurora .a3 { width: 500px; height: 500px; background: #3a7bd5; bottom: -220px; left: 28%; opacity: 0.20; animation: drift3 30s ease-in-out infinite; }

@keyframes drift1 { 50% { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-140px, 60px) scale(0.92); } }
@keyframes drift3 { 50% { transform: translate(80px, -90px) scale(1.08); } }

/* --------------------------------------------------------------------------
   TIPOGRAFÍA
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1px solid rgba(23, 27, 168, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 20px -8px rgba(23, 27, 168, 0.12);
  margin-bottom: 1.4rem;
  backdrop-filter: blur(8px);
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-ribbon);
  box-shadow: 0 0 10px rgba(34, 195, 230, 0.7);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot { 50% { box-shadow: 0 0 2px rgba(34, 195, 230, 0.2); } }

.display-1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.65rem, 5.3vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  color: var(--ink);
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 3.8vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
  color: var(--ink);
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.32rem, 1.85vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lead {
  font-size: clamp(1.05rem, 1.22vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 8s ease-in-out infinite;
}

@keyframes gradShift { 50% { background-position: 100% 0; } }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.sec-head > div { max-width: 760px; }
.sec-head-center { text-align: center; max-width: 820px; margin: 0 auto 3.75rem; }
.sec-head-center .lead { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   BOTONES
   -------------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.35s ease, background 0.35s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn i { font-size: 0.9em; transition: transform 0.3s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }

.btn-primary {
  background: var(--royal);
  color: #ffffff;
  box-shadow: 0 14px 32px -10px rgba(23, 27, 168, 0.42);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-btn);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 18px 40px -10px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}
.btn-primary:hover::before { opacity: 1; }

.btn-grad {
  background: var(--grad-btn);
  color: #ffffff;
  background-size: 160% 100%;
  box-shadow: 0 12px 30px -10px rgba(23, 27, 168, 0.42);
}
.btn-grad:hover {
  background-position: 100% 0;
  box-shadow: 0 18px 38px -10px rgba(37, 99, 235, 0.58);
}

.btn-ghost {
  border: 1px solid rgba(23, 27, 168, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
}
.btn-ghost:hover {
  border-color: var(--royal);
  color: var(--royal);
  background: #ffffff;
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 14px 34px -12px rgba(10, 14, 19, 0.35); }

.btn-outline-dark { border: 1px solid var(--ink-line); color: var(--ink); background: #fff; }
.btn-outline-dark:hover { border-color: var(--royal); color: var(--royal); }

.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.85rem; }

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-shine:hover::after { animation: shine 0.9s var(--ease); }
@keyframes shine { to { left: 130%; } }

/* --------------------------------------------------------------------------
   CABECERA (Glass Luminoso con Identidad Azul Real YAQHA)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(23, 27, 168, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.55s var(--ease), height 0.3s ease, box-shadow 0.35s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(23, 27, 168, 0.12);
  box-shadow: 0 12px 34px -18px rgba(15, 23, 42, 0.12);
  height: 70px;
}

.header.header-hidden { transform: translateY(-110%); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo img { height: 50px; width: auto; }
.logo-motto {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--royal);
  padding-left: 0.75rem;
  border-left: 1.5px solid rgba(23, 27, 168, 0.2);
}

@media (max-width: 1180px) {
  .logo-motto { display: none; }
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 27, 168, 0.12);
  background: #f1f5fb;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-btn {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-btn:hover { color: var(--royal); }
.nav-btn.active { color: #ffffff; }

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--grad-btn);
  box-shadow: 0 6px 18px -4px rgba(23, 27, 168, 0.45);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), height 0.3s ease;
}

.header-cta { display: flex; align-items: center; gap: 0.6rem; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   VISTAS
   -------------------------------------------------------------------------- */
main { padding-top: 0; }
.view { display: none; }
.view.active { display: block; animation: viewIn 0.85s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 5rem) 0 4.5rem;
  overflow: hidden;
  background: radial-gradient(800px 400px at 80% 20%, rgba(34, 195, 230, 0.12), transparent 65%),
              radial-gradient(700px 400px at 15% 30%, rgba(23, 27, 168, 0.08), transparent 65%),
              linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .display-1 { max-width: 980px; }
.page-hero .lead { max-width: 720px; margin-top: 1.3rem; }

/* --------------------------------------------------------------------------
   HERO PRINCIPAL (Luminoso + Centro de Mando IA Zafiro)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding: calc(var(--header-h) + 3.5rem) 0 6.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(850px 480px at 12% 20%, rgba(141, 186, 44, 0.10), transparent 65%),
    radial-gradient(900px 520px at 88% 35%, rgba(34, 195, 230, 0.14), transparent 65%),
    radial-gradient(750px 480px at 55% 85%, rgba(23, 27, 168, 0.09), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f2f6fd 100%);
}
#neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.75; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero .display-1 { margin-bottom: 1.45rem; }
.hero .lead { max-width: 580px; margin-bottom: 2.1rem; }

.trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.3rem; }
.avatars { display: flex; }
.avatars span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  margin-left: -10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(1) { background: linear-gradient(135deg, #426612, #8dba2c); }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #0284c7, #22c3e6); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #171ba8, #3a7bd5); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #4e34b2, #7a4dff); }
.trust-text { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.trust-text strong { color: var(--ink); }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.82rem; }

/* Centro de mando IA */
.cc { position: relative; height: 575px; perspective: 1400px; }

.glass {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 27, 168, 0.14);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 24px 55px -18px rgba(15, 23, 42, 0.16);
}

/* Orquestador Luminoso de IA & Automatización YAQHA */
.cc-main.glass {
  position: absolute;
  inset: 48px 18px 56px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(480px circle at 50% 35%, rgba(34, 195, 230, 0.14), transparent 68%),
    radial-gradient(360px circle at 85% 85%, rgba(141, 186, 44, 0.12), transparent 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(242, 247, 255, 0.96) 55%, rgba(235, 244, 255, 0.95) 100%);
  border: 1px solid rgba(23, 27, 168, 0.16);
  box-shadow:
    0 32px 70px -20px rgba(23, 27, 168, 0.22),
    0 0 0 4px rgba(255, 255, 255, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
}

.win-bar.yq-studio-bar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(23, 27, 168, 0.09);
  color: var(--ink-muted);
}

.win-bar i.d { width: 10px; height: 10px; border-radius: 50%; background: #2a323d; }
.win-bar i.d:nth-child(1) { background: #ff5f57; }
.win-bar i.d:nth-child(2) { background: #febc2e; }
.win-bar i.d:nth-child(3) { background: #28c840; }
.win-bar .url { margin-left: 0.6rem; padding: 0.22rem 0.72rem; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: #e2e8f0; }
.win-bar.yq-studio-bar .url {
  background: rgba(23, 27, 168, 0.06);
  border: 1px solid rgba(23, 27, 168, 0.10);
  color: var(--royal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.win-bar.yq-studio-bar .url i { color: var(--azure); }
.win-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: #a3e635; font-weight: 600; }
.win-bar.yq-studio-bar .live {
  color: #3f6212;
  background: rgba(141, 186, 44, 0.16);
  border: 1px solid rgba(141, 186, 44, 0.35);
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}
.win-bar .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a3e635; box-shadow: 0 0 10px #a3e635; animation: pulseDot 1.6s infinite; }
.win-bar.yq-studio-bar .live::before { background: #65a30d; box-shadow: 0 0 8px #8dba2c; }

.yq-studio-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.25rem 1.1rem;
  gap: 0.9rem;
}

/* Escenario visual de nodos IA + Automatización */
.yq-flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.4rem;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(23, 27, 168, 0.03) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(23, 27, 168, 0.03) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 27, 168, 0.09);
}

.yq-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.yq-flow-pulse {
  stroke-dasharray: 46 260;
  animation: yqPipeFlow 2.8s linear infinite;
}
.yq-flow-pulse.p2 {
  animation-delay: -1.4s;
}
@keyframes yqPipeFlow {
  from { stroke-dashoffset: 306; }
  to { stroke-dashoffset: 0; }
}

.yq-flow-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yq-fnode {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.68rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(23, 27, 168, 0.12);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.12);
}

.yq-fnode .fn-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  color: #ffffff;
  flex-shrink: 0;
}
.fn-wa { background: linear-gradient(135deg, #16a34a, #22c55e); }
.fn-pos { background: linear-gradient(135deg, #0284c7, #22c3e6); }
.fn-sunat { background: linear-gradient(135deg, #171ba8, #3b82f6); }
.fn-bi { background: linear-gradient(135deg, #4d7c0f, #8dba2c); }

.yq-fnode b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.yq-fnode small {
  display: block;
  font-size: 0.66rem;
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

/* Núcleo Central IA */
.yq-flow-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.3rem;
}

.yq-core-orb {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
}

.yq-core-orb .orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(23, 27, 168, 0.32);
  animation: yqSpin 12s linear infinite;
}
.yq-core-orb .orb-ring.r2 {
  inset: -7px;
  border-style: solid;
  border-color: transparent rgba(34, 195, 230, 0.55) transparent rgba(141, 186, 44, 0.55);
  animation: yqSpin 7s linear infinite reverse;
}
@keyframes yqSpin { to { transform: rotate(360deg); } }

.yq-core-orb .orb-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #171ba8 0%, #0284c7 58%, #22c3e6 100%);
  box-shadow:
    0 14px 30px -8px rgba(23, 27, 168, 0.55),
    0 0 0 4px rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  gap: 0.15rem;
}
.yq-core-orb .orb-inner i { font-size: 1.25rem; }
.yq-core-orb .orb-inner span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.yq-core-badge {
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(23, 27, 168, 0.16);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--royal);
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(23, 27, 168, 0.15);
}

/* Pipeline inferior de automatización en vivo */
.yq-auto-feed {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 27, 168, 0.11);
  border-radius: 14px;
  padding: 0.78rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.yq-af-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.yq-af-head i { color: var(--azure); margin-right: 0.25rem; }
.yq-af-saving {
  color: #3f6212;
  background: rgba(141, 186, 44, 0.16);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.63rem;
}

.yq-af-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.yq-af-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.6rem;
  border-radius: 9px;
  background: #f8faff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.75rem;
  color: var(--ink-muted);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.yq-af-item.active {
  background: linear-gradient(90deg, rgba(23, 27, 168, 0.06), rgba(34, 195, 230, 0.09));
  border-color: rgba(23, 27, 168, 0.22);
  color: var(--ink);
}
.yq-af-item b { color: var(--ink); font-weight: 700; }
.yq-af-item.yq-af-link {
  text-decoration: none;
  cursor: pointer;
}
.yq-af-item.yq-af-link:hover {
  background: linear-gradient(90deg, rgba(23, 27, 168, 0.08), rgba(34, 195, 230, 0.14));
  border-color: var(--royal);
  transform: translateX(3px);
}

.af-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.af-dot.ok { background: #65a30d; box-shadow: 0 0 8px rgba(101, 163, 13, 0.6); }
.af-dot.royal { background: #171ba8; }
.af-dot.cyan { background: #0284c7; }

.af-txt {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--royal);
  background: #ffffff;
  border: 1px solid rgba(23, 27, 168, 0.14);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Tarjetas flotantes de Ecosistema (Claude, Payempresa, BEN, KPI) */
.chip-card {
  position: absolute;
  z-index: 4;
  padding: 0.78rem 1rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 186px;
  will-change: transform;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 27, 168, 0.15);
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.20);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

a.chip-card.chip-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.chip-card.chip-link:hover {
  border-color: var(--royal);
  box-shadow: 0 22px 48px -10px rgba(23, 27, 168, 0.34);
}

a.chip-card.chip-link:hover .k {
  color: var(--royal);
}

.chip-card .ico,
.chip-card .brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(23, 27, 168, 0.25);
}

.chip-card .brand-logo img {
  display: block;
  object-fit: contain;
}

.chip-card .brand-logo.claude-bg {
  background: linear-gradient(135deg, #fff5f0 0%, #fde6db 100%);
  border: 1px solid rgba(217, 119, 87, 0.35);
  box-shadow: 0 8px 18px -6px rgba(217, 119, 87, 0.28);
}

.chip-card .brand-logo.payempresa-bg {
  background: linear-gradient(135deg, #f0f5ff 0%, #e0ebff 100%);
  border: 1px solid rgba(23, 27, 168, 0.22);
}

.chip-card .brand-logo.ben-bg {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(42, 157, 92, 0.32);
  box-shadow: 0 8px 18px -6px rgba(42, 157, 92, 0.28);
}

.chip-card .k { font-size: 0.64rem; color: var(--dim); font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.05em; }
.chip-card .v { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); }
.chip-card .v small { font-size: 0.7rem; color: var(--leaf); font-weight: 700; margin-left: 0.25rem; }

.cc .c1 { top: -22px; left: -14px; }
.cc .c2 { top: -22px; right: -14px; }
.cc .c3 { bottom: -24px; left: -14px; }
.cc .c4 { bottom: -24px; right: -14px; }

.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 8s ease-in-out infinite; }
@keyframes floatA { 50% { translate: 0 -10px; } }
@keyframes floatB { 50% { translate: 0 9px; } }

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
}
.scroll-cue .m { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(23, 27, 168, 0.25); background: rgba(255, 255, 255, 0.8); position: relative; }
.scroll-cue .m::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--royal); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------------------
   MARQUESINA CINÉTICA — BANDERILLA EXCLUSIVA DE YAQHA
   -------------------------------------------------------------------------- */
.vmarquee {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #f2f6fd 0%, #ffffff 100%);
}
.vm-band {
  position: absolute;
  left: -10%;
  width: 120%;
  padding: 1.08rem 0;
  white-space: nowrap;
  overflow: hidden;
}
.vm-band-a {
  background: var(--grad-ribbon);
  color: #06101e;
  transform: rotate(-2.4deg);
  z-index: 2;
  box-shadow: 0 22px 48px -18px rgba(23, 27, 168, 0.35);
}
.vm-band-b {
  background: #0d1527;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: rotate(2deg);
  z-index: 1;
  box-shadow: 0 16px 36px -18px rgba(15, 23, 42, 0.25);
}
.vm-track { display: inline-flex; align-items: center; will-change: transform; }
.vm-item { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.1vw, 2.55rem); letter-spacing: -0.03em; text-transform: uppercase; padding: 0 1.4rem; line-height: 1.1; }
.vm-outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.vm-band-a .vm-outline { -webkit-text-stroke-color: #06101e; }
.vm-band-b .vm-outline { -webkit-text-stroke-color: rgba(255, 255, 255, 0.85); }
.vm-sep { font-size: clamp(1.1rem, 2.2vw, 1.8rem); }
.vm-band-b .vm-sep { color: #38bdf8; }

/* --------------------------------------------------------------------------
   MANIFIESTO (texto que se ilumina con el scroll)
   -------------------------------------------------------------------------- */
.manifesto {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3.15rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  max-width: 1100px;
}

.manifesto .mw { color: rgba(15, 23, 42, 0.18); transition: color 0.35s ease; }
.manifesto .mw.lit { color: var(--ink); }
.manifesto .mw.accent.lit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------------------
   BENTO EJECUTIVO DE IMPACTO & ARQUITECTURA (Reemplaza celdas planas de stats)
   -------------------------------------------------------------------------- */
.yq-impact-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.45rem;
  margin-top: 3.8rem;
}

.yq-impact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.1rem 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(23, 27, 168, 0.12);
  box-shadow: 0 22px 48px -22px rgba(23, 27, 168, 0.14);
  overflow: hidden;
}

.yq-impact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--grad);
  opacity: 0.9;
}

.yq-impact-card.yq-impact-featured {
  background:
    radial-gradient(480px circle at 92% 8%, rgba(34, 195, 230, 0.13), transparent 65%),
    radial-gradient(420px circle at 8% 95%, rgba(141, 186, 44, 0.10), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border-color: rgba(23, 27, 168, 0.22);
  cursor: pointer;
}

.yq-impact-card[data-go] {
  cursor: pointer;
}

.yq-ic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.yq-ic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--royal);
}

.yq-ic-kicker i {
  color: var(--azure);
  font-size: 0.8rem;
}

.yq-ic-tag {
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: rgba(23, 27, 168, 0.06);
  border: 1px solid rgba(23, 27, 168, 0.12);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.yq-ic-metric {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.yq-ic-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.65rem, 3.8vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--royal);
}

.yq-ic-unit {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.yq-ic-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.yq-ic-desc {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--ink-muted);
  margin-bottom: 1.45rem;
}

/* Widget 1: Línea de evolución tecnológica */
.yq-evo-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(23, 27, 168, 0.09);
  margin-top: auto;
}

.yq-evo-step {
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  background: #f4f7fc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.yq-evo-step .yr {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--azure);
}

.yq-evo-step b {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.yq-evo-step.active {
  background: linear-gradient(135deg, rgba(23, 27, 168, 0.08), rgba(34, 195, 230, 0.14));
  border-color: rgba(23, 27, 168, 0.26);
}

.yq-evo-step.active .yr {
  color: var(--royal);
}

/* Widget 2: Píldoras de países con bandera */
.yq-country-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(23, 27, 168, 0.09);
  margin-top: auto;
}

.yq-cpill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(23, 27, 168, 0.13);
  box-shadow: 0 4px 10px -4px rgba(15, 23, 42, 0.06);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}

.yq-cpill img {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.yq-impact-card:hover .yq-cpill {
  border-color: rgba(2, 132, 199, 0.35);
}

/* Widget 3: Telemetría de impacto en producción */
.yq-telemetry {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(23, 27, 168, 0.09);
  margin-top: auto;
}

.yq-tel-row {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}

.yq-tel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.yq-tel-meta b {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--royal);
}

.yq-tel-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 27, 168, 0.08);
  overflow: hidden;
}

.yq-tel-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #171ba8 0%, #0284c7 55%, #8dba2c 100%);
}

/* --------------------------------------------------------------------------
   TARJETAS GENÉRICAS (Superficie Blanca Luminosa + Halo Azul Real / Cian)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2rem;
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.08);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, transform 0.4s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(23, 27, 168, 0.65), rgba(34, 195, 230, 0.5) 35%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover {
  border-color: rgba(23, 27, 168, 0.22);
  box-shadow: 0 28px 60px -24px rgba(23, 27, 168, 0.18);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--royal);
  background: var(--grad-soft);
  border: 1px solid rgba(23, 27, 168, 0.14);
  margin-bottom: 1.4rem;
  position: relative;
  transition: transform 0.5s var(--ease), background 0.35s ease;
}

.icon-box i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card:hover .icon-box { transform: translateY(-3px) rotate(-5deg); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.4rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: #f1f5fb;
  border: 1px solid #e2e8f4;
  color: #334155;
}

.badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--grad-btn);
  box-shadow: 0 6px 16px -4px rgba(23, 27, 168, 0.4);
  z-index: 3;
}

/* Bento de soluciones */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.bento .card { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; min-height: 290px; cursor: pointer; }
.bento .card:nth-child(-n+2) { grid-column: span 6; }
.bento .card:nth-child(n+6) { grid-column: span 3; }
.bento .card h3 { margin-bottom: 0.7rem; }
.bento .card p { color: var(--muted); font-size: 0.95rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.5rem; font-size: 0.86rem; font-weight: 700; color: var(--royal); }
.card-link i { transition: transform 0.3s var(--ease); }
.card:hover .card-link i { transform: translateX(4px); }
.card:hover .card-link { color: var(--cyan); }

/* --------------------------------------------------------------------------
   PROCESO (línea de tiempo interactiva)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.85rem; position: relative; margin-bottom: 1.5rem; }
.steps-track { position: absolute; left: 0; right: 0; top: -14px; height: 3px; background: rgba(23, 27, 168, 0.1); border-radius: 3px; overflow: hidden; }
.steps-track span { display: block; height: 100%; width: 20%; background: var(--grad); transition: width 0.7s var(--ease); }

.step-btn {
  text-align: left;
  padding: 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #ffffff;
  box-shadow: 0 8px 22px -14px rgba(15, 23, 42, 0.08);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease), box-shadow 0.3s;
}
.step-btn:hover { border-color: rgba(23, 27, 168, 0.28); }
.step-btn.active {
  border-color: var(--royal);
  background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 100%);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(23, 27, 168, 0.22);
}
.step-btn .n { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--dim); letter-spacing: 0.1em; }
.step-btn.active .n { color: var(--royal); }
.step-btn .t { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin-top: 0.3rem; letter-spacing: -0.02em; color: var(--ink); }
.step-btn .s { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.45; }

.step-panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; padding: 2.5rem; align-items: center; }
.step-panel h3 { margin: 0.8rem 0; }
.step-panel p { color: var(--muted); }
.outs { display: grid; gap: 0.7rem; }
.outs li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; color: var(--ink); }
.outs li i { color: var(--leaf); margin-top: 0.3rem; font-size: 0.8rem; }
.kpi-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 999px; background: rgba(77, 124, 15, 0.10); color: var(--leaf); border: 1px solid rgba(77, 124, 15, 0.28); }

/* --------------------------------------------------------------------------
   TEASER IA
   -------------------------------------------------------------------------- */
.ai-teaser {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 4rem;
  border: 1px solid rgba(23, 27, 168, 0.16);
  background:
    radial-gradient(800px 400px at 88% 12%, rgba(34, 195, 230, 0.16), transparent 60%),
    radial-gradient(700px 400px at 8% 100%, rgba(141, 186, 44, 0.14), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #eff5ff 100%);
  box-shadow: 0 28px 65px -24px rgba(23, 27, 168, 0.15);
}
.ai-teaser-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.metric-stack { display: grid; gap: 1rem; }
.metric {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-md);
  background: #ffffff;
  border: 1px solid rgba(23, 27, 168, 0.12);
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.1);
}
.metric b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; min-width: 140px; }
.metric span { font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   SECTORES
   -------------------------------------------------------------------------- */
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 1rem; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.sector {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 27, 168, 0.14);
  background: #ffffff;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.08);
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.sector i { color: var(--royal); }

/* --------------------------------------------------------------------------
   TESTIMONIOS
   -------------------------------------------------------------------------- */
.tst-wrap { position: relative; }
.tst-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0.25rem 1.5rem; scrollbar-width: none; cursor: grab; }
.tst-track::-webkit-scrollbar { display: none; }
.tst-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.tst-card { scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; user-select: none; }
.tst-metric { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; line-height: 1; }
.tst-metric-l { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.35rem; }
.tst-quote { font-size: 1rem; line-height: 1.65; margin: 1.4rem 0; color: var(--ink); }
.tst-who { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.2rem; border-top: 1px solid var(--ink-line); }
.tst-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff; background: var(--grad-btn); flex-shrink: 0; }
.tst-who b { display: block; font-size: 0.92rem; color: var(--ink); }
.tst-who span { font-size: 0.8rem; color: var(--ink-muted); }
.tst-nav { display: flex; gap: 0.6rem; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink-line); display: grid; place-items: center; background: #fff; color: var(--ink); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.round-btn:hover { background: var(--royal); color: #fff; border-color: var(--royal); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 4.8rem 3rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(23, 27, 168, 0.16);
  box-shadow: 0 28px 65px -24px rgba(23, 27, 168, 0.16);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 195, 230, 0.22) 60deg, transparent 120deg, rgba(141, 186, 44, 0.2) 200deg, transparent 260deg, rgba(23, 27, 168, 0.22) 320deg, transparent 360deg);
  animation: spin 16s linear infinite;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: calc(var(--r-xl) - 1.5px);
  background: radial-gradient(700px 300px at 50% 0%, rgba(37, 99, 235, 0.09), transparent 70%), #ffffff;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .display-2 { max-width: 860px; margin: 0 auto 1.2rem; }
.cta-band .lead { max-width: 640px; margin: 0 auto 2.4rem; }
.cta-band .btn-row { justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   EXPLORADOR DE SOLUCIONES
   -------------------------------------------------------------------------- */
.explorer { display: grid; grid-template-columns: 330px 1fr; gap: 1.5rem; align-items: start; }
.ex-list { display: grid; gap: 0.45rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.ex-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  text-align: left;
  color: var(--muted);
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.ex-item i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f1f5fb;
  color: var(--royal);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.ex-item:hover { color: var(--ink); border-color: rgba(23, 27, 168, 0.2); }
.ex-item.active {
  color: var(--royal);
  background: #eff5ff;
  border-color: var(--royal);
  box-shadow: 0 10px 24px -12px rgba(23, 27, 168, 0.22);
}
.ex-item.active i { background: var(--grad-btn); color: #ffffff; }
.ex-item span { font-weight: 600; font-size: 0.93rem; }

.ex-panel { padding: 2.5rem; overflow: hidden; }
.ex-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.ex-top h2 { margin: 0.5rem 0 1rem; }
.ex-top p { color: var(--muted); }
.ex-time { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--leaf); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1.4rem; margin: 1.8rem 0; }
.feat-grid li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink); }
.feat-grid li i { color: var(--royal); font-size: 0.75rem; margin-top: 0.35rem; }

/* Ventanas de producto simuladas (Consolas SaaS Zafiro de alto contraste) */
.mock {
  border-radius: var(--r-md);
  border: 1px solid rgba(23, 27, 168, 0.22);
  background: #0b1324;
  color: #e2e8f0;
  overflow: hidden;
  box-shadow: 0 26px 55px -18px rgba(15, 23, 42, 0.28);
}
.mock-body { padding: 1.2rem; min-height: 300px; font-size: 0.82rem; }
.mk-row { display: flex; gap: 0.7rem; margin-bottom: 0.7rem; }
.mk-kpi { flex: 1; padding: 0.85rem; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.mk-kpi small { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: #94a3b8; letter-spacing: 0.06em; text-transform: uppercase; }
.mk-kpi b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; color: #ffffff; }
.mk-kpi b.ok { color: #a3e635; }
.mk-list { display: grid; gap: 0.45rem; }
.mk-li { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font-mono); font-size: 0.75rem; color: #e2e8f0; animation: liIn 0.6s var(--ease) both; }
.mk-li .st { color: #a3e635; font-size: 0.68rem; font-weight: 600; }
@keyframes liIn { from { opacity: 0; transform: translateY(-10px); } }
.mk-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 0.6rem 0; }
.mk-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #38bdf8, rgba(58, 123, 213, 0.25)); transform-origin: bottom; animation: growUp 1s var(--ease) both; }
@keyframes growUp { from { transform: scaleY(0); } }
.mk-line { width: 100%; height: 150px; }
.mk-grid-tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.mk-phone { width: 210px; margin: 0 auto; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.16); padding: 0.8rem; background: #070c18; }
.mk-phone .notch { width: 70px; height: 18px; border-radius: 0 0 12px 12px; background: #000; margin: -0.8rem auto 0.8rem; }
.mk-prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.mk-prod div { border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); padding: 0.6rem; color: #cbd5e1; }
.mk-prod div::before { content: ''; display: block; height: 52px; border-radius: 8px; margin-bottom: 0.5rem; background: linear-gradient(135deg, rgba(34, 195, 230, 0.25), rgba(122, 77, 255, 0.25)); }
.mk-flow { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin: 1rem 0; }
.mk-node { padding: 0.6rem 0.75rem; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--font-mono); font-size: 0.7rem; text-align: center; flex: 1; color: #e2e8f0; }
.mk-arrow { color: #38bdf8; font-size: 0.75rem; animation: arrowPulse 1.4s ease-in-out infinite; }
@keyframes arrowPulse { 50% { opacity: 0.25; transform: translateX(3px); } }
.mk-web-hero { height: 90px; border-radius: 10px; background: linear-gradient(135deg, rgba(34, 195, 230, 0.22), rgba(122, 77, 255, 0.22)); border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 0.7rem; display: flex; flex-direction: column; justify-content: center; padding: 0 1rem; gap: 0.4rem; }
.mk-web-hero i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.45); }
.mk-skel { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); margin-bottom: 0.45rem; }
.mk-progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 0.4rem 0 0.9rem; }
.mk-progress span { display: block; height: 100%; background: var(--grad-ribbon); border-radius: 4px; animation: prog 3s var(--ease) infinite alternate; }
@keyframes prog { from { width: 30%; } to { width: 97%; } }

/* Producto: split */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-split.rev > :first-child { order: 2; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; margin: 2rem 0 2.2rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; color: var(--ink); }
.check-list li i { margin-top: 0.3rem; font-size: 0.78rem; color: var(--leaf); }

/* Mapa de mesas */
.tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.table-btn { aspect-ratio: 1; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; font-family: var(--font-mono); transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease); }
.table-btn b { font-family: var(--font-display); font-size: 1.15rem; }
.table-btn small { font-size: 0.66rem; letter-spacing: 0.05em; }
.table-btn:hover { transform: scale(1.05); }
.table-btn[data-s="libre"] { background: rgba(141, 186, 44, 0.16); border-color: rgba(141, 186, 44, 0.55); color: #bef264; }
.table-btn[data-s="ocupada"] { background: rgba(58, 123, 213, 0.18); border-color: rgba(58, 123, 213, 0.55); color: #93c5fd; }
.table-btn[data-s="cocina"] { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.55); color: #fcd34d; }
.table-btn[data-s="cuenta"] { background: rgba(122, 77, 255, 0.2); border-color: rgba(122, 77, 255, 0.6); color: #c4b5fd; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; font-size: 0.78rem; color: #94a3b8; }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

/* Local vs Nube */
.mode-switch { display: inline-flex; padding: 0.35rem; border-radius: 999px; border: 1px solid var(--ink-line); background: #fff; position: relative; margin-bottom: 2.5rem; }
.mode-switch button { position: relative; z-index: 1; padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--ink-muted); transition: color 0.3s; }
.mode-switch button.active { color: #fff; }
.mode-switch .knob { position: absolute; top: 0.35rem; bottom: 0.35rem; left: 0.35rem; border-radius: 999px; background: var(--royal); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mode-card { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.mode-card.dimmed { opacity: 0.55; transform: scale(0.98); }
.mode-card.focus { border-color: var(--royal) !important; box-shadow: 0 28px 55px -26px rgba(23, 27, 168, 0.25); }
.mode-card h3 { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   IA
   -------------------------------------------------------------------------- */
.ai-hud {
  position: relative;
  height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(23, 27, 168, 0.24);
  background: radial-gradient(600px 300px at 50% 50%, rgba(34, 195, 230, 0.16), transparent 70%), #091122;
  box-shadow: 0 28px 65px -20px rgba(15, 23, 42, 0.28);
}
#nn { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud-chip {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hud-chip b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: #fff; letter-spacing: -0.02em; }
.hud-chip.h1 { top: 1.2rem; left: 1.2rem; }
.hud-chip.h2 { top: 1.2rem; right: 1.2rem; text-align: right; }
.hud-chip.h3 { bottom: 1.2rem; left: 1.2rem; }
.hud-chip.h4 { bottom: 1.2rem; right: 1.2rem; text-align: right; }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.caps .card h3 { margin-bottom: 0.6rem; }
.caps .card p { color: var(--muted); font-size: 0.94rem; }

.ind-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.ind-btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.7rem 1.15rem; border-radius: 999px; border: 1px solid var(--ink-line); background: #fff; font-weight: 600; font-size: 0.9rem; color: var(--ink-muted); transition: all 0.3s ease; }
.ind-btn:hover { color: var(--royal); border-color: var(--royal); }
.ind-btn.active { background: var(--royal); color: #fff; border-color: var(--royal); box-shadow: 0 8px 20px -6px rgba(23, 27, 168, 0.4); }
.ind-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ind-case .n { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--royal); letter-spacing: 0.1em; }
.ind-case h4 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; margin: 0.6rem 0; line-height: 1.25; color: var(--ink); }
.ind-case p { color: var(--ink-muted); font-size: 0.93rem; }

/* Calculadora ROI */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.roi-in { padding: 2.75rem; border-right: 1px solid var(--line); background: #ffffff; }
.roi-out {
  padding: 2.75rem;
  background:
    radial-gradient(500px 300px at 85% 0%, rgba(34, 195, 230, 0.14), transparent 70%),
    radial-gradient(400px 260px at 0% 100%, rgba(141, 186, 44, 0.12), transparent 70%),
    #f3f7ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.range { margin-bottom: 1.8rem; }
.range label { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.7rem; color: var(--ink); }
.range label output { font-family: var(--font-mono); color: var(--royal); font-weight: 700; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--royal) var(--fill, 50%), #dce4f2 var(--fill, 50%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 5px rgba(23, 27, 168, 0.18), 0 4px 10px rgba(15, 23, 42, 0.25); transition: box-shadow 0.2s; }
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 8px rgba(23, 27, 168, 0.24), 0 4px 10px rgba(15, 23, 42, 0.25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--royal); border: 0; box-shadow: 0 0 0 5px rgba(23, 27, 168, 0.18); }
.roi-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -0.045em; line-height: 1; margin: 0.4rem 0 0.5rem; font-variant-numeric: tabular-nums; }
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.roi-grid div { padding: 1.1rem; border-radius: var(--r-md); background: #ffffff; border: 1px solid rgba(23, 27, 168, 0.12); }
.roi-grid small { display: block; font-size: 0.75rem; color: var(--muted); }
.roi-grid b { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fine { font-size: 0.74rem; color: var(--dim); margin-top: 1rem; }

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.roadmap::before { content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(23, 27, 168, 0.25), transparent); }
.rm-step { position: relative; text-align: center; padding: 0 0.5rem; }
.rm-dot { width: 68px; height: 68px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--royal); background: #ffffff; border: 1.5px solid rgba(23, 27, 168, 0.25); position: relative; box-shadow: 0 12px 28px -8px rgba(23, 27, 168, 0.22); }
.rm-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(23, 27, 168, 0.35); animation: spin 18s linear infinite; }
.rm-step h4 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; color: var(--ink); }
.rm-step p { font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   CLIENTES
   -------------------------------------------------------------------------- */
.globe-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.globe {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #0f1b36 0%, #091122 72%);
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.8);
}
#globe { width: 100%; height: 100%; }
.country-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2rem; }
.country {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.08);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.country:hover, .country.active { border-color: var(--royal); background: #eff5ff; transform: translateY(-2px); }
.country .f { font-size: 1.5rem; }
.country b { display: block; font-size: 0.95rem; color: var(--ink); }
.country span { font-size: 0.76rem; color: var(--muted); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.case-card { display: flex; flex-direction: column; min-height: 420px; }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 1.6rem; }
.case-loc { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); }
.case-metric { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; letter-spacing: -0.045em; line-height: 1; }
.case-metric-l { font-size: 0.85rem; color: var(--ink-muted); margin: 0.4rem 0 1.4rem; }
.case-rows { display: grid; gap: 0.8rem; margin-bottom: 1.4rem; }
.case-rows div small { display: block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal); margin-bottom: 0.15rem; }
.case-rows div p { font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.case-quote { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--ink-line); font-size: 0.88rem; font-style: italic; color: var(--ink-muted); }
.case-quote b { display: block; font-style: normal; color: var(--ink); margin-top: 0.6rem; font-size: 0.85rem; }

.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; }
.sector-tile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s;
}
.sector-tile:hover { border-color: var(--royal); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(23, 27, 168, 0.18); }
.sector-tile i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: var(--royal); }

/* --------------------------------------------------------------------------
   PRECIOS
   -------------------------------------------------------------------------- */
.cur-pills { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.35rem; border-radius: 999px; border: 1px solid rgba(23, 27, 168, 0.14); background: #ffffff; box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.08); margin-bottom: 3rem; }
.cur-btn { padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--muted); transition: background 0.3s, color 0.3s; }
.cur-btn:hover { color: var(--royal); }
.cur-btn.active { background: var(--royal); color: #ffffff; box-shadow: 0 6px 16px -4px rgba(23, 27, 168, 0.4); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 2.2rem 1.9rem; }
.plan.popular {
  border-color: var(--royal);
  background: radial-gradient(400px 220px at 50% 0%, rgba(37, 99, 235, 0.10), transparent 70%), #ffffff;
  box-shadow: var(--glow);
}
.plan h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.plan .sub { font-size: 0.86rem; color: var(--muted); margin-top: 0.25rem; }
.price { margin: 1.8rem 0 1.6rem; }
.price small { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.price b { font-family: var(--font-display); font-weight: 800; font-size: 2.7rem; letter-spacing: -0.045em; line-height: 1.1; color: var(--royal); font-variant-numeric: tabular-nums; display: inline-block; transition: opacity 0.25s, transform 0.35s var(--ease); }
.price b.swap { opacity: 0; transform: translateY(10px); }
.price em { font-style: normal; font-size: 0.8rem; color: var(--muted); margin-left: 0.3rem; }
.plan ul { display: grid; gap: 0.7rem; margin-bottom: 2rem; flex: 1; }
.plan li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--ink); }
.plan li i { color: var(--leaf); font-size: 0.75rem; margin-top: 0.35rem; }
.plan .btn { width: 100%; }

.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.guarantee { display: flex; align-items: center; gap: 0.9rem; padding: 1.2rem; border-radius: var(--r-md); border: 1px solid rgba(15, 23, 42, 0.08); background: #ffffff; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.guarantee i { font-size: 1.15rem; color: var(--royal); }

.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { border: 1px solid var(--ink-line); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item.open { border-color: var(--royal); box-shadow: 0 20px 40px -25px rgba(23, 27, 168, 0.22); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-q i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: transform 0.45s var(--ease), background 0.3s, color 0.3s; flex-shrink: 0; font-size: 0.8rem; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--royal); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--ink-muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   CONTACTO
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: start; }
.contact-info { padding: 2.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.channel { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.channel:last-of-type { border-bottom: 0; }
.channel .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(23, 27, 168, 0.14); color: var(--royal); flex-shrink: 0; }
.channel small { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.channel a, .channel b { font-weight: 600; font-size: 1rem; color: var(--ink); }
.channel a:hover { color: var(--royal); }
.socials { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(23, 27, 168, 0.16); background: #ffffff; color: var(--ink); transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.socials a:hover { background: var(--royal); color: #ffffff; border-color: var(--royal); transform: translateY(-3px); }

.form { padding: 2.5rem; }
.form-row { margin-bottom: 1.3rem; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label.lbl { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.field { width: 100%; padding: 0.95rem 1.1rem; border-radius: 12px; border: 1px solid #d5dfef; background: #f8faff; color: var(--ink); outline: none; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.field::placeholder { color: #94a3b8; }
.field:focus { border-color: var(--royal); background: #ffffff; box-shadow: 0 0 0 4px rgba(23, 27, 168, 0.10); }
select.field option { background: #ffffff; color: var(--ink); }
textarea.field { min-height: 130px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid #d5dfef; background: #f8faff; font-size: 0.84rem; color: var(--muted); transition: all 0.3s ease; }
.chip:hover { color: var(--royal); border-color: var(--royal); }
.chip.active { background: var(--grad-btn); color: #ffffff; border-color: transparent; font-weight: 600; box-shadow: 0 6px 16px -4px rgba(23, 27, 168, 0.35); }
.form-done { display: none; margin-top: 1.2rem; padding: 1.4rem; border-radius: var(--r-md); border: 1px solid rgba(77, 124, 15, 0.35); background: rgba(77, 124, 15, 0.06); }
.form-done.show { display: block; animation: viewIn 0.6s var(--ease); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { position: relative; background: #eff4fc; border-top: 1px solid rgba(23, 27, 168, 0.10); padding: 5rem 0 2rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 340px; }
.footer-brand p strong { color: var(--royal); }
.footer h5 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin-bottom: 1.2rem; }
.footer-links { display: grid; gap: 0.65rem; }
.footer-links a, .footer-links button { font-size: 0.9rem; color: var(--muted); text-align: left; transition: color 0.25s; }
.footer-links a:hover, .footer-links button:hover { color: var(--royal); }
.footer-word { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 17vw, 16rem); letter-spacing: -0.06em; line-height: 0.8; text-align: center; background: linear-gradient(180deg, rgba(23, 27, 168, 0.10), rgba(23, 27, 168, 0.01)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin: 1rem 0 2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; padding-right: 90px; border-top: 1px solid rgba(23, 27, 168, 0.10); font-size: 0.82rem; color: var(--dim); }
.footer-bottom a, .footer-bottom button { color: var(--muted); font-size: 0.82rem; }
.footer-bottom a:hover, .footer-bottom button:hover { color: var(--royal); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 990; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: #25d366; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.55); transition: transform 0.3s var(--ease); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPing 2.2s ease-out infinite; }
@keyframes waPing { to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(11, 17, 32, 0.55); backdrop-filter: blur(10px); }
.modal.open { display: flex; animation: viewIn 0.4s var(--ease); }
.modal-box { width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; padding: 2.5rem; position: relative; }
.modal-x { position: absolute; top: 1.1rem; right: 1.1rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.modal-box p { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }
.modal-box p strong { color: var(--ink); }

/* Animación genérica de intercambio */
.swap-anim { animation: swapIn 0.6s var(--ease); }
@keyframes swapIn { from { opacity: 0.2; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-btn { padding: 0.55rem 0.8rem; }
  .header-cta .btn-ghost { display: none; }
  .yq-impact-bento { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid, .ai-teaser-grid, .feature-split, .globe-wrap, .contact-grid, .roi, .ex-top, .step-panel { grid-template-columns: 1fr; }
  .feature-split.rev > :first-child { order: 0; }
  .cc { height: 480px; margin-top: 1rem; }
  .bento .card, .bento .card:nth-child(-n+2), .bento .card:nth-child(n+6) { grid-column: span 6; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .explorer { grid-template-columns: 1fr; }
  .ex-list { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 0.5rem; }
  .caps, .cases, .ind-cases { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .roadmap::before { display: none; }
  .roi-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .guarantees { grid-template-columns: repeat(2, 1fr); }
  .contact-info { position: static; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 0.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 50px -15px rgba(15, 23, 42, 0.2);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-btn { text-align: left; padding: 0.9rem 1rem; }
  .nav-indicator { display: none; }
  .nav-btn.active { background: var(--royal); color: #ffffff; }
  .burger { display: inline-flex; }
  .header-cta .btn-grad { display: none; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 1.15rem; }
  .sec { padding: 4.2rem 0; }
  .bento .card, .bento .card:nth-child(-n+2), .bento .card:nth-child(n+6) { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .caps, .cases, .ind-cases, .plans, .modes, .country-list, .form-2, .check-list, .feat-grid, .guarantees { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .tst-track { grid-auto-columns: 88%; }
  .ai-teaser, .cta-band { padding: 2.5rem 1.35rem; }
  .cc {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
  }
  .cc .c1 { order: 1; }
  .cc .c2 { order: 2; }
  .cc-main.yq-studio,
  .cc-main.glass {
    order: 3;
    grid-column: 1 / -1;
    position: relative;
    inset: auto;
  }
  .cc .c3 { order: 4; }
  .cc .c4 { order: 5; }
  .cc .float-a,
  .cc .float-b {
    animation: none !important;
    translate: none !important;
    transform: none !important;
  }
  .chip-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    min-width: 0;
    padding: 0.62rem 0.7rem;
    gap: 0.5rem;
  }
  .chip-card .ico,
  .chip-card .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .chip-card .k { font-size: 0.56rem; }
  .chip-card .v { font-size: 0.88rem; }
  .chip-card .v small { display: block; margin-left: 0; font-size: 0.62rem; }
  .yq-studio-body { padding: 0.9rem; gap: 0.7rem; }
  .yq-flow-stage {
    grid-template-columns: 1fr;
    padding: 0.8rem;
    gap: 0.55rem;
  }
  .yq-flow-svg { display: none; }
  .yq-flow-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .yq-fnode { padding: 0.5rem 0.55rem; gap: 0.45rem; }
  .yq-fnode-ico { width: 28px; height: 28px; font-size: 0.75rem; }
  .yq-fnode b { font-size: 0.72rem; }
  .yq-fnode small { font-size: 0.6rem; }
  .yq-flow-core {
    flex-direction: row;
    justify-content: center;
    padding: 0.25rem 0;
    gap: 0.65rem;
  }
  .yq-core-orb { width: 62px; height: 62px; }
  .yq-core-orb .orb-inner { width: 50px; height: 50px; }
  .yq-core-orb .orb-inner i { font-size: 1rem; }
  .yq-af-head { flex-wrap: wrap; gap: 0.35rem; }
  .yq-impact-card { padding: 1.5rem 1.25rem; }
  .yq-evo-timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding-right: 0; padding-bottom: 4.5rem; }
  .metric b { min-width: 90px; font-size: 1.45rem; }
}

/* Banderas */
.flag { display: inline-block; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); vertical-align: -2px; }
.cur-btn .flag { margin-right: 0.35rem; }
.country .f .flag { width: 30px; height: 22px; border-radius: 4px; }
