/* TramiVPN – web de empleados (asistente de instalación para Windows).
   Un solo acento: azul TramiDeudas #03528A. Verde solo para "conectado / Activo".
   Las ilustraciones (data-ui) imitan Windows 11 y WireGuard y conservan sus propios bordes y sombras. */

:root {
  --ground: #ffffff;
  --tint: #eef5fa;
  --tint-2: #d4e6f2;
  --tint-3: #b5d3e8;
  --brand: #03528a;
  --brand-ink: #023a63;
  --ink: #0c2134;
  --ink-2: #3d5468;
  --ok: #0f7b3f;
  --ok-tint: #e2f3e8;
  --font: "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 700ms;

  /* Windows 11 */
  --w-accent: #005fb8;
  --w-accent-hover: #196ebf;
  --w-sel: #cce8ff;
  --w-sel-soft: #e5f3ff;
  --w-text: #1b1b1b;
  --w-text-2: #5d5d5d;
  --w-mica: #f3f3f3;
  --w-card: #fbfbfb;
  --w-line: #e5e5e5;
  --w-ctl: #fdfdfd;
  --w-ctl-line: #d1d1d1;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  min-width: 1100px;
}

strong { font-weight: 600; }
p { margin: 0; }
a { color: var(--brand); }
.nowrap { white-space: nowrap; }
button { font: inherit; color: inherit; }

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

.shell { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* ---------- barra superior ---------- */

.bar { background: var(--ground); }
.bar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--brand-ink); }
.mark__name { font: 700 21px/1 var(--font-display); letter-spacing: -0.02em; }
.mark__sub { font-size: 15px; font-weight: 600; color: var(--brand); background: var(--tint); padding: 3px 8px; border-radius: 4px; }
.bar__meta { font-size: 15px; color: var(--ink-2); }
.bar__meta strong { color: var(--ink); }

/* ---------- botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 4px; cursor: pointer;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-ui) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); }
.btn--primary:hover svg:last-child { transform: translateX(3px); }
.btn--primary[data-download]:hover svg, .btn--primary[data-wg-download]:hover svg { transform: translateY(2px); }
.btn--quiet { background: var(--tint); color: var(--brand-ink); }
.btn--quiet:hover { background: var(--tint-2); }
.btn--text { background: transparent; color: var(--ink-2); padding: 0 12px 0 4px; }
.btn--text:hover { color: var(--brand-ink); }
.btn--text:hover svg { transform: translateX(-3px); }

/* ---------- asistente ---------- */

.wizard { padding: 8px 0 40px; }

.notice {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--brand-ink); color: #fff;
  padding: 20px 24px; border-radius: 6px; margin-bottom: 24px;
}
.notice__icon { flex: none; width: 44px; height: 44px; color: #fff; }
.notice__icon svg { width: 44px; height: 44px; }
.notice__icon svg rect { fill: transparent; }
.notice__h { font: 600 20px/1.3 var(--font-display); margin-bottom: 4px; }
.notice p { max-width: 80ch; }

.progress { margin-bottom: 36px; }
.progress__track { height: 4px; background: var(--tint-2); border-radius: 2px; overflow: hidden; }
.progress__fill {
  display: block; height: 100%; background: var(--brand);
  transform-origin: 0 50%; transform: scaleX(0.0833);
  transition: transform 700ms var(--ease-expo);
}
.progress__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.progress__item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 12px 8px 0 0; cursor: pointer;
  font-size: 15px; color: var(--ink-2); text-align: left;
  transition: color var(--t-hover) ease;
}
.progress__item:disabled { cursor: default; color: #7f93a5; }
.progress__item:not(:disabled):hover { color: var(--brand-ink); }
.progress__mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint-2); color: #fff;
  transition: background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out);
}
.progress__mark svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.4); transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.progress__item.is-done .progress__mark { background: var(--brand); }
.progress__item.is-done .progress__mark svg { opacity: 1; transform: none; }
.progress__item.is-current { color: var(--ink); font-weight: 600; }
.progress__item.is-current .progress__mark { background: var(--ground); box-shadow: inset 0 0 0 6px var(--brand); transform: scale(1.08); }
.progress__item.is-ok .progress__mark { background: var(--ok); box-shadow: none; }
.progress__item.is-ok .progress__mark svg { opacity: 1; transform: none; }

.steps { position: relative; }
.step {
  display: grid; grid-template-columns: minmax(380px, 462px) minmax(0, 1fr);
  gap: 56px; align-items: start; margin-bottom: 64px;
}
.js .step { display: none; margin-bottom: 0; }
.js .step.is-active { display: grid; }

.step__text { display: flex; flex-direction: column; gap: 22px; padding-top: 4px; }
.step__title {
  margin: 0; font: 600 36px/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--ink);
  text-wrap: balance; outline: none;
}
.step__title--xl { font-size: 42px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 46ch; }
.fine { font-size: 15px; color: var(--ink-2); max-width: 48ch; }
.fine strong { color: var(--ink); }
.keep { background: var(--tint); padding: 14px 16px; border-radius: 4px; font-size: 16px; }

.choice { display: flex; flex-wrap: wrap; gap: 12px; }

.done-line { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.done-line__ic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.done-line__ic svg { width: 15px; height: 15px; }
.done-line:not([hidden]) { animation: rise 420ms var(--ease-out) both; }

/* Lista de pasos que se sincroniza con la ilustración */
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.how__item {
  display: flex; gap: 14px; align-items: flex-start; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 6px; background: transparent;
  text-align: left; cursor: pointer; font-size: 16px; line-height: 1.45; color: var(--ink-2);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.how__item:hover { background: var(--tint); color: var(--ink); }
.how__item.is-current { background: var(--tint); color: var(--ink); }
.how__item strong { color: var(--ink); }
.how__n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: -1px;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  background: var(--tint-2); color: var(--brand-ink);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-ui) var(--ease-out);
}
.how__item.is-current .how__n { background: var(--brand); color: #fff; transform: scale(1.06); }

.overview { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: ov; }
.overview li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; counter-increment: ov; }
.overview li::before {
  content: counter(ov); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--tint-2); color: var(--brand-ink);
}
.overview__t { font-weight: 600; }
.overview__d { color: var(--ink-2); font-size: 15px; }

/* "¿Algo no va?" */
.trouble { display: flex; flex-direction: column; gap: 10px; }
.trouble__h { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.trouble__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  background: var(--tint); color: var(--brand-ink); font-size: 15px; line-height: 1.3; text-align: left;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip:hover { background: var(--tint-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-expanded="true"] { background: var(--brand-ink); color: #fff; }
.trouble__a {
  background: var(--tint); border-radius: 6px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px; font-size: 16px;
}
.trouble__a:not([hidden]) { animation: rise 380ms var(--ease-out) both; }

.step__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; }
.step__nav--start { justify-content: flex-start; }
.step__nav--start > span:empty { display: none; }

.help { margin-top: 40px; font-size: 15px; color: var(--ink-2); }

/* Transiciones entre pasos (solo transform/opacity) */
.step.is-entering-fwd { animation: step-in-fwd 520ms var(--ease-expo) both; }
.step.is-entering-back { animation: step-in-back 520ms var(--ease-expo) both; }
.step.is-leaving-fwd { animation: step-out-fwd 200ms var(--ease-exit) both; }
.step.is-leaving-back { animation: step-out-back 200ms var(--ease-exit) both; }
.step.is-entering-fwd .stage, .step.is-entering-back .stage { animation: stage-in 700ms var(--ease-expo) 60ms both; }
.step.is-entering-fwd .step__text > *, .step.is-entering-back .step__text > * { animation: rise 520ms var(--ease-out) both; }
.step.is-entering-fwd .step__text > :nth-child(2), .step.is-entering-back .step__text > :nth-child(2) { animation-delay: 60ms; }
.step.is-entering-fwd .step__text > :nth-child(3), .step.is-entering-back .step__text > :nth-child(3) { animation-delay: 120ms; }
.step.is-entering-fwd .step__text > :nth-child(n+4), .step.is-entering-back .step__text > :nth-child(n+4) { animation-delay: 180ms; }

@keyframes step-in-fwd { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes step-out-fwd { to { opacity: 0; transform: translateX(-24px); } }
@keyframes step-out-back { to { opacity: 0; transform: translateX(24px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- escenario de ilustraciones ---------- */

.stage { margin: 0; min-width: 0; }
.stage__screen {
  position: relative; overflow: hidden; border-radius: 10px;
  background: var(--tint); aspect-ratio: 860 / 540;
}
.stage__canvas {
  position: absolute; left: 0; top: 0; width: 860px; height: 540px;
  transform-origin: 0 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color: var(--w-text); font-size: 12px; line-height: 1.35;
  -webkit-user-select: none; user-select: none;
}
.stage__cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding-top: 12px; }
.stage__label { font-size: 15px; color: var(--ink-2); }
.stage__ctl { display: flex; align-items: center; gap: 14px; }
.stage__dots { display: flex; gap: 6px; }
.stage__dot { width: 36px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.stage__dot i { display: block; height: 5px; border-radius: 3px; background: var(--tint-2); overflow: hidden; position: relative; transition: background-color var(--t-hover) ease; }
.stage__dot:hover i { background: var(--tint-3); }
.stage__dot i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }
.stage__dot.is-seen i::after { transform: scaleX(1); }
.stage__dot.is-current i::after { transform: scaleX(1); }
.stage__dot.is-current.is-timing i::after { animation: dot-fill var(--hold, 2400ms) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage__play {
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--tint); color: var(--brand-ink);
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.stage__play:hover { background: var(--tint-2); }
.stage__play:active { transform: scale(0.92); }
.stage__play svg { width: 14px; height: 14px; grid-area: 1 / 1; }
.stage__play svg:last-child { display: none; }
.stage__play.is-paused svg:first-child { display: none; }
.stage__play.is-paused svg:last-child { display: block; }

.frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.frame.is-active { opacity: 1; visibility: visible; }
.frame.is-in { animation: frame-in 520ms var(--ease-out) both; }
.frame.is-out { visibility: visible; animation: frame-out 220ms var(--ease-exit) both; }
@keyframes frame-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes frame-out { from { opacity: 1; } to { opacity: 0; } }

/* Cursor animado y onda de clic */
.cursor {
  position: absolute; left: 0; top: 0; width: 20px; height: 30px; z-index: 50;
  pointer-events: none; opacity: 0; transform: translate(700px, 470px);
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
}
.cursor svg { width: 20px; height: 30px; display: block; transform-origin: 2px 2px; transition: transform 110ms var(--ease-out); }
.cursor.is-down svg { transform: scale(0.86); }
.ripple {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; z-index: 49;
  background: rgba(3, 82, 138, 0.28); pointer-events: none; opacity: 0;
}

/* Elemento que hay que pulsar: anillo que late */
[data-target] { position: relative; }
[data-target].is-hot { z-index: 3; }
[data-target].is-hot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 8px; pointer-events: none;
  border: 2.5px solid var(--brand);
  animation: ring 1500ms var(--ease-out) infinite;
}
[data-target].is-hot::before {
  content: ""; position: absolute; inset: -6px; border-radius: 8px; pointer-events: none;
  border: 2.5px solid var(--brand);
}
@keyframes ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18, 1.45); } }
[data-target].is-press { transform: scale(0.97); transition: transform 120ms var(--ease-out); }

/* ---------- Windows 11: piezas comunes ---------- */

.w-win {
  position: absolute; background: var(--w-mica); border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 16px 40px rgba(2, 40, 70, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden; display: flex; flex-direction: column;
}
.w-titlebar { flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 12px; background: var(--w-mica); }
.w-titleicon { width: 16px; height: 16px; display: grid; }
.w-titleicon svg { width: 16px; height: 16px; }
.w-title { flex: 1; font-size: 12px; color: var(--w-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-caps { display: flex; align-self: stretch; }
.w-cap { width: 46px; display: grid; place-items: center; color: #333; }
.w-cap svg { width: 10px; height: 10px; }
.w-cap--close { color: #333; }

.w-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 32px; padding: 0 14px;
  border-radius: 4px; background: var(--w-ctl); color: var(--w-text); font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.w-btn--accent { background: var(--w-accent); color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.3); }
/* Botón Win32 (WireGuard) */
.w-wbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; font-size: 12px;
  background: #fdfdfd; color: var(--w-text); border-radius: 3px;
  box-shadow: inset 0 0 0 1px #d0d0d0, inset 0 -1px 0 #c4c4c4; white-space: nowrap;
}
.w-wbtn svg { width: 12px; height: 12px; }
.w-wbtn.is-pressed { background: #f0f0f0; }
.w-field { display: flex; align-items: center; height: 28px; padding: 0 10px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px #e0e0e0, inset 0 -1px 0 #868686; font-size: 12px; white-space: nowrap; overflow: hidden; }
.w-field svg { width: 10px; height: 10px; margin-left: auto; }

/* Barra de tareas */
.w-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: 20;
  background: #eef1f4; box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; justify-content: center;
}
.w-tb-apps { display: flex; gap: 4px; align-items: center; }
.w-tb-app { position: relative; width: 36px; height: 34px; border-radius: 4px; display: grid; place-items: center; }
.w-tb-app svg { width: 22px; height: 22px; }
.w-tb-app.is-open { background: rgba(255, 255, 255, 0.7); }
.w-tb-app.is-open::after { content: ""; position: absolute; bottom: 1px; left: 50%; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: #858585; }
.w-tb-search { display: flex; align-items: center; gap: 8px; width: 148px; height: 30px; padding: 0 10px; margin: 0 4px; border-radius: 15px; background: #fff; color: #555; font-size: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.w-tb-search svg { width: 14px; height: 14px; }
.w-tb-tray { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; color: #222; }
.w-tb-ic { width: 24px; height: 30px; display: grid; place-items: center; position: relative; }
.w-tb-ic svg { width: 14px; height: 14px; }
.w-tb-wg svg { width: 16px; height: 16px; }
.w-tb-wgdot { position: absolute; right: 2px; bottom: 6px; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 1.5px #eef1f4; }
.w-tb-clock { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; line-height: 1.25; padding: 0 6px 0 8px; }

/* Posiciones de ventanas en el lienzo de 860×540 */
.w-wg { left: 110px; top: 30px; width: 640px; height: 420px; }
.w-browser { left: 34px; top: 20px; width: 792px; height: 452px; background: #f7f7f7; }
.w-explorer { left: 84px; top: 36px; width: 692px; height: 420px; }
.w-picker { left: 196px; top: 82px; width: 610px; height: 392px; z-index: 5; }
.w-behind .w-wg { opacity: 1; }

/* ---------- Navegador ---------- */
.w-br-tabs { height: 38px; display: flex; align-items: flex-end; padding-left: 8px; background: #e8ebee; }
.w-br-tab { display: flex; align-items: center; gap: 8px; width: 240px; height: 32px; padding: 0 10px; background: #f7f7f7; border-radius: 8px 8px 0 0; font-size: 12px; }
.w-br-tab > span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-br-fav { width: 14px; height: 14px; border-radius: 3px; background: var(--brand); }
.w-br-x svg { width: 9px; height: 9px; }
.w-br-x path { stroke: #444; stroke-width: 1.6; }
.w-br-plus { width: 30px; height: 32px; display: grid; place-items: center; font-size: 18px; color: #444; }
.w-br-tabs .w-caps { margin-left: auto; align-self: flex-start; height: 32px; }
.w-br-bar { height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #f7f7f7; box-shadow: 0 1px 0 #e3e3e3; }
.w-br-nav { width: 30px; height: 30px; display: grid; place-items: center; color: #333; border-radius: 4px; }
.w-br-nav svg { width: 15px; height: 15px; }
.w-br-nav.is-off { color: #b5b5b5; }
.w-br-url { flex: 1; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 15px; background: #fff; font-size: 13px; color: #222; margin: 0 6px; box-shadow: inset 0 0 0 1px #e2e2e2; }
.w-br-url svg { width: 13px; height: 13px; color: #555; }
.w-br-star { margin-left: auto; display: grid; }
.w-br-dlbtn { background: #e6eef5; color: var(--w-accent); }
.w-br-page { position: relative; height: calc(100% - 78px); background: #fff; padding: 22px 34px; }
.w-br-site { font-size: 15px; color: var(--brand-ink); }
.w-br-site strong { font-weight: 700; }
.w-br-site span { font-size: 11px; font-weight: 600; background: var(--tint); color: var(--brand); padding: 2px 6px; border-radius: 3px; margin-left: 4px; }
.w-br-hero { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 340px; }
.w-br-h { font: 600 26px/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.w-br-p { font-size: 13px; color: var(--ink-2); }
.w-br-btn { margin-top: 8px; display: inline-flex; align-items: center; height: 38px; padding: 0 18px; background: var(--brand); color: #fff; border-radius: 4px; font-size: 14px; font-weight: 600; }

.w-br-flyout {
  position: absolute; right: 54px; top: 74px; width: 340px; z-index: 4;
  background: #fff; border-radius: 8px; padding: 10px 6px 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: 90% 0;
  transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out);
}
.frame.is-done-1 .w-br-flyout, .frame.is-uac .w-br-flyout { opacity: 1; transform: none; }
.w-fly-head { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 8px; font-size: 14px; font-weight: 600; }
.w-fly-icons { display: flex; gap: 10px; color: #444; }
.w-fly-icons svg { width: 14px; height: 14px; }
.w-fly-item { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 4px; background: #f5f5f5; }
.w-fly-ico svg { width: 30px; height: 30px; display: block; }
.w-fly-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w-fly-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-fly-link { font-size: 12px; color: var(--w-accent); text-decoration: underline; }
.w-fly-meta { font-size: 12px; color: var(--w-text-2); }

/* ---------- UAC ---------- */
.w-scrim { position: absolute; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.42); }
.w-uac {
  position: absolute; z-index: 31; left: 205px; top: 92px; width: 450px;
  background: #fafafa; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: uac-in 420ms var(--ease-out) both;
}
.frame:not(.is-active) .w-uac { animation: none; }
.frame.is-uac.is-active .w-uac { animation: uac-in 420ms var(--ease-out) 120ms both; }
@keyframes uac-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.w-uac-top { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.w-uac-kicker { font-size: 12px; color: #333; }
.w-uac-q { font: 600 20px/1.25 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: #111; }
.w-uac-app { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 15px; font-weight: 600; }
.w-uac-ico svg { width: 36px; height: 36px; display: block; }
.w-uac-meta { font-size: 13px; color: #333; line-height: 1.55; }
.w-uac-more { font-size: 13px; color: var(--w-accent); }
.w-uac-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 22px 24px; background: #f0f0f0; box-shadow: 0 -1px 0 #e3e3e3; }
.w-uac-btns .w-btn { min-width: 0; }

/* ---------- Explorador / selector de archivos ---------- */
.w-ex-cmd { flex: none; height: 42px; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--w-mica); }
.w-ex-nav { width: 28px; height: 28px; display: grid; place-items: center; color: #333; }
.w-ex-nav svg { width: 14px; height: 14px; }
.w-ex-nav.is-off { color: #b8b8b8; }
.w-addr { flex: 1; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; margin: 0 6px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #e3e3e3; font-size: 12px; }
.w-addr svg { width: 14px; height: 14px; }
.w-crumb { color: #777; }
.w-searchbox { display: flex; align-items: center; justify-content: space-between; width: 190px; height: 30px; padding: 0 10px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #e3e3e3; color: #777; font-size: 12px; }
.w-searchbox svg { width: 13px; height: 13px; }
.w-ex-tools { flex: none; height: 38px; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: var(--w-mica); box-shadow: 0 1px 0 #e5e5e5; font-size: 12px; }
.w-ex-tools svg { width: 9px; height: 9px; margin-left: 3px; }
.w-ex-new { display: flex; align-items: center; gap: 6px; }
.w-ex-plus svg { width: 12px; height: 12px; margin: 0; }
.w-ex-sep { width: 1px; height: 18px; background: #dadada; }
.w-ex-main { flex: 1; display: flex; min-height: 0; background: #fff; }
.w-navpane { flex: none; width: 150px; padding: 8px 6px; display: flex; flex-direction: column; gap: 1px; background: var(--w-mica); }
.w-nav-item { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.w-nav-item svg { width: 15px; height: 15px; flex: none; }
.w-nav-item.is-sel { background: #e0e0e0; }
.w-nav-gap { height: 6px; }
.w-ex-files { flex: 1; min-width: 0; padding: 4px 8px; }
.w-ex-head, .w-ex-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 92px 54px; align-items: center; gap: 8px; }
.w-picker .w-ex-head, .w-picker .w-ex-row { grid-template-columns: minmax(0, 1fr) 100px 80px 36px; }
.w-ex-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-ex-head { height: 28px; padding: 0 8px; font-size: 12px; color: #555; box-shadow: 0 1px 0 #ececec; }
.w-ex-head span + span { box-shadow: -1px 0 0 #ececec; padding-left: 8px; }
.w-ex-group { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px; font-size: 12px; color: #1a4e8a; }
.w-ex-group svg { width: 10px; height: 10px; }
.w-ex-row { height: 28px; padding: 0 8px; border-radius: 4px; font-size: 12px; color: #333; }
.w-ex-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-ex-row > span:nth-child(n+2) { color: #6a6a6a; padding-left: 8px; }
.w-ex-name { display: flex; align-items: center; gap: 8px; color: var(--w-text); }
.w-ex-name svg { width: 18px; height: 18px; flex: none; }
.w-ex-fn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-ex-row.is-target-row { background: var(--w-sel); }
.w-ex-status { flex: none; height: 24px; padding: 0 14px; display: flex; align-items: center; font-size: 11px; color: #555; background: #fff; }

.w-pick-row { transition: background-color 160ms ease; }
.frame.is-done-1 .w-pick-row { background: var(--w-sel); }
.w-pick-foot { flex: none; display: grid; grid-template-columns: auto 1fr 236px; grid-template-rows: auto auto; gap: 10px 10px; align-items: center; padding: 12px 14px 14px; background: var(--w-mica); box-shadow: 0 -1px 0 #e5e5e5; }
.w-pick-label { font-size: 12px; }
.w-pick-name { position: relative; }
.w-pick-filled { opacity: 0; transition: opacity 160ms ease; }
.frame.is-done-1 .w-pick-filled { opacity: 1; }
.w-pick-filter { grid-column: 3; }
.w-pick-btns { grid-column: 2 / 4; display: flex; justify-content: flex-end; gap: 8px; }
.w-pick-btns .w-btn { min-width: 112px; height: 30px; font-size: 13px; }

/* ---------- WireGuard ---------- */
.w-wg { background: #f0f0f0; }
.w-wg .w-titlebar { background: #f3f3f3; }
.w-wg-tabs { flex: none; display: flex; gap: 0; padding: 6px 10px 0; background: #f0f0f0; }
.w-wg-tab { height: 24px; padding: 0 12px; display: flex; align-items: center; font-size: 12px; border-radius: 3px 3px 0 0; color: #333; }
.w-wg-tab.is-sel { background: #fff; box-shadow: inset 1px 0 0 #d9d9d9, inset -1px 0 0 #d9d9d9, inset 0 1px 0 #d9d9d9; position: relative; z-index: 1; }
.w-wg-page { flex: 1; min-height: 0; display: flex; gap: 10px; margin: 0 10px 10px; padding: 10px; background: #fff; box-shadow: inset 0 0 0 1px #d9d9d9; }
.w-wg-left { position: relative; flex: none; width: 196px; display: flex; flex-direction: column; gap: 6px; }
.w-wg-list { flex: 1; background: #fff; box-shadow: inset 0 0 0 1px #c8c8c8; padding: 2px; }
.w-wg-item { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 6px; font-size: 12px; }
.w-wg-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-wg-item.is-sel { background: var(--w-sel); box-shadow: inset 0 0 0 1px #99d1ff; }
.w-wg-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #b5b5b5; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.w-wg-dot.is-on { background: #16a34a; }
.w-wg-toolbar { flex: none; display: flex; gap: 4px; }
.w-wg-add { padding: 0 0 0 8px; gap: 5px; }
.w-wg-split { display: grid; place-items: center; height: 100%; padding: 0 6px; margin-left: 4px; box-shadow: inset 1px 0 0 #d0d0d0; }
.w-wg-split svg { width: 9px; height: 9px; }
.w-wg-ib { padding: 0 7px; }
.w-wg-detail { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.w-group { position: relative; padding: 14px 10px 8px; box-shadow: inset 0 0 0 1px #dcdcdc; border-radius: 3px; margin-top: 6px; display: flex; flex-direction: column; gap: 5px; }
.w-group-label { position: absolute; left: 8px; top: -8px; padding: 0 4px; background: #fff; font-size: 12px; color: #1b1b1b; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-kv { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; min-height: 20px; font-size: 12px; }
.w-kv > span:first-child { text-align: right; padding-right: 8px; color: #1b1b1b; }
.w-kv > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-self: start; max-width: 100%; }
.w-kv > span.w-wg-statebox, .w-kv > span.w-swap, .w-kv > span.w-wbtn { overflow: visible; }
.w-wg-state { display: inline-flex; align-items: center; gap: 6px; }
.w-wg-statebox { display: inline-flex; padding: 1px 4px; border-radius: 3px; }
.w-wg-edit { position: absolute; right: 0; bottom: 0; }
.w-wg-empty { flex: 1; display: grid; place-items: center; }
.w-wg-bigbtn { height: 40px; padding: 0 22px; font-size: 13px; }
.w-menu {
  position: absolute; left: 0; bottom: 34px; width: 230px; z-index: 4;
  background: #f9f9f9; border-radius: 6px; padding: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column; gap: 2px;
  animation: rise 280ms var(--ease-out) both;
}
.w-menu-item { height: 28px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; font-size: 12px; }
.w-menu-item.is-hot-item { background: #ebebeb; }

/* Activar → Activo dentro del mismo fotograma */
.w-swap { display: inline-grid; justify-self: start; }
.w-swap > span { grid-area: 1 / 1; transition: opacity 220ms ease; display: inline-flex; }
.w-swap-b { opacity: 0; }
.frame.is-done-1 .w-swap-a { opacity: 0; }
.frame.is-done-1 .w-swap-b { opacity: 1; transition-delay: 380ms; }
.frame.is-done-1 .w-swap-dot { background: #16a34a; transition: background-color 220ms ease 380ms; }
.w-wg-state.is-on { color: var(--w-text); }

/* ---------- Comprobación: ruta Tu PC → Servidor → CRM ---------- */

.route-stage { background: var(--tint); border-radius: 10px; aspect-ratio: 860 / 540; display: grid; place-items: center; padding: 40px; }
.route { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.route__lane { width: 100%; display: grid; grid-template-columns: 172px 1fr 172px 1fr 172px; align-items: start; }
.node { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: opacity 400ms ease; }
.node__icon { position: relative; width: 108px; height: 108px; border-radius: 50%; background: #fff; color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 8px; transition: transform 500ms var(--ease-out); }
.node__icon svg { width: 54px; height: 54px; }
.node__name { font-weight: 600; font-size: 16px; color: var(--ink); }
.node__sub { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.node__badge { position: absolute; right: -2px; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--tint); opacity: 0; transform: scale(0.3); transition: opacity 260ms ease, transform 420ms var(--ease-out); }
.node__badge svg { width: 18px; height: 18px; }

.link { position: relative; height: 6px; margin: 51px -6px 0; }
.link__bar { position: absolute; inset: 0; border-radius: 3px; background: var(--tint-2); overflow: hidden; }
.link__break { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; color: var(--brand-ink); display: grid; place-items: center; opacity: 0; transform: scale(0.5); transition: opacity 240ms ease, transform 360ms var(--ease-out); }
.link__break svg { width: 16px; height: 16px; }
[data-check].is-off .link__break { opacity: 1; transform: none; }
.link__fill { position: absolute; inset: 0; background: var(--ok); transform-origin: 0 50%; transform: scaleX(0); transition: transform 700ms var(--ease-in-out); }
.link--b .link__fill { transition-delay: 600ms; }
.link__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--brand); border-radius: 3px; opacity: 0; transform: translateX(-100%); }
.link__flow { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease 1300ms; }
.link__flow i { position: absolute; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: flow 2400ms linear infinite; }
.link__flow i:nth-child(2) { animation-delay: -800ms; }
.link__flow i:nth-child(3) { animation-delay: -1600ms; }
@keyframes flow { from { transform: translateX(-10px); } to { transform: translateX(var(--flow-w, 160px)); } }

.route__status { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.route__seal { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.route__spin { position: absolute; inset: 8px; border-radius: 50%; border: 4px solid var(--tint-2); border-top-color: var(--brand); animation: spin 900ms linear infinite; }
.route__check { position: absolute; inset: 0; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(0.4); }
.route__check svg { width: 34px; height: 34px; }
.route__burst { position: absolute; inset: 0; }
.route__burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--ok); opacity: 0; }
.route__burst i:nth-child(even) { background: var(--brand); width: 6px; height: 6px; margin: -3px; }
.route__words { display: flex; flex-direction: column; gap: 4px; }
.route__title { font: 600 28px/1.18 var(--font-display); letter-spacing: -0.02em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
.route__sub { font-size: 16px; color: var(--ink-2); max-width: 46ch; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Estados */
[data-check].is-checking .link--a .link__scan { animation: scan 1600ms var(--ease-in-out) infinite; opacity: 1; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
[data-check].is-off .route__spin { animation-duration: 2200ms; border-top-color: var(--brand-ink); }
[data-check].is-error .route__spin, [data-check].is-unknown .route__spin { animation: none; border-color: var(--tint-3); }
[data-check].is-off .node--srv, [data-check].is-off .node--apps { opacity: 0.55; }
[data-check].is-ok .route__spin { opacity: 0; animation: none; transition: opacity 200ms ease; }
[data-check].is-ok .link__fill { transform: scaleX(1); }
[data-check].is-ok .link__flow { opacity: 1; }
[data-check].is-ok .node--srv .node__badge { opacity: 1; transform: none; transition-delay: 700ms; }
[data-check].is-ok .node--apps .node__badge { opacity: 1; transform: none; transition-delay: 1300ms; }
[data-check].is-ok .node--pc .node__icon { transform: scale(1.04); }
[data-check].is-ok .route__check { animation: pop 620ms var(--ease-out) 1300ms both; }
[data-check].is-ok .route__burst i { animation: burst 900ms var(--ease-out) 1450ms both; }
[data-check].is-ok .route__burst i:nth-child(1) { --bx: 0px; --by: -46px; }
[data-check].is-ok .route__burst i:nth-child(2) { --bx: 33px; --by: -33px; }
[data-check].is-ok .route__burst i:nth-child(3) { --bx: 46px; --by: 0px; }
[data-check].is-ok .route__burst i:nth-child(4) { --bx: 33px; --by: 33px; }
[data-check].is-ok .route__burst i:nth-child(5) { --bx: 0px; --by: 46px; }
[data-check].is-ok .route__burst i:nth-child(6) { --bx: -33px; --by: 33px; }
[data-check].is-ok .route__burst i:nth-child(7) { --bx: -46px; --by: 0px; }
[data-check].is-ok .route__burst i:nth-child(8) { --bx: -33px; --by: -33px; }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes burst { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1); } }
[data-check].is-ok .route__words { animation: rise 600ms var(--ease-out) 1300ms both; }

.check-box { background: var(--tint); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; transition: background-color 400ms ease; }
.check-box__msg { font-size: 16px; }
.check-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.check-box__actions .btn { min-height: 42px; }
.check-box .btn--quiet { background: #fff; }
.check-box .btn--quiet:hover { background: var(--tint-2); }
[data-check].is-ok .check-box { background: var(--ok-tint); }
[data-check].is-ok [data-when-off] { display: none; }
.check-box__msg strong { font-variant-numeric: tabular-nums; }

.stage--route .stage__cap { justify-content: flex-start; }
.route-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.route-fig__cap { font-size: 15px; color: var(--ink-2); }

/* ---------- inicio / enlace no válido / sencilla ---------- */

.split { display: grid; grid-template-columns: minmax(380px, 500px) minmax(0, 1fr); gap: 64px; align-items: center; padding: 48px 0 64px; min-height: calc(100vh - 64px); }
.split__text { display: flex; flex-direction: column; gap: 22px; }
.display { margin: 0; font: 600 52px/1.04 var(--font-display); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.display--m { font-size: 44px; }
.body-l { font-size: 17px; max-width: 48ch; }
.plain-steps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.plain-steps li::marker { color: var(--brand); font-weight: 600; }
.advice { display: flex; flex-direction: column; gap: 16px; }
.advice__item { display: flex; flex-direction: column; gap: 4px; }
.advice__h { font-weight: 600; font-size: 18px; }
.simple { padding: 96px 0; max-width: 640px; display: flex; flex-direction: column; gap: 22px; }

.split .split__text > * { animation: rise 600ms var(--ease-out) both; }
.split .split__text > :nth-child(2) { animation-delay: 70ms; }
.split .split__text > :nth-child(3) { animation-delay: 140ms; }
.split .split__text > :nth-child(n+4) { animation-delay: 210ms; }
.split .split__fig { animation: stage-in 800ms var(--ease-expo) 120ms both; }

/* ---------- movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  [data-target].is-hot::after { display: none; }
  .route__spin { border-top-color: var(--tint-3); }
  .link__flow { display: none; }
  .route__burst { display: none; }
  [data-check].is-ok .route__check { opacity: 1; transform: none; }
}
