/* Velion — landing pública. Sin dependencias externas. Colores tomados de la app de escritorio. */
:root {
  --navy-900: #031a33;
  --navy-800: #052344;
  --navy-700: #0e1c31;
  --navy-600: #172c4a;
  --blue-600: #175cd3;
  --blue-400: #42a5ff;
  --blue-100: #eaf2ff;
  --ink: #101828;
  --ink-2: #475467;
  --muted: #667085;
  --line: #dde2e9;
  --paper: #f5f7fa;
  --white: #ffffff;
  --ok: #027a48;
  --warn: #b54708;
  --bad: #b42318;
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .88em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--white); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.25rem; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: #1150bb; }
.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--blue-100); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); min-height: 40px; padding: .45rem 1rem; }
.btn--ghost:hover { border-color: var(--white); }
.btn--block { width: 100%; }
.btn--big { font-size: 1.15rem; min-height: 56px; padding-inline: 1.75rem; }

.badge {
  display: inline-block; font: 700 .7rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .6em; border-radius: 999px; background: rgba(66,165,255,.16); color: var(--blue-400);
  border: 1px solid rgba(66,165,255,.4); vertical-align: middle;
}
.kicker { font: 700 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 1rem; }

/* Encabezado */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand img { width: 168px; height: auto; }
.top__nav { display: flex; align-items: center; gap: 1.6rem; }
.top__nav a:not(.btn) { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top__nav a:not(.btn):hover { color: var(--white); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(1200px 600px at 85% 20%, rgba(23,92,211,.35), transparent 60%),
              linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  padding: 8.5rem 0 6rem;
}
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero__lines path { fill: none; stroke: #0e467d; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero__lines path:nth-child(2) { stroke: #12579a; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.75); font-weight: 600; font-size: .95rem; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 700; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--blue-400); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1rem; }
.hero__note { font-size: .9rem; color: rgba(255,255,255,.6); margin: 0; }

/* Expediente animado */
.dossier {
  margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 1.5rem 1.5rem 1.1rem; backdrop-filter: blur(4px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.dossier__head { display: flex; flex-direction: column; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px dashed rgba(255,255,255,.2); margin-bottom: 1.1rem; }
.dossier__id { font-weight: 700; font-size: 1.05rem; }
.dossier__who { font-size: .85rem; color: rgba(255,255,255,.6); }
.trail { list-style: none; margin: 0; padding: 0; position: relative; }
.trail::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: rgba(255,255,255,.15); }
.trail__step { position: relative; display: grid; grid-template-columns: 24px 1fr; column-gap: .9rem; padding: .55rem 0; }
.trail__dot { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: var(--navy-800); position: relative; z-index: 1; margin-top: 2px; }
.trail__name { font-weight: 600; }
.trail__meta { font-size: .85rem; color: rgba(255,255,255,.6); }
.trail__step.is-done .trail__dot { border-color: var(--blue-400); background: var(--blue-400); box-shadow: 0 0 0 6px rgba(66,165,255,.18); }
.trail__step.is-done .trail__dot::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px;
  border: solid var(--navy-800); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.trail__step.is-current .trail__dot { border-color: var(--blue-400); animation: pulse 1.6s ease-out infinite; }
.dossier__foot { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .8rem; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(66,165,255,.55); } 100% { box-shadow: 0 0 0 12px rgba(66,165,255,0); } }

/* Secciones */
section { scroll-margin-top: 1rem; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; }
.section-head--light h2, .section-head--light p:not(.kicker) { color: var(--white); }
.section-head--light p:not(.kicker) { color: rgba(255,255,255,.75); }
.section-head--light .kicker { color: var(--blue-400); }

/* Recorrido */
.route { padding: 6rem 0; background: var(--white); }
.route__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: s; }
.route__steps::before { content: ""; position: absolute; top: 1.15rem; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); opacity: .35; }
.route__step { position: relative; padding: 0 1.4rem 0 0; }
.route__num {
  position: relative; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue-600); color: var(--blue-600); font-weight: 700; font-size: .85rem; margin-bottom: 1.2rem;
}
.route__step:nth-child(even) { margin-top: 2.6rem; }
.route__step p { color: var(--ink-2); font-size: .98rem; }

/* Qué resuelve: lista editorial asimétrica */
.solves { padding: 6rem 0; background: var(--paper); }
.solves__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.section-head--side { position: sticky; top: 2rem; }
.solves__list { display: grid; gap: 0; }
.solve { padding: 1.8rem 0 1.6rem; border-top: 1px solid var(--line); }
.solve:last-child { border-bottom: 1px solid var(--line); }
.solve h3 { font-size: 1.35rem; }
.solve h3::before { content: ""; display: inline-block; width: .9rem; height: .9rem; margin-right: .7rem; background: var(--blue-600); clip-path: polygon(0 0, 50% 100%, 100% 0, 78% 0, 50% 58%, 22% 0); vertical-align: 0; }
.solve p { color: var(--ink-2); margin: 0; }

/* Vista del sistema */
.preview { padding: 6rem 0; background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: var(--white); }
.app { margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.app__bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #e9edf3; border-bottom: 1px solid var(--line); }
.app__bar span { width: 11px; height: 11px; border-radius: 50%; background: #c7ced8; }
.app__bar b { margin-left: .6rem; font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.app__body { display: grid; grid-template-columns: 210px 1fr; min-height: 360px; }
.app__nav { background: var(--navy-800); padding: 1.2rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.app__nav i { font-style: normal; color: rgba(255,255,255,.72); font-size: .85rem; padding: .5rem .7rem; border-radius: 8px; }
.app__nav i.is-on { background: rgba(66,165,255,.18); color: var(--white); font-weight: 600; }
.app__main { padding: 1.4rem; overflow-x: auto; }
.app__kpis { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.kpi small { display: block; color: var(--muted); font-size: .78rem; }
.kpi strong { font-size: 1.6rem; font-family: var(--font-display); }
.kpi--warn strong { color: var(--bad); }
.app__table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .88rem; min-width: 560px; }
.app__table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; background: #f8fafc; }
.app__table th, .app__table td { padding: .7rem .9rem; border-bottom: 1px solid #eaecf0; white-space: nowrap; }
.app__table td:last-child, .app__table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.app__table tbody tr:hover { background: #eef4ff; }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill--high { background: #fef3f2; color: var(--bad); }
.pill--mid { background: #fffaeb; color: var(--warn); }
.pill--low { background: #ecfdf3; color: var(--ok); }
.app figcaption { background: var(--white); color: var(--muted); font-size: .8rem; padding: .7rem 1rem; border-top: 1px solid var(--line); }

/* Descarga */
.download { padding: 6rem 0; background: var(--white); }
.download__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.download__grid > div:first-child > p:not(.kicker) { color: var(--ink-2); }
.dl-card p { color: var(--ink-2); }
.reqs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.reqs li { padding-left: 1.6rem; position: relative; }
.reqs li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--blue-600); transform: rotate(45deg); }
.dl-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; background: linear-gradient(180deg, #fbfcfe, var(--white)); box-shadow: 0 20px 50px rgba(16,24,40,.08); }
.dl-card .dl-card__ver { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dl-card .badge { background: var(--blue-100); color: var(--blue-600); border-color: #b2ddff; }
.dl-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.4rem 0; }
.dl-card__facts div { background: var(--paper); border-radius: 10px; padding: .7rem .8rem; }
.dl-card__facts dt { font-size: .75rem; color: var(--muted); }
.dl-card__facts dd { margin: 0; font-weight: 600; }
.dl-card__verify { border-top: 1px solid var(--line); padding-top: 1rem; }
.dl-card__verify summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.dl-card__verify code { word-break: break-all; }
.dl-card__verify pre { background: var(--navy-700); color: #d6e4ff; padding: .8rem 1rem; border-radius: 10px; overflow-x: auto; }
.dl-card .dl-card__warn { margin: 1.2rem 0 0; font-size: .9rem; background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; padding: .8rem 1rem; border-radius: 10px; }

/* Contacto */
.contact { padding: 5.5rem 0; background: radial-gradient(900px 400px at 15% 0%, rgba(23,92,211,.45), transparent 60%), var(--navy-800); color: var(--white); text-align: left; }
.contact__inner > * { max-width: 760px; }
.contact p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }

/* Pie */
.foot { background: var(--navy-900); color: rgba(255,255,255,.65); font-size: .9rem; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.4rem; }
.foot a { color: rgba(255,255,255,.85); }

/* Revelado al desplazarse (sólo si JS está activo y el movimiento permitido) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid, .solves__grid, .download__grid { grid-template-columns: 1fr; }
  .section-head--side { position: static; }
  .route__steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .route__steps::before { top: 0; bottom: 0; left: 1.15rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue-600), var(--blue-400)); }
  .route__step { display: grid; grid-template-columns: 3.4rem 1fr; padding: 0; margin-top: 0 !important; }
  .route__step .route__num { grid-row: span 2; }
  .app__body { grid-template-columns: 1fr; }
  .app__nav { display: none; }
}
@media (max-width: 720px) {
  .top__nav a:not(.btn) { display: none; }
  .brand img { width: 136px; }
  .hero { padding: 7rem 0 4rem; }
  .app__kpis { grid-template-columns: repeat(2, 1fr); }
  .dl-card__facts { grid-template-columns: 1fr 1fr; }
  .btn--big { font-size: 1rem; width: 100%; }
}

/* Movimiento reducido: todo visible y quieto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Páginas secundarias */
.page-min { min-height: 100vh; display: grid; align-items: center; }
.page-min h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem); }
.legal { background: var(--white); }
.legal__top { background: var(--navy-800); padding: 1.1rem 0; }
.legal__back { color: var(--white); text-decoration: none; font-weight: 600; }
.legal__body { max-width: 820px; padding: 3rem 0 5rem; }
.legal__body h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal__body h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal__body th, .legal__body td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.legal__body th { background: var(--paper); }
.legal__status { background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; }
@media (max-width: 720px) { .legal__body table { display: block; overflow-x: auto; } }
