/* ============================================================
   VibeGuard AI — Landing (SaaS ciberseguridad premium)
   Split hero + dashboard realista. Inter, azul #2563EB, slate.
   Referencia: Vercel / Snyk / Cloudflare / Linear.
   ============================================================ */

/* Tokens: web/assets/base.css (fuente única). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* textura muy tenue (dot grid) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(15,23,42,.05) 1px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.uline { background: linear-gradient(var(--blue), var(--blue)) left 92%/100% 0.11em no-repeat; padding-bottom: 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* píldora */
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-dim); box-shadow: var(--shadow-sm); }
.pill .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

/* botones — override deliberado de la escala de base.css.
   La landing usa una escala mayor que el producto (15/16px frente a 14px):
   es una superficie de persuasión, no de operación. El panel usa .btn,
   .btn-sm y .btn-lg de base.css. */
.btn { --pad-y: 12px; --pad-x: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: var(--pad-y) var(--pad-x); border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink); background: transparent; transition: transform .15s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; white-space: nowrap; }
.btn-primary, .btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-blue:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: #F1F5F9; transform: translateY(-1px); }
.btn-lg { --pad-y: 14px; --pad-x: 26px; font-size: 16px; }
.btn .ic { width: 17px; height: 17px; }

/* nav — barra flotante tipo "pill" */
.nav { position: sticky; top: 0; z-index: 50; padding-top: 14px; }
.nav-inner {
  display: flex; align-items: center; gap: 20px; height: 62px;
  padding: 0 12px 0 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(15,23,42,.18), 0 2px 6px -2px rgba(15,23,42,.08);
  transition: box-shadow .2s ease;
}
.nav.scrolled .nav-inner { box-shadow: 0 18px 44px -14px rgba(15,23,42,.30), 0 4px 12px -6px rgba(15,23,42,.12); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand .mark { display: block; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand .name { font-size: 16px; letter-spacing: -.02em; color: var(--ink); }
.brand .name b { font-weight: 700; }
.nav-links { display: flex; gap: 28px; margin-inline: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-dim); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta a.sign { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.nav-cta a.sign:hover { color: var(--ink); }
.nav-cta .btn-primary { border-radius: 999px; padding: 11px 20px; }

/* ---------- Hero (split) ---------- */
.hero { position: relative; padding: 64px 0 92px; }
.hero::before { content: ""; position: absolute; inset: -6% -8% auto 34%; height: 640px; z-index: -1; pointer-events: none; background: radial-gradient(52% 58% at 72% 22%, var(--blue-tint), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero .pill { margin-bottom: 22px; }
.hero h1 { margin: 0; max-width: 15ch; font-size: clamp(38px, 4.4vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.hero .lede { margin: 20px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--text-dim); }
.hero .lede strong { color: var(--ink); font-weight: 600; }

/* Acciones del hero. Sustituyen a la barra de escaneo: el acceso ya no es
   autoservicio, así que el hero pide la conversación en vez de una URL. */
.hero-actions { display: flex; gap: 12px; margin: 30px 0 0; flex-wrap: wrap; }
.hero-actions .btn-primary { box-shadow: var(--shadow-blue); }
.hero-hint { margin: 16px 0 0; font-size: 14px; color: var(--text-mut); }
.hero-hint a { color: var(--blue); font-weight: 600; }

/* ---------- Dashboard mockup ----------
   Estado por defecto = reporte terminado (lo que se ve sin JS).
   Las clases .is-simulating / .is-probing / .is-scanned las pone
   landing.js para rebobinar el escaneo y volver a ejecutarlo. */
.hero-visual { position: relative; }
.dash { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-xl); overflow: hidden; }
.dash-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dash-bar .dots { display: flex; gap: 6px; }
.dash-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dash-bar .url { flex: 1; max-width: 240px; margin: 0 auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-mut); text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; display: inline-flex; align-items: center; justify-content: center; min-height: 26px; }
.dash-bar .caret { display: none; width: 1.5px; height: 12px; margin-left: 1px; background: var(--blue); }
.dash.is-simulating .caret { display: inline-block; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* Repetir escaneo: solo aparece cuando hay algo que repetir. */
.dash-replay {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 1px solid transparent; border-radius: 7px; background: transparent;
  color: var(--text-mut); cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, color .15s ease, background .15s ease;
}
.dash-replay svg { width: 14px; height: 14px; }
.dash.is-scanned .dash-replay { opacity: 1; pointer-events: auto; }
.dash-replay:hover { color: var(--ink); background: var(--surface-3); }
.dash-replay[hidden] { display: none; }

.dash-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.dash-prog i { display: block; height: 100%; width: 0; background: var(--blue); }
.dash.is-probing .dash-prog i { width: 100%; transition: width 2.4s cubic-bezier(.25,.7,.3,1); }
.dash.is-scanned .dash-prog { opacity: 0; transition: opacity .4s ease .1s; }

.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; }
.dash-title { font-weight: 700; color: var(--ink); font-size: 16px; }
.dash-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mut); margin-top: 3px; }
.ring { position: relative; width: 62px; height: 62px; flex: none; }
.ring svg { width: 62px; height: 62px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--critical); stroke-width: 5; stroke-linecap: round; }
.ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.ring-val small { display: block; font-size: 8px; font-weight: 600; color: var(--text-mut); letter-spacing: .12em; margin-top: 1px; }
.dash-counts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 16px; }
.dash-counts .cnt { font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 4px 9px; border-radius: 6px; }
.cnt.crit { background: var(--critical-tint); color: var(--critical-ink); }
.cnt.high { background: var(--high-tint); color: var(--high-ink); }
.cnt.med { background: var(--medium-tint); color: var(--medium-ink); }
.cnt.ok { background: var(--secure-tint); color: var(--secure-ink); }
.dash-rows { border-top: 1px solid var(--line); }
.ditem { position: relative; border-bottom: 1px solid var(--line); }
.ditem:last-child { border-bottom: none; }
.drow {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px;
  border: 0; background: none; font: inherit; text-align: left; cursor: pointer;
  transition: background .15s ease;
}
.drow:hover { background: var(--surface-2); }
.ditem.open .drow { background: var(--surface-2); }
.drow .sv { font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 6px; letter-spacing: .03em; min-width: 48px; text-align: center; flex: none; }
.drow .sv.critical { background: var(--critical-tint); color: var(--critical-ink); }
.drow .sv.high { background: var(--high-tint); color: var(--high-ink); }
.drow .sv.medium { background: var(--medium-tint); color: var(--medium-ink); }
.drow .sv.ok { background: var(--secure-tint); color: var(--secure-ink); }
.drow .dinfo { flex: 1; min-width: 0; }
.drow .dinfo b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.drow .dinfo span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mut); }
.drow svg { width: 16px; height: 16px; color: var(--line-3); flex: none; }
.drow .chev { transition: transform .22s ease; }
.ditem.open .drow .chev { transform: rotate(90deg); }
.drow .tick { color: var(--secure); }

/* Evidencia del hallazgo. 0fr→1fr anima el alto sin medirlo en JS; el
   padding vive en los hijos para que no asome con la fila cerrada. */
.drow-detail { display: grid; grid-template-rows: 0fr; background: var(--surface-2); transition: grid-template-rows .28s cubic-bezier(.2,.7,.2,1); }
.ditem.open .drow-detail { grid-template-rows: 1fr; }
.dd-in { overflow: hidden; visibility: hidden; transition: visibility 0s .28s; }
.ditem.open .dd-in { visibility: visible; transition-delay: 0s; }
.dd-in .ev {
  display: block; margin: 2px 20px 8px; padding: 9px 11px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; word-break: break-word;
}
.dd-in .ev-loc { display: block; color: var(--text-mut); margin-bottom: 3px; }
.dd-in p { margin: 0 20px 16px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }

.dash-fix { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; background: var(--blue-tint); border-top: 1px solid var(--line); transition: opacity .35s ease; }
.dash-fix svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 1px; }
.dash-fix div { font-size: 13.5px; color: var(--text); line-height: 1.5; transition: opacity .14s ease; }
.dash-fix div.swap { opacity: 0; }
.dash-fix b { color: var(--blue-deep); font-weight: 700; }

.dash-hint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--text-mut); }

/* --- Rebobinado: la simulación oculta sin sacar del flujo, para que la
       tarjeta no cambie de alto ni empuje el hero. Se apaga el contenido
       de la fila, no la fila: así el filete y el shimmer siguen visibles. --- */
.dash.is-simulating .drow { opacity: 0; transform: translateY(6px); transition: opacity .32s ease, transform .32s ease; }
.dash.is-simulating .ditem.res .drow { opacity: 1; transform: none; }
.dash.is-simulating .ditem::after {
  content: ""; position: absolute; inset: 12px 20px; border-radius: 8px; pointer-events: none;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: sk-shine 1.4s ease infinite;  /* keyframes en base.css */
}
.dash.is-simulating .ditem.res::after { display: none; }
.dash.is-simulating .drow { cursor: default; }
.dash.is-simulating .cnt { opacity: 0; transform: scale(.92); transition: opacity .25s ease, transform .25s ease; }
.dash.is-simulating .cnt.res { opacity: 1; transform: none; }
.dash.is-simulating .dash-fix { opacity: 0; }

/* ---------- Logo cloud ----------
   Banda propia (no una tira flotante entre secciones) y a una escala
   que se lee de lejos: es la prueba social del tipo de app que escaneamos. */
.logos { background: var(--surface); border-top: 1px solid var(--line); }
.logos .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-block: 40px 44px; }
.logos-label { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.logos-row { display: flex; align-items: center; justify-content: center; gap: 26px 56px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--text-dim); opacity: .8; transition: opacity .16s ease, color .16s ease, transform .16s ease; }
.logo:hover { opacity: 1; color: var(--ink); transform: translateY(-2px); }
.logo svg { width: 28px; height: 28px; }

/* ---------- Secciones ---------- */
section.band { padding: 104px 0; }
.band--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-inline: auto; text-align: center; }
.sec-head .pill { margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.sec-head p { margin: 16px auto 0; font-size: 17px; line-height: 1.6; color: var(--text-dim); max-width: 56ch; }

/* qué detecta */
.detects { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detect { display: flex; gap: 16px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.detect:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.detect .sev-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.detect .sev-ic svg { width: 23px; height: 23px; }
.detect .sev-ic.critical { background: var(--critical-tint); color: var(--critical); }
.detect .sev-ic.high { background: var(--high-tint); color: var(--high); }
.detect .sev-ic.medium { background: var(--medium-tint); color: var(--medium-ink); }
.detect .sev-ic.low { background: var(--blue-tint2); color: var(--blue); }
.detect h4 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.detect p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }

/* cómo funciona — recorrido en 3 pasos ---------------------------
   Pestañas encadenadas a la izquierda + panel que enseña ese momento.
   Cada pestaña dibuja su propio tramo de raíl: el gris (::before) y el
   azul de progreso (::after), que se llena mientras el auto-avance corre. */
.stepper { margin-top: 56px; display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }

.st-tabs { display: flex; flex-direction: column; }
.st-tab {
  position: relative; display: flex; gap: 16px; width: 100%;
  padding: 18px 20px 22px 0; border: 0; background: none; font: inherit;
  text-align: left; cursor: pointer; color: inherit;
}
/* raíl que encadena los nodos */
.st-tab::before, .st-tab::after {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: -4px; width: 2px; border-radius: 2px;
}
.st-tab::before { background: var(--line); }
.st-tab::after { background: var(--blue); transform: scaleY(0); transform-origin: top center; }
.st-tab:last-child::before, .st-tab:last-child::after { display: none; }
/* El tramo se llena durante la espera del auto-avance; ya recorrido, se queda. */
.st-tab.is-done::after { transform: scaleY(1); }
.stepper.is-playing .st-tab.is-active::after { transform: scaleY(1); transition: transform var(--dwell, 5s) linear; }

.st-tab .node {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line); color: var(--text-mut);
  font-weight: 700; font-size: 15px; z-index: 1;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.st-tab.is-done .node, .st-tab.is-active .node { background: var(--blue); border-color: var(--blue); color: #fff; }
.st-tab:hover .node { transform: scale(1.08); }

.st-txt b { display: block; font-size: 18px; font-weight: 600; color: var(--text-dim); letter-spacing: -.01em; transition: color .2s ease; }
.st-txt span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-mut); }
.st-tab.is-active .st-txt b { color: var(--ink); }
.st-tab:hover .st-txt b { color: var(--ink); }

/* --- Panel de vista previa --- */
/* min-height = alto del panel más alto (el de los chequeos): así el panel no
   pega saltos al cambiar de paso. */
.st-panels {
  position: relative; display: grid; min-height: 366px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.st-panel { align-self: center; width: 100%; }
.st-panel[hidden] { display: none; }

/* 1 · pega la URL */
.scanbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.scanbar > svg { width: 20px; height: 20px; color: var(--text-mut); flex: none; }
.sb-url { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.sb-btn { padding: 9px 16px; border-radius: var(--r-sm); background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.p-notes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.p-notes li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-dim); }
.p-notes svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--secure); }

/* 2 · qué se revisa */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-mut);
}
.checks li b { font-weight: 600; color: var(--text-dim); }
.checks li span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mut); }
.checks li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); }
.checks li.done { background: var(--surface-2); }
.checks li.done b { color: var(--ink); }
.checks li.done i { border-color: var(--secure); background: var(--secure); position: relative; }
.checks li.done i::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 5px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg);
}
.checks li.run b { color: var(--ink); }
.checks li.run i { border-color: var(--blue); border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-dim); }
.p-foot b { color: var(--blue); font-weight: 700; }
.p-foot .mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mut); }

/* 3 · qué llega y dónde */
.pr-top { display: flex; align-items: center; gap: 22px; }
.pr-sev { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-sev .cnt { font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 4px 9px; border-radius: 6px; }
.pr-sev p { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--text-dim); }
/* Lo que de verdad entrega el reporte: el fix del hallazgo más grave. */
.pr-fix { margin-top: 24px; padding: 14px 16px; background: var(--blue-tint); border: 1px solid var(--line); border-radius: var(--r); }
.pf-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--blue-deep); }
.pf-head svg { width: 15px; height: 15px; }
.pr-fix p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.pr-fix p b { color: var(--ink); font-weight: 600; }


/* apoyo */
/* Dos tarjetas: centradas y sin estirarse a lo ancho de tres. */
.support { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 780px; margin-inline: auto; }
.support-card { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.support-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.support-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); margin-bottom: 18px; }
.support-card .ico svg { width: 22px; height: 22px; }
.support-card h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.support-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }

/* ---------- Solicitud de demo ----------
   Sustituye a la tabla de precios: la venta es guiada, así que la sección
   pide una conversación en vez de mostrar tarifas. */
.demo-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }

.demo-copy h3 { margin: 0 0 22px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.demo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.demo-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.demo-list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--secure); }
.demo-list b { color: var(--ink); font-weight: 600; }
.demo-alt { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14.5px; color: var(--text-mut); line-height: 1.55; }
.demo-alt a { color: var(--blue); font-weight: 600; }

/* Tarjeta que da paso al formulario externo (Google Forms). Explica el
   proceso antes de sacar al visitante del sitio. */
.demo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-lg);
}
.dc-title { margin: 0; font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.dc-lede { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.dc-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.dc-steps li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--text); }
.dc-num {
  width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue-deep);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.dc-cta { width: 100%; margin-top: 26px; }
.dc-note { margin: 14px 0 0; font-size: 13px; color: var(--text-mut); text-align: center; }
.dc-note a { color: var(--blue); font-weight: 600; }

/* CTA final */
.finale .wrap { padding-inline: 0; }
.finale-card { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(52px, 7vw, 96px) 32px; background: linear-gradient(135deg, #0F172A 0%, #111827 100%); text-align: center; box-shadow: var(--shadow-xl); }
.finale-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.5px); background-size: 22px 22px; mask-image: radial-gradient(90% 90% at 50% 30%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(90% 90% at 50% 30%, #000 30%, transparent 78%); }
.finale-card::after { content: ""; position: absolute; inset: -40% 20% auto 20%; height: 300px; pointer-events: none; background: radial-gradient(50% 50% at 50% 0%, rgba(37,99,235,.35), transparent 70%); filter: blur(20px); }
.finale-card h2 { position: relative; z-index: 1; margin: 0 auto; max-width: 18ch; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.finale-card h2 .uline { background: linear-gradient(var(--blue), var(--blue)) left 92%/100% 0.1em no-repeat; color: #fff; }
.finale-card p { position: relative; z-index: 1; margin: 18px auto 0; max-width: 48ch; color: #CBD5E1; font-size: 17px; }
.finale-card .fin-actions { position: relative; z-index: 1; margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer.foot { border-top: 1px solid rgba(30,41,59,.12); }
footer.foot .wrap { padding-top: 40px; padding-bottom: 32px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 34ch; }
.foot-brand p { margin: 14px 0 0; color: var(--text-mut); font-size: 14px; line-height: 1.5; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { margin: 0 0 14px; font-size: 13px; color: var(--ink); font-weight: 600; }
.foot-col a { display: block; color: var(--text-mut); font-size: 14px; padding: 4px 0; transition: color .15s ease; }
.foot-col a:hover { color: var(--ink); }
.foot-bar { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(30,41,59,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-bar .cpy { font-size: 13.5px; color: var(--text-mut); }
.foot-bar .cpy b { color: var(--text-dim); font-weight: 600; }
.foot-bar .disc { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mut); }

/* ---------- Impacto / globo de vectores ----------
   Hemisferio anclado abajo con los datos colgando de un hilo (referencia:
   la cifra + línea + globo de Cloudflare), los cinco vectores como marcadores
   sobre la superficie y "tu app" como objetivo en el centro. */
.impact { position: relative; overflow: hidden; }
.impact::before { content: ""; position: absolute; inset: -20% 45% auto -10%; height: 700px; z-index: 0; pointer-events: none; background: radial-gradient(46% 52% at 70% 40%, rgba(37,99,235,.14), rgba(99,102,241,.08) 40%, transparent 72%); }
.impact > .wrap { position: relative; z-index: 1; }
.impact-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; }
.impact-visual { max-width: 620px; margin-inline: auto; width: 100%; }
.impact-copy h2 { margin: 18px 0 0; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.impact-copy > p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-dim); max-width: 44ch; }

/* --- Datos colgando sobre el globo --- */
/* Sin gap: así el borde izquierdo de cada celda cae en x = 0/160/320/480 del
   lienzo del globo y el hilo del SVG continúa el del CSS sin salto. */
.stat-rail { display: grid; grid-template-columns: repeat(4, 1fr); }
/* Alto uniforme: los cuatro hilos tienen que arrancar a la misma altura
   aunque una etiqueta ocupe dos líneas y otra tres. */
.stat-rail .stat { position: relative; padding: 0 16px 0 15px; }
/* punto + hilo que baja hasta la superficie: las columnas de fuera necesitan
   más hilo porque ahí el hemisferio cae. */
.stat-rail .stat::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.stat-rail .stat::after {
  content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px;
  background: linear-gradient(var(--blue), rgba(37,99,235,.5));
}
.stat .s-num { font-size: clamp(24px, 2.5vw, 32px); font-weight: 800; color: var(--blue); letter-spacing: -.03em; line-height: 1; }
.stat .s-num span { font-size: 15px; font-weight: 600; color: var(--blue-2); margin-left: 2px; letter-spacing: 0; }
.stat .s-lab { margin-top: 8px; font-size: 13px; color: var(--text-dim); line-height: 1.4; }

/* --- El globo --- */
.globe { position: relative; }
/* Sin overflow visible: el viewBox recorta la esfera y deja solo el casquete.
   El desvanecido inferior va en CSS y no en un <mask> del SVG: la máscara SVG
   se calcula sobre el bbox de la esfera entera, que es mucho más alta que la
   parte visible, y el degradado caía fuera del encuadre. */
.globe-svg {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 48%, transparent 95%);
}
.globe-svg .face { fill: url(#g-face); }
.globe-svg .threads line { stroke: url(#g-thread); stroke-width: 1; }
.globe-svg .limb { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.globe-svg .grid { fill: none; stroke: rgba(255,255,255,.30); stroke-width: 1; }
.globe-svg .conn { stroke: rgba(255,255,255,.38); stroke-width: 1; stroke-dasharray: 3 5; transition: stroke .2s ease, stroke-width .2s ease; }
.globe-svg .conn.is-lit { stroke: #fff; stroke-width: 1.6; stroke-dasharray: none; }
.globe[data-active] .conn:not(.is-lit) { stroke: rgba(255,255,255,.12); }

/* marcadores */
.pin, .app-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); transition: transform .2s ease; }
.pin { z-index: 3; }
.pin .dot {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; border: 2px solid #fff; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md); transition: box-shadow .2s ease, opacity .2s ease;
}
.pin .dot svg { width: 17px; height: 17px; }
/* El azul es marca, nunca severidad: el vector "bajo" va en slate. */
.pin .dot.crit { background: var(--critical); } .pin .dot.high { background: var(--high); } .pin .dot.med { background: var(--medium); } .pin .dot.low { background: var(--low); }
.globe[data-active] .dot:not(.is-active) { opacity: .38; }
.pin.is-active { transform: translate(-50%, -50%) scale(1.22); z-index: 5; }
.dot.is-active { box-shadow: 0 0 0 7px rgba(255,255,255,.30), var(--shadow-md); }

/* tu app: el objetivo */
.app-pin { z-index: 4; display: grid; place-items: center; }
.app-pin img { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.app-pin b { margin-top: 7px; font-size: 12px; font-weight: 600; color: #fff; letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(15,23,42,.55); }
.app-pin .ping {
  position: absolute; top: 22px; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7);
  animation: ping 3.4s ease-out infinite;
}
.app-pin .ping.p2 { animation-delay: 1.7s; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }

/* Ficha del vector señalado. Alto reservado: no salta al cambiar. */
.vec-card {
  display: grid; align-items: center; min-height: 122px;
  max-width: 440px; margin: 28px 0 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.vc-idle { font-size: 13.5px; line-height: 1.5; color: var(--text-mut); }
.vc-idle b { color: var(--text-dim); font-weight: 600; }
.vc-head { display: flex; align-items: center; gap: 10px; }
.vc-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.vc-what { margin: 7px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.vc-check {
  display: block; margin-top: 10px; padding: 6px 9px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mut);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px;
  word-break: break-word;
}

/* Etiquetas cortas a propósito: los cinco vectores tienen que caber en una
   sola fila. El nombre completo lo da la ficha al señalar uno.
   La leyenda es el control accesible del globo: los marcadores son pequeños
   y van sobre una superficie de color; estos chips no. */
.atk-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 400px; }
.atk-legend .leg {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  font: inherit; font-size: 13px; color: var(--text-dim); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.atk-legend .leg:hover { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.atk-legend .leg.is-active { background: var(--surface); border-color: var(--line-3); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.atk-legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.atk-legend i.crit { background: var(--critical); } .atk-legend i.high { background: var(--high); } .atk-legend i.med { background: var(--medium); } .atk-legend i.low { background: var(--low); }


/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .app-pin .ping { animation: none !important; }
  /* Sin simulación no hay nada que repetir ni cursor que parpadee.
     El resto del rebobinado ni se activa: landing.js va directo al final. */
  .dash .caret { display: none !important; }
}

/* responsive */
@media (max-width: 980px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: none; }
  .hero::before { inset: -6% 0 auto 0; }
  .impact-grid { grid-template-columns: 1fr; gap: 40px; }
  .impact::before { inset: -10% 0 auto 0; }
  .detects { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr 1fr; }

  /* Pestañas arriba, panel debajo: el raíl sigue siendo vertical. */
  .stepper { grid-template-columns: 1fr; gap: 28px; }
  /* El formulario primero: es la acción de la sección. */
  .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .demo-card { order: -1; }
  .nav-links { display: none; }
}
/* Bajo este ancho las cuatro columnas de datos no caben: el contenido mínimo
   de las etiquetas ensancha la rejilla y desborda la sección. Pasan a 2x2 y se
   quedan sin hilo, porque en dos filas no hay una superficie a la que bajar. */
@media (max-width: 720px) {
  .stat-rail { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .stat-rail .stat { padding: 0 8px 0 15px; }
  .stat-rail .stat::after { display: none; }
  .globe-svg .threads { display: none; }
  .globe { margin-top: 20px; }
  .vec-card, .atk-legend { max-width: none; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  section.band { padding: 72px 0; }
  .support { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .demo-card { padding: 24px; }
  .foot-top { flex-direction: column; }
  .nav-cta a.sign { display: none; }
  /* Rejilla en vez de wrap: seis marcas en dos filas limpias. */
  .logos-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 12px; width: 100%; }
  .logo { font-size: 17px; gap: 9px; }
  .logo svg { width: 22px; height: 22px; }
  .drow { gap: 10px; padding: 13px 14px; }
  .dd-in .ev, .dd-in p { margin-inline: 14px; }
  .st-tab { padding: 14px 0 18px 0; }
  .st-panels { padding: 20px; }
  /* El detalle mono baja a su propia línea: al lado del título parte palabras. */
  .checks li { grid-template-columns: 20px 1fr; row-gap: 2px; }
  .checks li span { grid-column: 2; }
  .scanbar { flex-wrap: wrap; }
  .sb-url { flex-basis: 100%; }
  .pr-top { gap: 16px; }
  .vec-card { min-height: 138px; }
}
