/* ==========================================================================
   NexBusiness — Landing page
   Orden: 1. Tokens  2. Base  3. Componentes  4. Secciones  5. Responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0A1120;
  --ink-soft: #101A2E;
  --primary: #1B428A;
  --primary-deep: #0F2A5E;
  --primary-mid: #2D5CA8;
  --accent: #A9C6FF;
  --accent-soft: #E7EEFC;
  --bg: #F5F7FB;
  --bg-alt: #EDF1F8;
  --white: #FFFFFF;
  --muted: #5A6478;
  --muted-light: #6B7488;
  --border: #E1E6EF;
  --border-strong: #C9D2E1;
  --focus: #1B428A;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1200px;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(10, 17, 32, 0.05);
  --shadow-md: 0 12px 32px -16px rgba(10, 17, 32, 0.18);
  --shadow-lg: 0 40px 80px -40px rgba(10, 17, 32, 0.35), 0 4px 12px rgba(10, 17, 32, 0.04);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Componentes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-deep); }

.btn-outline {
  background: var(--white);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(10, 17, 32, 0.06); }

.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #C2D8FF; }

.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-top: 24px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--accent); }

.section { padding-block: clamp(72px, 9vw, 120px); }

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.section-sub {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
}
.section-sub a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; line-height: 1.5; }
.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}
.check-list-dark .check { background: #E7EEFC; }

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-mark { flex: none; }
.brand-mark-bg { fill: var(--primary); }
.brand-mark-glyph path { fill: #FFFFFF; }
.brand-light { color: var(--white); }
.brand-light .brand-mark-bg { fill: var(--accent); }
.brand-light .brand-mark-glyph path { fill: var(--ink); }

.nav-desktop {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav-desktop a {
  position: relative;
  padding: 6px 0;
  color: #29344A;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  padding: 8px 24px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 600;
}
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px);
  background: linear-gradient(180deg, #F8FAFE 0%, var(--white) 78%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: min(1100px, 150vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(169, 198, 255, 0.5), rgba(169, 198, 255, 0) 72%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #25304A;
  transition: border-color 0.2s, background 0.2s;
}
.pill-badge:hover { border-color: var(--ink); background: var(--white); }
.badge-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}
.badge-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  opacity: 0.35;
}

.hero h1 {
  max-width: 1000px;
  margin-inline: auto;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.045em;
}
.hero h1 .hl {
  background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 94%, transparent 94%);
  padding-right: 0.05em;
}

.hero-sub {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 16px;
  color: var(--muted-light);
  font-size: 0.8rem;
}

/* ---------- 6. Dashboard (captura del producto) ---------- */
.dashboard {
  display: block;
  width: 100%;
  max-width: 1060px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dashboard-img { display: block; width: 100%; height: auto; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.live i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2D5CA8;
  box-shadow: 0 0 0 3px rgba(45, 92, 168, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(45, 92, 168, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(45, 92, 168, 0); }
}

/* ---------- 7. Logos / marquee ---------- */
.logos { padding: 8px 0 56px; background: var(--white); }
.logos-title {
  margin-bottom: 26px;
  color: var(--muted-light);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-right: clamp(32px, 5vw, 64px);
}
.marquee-list li {
  color: #77839A;
  font-size: clamp(0.95rem, 1.6vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. Pilares ---------- */
#producto { background: var(--bg); border-block: 1px solid #E8ECF4; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.pillar:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--primary);
}
.pillar-icon svg { width: 23px; height: 23px; }
.pillar h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.025em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.pillar-list li {
  position: relative;
  padding-left: 16px;
  color: #39435A;
  font-size: 0.82rem;
  line-height: 1.45;
}
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
}

/* ---------- 9. NexCopilot ---------- */
.copilot {
  --focus: var(--accent);
  position: relative;
  padding-block: clamp(72px, 9vw, 116px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.copilot::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(169, 198, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.copilot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}
.copilot .section-title { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.copilot .section-sub { margin-inline: 0; color: rgba(255, 255, 255, 0.7); font-size: 1.02rem; }
.copilot .check-list { margin-top: 28px; }
.copilot .check-list li { color: rgba(255, 255, 255, 0.86); }
.copilot .check { background: rgba(169, 198, 255, 0.16); color: var(--accent); }
.copilot .btn { margin-top: 30px; }

.copilot-visual { position: relative; }
.copilot-orbit {
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(closest-side, rgba(169, 198, 255, 0.22), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.chat {
  position: relative;
  z-index: 1;
  background: #FBFCFE;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #F3F6FC;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
  font-size: 0.9rem;
}
.chat-top strong { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: -0.02em; }
.chat-top small { display: block; color: var(--muted-light); font-size: 0.65rem; }
.chat-status {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(27, 66, 138, 0.08);
  color: #1B428A;
  font-size: 0.6rem;
  font-weight: 600;
}
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }

.msg {
  max-width: 88%;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px 14px 4px 14px;
}
.msg-user span { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.45); font-size: 0.58rem; text-align: right; }
.msg-ai {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  color: #1E2738;
}
.msg-ai strong { font-weight: 650; color: var(--ink); }
.msg-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin: 10px 0 5px;
}
.msg-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #DAE3F5; }
.msg-chart .is-alert { background: var(--primary); }
.msg-label { color: var(--muted-light); font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.msg-actions span {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #F3F6FC;
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 600;
}
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 7px 7px 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: #9AA4B8;
  font-size: 0.74rem;
}
.chat-send {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Chat en cascada al entrar en pantalla */
.js .copilot-visual:not(.is-visible) .msg { opacity: 0; transform: translateY(10px); }
.js .copilot-visual.is-visible .msg { animation: msgIn 0.55s var(--ease) forwards; }
.copilot-visual.is-visible .msg:nth-child(1) { animation-delay: 0.15s; }
.copilot-visual.is-visible .msg:nth-child(2) { animation-delay: 0.65s; }
.copilot-visual.is-visible .msg:nth-child(3) { animation-delay: 1.3s; }
.copilot-visual.is-visible .msg:nth-child(4) { animation-delay: 1.9s; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 10. Features ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.feature-row + .feature-row { margin-top: clamp(64px, 9vw, 112px); }
.feature-row[hidden] { display: none; }
.feature-row-reverse .feature-visual { order: -1; }

.feature-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.feature-copy > p { margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.mock {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  background: linear-gradient(170deg, #FFFFFF, #F8FAFE);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mock-eyebrow { display: block; margin-bottom: 4px; color: var(--muted-light); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.mock-head strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.025em; }
.tag-tiny {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 600;
}
.tag-warn { background: #FCF2E2; color: #8A5A00; }

.mock-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.mb {
  display: grid;
  grid-template-columns: 92px 1fr 38px;
  align-items: center;
  gap: 10px;
}
.mb-label { color: var(--muted); font-size: 0.68rem; }
.mb-track { height: 8px; border-radius: 999px; background: #EBF0F9; overflow: hidden; }
.mb-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #2D5CA8); }
.mb b { color: var(--ink); font-size: 0.7rem; font-weight: 600; text-align: right; }

.mock-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  background: #FDF8EF;
  border: 1px solid #F2E6CE;
  border-radius: 12px;
}
.mock-alert-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: #F7E7C6;
  color: #8A5A00;
  font-size: 0.7rem;
  font-weight: 800;
}
.mock-alert strong { display: block; font-size: 0.72rem; font-weight: 600; }
.mock-alert small { display: block; color: var(--muted); font-size: 0.65rem; }
.mock-alert .tag-tiny { margin-left: auto; }

.mock-foot { display: flex; gap: 6px; margin-top: 16px; }
.mock-foot span {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.65rem;
}
.mock-foot .is-current { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }

.mock-timeline { margin-top: 18px; }
.tl-item {
  position: relative;
  display: flex;
  gap: 11px;
  padding-bottom: 16px;
}
.tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--border-strong);
}
.tl-item.done .tl-dot { background: var(--primary); }
.tl-item.active .tl-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(169, 198, 255, 0.32); }
.tl-item strong { display: block; font-size: 0.76rem; font-weight: 600; }
.tl-item small { display: block; color: var(--muted); font-size: 0.66rem; }

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.mock-stat-row span { color: var(--muted-light); font-size: 0.6rem; }
.mock-stat-row strong { display: block; margin-top: 2px; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.03em; }

/* ---------- 11. Métricas ---------- */
.metrics {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--primary);
  color: var(--white);
  border-block: 1px solid #12356F;
}
.metrics .eyebrow { color: rgba(255, 255, 255, 0.62); }
.metrics[hidden] { display: none; }
.metrics-head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 52px); }
.metrics .section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.metric strong {
  display: block;
  color: var(--accent);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.metric > span { display: block; margin-top: 8px; color: rgba(255, 255, 255, 0.74); font-size: 0.85rem; }
.metric strong span { font: inherit; }
.metrics-note { max-width: 560px; margin-top: 36px; color: rgba(255, 255, 255, 0.66); font-size: 0.76rem; }

/* ---------- 12. Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 48px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}
.step-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--primary);
}
.step h3 { margin-top: 14px; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.025em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.step-time {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 13. Testimonio ---------- */
.testimonial-section { padding-block: clamp(64px, 8vw, 100px); background: var(--bg-alt); border-block: 1px solid #E3E9F2; }
.quote { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.quote-mark {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.6;
}
.quote blockquote p {
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.025em;
}
.quote blockquote em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 94%, transparent 94%);
  padding-inline: 0.04em;
}
.quote figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  text-align: left;
}
.quote-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.quote figcaption strong { display: block; font-size: 0.88rem; font-weight: 600; }
.quote figcaption div > span { display: block; color: var(--muted); font-size: 0.78rem; }
.quote-logo {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--border-strong);
  color: var(--muted-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ---------- 14. Precios ---------- */
.billing-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.billing-toggle button.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.save { color: var(--primary); font-size: 0.7rem; font-weight: 700; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
  align-items: start;
}
.plan {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plan-featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
}
.plan-head h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.03em; }
.plan-head p { margin-top: 6px; color: var(--muted); font-size: 0.84rem; line-height: 1.5; max-width: 86%; }
.plan-featured .plan-head p { color: rgba(255, 255, 255, 0.74); }

.plan-price { display: flex; align-items: flex-start; gap: 2px; margin-top: 24px; }
.currency { margin-top: 8px; font-size: 1.15rem; font-weight: 600; }
.plan-price strong {
  font-size: clamp(2.6rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.plan-price .per { margin: 8px 0 0 8px; color: var(--muted); font-size: 0.68rem; line-height: 1.35; }
.plan-featured .per { color: rgba(255, 255, 255, 0.7); }
.plan-custom { font-size: clamp(2rem, 3.4vw, 2.6rem) !important; }

.plan-billed { margin-top: 6px; color: var(--muted-light); font-size: 0.68rem; }
.plan-featured .plan-billed { color: rgba(255, 255, 255, 0.62); }

.plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.plan-featured .plan-list { border-top-color: rgba(255, 255, 255, 0.22); }
.plan-list li { position: relative; padding-left: 22px; font-size: 0.85rem; line-height: 1.45; }
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.plan-featured .plan-list li::before { color: var(--accent); }
.plan-featured .plan-list li strong { color: var(--accent); font-weight: 600; }

.plan-featured .btn-primary { background: var(--accent); color: var(--ink); }
.plan-featured .btn-primary:hover { background: #C2D8FF; }

.pricing-note { max-width: 600px; margin: 32px auto 0; color: var(--muted-light); font-size: 0.78rem; text-align: center; }
.pricing-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq-head { position: sticky; top: 104px; }
.faq-head .section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.faq-head .section-sub { margin-inline: 0; font-size: 0.94rem; }

.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { color: var(--primary); }
.faq-list details p {
  max-width: 92%;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 16. CTA final ---------- */
.cta-final {
  --focus: var(--accent);
  padding-block: clamp(64px, 8vw, 100px);
  background: var(--primary-deep);
  color: var(--white);
  overflow: hidden;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}
.cta-final h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.cta-final .eyebrow-light { color: var(--accent); }
.cta-copy p { max-width: 480px; margin-top: 18px; color: rgba(255, 255, 255, 0.78); font-size: 1rem; line-height: 1.65; }

.cta-card {
  padding: clamp(22px, 2.8vw, 30px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.cta-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(169, 198, 255, 0.16);
  color: var(--accent);
}
.cta-card-icon svg { width: 22px; height: 22px; }
.cta-card h3 {
  margin-top: 16px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cta-card > p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.6;
}
.cta-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.cta-card-list li { position: relative; padding-left: 20px; color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; }
.cta-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}
.cta-card .btn { margin-top: 20px; }
.cta-card-note { margin-top: 10px; color: rgba(255, 255, 255, 0.52); font-size: 0.68rem; text-align: center; }

/* ---------- 17. Footer ---------- */
.site-footer { --focus: var(--accent); padding-top: 64px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 280px; margin-top: 18px; color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; line-height: 1.6; }
.footer-mail { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 0.88rem; font-weight: 500; }
.footer-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col h4 {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }
.footer-social a:hover { border-color: var(--accent); color: var(--ink); background: var(--accent); }
.footer-locale { font-size: 0.72rem; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-desktop { gap: 16px; }
}

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .header-actions { display: none; }
  .menu-toggle { display: flex; justify-self: end; grid-column: 3; }
  .brand { grid-column: 1; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .copilot-grid { gap: 40px; }
  .plans { gap: 14px; }
}

@media (max-width: 900px) {
  .copilot-grid { grid-template-columns: 1fr; }
  .copilot-copy { max-width: 620px; }
  .copilot-visual { max-width: 540px; margin-inline: auto; width: 100%; }
  .feature-row,
  .feature-row-reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-reverse .feature-visual { order: 0; }
  .feature-visual { max-width: 560px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-card { max-width: 520px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 420px; }
}

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-featured { order: -1; }
}

@media (max-width: 760px) {
  .dashboard { border-radius: 20px; }
  .quote figcaption { flex-wrap: wrap; }
  .quote-logo { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; text-align: center; }
}

@media (max-width: 720px) {
  .br-lg { display: none; }
  .hero h1 br { display: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .header-inner { min-height: 64px; }
  html { scroll-padding-top: 76px; }
  .hover-lift-none { transform: none; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-note { font-size: 0.72rem; }
  .pill-badge { font-size: 0.68rem; text-align: left; line-height: 1.3; }
  .mock { border-radius: 18px; }
  .mb { grid-template-columns: 78px 1fr 34px; }
  .mock-stat-row { grid-template-columns: repeat(3, 1fr); }
  .mock-stat-row strong { font-size: 0.82rem; }
  .chat-body { padding: 14px; gap: 8px; }
  .msg { max-width: 94%; font-size: 0.76rem; }
  .chat-input { margin: 0 14px 14px; }
  .metrics-grid { gap: 24px 16px; }
  .metric strong { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-final { padding-block: 64px; }
}

@media (max-width: 420px) {
  .live { font-size: 0.6rem; }
  .mock-alert .tag-tiny { display: none; }
  .quote figcaption { justify-content: flex-start; text-align: left; }
}

/* ---------- 19. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .copilot-visual:not(.is-visible) .msg { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
