/* =========================================================
   Axis · Plataforma de gestión para empresas de obra civil y maquinaria
   Dark SaaS · índigo + cian
   ========================================================= */
:root {
  /* Base surfaces */
  --bg:      #0B0E14;
  --bg-2:    #0F131C;
  --bg-3:    #141926;
  --surface: #10151F;
  --surface-2:#161C29;
  --card:    #131926;
  --card-2:  #171E2D;

  /* Lines */
  --line:    #232B3B;
  --line-2:  #2E384C;
  --line-3:  #3A465E;

  /* Text */
  --ink:     #EEF2F9;
  --ink-2:   #C7D0E0;
  --muted:   #8B97AC;
  --muted-2: #5C6779;

  /* Brand */
  --accent:   #6366F1;   /* índigo */
  --accent-b: #818CF8;   /* índigo claro */
  --accent-d: #4F46E5;   /* índigo profundo */
  --cyan:     #22D3EE;   /* cian eléctrico */
  --cyan-d:   #06B6D4;
  --mint:     #34D399;   /* éxito */
  --amber:    #FBBF24;   /* aviso */
  --danger:   #F87171;   /* error */
  --violet:   #A78BFA;

  --grad: linear-gradient(120deg, var(--accent) 0%, var(--cyan) 100%);
  --grad-soft: linear-gradient(120deg, rgba(99,102,241,.18), rgba(34,211,238,.14));

  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 34px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -40px rgba(0,0,0,.85);
  --glow:      0 0 0 1px rgba(99,102,241,.35), 0 18px 60px -20px rgba(99,102,241,.45);
  --glow-cyan: 0 0 0 1px rgba(34,211,238,.3), 0 18px 60px -20px rgba(34,211,238,.4);

  --maxw: 1200px;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 .4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.03; font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.08; overflow-wrap: break-word; }
h3 { font-size: 1.18rem; }

p  { margin: 0 0 1em; color: var(--muted); }
.lead { color: var(--ink-2); font-size: 1.1rem; max-width: 62ch; }

em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

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

/* ===================== Background art ===================== */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% -8%,  rgba(99,102,241,.30), transparent 62%),
    radial-gradient(55% 45% at 92% 4%,   rgba(34,211,238,.18), transparent 60%),
    radial-gradient(60% 55% at 50% 115%, rgba(129,140,248,.16), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 82%);
}

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  background: rgba(11,14,20,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.brand__logo {
  width: 32px; height: 32px; object-fit: contain; border-radius: 8px;
}
/* Wordmark logo — "axis" with cyan i */
.brand__name {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink); text-transform: lowercase;
  line-height: 1;
}
.brand__name .i { color: var(--cyan); }
.brand__tag {
  font-size: .62rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--grad-soft); color: var(--accent-b);
  border: 1px solid rgba(99,102,241,.3);
  letter-spacing: .05em; text-transform: uppercase; align-self: center;
  position: relative; top: -1px;
}
.nav__links { display: flex; gap: 24px; }
.nav__links a { font-size: .93rem; color: var(--muted); font-weight: 500; position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--grad); border-radius: 2px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--primary {
  background: var(--grad); color: #08101a;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(99,102,241,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99,102,241,.7); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--line-3); transform: translateY(-1px); }

/* ===================== HERO ===================== */
.hero { padding: 64px 0 84px; position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-b); padding: 6px 13px; border-radius: 999px;
  background: rgba(99,102,241,.09); border: 1px solid rgba(99,102,241,.24);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.22); }

.hero__copy h1 { margin-bottom: 20px; }
.hero__copy .lead { font-size: 1.16rem; margin-bottom: 30px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__bullets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.hero__bullets li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); align-items: center; }
.hero__bullets span { color: var(--mint); font-weight: 700; }

/* Mockup */
.hero__mock { position: relative; }
.mock {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow);
  overflow: hidden;
  transform: perspective(1500px) rotateX(3deg) rotateY(-5deg);
}
.mock__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--bg-3); border-bottom: 1px solid var(--line);
}
.mock__bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-3); }
.mock__bar > span:nth-child(1) { background: var(--danger); }
.mock__bar > span:nth-child(2) { background: var(--amber); }
.mock__bar > span:nth-child(3) { background: var(--mint); }
.mock__url {
  margin-left: 14px; font-family: var(--font-mono); font-size: .76rem;
  color: var(--muted); background: var(--bg); padding: 4px 12px; border-radius: 8px;
  border: 1px solid var(--line);
}
.mock__body { display: grid; grid-template-columns: 200px 1fr; min-height: 430px; }
.mock__side { background: var(--bg-2); padding: 18px 14px; border-right: 1px solid var(--line); }
.mock__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ink); }
.mock__brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em; text-transform: lowercase; }
.mock__brand .i { color: var(--cyan); }
.mock__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mock__menu li { padding: 8px 12px; border-radius: 10px; font-size: .84rem; color: var(--muted); cursor: default; }
.mock__menu li.is-active { background: var(--grad); color: #08101a; font-weight: 600; }
.mock__main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.mock__row--2 { grid-template-columns: 1.2fr 1fr; }

.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi__lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi__val { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--ink); }
.kpi__delta { font-size: .72rem; color: var(--muted); }
.kpi__delta.up { color: var(--mint); }

.card-mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px;
}

/* Map mock */
.map-mock__head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 600; margin-bottom: 10px; color: var(--ink-2); }
.badge { font-size: .66rem; padding: 3px 8px; border-radius: 999px; background: var(--bg-3); color: var(--muted); font-weight: 600; border: 1px solid var(--line); }
.badge--ok { background: rgba(52,211,153,.12); color: var(--mint); border-color: rgba(52,211,153,.25); }
.badge--live { background: rgba(34,211,238,.12); color: var(--cyan); border-color: rgba(34,211,238,.28); }
.badge--live::before { content: "● "; }
.map-mock__canvas {
  position: relative; height: 152px; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, rgba(99,102,241,.28), transparent 52%),
    radial-gradient(circle at 70% 60%, rgba(34,211,238,.20), transparent 55%),
    linear-gradient(180deg, #0d1220 0%, #0a0f1a 100%);
}
.map-mock__canvas::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pin { position: absolute; width: 14px; height: 14px; }
.pin span { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,.3); }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(99,102,241,.22); animation: ping 2s ease-out infinite; }
.pin--1 { top: 30%; left: 24%; }
.pin--2 { top: 18%; left: 70%; }
.pin--2 span { background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.3); }
.pin--2::after { background: rgba(34,211,238,.22); }
.pin--3 { top: 62%; left: 56%; }
.pin--3 span { background: var(--mint); box-shadow: 0 0 0 4px rgba(52,211,153,.3); }
.pin--3::after { background: rgba(52,211,153,.2); }
.pin--4 { top: 70%; left: 18%; }
.pin--4 span { background: var(--amber); box-shadow: 0 0 0 4px rgba(251,191,36,.3); }
.pin--4::after { background: rgba(251,191,36,.2); }
.route {
  position: absolute; top: 36%; left: 26%; width: 44%; height: 30%;
  border: 2px dashed rgba(34,211,238,.5); border-radius: 50% 0 50% 0; opacity: .6;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.map-mock__foot { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: .68rem; padding: 4px 9px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: var(--ink-2); }
.chip--sm { font-size: .64rem; padding: 2px 7px; }
.chip--accent { background: var(--grad); color: #08101a; border-color: transparent; font-weight: 600; }

/* Parte */
.parte__head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.parte__lines { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.parte__lines li { font-size: .77rem; color: var(--muted); padding: 5px 8px; background: var(--bg-3); border-radius: 8px; border: 1px solid var(--line); }
.parte__lines b { color: var(--ink); margin-right: 4px; }
.parte__sign { display: flex; gap: 5px; flex-wrap: wrap; }
.sig { font-size: .66rem; padding: 4px 8px; border-radius: 999px; background: rgba(99,102,241,.14); color: var(--accent-b); font-weight: 600; }
.sig--3 { background: rgba(34,211,238,.14); color: var(--cyan); }

/* Floats */
.float {
  position: absolute; background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 14px; font-size: .84rem; font-weight: 600;
  box-shadow: var(--shadow-md); color: var(--ink);
}
.float--1 { top: -16px; left: -22px; }
.float--1 b, .float--1 span { color: var(--mint); }
.float--2 { bottom: 20px; right: -22px; }
.float--2 b, .float--2 span { color: var(--cyan); }

/* Marquee */
.marquee {
  margin-top: 64px; display: flex; align-items: center; gap: 24px;
  padding: 20px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  flex-wrap: wrap; justify-content: center;
}
.marquee__lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); flex-shrink: 0; }
.marquee__viewport { flex: 1; 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; align-items: center; width: max-content; color: var(--ink-2); font-weight: 600; }
.marquee__set { display: inline-flex; gap: 14px; align-items: center; padding-right: 14px; }
.marquee__track i { color: var(--accent); font-style: normal; }

/* ===================== SECTIONS ===================== */
.section { padding: 96px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--cta { background: radial-gradient(120% 140% at 50% -20%, rgba(99,102,241,.22), transparent 55%), var(--bg-2); border-top: 1px solid var(--line); }

.section__head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section__head .lead { margin-left: auto; margin-right: auto; }

/* GRID */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), transparent);
  opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-3); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; margin-bottom: 12px; }
.card__ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: var(--grad-soft);
  color: var(--cyan); margin-bottom: 15px; border: 1px solid rgba(99,102,241,.25);
}
.card--xl { padding: 40px; }
.card--xl h2 { margin-bottom: 14px; }

.link { color: var(--cyan); font-weight: 600; font-size: .92rem; transition: color .2s; }
.link:hover { color: var(--accent-b); }

.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ticks li {
  position: relative; padding-left: 28px; color: var(--ink-2); font-size: .97rem;
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--grad); color: #08101a; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center;
}

/* Stats band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.stat__val { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat__val em { -webkit-text-fill-color: transparent; }
.stat__lbl { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* Integrations */
.integrations { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.integration {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 600; color: var(--ink-2); font-size: .95rem;
  transition: border-color .2s, transform .2s;
}
.integration:hover { border-color: var(--line-3); transform: translateY(-2px); }
.integration span { font-size: 1.15rem; }

/* Feature row */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-row--rev .feature-row__copy { order: 2; }
.feature-row__copy h2 { margin-bottom: 14px; }
.feature-row__copy p { font-size: 1.04rem; margin-bottom: 18px; }

/* Phone */
.phone {
  width: 290px; margin: 0 auto;
  background: #05070c; border-radius: 40px; padding: 14px;
  box-shadow: var(--shadow-lg), var(--glow-cyan); border: 8px solid #10151f;
  position: relative;
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 100px; height: 18px; background: #05070c; border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen { background: var(--bg-2); border-radius: 30px; padding: 30px 16px 18px; display: grid; gap: 12px; }
.phone__head { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; color: var(--ink); }
.phone__map {
  position: relative; height: 140px; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(34,211,238,.32), transparent 60%),
    linear-gradient(180deg, #0d1220 0%, #0a0f1a 100%);
}
.phone__map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.phone__pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 16px; height: 16px; }
.phone__pin span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(34,211,238,.35); }
.phone__pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: rgba(34,211,238,.22); animation: ping 2s ease-out infinite; }
.phone__fence {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 100px; height: 70px; border: 2px dashed var(--cyan); border-radius: 50%; opacity: .6;
}
.phone__info { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--ink-2); }
.phone__info .mono { text-align: right; white-space: nowrap; }
.mono { font-family: var(--font-mono); color: var(--muted); font-size: .76rem; }
.phone__btn {
  background: var(--grad); color: #08101a; border: 0; padding: 12px;
  border-radius: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.phone__hist { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 4px; }
.phone__hist > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; text-align: center; }
.phone__hist span { display: block; font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.phone__hist b { font-size: .78rem; color: var(--ink); }

/* Obra card */
.obra__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.obra__head h3 { margin: 8px 0 4px; font-size: 1.4rem; }
.obra__head .muted { font-size: .85rem; color: var(--muted); }
.obra__bars { display: grid; gap: 12px; margin-bottom: 18px; }
.obra__bars > div { display: grid; grid-template-columns: 70px 1fr 90px; align-items: center; gap: 10px; font-size: .85rem; }
.obra__bars span { color: var(--muted); }
.obra__bars b { text-align: right; color: var(--ink); }
.bar { height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.obra__team { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #08101a; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--card); margin-left: -6px;
}
.av:first-child { margin-left: 0; }
.av--more { background: var(--bg-3); color: var(--ink-2); }

/* Timeline */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 28px; left: 6%; right: 6%; height: 2px;
  background: var(--grad); opacity: .4; z-index: 0;
}
.step {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; position: relative; z-index: 1;
}
.step__n {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--grad); color: #08101a; border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; }

/* Fleet */
.fleet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fleet__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fleet__list li {
  display: grid; grid-template-columns: 16px 100px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: .88rem;
}
.fleet__list span:not(.dot) { color: var(--muted); font-size: .82rem; }
.fleet__list b { color: var(--ink); font-size: .9rem; }
.fleet__list i { color: var(--cyan); font-style: normal; font-weight: 600; font-size: .82rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); }
.dot--ok { background: var(--mint); box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
.dot--warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(251,191,36,.22); }
.dot--off { background: var(--muted-2); }

/* Role tabs */
.role-tabs__bar {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; margin: 0 auto 28px; width: fit-content;
}
.role-tabs__btn {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .9rem; color: var(--muted);
  cursor: pointer; transition: all .2s ease;
}
.role-tabs__btn:hover { color: var(--ink); }
.role-tabs__btn.is-active { background: var(--grad); color: #08101a; }
.role-tabs__panel { display: none; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; max-width: 720px; margin: 0 auto; }
.role-tabs__panel.is-active { display: block; }
.role-tabs__panel h3 { margin-bottom: 14px; font-size: 1.3rem; }

/* CTA section */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta--center { grid-template-columns: 1fr; text-align: center; max-width: 720px; margin: 0 auto; }
.cta--center .hero__ctas { justify-content: center; }
.card--form {
  background: linear-gradient(180deg, var(--card-2), var(--card)); color: var(--ink);
  border: 1px solid var(--line-2); padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-grid label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.form-grid__full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: .92rem; font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-grid input::placeholder, .form-grid textarea::placeholder { color: var(--muted-2); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.22);
}
.form-grid textarea { resize: vertical; min-height: 80px; }
.check { flex-direction: row; align-items: center; display: flex !important; gap: 10px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.check input { width: auto; accent-color: var(--accent); }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--mint); min-height: 1.2em; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px; transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(99,102,241,.5); }
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-display); color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; font-size: .94rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--bg-2); color: var(--ink-2); padding: 64px 0 24px; margin-top: 0; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer__brand b, .footer__logo { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; text-transform: lowercase; color: var(--ink); margin-bottom: 4px; }
.footer__logo .i { color: var(--cyan); }
.footer__brand span { color: var(--muted); font-size: .88rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer__cols h4 { color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer__cols a { display: block; color: var(--muted); padding: 4px 0; font-size: .92rem; transition: color .2s; }
.footer__cols a:hover { color: var(--cyan); }
.footer__bottom { padding-top: 22px; display: flex; justify-content: space-between; color: var(--muted-2); font-size: .82rem; }

/* Vacaciones / RRHH mock */
.badge--warn { background: rgba(251,191,36,.14); color: var(--amber); border-color: rgba(251,191,36,.28); }
.vac__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--ink); font-weight: 600; }
.vac__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.vac__list li {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: .85rem;
}
.vac__list b { color: var(--ink); }
.vac__list span:not(.badge) { color: var(--muted); font-size: .82rem; }

.empleado__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.empleado__head b { color: var(--ink); display: block; }
.empleado__head .muted { font-size: .82rem; }
.av--lg { width: 46px; height: 46px; font-size: 1rem; margin-left: 0; }
.empleado__lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.empleado__lines li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: .84rem; color: var(--ink-2);
}
.empleado__lines i { font-style: normal; color: var(--cyan); font-size: .8rem; }

/* QR block */
.qr-visual { display: grid; place-items: center; padding: 20px; }
.qr {
  width: 200px; height: 200px; border-radius: var(--radius); padding: 18px;
  background: #fff; box-shadow: var(--shadow-lg), var(--glow-cyan);
  display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 4px;
}
.qr i { border-radius: 2px; }
.qr i.on { background: #0B0E14; }
.qr i.off { background: transparent; }

/* ===================== ANIMATIONS ===================== */
/* Scroll reveal + variants */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal--in { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal-zoom  { opacity: 0; transform: scale(.92);        transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal-left.reveal--in, .reveal-right.reveal--in, .reveal-zoom.reveal--in { opacity: 1; transform: none; }

/* Staggered children (cards in a grid) */
[data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
[data-stagger].reveal--in > * { opacity: 1; transform: none; }
[data-stagger].reveal--in > *:nth-child(1) { transition-delay: .04s; }
[data-stagger].reveal--in > *:nth-child(2) { transition-delay: .10s; }
[data-stagger].reveal--in > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].reveal--in > *:nth-child(4) { transition-delay: .22s; }
[data-stagger].reveal--in > *:nth-child(5) { transition-delay: .28s; }
[data-stagger].reveal--in > *:nth-child(6) { transition-delay: .34s; }
[data-stagger].reveal--in > *:nth-child(7) { transition-delay: .40s; }
[data-stagger].reveal--in > *:nth-child(8) { transition-delay: .46s; }

/* Entrance for hero on load */
@keyframes floatUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero__copy > * { animation: floatUp .9s cubic-bezier(.22,.61,.36,1) backwards; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .15s; }
.hero__copy > *:nth-child(3) { animation-delay: .25s; }
.hero__copy > *:nth-child(4) { animation-delay: .35s; }
.hero__copy > *:nth-child(5) { animation-delay: .45s; }
.hero__mock { animation: floatUp 1.1s cubic-bezier(.22,.61,.36,1) .3s backwards; }

/* Gently floating hero mockup + floats */
@keyframes bob { 0%,100% { transform: perspective(1500px) rotateX(3deg) rotateY(-5deg) translateY(0); } 50% { transform: perspective(1500px) rotateX(3deg) rotateY(-5deg) translateY(-12px); } }
@media (min-width: 981px) { .mock { animation: bob 7s ease-in-out infinite; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float--1 { animation: floaty 4.5s ease-in-out infinite; }
.float--2 { animation: floaty 5.5s ease-in-out infinite .5s; }

/* Shimmer sweep on gradient buttons */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: none;
}
.btn--primary:hover::after { animation: sweep .8s ease; }
@keyframes sweep { to { left: 130%; } }

/* Animated gradient text on hero em */
.hero__copy em {
  background-size: 200% auto;
  animation: hueShift 6s ease-in-out infinite;
}
@keyframes hueShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* Marquee auto-scroll */
.marquee { flex-wrap: nowrap; }
.marquee__track { animation: marquee 28s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 720px) {
  .marquee { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee__viewport { width: 100%; }
}

/* Count-up KPIs get a subtle pulse when landing */
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.kpi__val.counted { animation: pop .5s ease; }

/* Card hover lift already exists; add sheen follow */
.card, .stat, .step, .integration { will-change: transform; }

/* Nav shrink on scroll */
.nav { transition: height .25s ease, background .25s ease, box-shadow .25s ease; }
.nav.is-scrolled { box-shadow: 0 8px 30px -18px rgba(0,0,0,.8); background: rgba(11,14,20,.85); }
.nav.is-scrolled .nav__inner { height: 60px; }
.nav__inner { transition: height .25s ease; }

/* Progress bar top */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: var(--grad); box-shadow: 0 0 12px rgba(34,211,238,.6); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero__grid, .feature-row, .cta { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--rev .feature-row__copy { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta .btn { padding: 9px 14px; font-size: .88rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 52px; }
  .section { padding: 64px 0; }
  .hero__bullets { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .mock { transform: none; animation: none; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__row, .mock__row--2 { grid-template-columns: 1fr; }
  .float--1, .float--2 { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .stat__val { font-size: 2rem; }
  .integration { font-size: .88rem; padding: 10px 16px; }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .mock__url { display: none; }
  .brand__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-zoom,
  [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__copy > *, .hero__mock { animation: none !important; }
  .mock, .float--1, .float--2, .marquee__track, .hero__copy em { animation: none !important; }
  .pin::after, .phone__pin::after { animation: none; }
  .aurora, .orb { animation: none !important; }
}

/* =========================================================
   ✦ PREMIUM POLISH LAYER
   ========================================================= */

/* Richer, living background — aurora + floating orbs */
.bg-glow {
  background:
    radial-gradient(50% 40% at 12% -8%,  rgba(99,102,241,.34), transparent 60%),
    radial-gradient(45% 40% at 90% 2%,   rgba(34,211,238,.20), transparent 58%),
    radial-gradient(55% 50% at 50% 118%, rgba(129,140,248,.18), transparent 60%);
}
.aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: -2; pointer-events: none;
  background:
    conic-gradient(from 200deg at 30% 40%, rgba(99,102,241,.18), transparent 40%),
    conic-gradient(from 20deg at 75% 30%, rgba(34,211,238,.14), transparent 45%);
  filter: blur(60px); opacity: .8;
  animation: auroraShift 24s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.02); }
}
.orb {
  position: fixed; border-radius: 50%; z-index: -2; pointer-events: none; filter: blur(2px);
  background: radial-gradient(circle at 30% 30%, rgba(129,140,248,.5), rgba(99,102,241,0) 70%);
}
.orb--1 { width: 10px; height: 10px; top: 22%; left: 14%; animation: drift 16s ease-in-out infinite; }
.orb--2 { width: 7px; height: 7px; top: 40%; right: 18%; background: radial-gradient(circle at 30% 30%, rgba(103,232,249,.6), transparent 70%); animation: drift 20s ease-in-out infinite reverse; }
.orb--3 { width: 5px; height: 5px; top: 68%; left: 24%; animation: drift 24s ease-in-out infinite 2s; }
@keyframes drift {
  0%,100% { transform: translate(0,0); opacity: .5; }
  50%     { transform: translate(30px,-40px); opacity: 1; }
}

/* Sharper grid with soft vignette */
.bg-grid { opacity: .45; background-size: 60px 60px; }

/* Eyebrow — glassy pill with inner glow */
.eyebrow {
  background: linear-gradient(180deg, rgba(99,102,241,.14), rgba(99,102,241,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 12px -6px rgba(99,102,241,.5);
  backdrop-filter: blur(6px);
}

/* Section heads — gradient underline accent under h2 */
.section__head h2 { position: relative; display: inline-block; }
.section__head h2::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  width: 54px; height: 3px; border-radius: 3px; background: var(--grad);
  box-shadow: 0 0 16px rgba(34,211,238,.5);
}
.section__head .lead { margin-top: 28px; }

/* Cards — glass surface, gradient ring on hover, spotlight follows pointer */
.card {
  background:
    radial-gradient(180px 180px at var(--mx, -100px) var(--my, -100px), rgba(99,102,241,.14), transparent 70%),
    linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.04);
}
.card:hover { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.08); }
.card__ico {
  background: linear-gradient(180deg, rgba(99,102,241,.22), rgba(34,211,238,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px -10px rgba(99,102,241,.6);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.card:hover .card__ico { transform: translateY(-2px) scale(1.06) rotate(-3deg); }

/* Stat tiles — glow ring + gradient value */
.stat {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(99,102,241,.10), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.08); }
.stat__val { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__val em { -webkit-text-fill-color: transparent; }

/* Buttons — glossy primary, animated ghost border */
.btn--primary {
  background: linear-gradient(180deg, #7A7DF7, var(--accent) 40%, var(--accent-d));
  box-shadow: 0 10px 30px -10px rgba(99,102,241,.7), inset 0 1px 0 rgba(255,255,255,.35);
  color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.btn--primary:hover { box-shadow: 0 18px 44px -12px rgba(99,102,241,.8), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--ghost { backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }

/* Nav brand logo — subtle glow */
.brand__logo { box-shadow: 0 4px 14px -4px rgba(99,102,241,.6); }
.brand__tag {
  background: linear-gradient(180deg, rgba(99,102,241,.22), rgba(34,211,238,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

/* Links — animated underline */
.link { position: relative; }
.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--grad); transition: width .3s cubic-bezier(.22,.61,.36,1);
}
.link:hover::after { width: 100%; }

/* Mock — deeper glass + reflective top edge */
.mock { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,.4), 0 0 80px -30px rgba(34,211,238,.5); }
.mock::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%);
}
.hero__mock { position: relative; }

/* Floating badges — glassy */
.float { backdrop-filter: blur(10px); background: rgba(23,30,45,.75); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.08); }

/* Timeline steps — number glows, connector animates in */
.step__n { box-shadow: 0 8px 20px -8px rgba(99,102,241,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.step { transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s, border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--line-3); box-shadow: var(--shadow-md); }

/* Role tabs — active glow */
.role-tabs__btn.is-active { box-shadow: 0 6px 18px -8px rgba(99,102,241,.7); }
.role-tabs__panel { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.04); }

/* FAQ — hover lift + open glow */
.faq details { transition: border-color .25s, box-shadow .25s, transform .2s; }
.faq details:hover { transform: translateX(2px); }
.faq details[open] { box-shadow: 0 0 0 1px rgba(99,102,241,.3), 0 14px 34px -18px rgba(99,102,241,.4); }

/* Integrations — glass chips with sheen */
.integration {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.integration:hover { box-shadow: 0 10px 26px -14px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.1); border-color: rgba(99,102,241,.4); }

/* CTA section — spotlight */
.section--cta { position: relative; overflow: hidden; }
.section--cta::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(34,211,238,.12), transparent 70%);
}

/* Selection + scrollbar flourish */
::selection { background: rgba(99,102,241,.35); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent-d), var(--accent)); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--accent), var(--cyan)); }

/* Progress bar — brighter */
.scroll-progress { height: 3px; box-shadow: 0 0 14px rgba(34,211,238,.8); }

/* =========================================================
   CAPA 2 · Capturas de producto, casos de uso y detalle
   ========================================================= */

/* ---------- Section head alineado a la izquierda ---------- */
.section__head--left { text-align: left; margin-left: 0; max-width: 880px; }
.section__head--left h2::after { left: 0; transform: none; }
.section__head--left .lead { margin-left: 0; }

/* ---------- Kicker numerico de seccion ---------- */
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kicker__n {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  color: var(--cyan); padding: 3px 9px; border-radius: 7px;
  background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.25);
}
.kicker__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* =========================================================
   CAPTURA DE APP
   ========================================================= */
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,.16);
}
.shot__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; background: #0A0D14; border-bottom: 1px solid var(--line);
}
.shot__bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); flex: none; }
.shot__bar > i:nth-child(1) { background: #F87171; }
.shot__bar > i:nth-child(2) { background: #FBBF24; }
.shot__bar > i:nth-child(3) { background: #34D399; }
.shot__path {
  margin-left: 8px; font-family: var(--font-mono); font-size: .68rem; color: var(--muted-2);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 7px;
  padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot__body { padding: 16px; display: grid; gap: 12px; }
.shot__caption {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 12px; font-size: .84rem; color: var(--muted); line-height: 1.5;
}
.shot__caption b { color: var(--ink-2); font-weight: 600; }
.shot__caption::before {
  content: "\25B8"; color: var(--cyan); flex: none; font-size: .72rem; margin-top: 3px;
}

/* Cabecera interna de pantalla */
.ui-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ui-head h4 { font-family: var(--font-display); font-size: .98rem; color: var(--ink); margin: 0 0 3px; }
.ui-head p { font-size: .76rem; color: var(--muted); margin: 0; }
.ui-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ui-btn {
  font-size: .72rem; font-weight: 600; padding: 6px 11px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.ui-btn--pri { background: var(--grad); color: #08101a; border-color: transparent; }

/* KPIs dentro de una captura */
.ui-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.ui-kpis--3 { grid-template-columns: repeat(3, 1fr); }
.ui-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.ui-kpi span { display: block; font-size: .63rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-bottom: 5px; }
.ui-kpi b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1; display: block; }
.ui-kpi i { font-style: normal; font-size: .67rem; color: var(--muted); display: block; margin-top: 5px; }
.ui-kpi i.up { color: var(--mint); }
.ui-kpi i.warn { color: var(--amber); }

/* Tabla de aplicacion */
.ui-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.ui-table th {
  text-align: left; font-size: .63rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted-2); font-weight: 600; padding: 7px 9px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.ui-table td { padding: 9px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table b { color: var(--ink); font-weight: 600; }
.ui-table .num { text-align: right; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-2); }
.ui-table .tot { background: rgba(99,102,241,.07); }
.ui-table .tot td { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line-2); }
.ui-scroll { overflow-x: auto; }

/* Badges de estado */
.st {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: .65rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid transparent;
}
.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st--ok    { background: rgba(52,211,153,.12);  color: #34D399; border-color: rgba(52,211,153,.26); }
.st--wait  { background: rgba(251,191,36,.12);  color: #FBBF24; border-color: rgba(251,191,36,.26); }
.st--live  { background: rgba(34,211,238,.12);  color: #22D3EE; border-color: rgba(34,211,238,.28); }
.st--off   { background: rgba(139,151,172,.10); color: #8B97AC; border-color: rgba(139,151,172,.22); }
.st--bad   { background: rgba(248,113,113,.12); color: #F87171; border-color: rgba(248,113,113,.26); }
.st--info  { background: rgba(129,140,248,.14); color: #A5B4FC; border-color: rgba(129,140,248,.28); }
.st--none::before { display: none; }

/* Filas de app */
.ui-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ui-rows li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; font-size: .78rem; color: var(--muted);
}
.ui-rows li > b { color: var(--ink); font-weight: 600; }
.ui-rows li .grow { flex: 1; min-width: 0; }
.ui-rows li .mono { font-size: .7rem; }

/* Sidebar simulado */
.ui-app { display: grid; grid-template-columns: 176px 1fr; min-height: 300px; }
.ui-nav { background: #0A0D14; border-right: 1px solid var(--line); padding: 13px 10px; }
.ui-nav__sec {
  font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2);
  padding: 10px 9px 5px; font-weight: 700;
}
.ui-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.ui-nav li {
  font-size: .74rem; color: var(--muted); padding: 6px 9px; border-radius: 8px;
  display: flex; align-items: center; gap: 7px;
}
.ui-nav li.on { background: rgba(99,102,241,.16); color: #C7D2FE; font-weight: 600; }
.ui-nav li .pill {
  margin-left: auto; font-size: .58rem; background: var(--danger); color: #fff;
  border-radius: 999px; padding: 1px 6px; font-weight: 700;
}
.ui-main { padding: 15px; display: grid; gap: 11px; align-content: start; }

/* Movil simulado */
.ui-phone {
  width: 236px; margin: 0 auto; background: #05070C; border: 7px solid #11151F;
  border-radius: 30px; padding: 14px 11px; box-shadow: var(--shadow-lg);
  display: grid; gap: 9px;
}
.ui-phone__top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; color: var(--muted-2); font-family: var(--font-mono); padding: 0 3px 3px;
}
.ui-phone__card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 11px; }
.ui-phone__card h5 { font-family: var(--font-display); font-size: .82rem; color: var(--ink); margin: 0 0 7px; }
.ui-field {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: .71rem; padding: 7px 9px; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 5px; color: var(--muted);
}
.ui-field b { color: var(--ink-2); font-weight: 600; text-align: right; }
.ui-cta {
  display: block; width: 100%; text-align: center; padding: 10px;
  border-radius: 10px; background: var(--grad); color: #08101a;
  font-weight: 700; font-size: .78rem; border: 0;
}
.ui-cta--ghost { background: var(--bg-3); color: var(--ink-2); border: 1px solid var(--line-2); }

/* Lienzo de firma */
.ui-sign {
  height: 62px; border-radius: 9px; border: 1px dashed var(--line-3);
  background: rgba(255,255,255,.03); display: grid; place-items: center; margin-bottom: 7px;
}
.ui-sign svg { width: 82%; height: 42px; }
.ui-sign path { fill: none; stroke: var(--cyan); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ui-sign--draw path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: signIn 2.6s cubic-bezier(.4,.1,.3,1) infinite; }
@keyframes signIn {
  0%   { stroke-dashoffset: 320; }
  55%  { stroke-dashoffset: 0; }
  90%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Mini mapa con geovalla */
.ui-map {
  position: relative; height: 152px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(180deg, #101827, #0B0F18); border: 1px solid var(--line);
}
.ui-map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.ui-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui-map .fence { fill: rgba(34,211,238,.10); stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 5 4; }
.ui-map .track { fill: none; stroke: var(--accent-b); stroke-width: 2; stroke-linecap: round; opacity: .85; }
.ui-map__me {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.28);
}
.ui-map__me::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: rgba(34,211,238,.2); animation: ping 2s ease-out infinite;
}
.ui-map__tag {
  position: absolute; font-size: .62rem; font-family: var(--font-mono);
  background: rgba(10,13,20,.86); border: 1px solid var(--line-2);
  padding: 2px 7px; border-radius: 6px; color: var(--ink-2); backdrop-filter: blur(4px);
}

/* =========================================================
   CASOS DE USO
   ========================================================= */
.uc { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.uc__list { display: grid; gap: 8px; position: sticky; top: 92px; }
.uc__btn {
  display: flex; gap: 13px; align-items: flex-start; text-align: left; width: 100%;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px;
  cursor: pointer; font-family: inherit; color: var(--muted);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.uc__btn:hover { border-color: var(--line-3); transform: translateX(3px); }
.uc__btn.is-active {
  border-color: rgba(99,102,241,.55); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(99,102,241,.28), var(--shadow-md);
}
.uc__btn.is-active .uc__ico { background: var(--grad); color: #08101a; border-color: transparent; }
.uc__ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: .95rem; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--cyan);
  transition: background .25s, color .25s;
}
.uc__btn b { display: block; font-size: .92rem; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.uc__btn span { display: block; font-size: .78rem; line-height: 1.45; }
.uc__panel { display: none; }
.uc__panel.is-active { display: block; animation: fadeIn .45s ease; }

/* Flujo de pasos */
.flow { display: grid; gap: 9px; margin-top: 18px; }
.flow__step {
  display: grid; grid-template-columns: 26px 1fr; gap: 13px; align-items: start;
  font-size: .87rem; color: var(--muted); position: relative; padding-bottom: 3px;
}
.flow__step b { color: var(--ink-2); font-weight: 600; }
.flow__n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--cyan);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
}
.flow__step:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: -6px;
  width: 1px; background: linear-gradient(180deg, var(--line-2), transparent);
}

/* =========================================================
   ESPECIFICACIONES
   ========================================================= */
.spec { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec__row {
  display: grid; grid-template-columns: 258px 1fr; gap: 22px;
  padding: 17px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: background .2s;
}
.spec__row:last-child { border-bottom: 0; }
.spec__row:hover { background: var(--surface-2); }
.spec__row > b { color: var(--ink); font-size: .93rem; font-weight: 600; }
.spec__row > div { font-size: .89rem; color: var(--muted); }
.spec__row > div span { color: var(--ink-2); }

/* Chips de detalle */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: .71rem; padding: 4px 10px; border-radius: 7px; background: var(--bg-3); border: 1px solid var(--line); color: var(--muted); }
.tag--on { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.3); color: #C7D2FE; }

/* =========================================================
   ANTES / DESPUES
   ========================================================= */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba__col { border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; }
.ba__col--old { background: rgba(248,113,113,.04); border-color: rgba(248,113,113,.18); }
.ba__col--new { background: rgba(52,211,153,.05); border-color: rgba(52,211,153,.22); }
.ba__col h3 { font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.ba__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ba__col li { font-size: .9rem; padding-left: 26px; position: relative; line-height: 1.5; }
.ba__col--old li { color: var(--muted); }
.ba__col--old li::before { content: "\2715"; position: absolute; left: 0; color: #F87171; font-weight: 700; font-size: .82rem; }
.ba__col--new li { color: var(--ink-2); }
.ba__col--new li::before { content: "\2713"; position: absolute; left: 0; color: #34D399; font-weight: 700; font-size: .82rem; }

/* =========================================================
   MODULOS
   ========================================================= */
.mod {
  position: relative; background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.mod:hover { transform: translateY(-4px); border-color: var(--line-3); box-shadow: var(--shadow-md); }
.mod__top { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.mod__ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
  font-size: 1.2rem; background: var(--grad-soft); border: 1px solid rgba(99,102,241,.25); color: var(--cyan);
}
.mod__top h3 { margin: 0; font-size: 1.04rem; }
.mod__top span { display: block; font-size: .7rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.mod > p { font-size: .9rem; margin-bottom: 14px; }
.mod ul { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 7px; }
.mod li { font-size: .84rem; color: var(--muted); padding-left: 17px; position: relative; line-height: 1.45; }
.mod li::before { content: "\2014"; position: absolute; left: 0; color: var(--accent-b); }
.mod__foot { margin-top: auto; padding-top: 14px; }

/* Dato destacado */
.pull { border-left: 2px solid; border-image: var(--grad) 1; padding: 4px 0 4px 20px; margin: 22px 0; }
.pull b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.pull span { font-size: .86rem; color: var(--muted); }

/* =========================================================
   ROLES
   ========================================================= */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  transition: transform .25s, border-color .25s;
}
.role:hover { transform: translateY(-3px); border-color: var(--line-3); }
.role__ico { font-size: 1.3rem; margin-bottom: 10px; display: block; }
.role h3 { font-size: .98rem; margin-bottom: 4px; }
.role__tag { font-size: .68rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: block; margin-bottom: 11px; }
.role ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.role li { font-size: .8rem; color: var(--muted); padding-left: 14px; position: relative; line-height: 1.45; }
.role li::before { content: "\00B7"; position: absolute; left: 4px; color: var(--accent-b); font-weight: 700; }

/* =========================================================
   INTEGRACIONES
   ========================================================= */
.integ { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.integ__card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  transition: transform .25s, border-color .25s;
}
.integ__card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,.4); }
.integ__name {
  font-family: var(--font-display); font-size: 1rem; color: var(--ink);
  display: flex; align-items: center; gap: 9px; margin-bottom: 7px;
}
.integ__dot { width: 9px; height: 9px; border-radius: 3px; background: var(--grad); flex: none; }
.integ__card p { font-size: .82rem; margin: 0; line-height: 1.5; }

/* =========================================================
   MENU MOVIL
   ========================================================= */
.nav__burger {
  display: none; width: 40px; height: 38px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2); cursor: pointer;
  padding: 0; place-items: center; gap: 4px; flex-direction: column;
}
.nav__burger i { display: block; width: 16px; height: 1.6px; background: var(--ink-2); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* =========================================================
   RESPONSIVE capa 2
   ========================================================= */
@media (max-width: 980px) {
  .uc { grid-template-columns: 1fr; }
  .uc__list { position: static; grid-template-columns: 1fr 1fr; }
  .roles, .integ { grid-template-columns: 1fr 1fr; }
  .ba { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: 7px; }
  .ui-kpis { grid-template-columns: 1fr 1fr; }
  .ui-app { grid-template-columns: 1fr; }
  .ui-nav { display: none; }
}
@media (max-width: 720px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,14,20,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 10px 24px 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 11px 0; font-size: .95rem; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav { position: sticky; }
  .nav__inner { position: relative; }
  .uc__list { grid-template-columns: 1fr; }
  .roles, .integ { grid-template-columns: 1fr; }
  .ui-kpis, .ui-kpis--3 { grid-template-columns: 1fr 1fr; }
  .shot__path { display: none; }
  .spec__row { padding: 15px 17px; }
  .ba__col { padding: 20px; }
  .pull b { font-size: 1.3rem; }
}
