/* =====================================================================
   NIX Arc — Servicio: Sistemas web
   Concepto: una operación dispersa que se convierte en una herramienta
   organizada. Planos rectangulares, capas de interfaz y alineaciones;
   sin nodos, cuerdas ni órbitas. Reutiliza tokens y sistemas globales.
   Prefijo de página: .sw-
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 0. BASE DE PÁGINA                                                   */
/* ------------------------------------------------------------------ */
.sw-shell {
  width: min(100%, var(--container-wide));
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

.sw-section {
  position: relative;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}

.sw-kicker {
  margin: 0 0 1.3rem;
  color: var(--violet-bright);
  font-family: var(--font-display);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.sw-lead {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 56ch;
  margin-top: 1.3rem;
}

.sw-section h2 { font-size: var(--fs-h2); max-width: 24ch; }

.sw-note {
  margin-top: 1rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  max-width: 60ch;
}

/* El reveal es global: styles.css sección 16. */

/* ------------------------------------------------------------------ */
/* 1. ÁTOMOS DE INTERFAZ DE LA PÁGINA                                  */
/* ------------------------------------------------------------------ */
.sw-mark {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.7rem;
  font-style: normal;
  color: var(--on-violet);
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: 0 4px 12px -5px var(--violet-glow);
}

.sw-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.66rem; font-weight: 600;
  color: var(--on-violet);
  background: linear-gradient(120deg, var(--violet), var(--violet-deep));
  border-radius: var(--r-pill);
  padding: 0.45em 1.1em;
  white-space: nowrap;
  width: fit-content;
}

.sw-chip {
  font-family: var(--font-display);
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-style: normal;
  color: var(--violet-bright);
  border: 1px solid rgba(132, 18, 241, 0.35);
  border-radius: var(--r-pill);
  padding: 0.3em 0.75em;
  white-space: nowrap;
}

.sw-state {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-display);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  font-style: normal; white-space: nowrap;
  border-radius: var(--r-pill);
  padding: 0.3em 0.75em;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.sw-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.sw-state--on   { color: var(--violet-bright); border-color: rgba(168, 85, 255, 0.4); background: rgba(132, 18, 241, 0.1); }
.sw-state--ok   { color: #7ee2a1; border-color: rgba(126, 226, 161, 0.35); background: rgba(74, 222, 128, 0.08); }
.sw-state--wait { color: #f5c563; border-color: rgba(245, 197, 99, 0.35); background: rgba(251, 191, 36, 0.08); }
.sw-state--off  { color: #f79a9a; border-color: rgba(247, 154, 154, 0.35); background: rgba(248, 113, 113, 0.08); }

.sw-page .ava,
.sw-page i.ava {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  font-style: normal;
  font-family: var(--font-display); font-size: 0.5rem; font-weight: 600;
  color: var(--on-violet);
  background: linear-gradient(135deg, rgba(168, 85, 255, 0.85), rgba(90, 13, 184, 0.85));
}

/* ------------------------------------------------------------------ */
/* 2. HERO                                                             */
/* ------------------------------------------------------------------ */
.sw-hero { position: relative; overflow: hidden; }
.sw-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
}

.sw-breadcrumbs { margin-bottom: 1.4rem; }
.sw-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.sw-breadcrumbs li {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; color: var(--text-faint);
}
.sw-breadcrumbs li + li::before { content: "/"; opacity: 0.5; }
.sw-breadcrumbs a { color: var(--text-muted); transition: color var(--dur-1) var(--ease); }
.sw-breadcrumbs a:hover { color: var(--text); }

.sw-hero__title {
  font-size: var(--fs-hero);
  max-width: 20ch;
}
.sw-hero__lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 50ch;
  margin: 1.6rem 0 2.2rem;
}
.sw-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Escena: piezas dispersas que se alinean junto a la interfaz central */
.sw-hero__visual { min-width: 0; }
.sw-hero-scene {
  position: relative;
  aspect-ratio: 10 / 8;
  max-width: 620px;
  margin-left: auto;
}
.sw-hero-scene::before {
  content: "";
  position: absolute; inset: 10% -4% 0 6%;
  background:
    radial-gradient(46% 44% at 58% 46%, rgba(132, 18, 241, 0.2), transparent 72%),
    radial-gradient(28% 26% at 18% 78%, rgba(168, 85, 255, 0.1), transparent 75%);
  filter: blur(16px);
}

/* Piezas sueltas */
.sw-frag {
  position: absolute;
  z-index: 3;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 40%),
    rgba(17, 16, 27, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -20px rgba(0, 0, 0, 0.85);
  padding: 0.6rem 0.75rem;
}
.sw-frag small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.52rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.sw-frag--msg { left: 0; top: 4%; width: 38%; transform: rotate(-2.5deg); }
.sw-frag--msg .bub {
  display: block; font-style: normal;
  font-size: 0.66rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px 9px 9px 3px;
  padding: 0.35rem 0.55rem;
}
.sw-frag--task { right: 4%; top: 0; width: 34%; transform: rotate(2deg); }
.sw-frag--task span { display: flex; align-items: center; gap: 6px; font-size: 0.66rem; color: var(--text-muted); }
.sw-frag--task span i { width: 11px; height: 11px; flex: none; border-radius: 4px; border: 1px solid var(--border-strong); }
.sw-frag--date { left: 2%; bottom: 22%; transform: rotate(1.6deg); }
.sw-frag--date b { font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; color: #f5c563; }
.sw-frag--state { right: 0; top: 34%; padding: 0.5rem 0.6rem; transform: rotate(-2deg); }
.sw-frag--state small { display: none; }
.sw-frag--record { right: 3%; bottom: 4%; width: 30%; transform: rotate(-1.4deg); }
.sw-frag--record .rows i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin-bottom: 5px; }
.sw-frag--record .rows i:last-child { width: 66%; margin-bottom: 0; }

/* Interfaz central */
.sw-hero-core {
  position: absolute;
  z-index: 2;
  inset: 16% 10% 14% 12%;
  display: flex;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(26, 22, 42, 0.97), rgba(11, 11, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 46px 90px -38px rgba(0, 0, 0, 0.92);
  overflow: hidden;
}
.sw-hero-core__side {
  width: 17%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6% 0;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.sw-hero-core__side i { width: 42%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.sw-hero-core__side i.on { background: var(--violet-bright); box-shadow: 0 0 8px -1px var(--violet-glow); }
.sw-hero-core__body { flex: 1; min-width: 0; padding: 4.5% 5%; display: flex; flex-direction: column; gap: 3.5%; }
.sw-hero-core__body > header { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 1%; }
.sw-hero-core__body > header small {
  display: block;
  font-family: var(--font-display); font-size: 0.52rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.sw-hero-core__body > header b { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: var(--text); }
.sw-hero-core__row {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  border-radius: 9px;
  padding: 0 3.5%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 0;
}
.sw-hero-core__row span { flex: 1; min-width: 0; font-size: 0.66rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-hero-core__body > footer { padding-top: 2%; }
.sw-hero-core__hint { font-size: 0.6rem; color: var(--text-faint); }

/* Piezas que se acomodan al entrar (solo con motion-ready) */
html.motion-ready .sw-hero__visual.is-visible .sw-hero-core { animation: sw-settle 0.9s var(--ease) both; }
html.motion-ready .sw-hero__visual.is-visible .sw-frag--msg { animation: sw-frag-in 1s var(--ease) 0.25s both; }
html.motion-ready .sw-hero__visual.is-visible .sw-frag--task { animation: sw-frag-in 1s var(--ease) 0.35s both; }
html.motion-ready .sw-hero__visual.is-visible .sw-frag--date { animation: sw-frag-in 1s var(--ease) 0.45s both; }
html.motion-ready .sw-hero__visual.is-visible .sw-frag--state { animation: sw-frag-in 1s var(--ease) 0.55s both; }
html.motion-ready .sw-hero__visual.is-visible .sw-frag--record { animation: sw-frag-in 1s var(--ease) 0.65s both; }
@keyframes sw-settle {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes sw-frag-in {
  from { opacity: 0; transform: translate3d(-14px, 10px, 0) rotate(0deg); }
}

/* Deriva lateral muy suave de las piezas (pausada con reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .sw-frag--msg { animation: sw-drift 9s ease-in-out infinite alternate; }
  .sw-frag--task { animation: sw-drift 11s ease-in-out infinite alternate-reverse; }
  .sw-frag--record { animation: sw-drift 10s ease-in-out infinite alternate; }
}
@keyframes sw-drift {
  from { translate: 0 0; }
  to { translate: 6px -5px; }
}

.sw-hero__note { text-align: right; }

/* ------------------------------------------------------------------ */
/* 3. QUÉ ES UN SISTEMA WEB                                            */
/* ------------------------------------------------------------------ */
.sw-what__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.sw-what__extra { margin-top: 1.2rem; color: var(--text-muted); font-size: 1rem; max-width: 54ch; }

.sw-adapt {
  position: relative;
  min-height: 340px;
}
.sw-adapt__generic,
.sw-adapt__fitted {
  position: absolute;
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.sw-adapt__generic {
  inset: 0 26% 14% 0;
  border: 1px dashed var(--border-strong);
  background: rgba(12, 12, 19, 0.6);
  opacity: 0.75;
}
.sw-adapt__fitted {
  inset: 18% 0 0 30%;
  border: 1px solid rgba(132, 18, 241, 0.45);
  background: linear-gradient(160deg, rgba(28, 22, 46, 0.97), rgba(12, 12, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 36px 76px -34px rgba(0, 0, 0, 0.9), 0 0 40px -22px var(--violet-glow);
}
.sw-adapt__generic > small,
.sw-adapt__fitted > small {
  font-family: var(--font-display);
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.sw-adapt__generic > small { color: var(--text-faint); }
.sw-adapt__fitted > small { color: var(--violet-bright); }
.sw-adapt__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.sw-adapt__head b { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; }

.sw-adapt__field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.sw-adapt__field span { display: block; width: 34%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.sw-adapt__field span.w2 { width: 24%; }
.sw-adapt__field i { display: block; height: 22px; border-radius: 7px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.035); }
.sw-adapt__field i.w3 { width: 55%; }
.sw-adapt__field.is-extra { opacity: 0.55; }
.sw-adapt__field.is-extra em {
  position: absolute; right: 0; top: 0;
  font-style: normal; font-size: 0.6rem; color: var(--text-faint);
  border: 1px dashed var(--border-strong); border-radius: var(--r-pill);
  padding: 0.15em 0.5em;
}
.sw-adapt__field.is-clear span {
  width: auto; height: auto; background: none;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}
.sw-adapt__fitted .sw-cta { margin-top: 0.3rem; }

/* ------------------------------------------------------------------ */
/* 4. SEÑALES — escena desordenada + lista editorial                   */
/* ------------------------------------------------------------------ */
.sw-signals__head { max-width: 62ch; }

.sw-mess {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(10, 10, 17, 0.6);
  overflow: hidden;
  padding: 3rem 1rem 1rem;
}
.sw-mess__label {
  position: absolute; top: 1rem; left: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.sw-mess__frag {
  position: absolute;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 17, 28, 0.94);
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.85);
  padding: 0.65rem 0.8rem;
  transform: rotate(var(--r, 0deg));
  max-width: 30%;
}
.sw-mess__frag small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.54rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.45rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sw-mess__frag i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); margin-bottom: 5px; }
.sw-mess__frag i.dup { background: rgba(245, 197, 99, 0.3); border: 1px dashed rgba(245, 197, 99, 0.5); }
.sw-mess__frag em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  color: #f5c563;
  margin-top: 0.35rem;
}
.sw-mess__frag em.late { color: #f79a9a; }
.sw-mess__frag .bub {
  display: block; font-style: normal;
  height: auto; font-size: 0.66rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px 9px 9px 3px;
  padding: 0.35rem 0.55rem;
}
.sw-mess__frag b { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: var(--text); }
.sw-mess__frag span { display: flex; align-items: center; gap: 6px; }
.sw-mess__frag span b { display: block; flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.sw-mess__frag .rows i:last-child { width: 60%; margin-bottom: 0; }

.sw-mess__frag--sheet { left: 3%; top: 16%; width: 26%; }
.sw-mess__frag--msg { left: 32%; top: 12%; width: 26%; }
.sw-mess__frag--date { right: 6%; top: 18%; }
.sw-mess__frag--user { left: 10%; bottom: 10%; }
.sw-mess__frag--file { left: 40%; bottom: 8%; width: 22%; }
.sw-mess__frag--sede { right: 4%; bottom: 14%; width: 22%; }

.sw-signals__list {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(1.5rem, 3vw, 3rem);
}
.sw-signals__list > div { padding: 1.3rem 0 1.5rem; border-top: 1px solid var(--border); }
.sw-signals__list dt {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  margin-bottom: 0.45rem;
}
.sw-signals__list dd { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* ------------------------------------------------------------------ */
/* 5. QUÉ PUEDE ORGANIZAR — categorías interactivas                    */
/* ------------------------------------------------------------------ */
.sw-org__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.sw-org__board {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(50rem 20rem at 8% -10%, rgba(132, 18, 241, 0.08), transparent 70%),
    rgba(11, 11, 18, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 44px 90px -48px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.sw-org__tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: clamp(0.9rem, 1.8vw, 1.3rem);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.sw-org__tab {
  appearance: none; border: 1px solid transparent; background: transparent;
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted);
  padding: 0.6rem 1.15rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.sw-org__tab:hover { color: var(--text); }
.sw-org__tab.is-active {
  color: var(--text);
  background: rgba(132, 18, 241, 0.12);
  border-color: rgba(132, 18, 241, 0.45);
}

.sw-org__stage { position: relative; }
.sw-org__pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.6rem);
}
.sw-org__pane[hidden] { display: none; }
html.motion-ready .sw-org__pane.is-active { animation: sw-pane-in 0.45s var(--ease) both; }
@keyframes sw-pane-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.sw-org__info h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 0.7rem; }
.sw-org__info > p { color: var(--text-muted); font-size: 0.98rem; max-width: 44ch; }
.sw-org__mods { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.sw-org__mods li {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.sw-org__mods li::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  transform: rotate(45deg);
  background: var(--violet-bright);
  opacity: 0.85;
}

.sw-mini {
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(24, 21, 40, 0.95), rgba(12, 12, 20, 0.96));
  box-shadow: 0 26px 56px -30px rgba(0, 0, 0, 0.85);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.sw-mini > header { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.2rem; }
.sw-mini > header b { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; }
.sw-mini__row {
  display: flex; align-items: center; gap: 9px;
  border-radius: 9px;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.sw-mini__row > b { flex: 1; max-width: 36%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.sw-mini__row .sw-state { margin-left: auto; }
.sw-mini__row .sq { width: 12px; height: 12px; flex: none; border-radius: 4px; border: 1px solid var(--border-strong); }
.sw-mini__row .sq.done { background: var(--violet); border-color: var(--violet); }
.sw-mini__row .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--violet-bright); opacity: 0.8; }
.sw-mini__access {
  font-size: 0.7rem; color: #7ee2a1;
  border: 1px solid rgba(126, 226, 161, 0.3);
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  background: rgba(74, 222, 128, 0.05);
}
.sw-mini__perm {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.7rem; color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
}
.sw-mini__perm i { width: 10px; height: 10px; flex: none; border-radius: 3px; background: rgba(132, 18, 241, 0.5); }

/* ------------------------------------------------------------------ */
/* 6a. LA BASE — información, usuarios y acciones                      */
/* ------------------------------------------------------------------ */
.sw-base__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sw-base__head h2 { font-size: var(--fs-h2); max-width: 26ch; }

.sw-base__board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.sw-base__col {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(12, 12, 19, 0.72);
  padding: 1.2rem 1.3rem 1.35rem;
  min-width: 0;
}
.sw-base__col header small {
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--violet-bright);
}
.sw-base__col header h3 { margin: 0.35rem 0 0.25rem; font-size: 1.05rem; }
.sw-base__col header p { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 0.9rem; }

.sw-base__items { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sw-base__items li {
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.32em 0.8em;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}
.sw-base__items--people { flex-direction: column; gap: 0.5rem; }
.sw-base__items--people li {
  display: flex; align-items: center; gap: 0.55rem;
  border: 0; padding: 0; background: none; border-radius: 0;
  font-size: 0.88rem; color: var(--text-muted);
}
.sw-base__items--actions li {
  border-color: rgba(168, 85, 255, 0.3);
  background: rgba(132, 18, 241, 0.08);
  color: var(--violet-bright);
  font-family: var(--font-display); font-weight: 500; font-size: 0.76rem;
}

.sw-base__joint { grid-column: 1 / -1; position: relative; padding-top: 2.4rem; }
.sw-base__thread {
  position: absolute; top: 0; width: 1px; height: 2.4rem;
  background: linear-gradient(rgba(168, 85, 255, 0.05), rgba(168, 85, 255, 0.55));
}
.sw-base__thread--a { left: 16.5%; }
.sw-base__thread--b { left: 50%; }
.sw-base__thread--c { left: 83.5%; }

.sw-base__result {
  border: 1px solid rgba(168, 85, 255, 0.32);
  border-radius: var(--r-md);
  background: rgba(16, 13, 27, 0.9);
  padding: 1rem 1.15rem 1.15rem;
  max-width: 44rem;
  margin-inline: auto;
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.8);
}
.sw-base__result header {
  display: flex; align-items: center; gap: 0.6rem;
  padding-bottom: 0.75rem; margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.sw-base__result header b { font-family: var(--font-display); font-size: 0.9rem; }
.sw-base__result header .sw-chip { margin-left: auto; }
.sw-base__row {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.2rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.sw-base__row + .sw-base__row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.sw-base__row span { min-width: 0; }
.sw-base__row span b { color: var(--text); font-weight: 600; }
.sw-base__row .sw-state { margin-left: auto; }
.sw-base__note { margin-top: 1.1rem; text-align: center; }

/* ------------------------------------------------------------------ */
/* 6b. REGLAS, ESTADOS Y PERMISOS                                      */
/* ------------------------------------------------------------------ */
.sw-rules__head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sw-rules__head h2 { font-size: var(--fs-h2); max-width: 28ch; }

.sw-rules__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
}
.sw-rule {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(12, 12, 19, 0.72);
  padding: 1.3rem 1.4rem 1.45rem;
  min-width: 0;
}
.sw-rule--perms { grid-column: 1 / -1; }
.sw-rule h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.sw-rule > p { color: var(--text-muted); font-size: 0.92rem; max-width: 58ch; }

.sw-rule__demo {
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(9, 9, 15, 0.65);
  padding: 0.9rem 1rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem;
}
.sw-rule__if, .sw-rule__do, .sw-rule__else { display: grid; gap: 0.3rem; font-size: 0.82rem; }
.sw-rule__if small, .sw-rule__do small, .sw-rule__else small {
  font-family: var(--font-display); font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.sw-rule__if {
  border: 1px dashed var(--border-strong);
  border-radius: 8px; padding: 0.5rem 0.7rem;
  color: var(--text-muted);
}
.sw-rule__then { flex: none; width: 26px; height: 1px; background: rgba(168, 85, 255, 0.5); position: relative; }
.sw-rule__then::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  border-left: 5px solid rgba(168, 85, 255, 0.6);
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
.sw-rule__else { margin-left: auto; }

.sw-rule__demo--states { gap: 0.5rem; }

.sw-rule__demo--perms { display: block; padding: 0.8rem 0.9rem; }
.sw-perm__head, .sw-perm__row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.4fr) repeat(4, minmax(3rem, 1fr));
  align-items: center; gap: 0.4rem;
}
.sw-perm__head { padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.sw-perm__head b {
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
  text-align: center;
}
.sw-perm__row { padding: 0.5rem 0; font-size: 0.84rem; color: var(--text-muted); }
.sw-perm__row + .sw-perm__row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.sw-perm__row > span { display: flex; align-items: center; gap: 0.5rem; }
.sw-perm__row b {
  justify-self: center;
  width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: transparent;
}
.sw-perm__row b.on {
  border-color: rgba(168, 85, 255, 0.6);
  background: rgba(132, 18, 241, 0.35);
}

/* ------------------------------------------------------------------ */
/* 8a. INTEGRACIONES                                                   */
/* ------------------------------------------------------------------ */
.sw-connect__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.sw-connect__copy h2 { font-size: var(--fs-h2); max-width: 22ch; }
.sw-connect__caution { margin-top: 1.4rem; color: var(--text); font-size: 0.95rem; font-weight: 500; }
.sw-connect__checks { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.sw-connect__checks li {
  position: relative; padding-left: 1.4rem;
  color: var(--text-muted); font-size: 0.92rem;
}
.sw-connect__checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 12px; height: 12px; border-radius: 4px;
  border: 1px solid rgba(168, 85, 255, 0.55);
  background: rgba(132, 18, 241, 0.14);
}

.sw-hub { position: relative; aspect-ratio: 5 / 4; max-width: 34rem; margin-inline: auto; }
.sw-hub__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 0.45rem;
  border: 1px solid rgba(168, 85, 255, 0.4);
  border-radius: var(--r-md);
  background: rgba(16, 13, 27, 0.94);
  padding: 1.1rem 1.5rem 1.2rem;
  box-shadow: 0 0 60px -18px rgba(132, 18, 241, 0.55);
  z-index: 1;
}
.sw-hub__core b { font-family: var(--font-display); font-size: 0.95rem; }
.sw-hub__node {
  position: absolute;
  display: grid; gap: 0.25rem; justify-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 12, 19, 0.85);
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
}
.sw-hub__node small { font-size: 0.74rem; color: var(--text); font-weight: 500; }
.sw-hub__node em {
  font-style: normal;
  font-family: var(--font-display); font-size: 0.52rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.sw-hub__node em.ok { color: #7ee2a1; }
.sw-hub__node em.check { color: #f5c563; }
.sw-hub__node::before {
  content: ""; position: absolute; z-index: -1;
  width: 4.5rem; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(168, 85, 255, 0.4) 0 5px, transparent 5px 9px);
}
.sw-hub__node--mail  { left: 2%;  top: 8%; }
.sw-hub__node--mail::before  { left: 90%; top: 130%; transform: rotate(32deg); }
.sw-hub__node--form  { right: 2%; top: 6%; }
.sw-hub__node--form::before  { right: 86%; top: 140%; transform: rotate(-30deg); }
.sw-hub__node--pay   { left: 0;   bottom: 14%; }
.sw-hub__node--pay::before   { left: 92%; bottom: 110%; transform: rotate(-28deg); }
.sw-hub__node--bill  { right: 0;  bottom: 12%; }
.sw-hub__node--bill::before  { right: 88%; bottom: 116%; transform: rotate(30deg); }
.sw-hub__node--files { left: 50%; bottom: 0; transform: translateX(-50%); }
.sw-hub__node--files::before { left: 50%; bottom: 100%; transform: rotate(90deg); transform-origin: left; }

/* ------------------------------------------------------------------ */
/* 8b. PRIMERA VERSIÓN Y EVOLUCIÓN                                     */
/* ------------------------------------------------------------------ */
.sw-versions__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sw-versions__head h2 { font-size: var(--fs-h2); max-width: 24ch; }

.sw-versions__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: stretch;
}
.sw-versions__stage {
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem 1.55rem;
  min-width: 0;
}
.sw-versions__stage--v1 {
  border: 1px solid rgba(168, 85, 255, 0.34);
  background: rgba(16, 13, 27, 0.88);
}
.sw-versions__stage--growth {
  border: 1px dashed var(--border-strong);
  background: rgba(12, 12, 19, 0.55);
}
.sw-versions__stage header h3 { font-size: 1.02rem; margin-top: 0.7rem; margin-bottom: 0.8rem; }
.sw-versions__stage ul { display: grid; gap: 0.5rem; }
.sw-versions__stage li {
  position: relative; padding-left: 1.2rem;
  color: var(--text-muted); font-size: 0.9rem;
}
.sw-versions__stage li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(132, 18, 241, 0.45);
}
.sw-versions__stage--growth li::before {
  background: transparent;
  border: 1px dashed var(--border-strong);
}
.sw-versions__mini {
  margin-top: 1.2rem;
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(9, 9, 15, 0.7);
  padding: 0.7rem 0.85rem;
}
.sw-versions__mini .core { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sw-versions__mini .core b {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.3em 0.75em;
}
.sw-versions__mini .core b.hi {
  color: var(--violet-bright);
  border-color: rgba(168, 85, 255, 0.4);
  background: rgba(132, 18, 241, 0.1);
}
.sw-versions__mini--dashed { border-style: dashed; }
.sw-versions__mini--dashed .core b { border-style: dashed; }

.sw-versions__arrow {
  align-self: center;
  width: clamp(2rem, 4vw, 3.4rem); height: 1px; flex: none;
  background: linear-gradient(90deg, rgba(168, 85, 255, 0.6), rgba(168, 85, 255, 0.15));
  position: relative;
}
.sw-versions__arrow::after {
  content: ""; position: absolute; right: -1px; top: -3.5px;
  border-left: 6px solid rgba(168, 85, 255, 0.5);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.sw-versions__note { margin-top: 1.2rem; }

/* Lista de evaluación (sección 12) */
.sw-start__list { margin: 1.3rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.4rem; }
.sw-start__list li {
  position: relative; padding-left: 1.35rem;
  color: var(--text-muted); font-size: 0.92rem;
}
.sw-start__list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 11px; height: 11px; border-radius: 4px;
  border: 1px solid rgba(168, 85, 255, 0.5);
  background: rgba(132, 18, 241, 0.12);
}

/* ------------------------------------------------------------------ */
/* 7. TIPOS DE SISTEMAS — composición escalonada                        */
/* ------------------------------------------------------------------ */
.sw-types__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem); }
.sw-types__flow { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 2rem); }

.sw-type {
  display: grid;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(12, 12, 19, 0.66);
  padding: clamp(1.4rem, 2.8vw, 2.4rem);
  transition: border-color var(--dur-2) var(--ease);
}
.sw-type:hover { border-color: var(--border-strong); }
.sw-type--wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.sw-type--right { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); width: min(100%, 900px); margin-left: auto; }
.sw-type--narrow { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); width: min(100%, 760px); }
.sw-type--offset { margin-left: auto; }

.sw-type__copy h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); margin-bottom: 0.6rem; }
.sw-type__copy p { color: var(--text-muted); font-size: 0.97rem; max-width: 46ch; }
.sw-type__ex {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  border-left: 2px solid rgba(132, 18, 241, 0.5);
  padding-left: 0.8rem;
}

.sw-wire {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 14, 24, 0.9);
  padding: 1rem;
  min-height: 150px;
}
.sw-wire--admin { display: flex; gap: 0.8rem; }
.sw-wire--admin aside { width: 18%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; border-right: 1px solid var(--border); }
.sw-wire--admin aside i { width: 50%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.sw-wire--admin aside i.on { background: var(--violet-bright); }
.sw-wire--admin > div { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.sw-wire--admin > div i { display: block; height: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.sw-wire--admin > div i.half { width: 56%; }
.sw-wire--admin > div b.t { display: block; height: 12px; width: 44%; border-radius: 5px; background: rgba(255, 255, 255, 0.16); margin-bottom: 3px; }

.sw-wire--portal { display: flex; flex-direction: column; gap: 0.7rem; }
.sw-wire--portal > header { display: flex; align-items: center; justify-content: space-between; }
.sw-wire--portal > header i { width: 26%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.sw-wire--portal > header em { font-style: normal; font-family: var(--font-display); font-size: 0.62rem; color: var(--violet-bright); border: 1px solid rgba(132, 18, 241, 0.4); border-radius: var(--r-pill); padding: 0.25em 0.7em; }
.sw-wire--portal > b.t { display: block; height: 12px; width: 52%; border-radius: 5px; background: rgba(255, 255, 255, 0.16); }
.sw-wire--portal .req {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.6rem 0.7rem;
}
.sw-wire--portal .req i { width: 10px; height: 10px; flex: none; border-radius: 3px; background: rgba(132, 18, 241, 0.5); }
.sw-wire--portal .req .sw-state { margin-left: auto; }

.sw-wire--memb { display: flex; align-items: center; gap: 0.9rem; min-height: 120px; }
.sw-wire--memb .ava { width: 34px; height: 34px; font-size: 0.66rem; }
.sw-wire--memb > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sw-wire--memb b.t { display: block; height: 10px; width: 56%; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.sw-wire--memb .sw-state { width: fit-content; }

.sw-wire--roles { display: flex; gap: 0.8rem; align-items: stretch; }
.sw-wire--roles .view {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0.7rem;
  display: flex; flex-direction: column; gap: 6px;
}
.sw-wire--roles .view small { font-family: var(--font-display); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.sw-wire--roles .view i { display: block; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.sw-wire--roles .view.full { border-color: rgba(132, 18, 241, 0.45); }
.sw-wire--roles .view.full small { color: var(--violet-bright); }
.sw-wire--roles .view.full i { background: rgba(132, 18, 241, 0.22); }

.sw-wire--multi { display: flex; flex-direction: column; gap: 0.7rem; }
.sw-wire--multi > header { display: flex; align-items: center; gap: 0.6rem; }
.sw-wire--multi > header i { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, var(--violet-bright), var(--violet-deep)); }
.sw-wire--multi > header b { font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; }
.sw-wire--multi .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.sw-wire--multi .cols span {
  border: 1px solid rgba(132, 18, 241, 0.35);
  border-radius: 9px;
  padding: 0.6rem;
  display: flex; flex-direction: column; gap: 5px;
}
.sw-wire--multi .cols span.dim { opacity: 0.6; border-style: dashed; }
.sw-wire--multi .cols small { font-family: var(--font-display); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-bright); }
.sw-wire--multi .cols i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); }

/* ------------------------------------------------------------------ */
/* 8. UX — decisiones con ampliaciones                                 */
/* ------------------------------------------------------------------ */
.sw-ux__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem); }
.sw-ux__board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.sw-uxitem {
  position: relative;
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(12, 12, 19, 0.7);
  padding: 1.3rem 1.4rem 1.5rem;
  min-width: 0;
}
.sw-uxitem:nth-child(4) { grid-column: 2 / span 2; }
.sw-uxitem:nth-child(5) { grid-column: span 2; }
.sw-uxitem__num {
  position: absolute; top: 1.1rem; right: 1.2rem;
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(132, 18, 241, 0.5);
  color: var(--violet-bright);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
}
.sw-uxitem__zoom {
  min-height: 86px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(9, 9, 15, 0.65);
  padding: 0.9rem;
  margin-bottom: 1.1rem;
}
.sw-uxitem h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.sw-uxitem > p { color: var(--text-muted); font-size: 0.9rem; }

.sw-uxrow {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.035);
}
.sw-uxrow > b { flex: 1; max-width: 30%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.sw-uxrow .acts { margin-left: auto; display: flex; gap: 5px; }
.sw-uxrow .acts em {
  font-style: normal;
  font-family: var(--font-display); font-size: 0.58rem; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 0.28em 0.7em; color: var(--text-muted);
}
.sw-uxrow .acts em.hi { color: var(--on-violet); background: var(--violet); border-color: var(--violet); }

.sw-uxform { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.sw-uxform small { font-family: var(--font-display); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-bright); }
.sw-uxform span { display: flex; align-items: center; gap: 8px; }
.sw-uxform span b { font-family: var(--font-display); font-size: 0.6rem; font-weight: 500; color: var(--text-faint); width: 52px; flex: none; }
.sw-uxform span i { flex: 1; height: 16px; border-radius: 6px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); }
.sw-uxform span i.w2 { flex: 0.6; }

.sw-uxconfirm {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(20, 18, 32, 0.95);
  padding: 0.8rem 0.9rem;
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.85);
}
.sw-uxconfirm b { display: block; font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; margin-bottom: 3px; }
.sw-uxconfirm span { display: block; font-size: 0.64rem; color: var(--text-faint); margin-bottom: 0.6rem; }
.sw-uxconfirm div { display: flex; justify-content: flex-end; gap: 6px; }
.sw-uxconfirm em {
  font-style: normal;
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 0.32em 0.8em; color: var(--text-muted);
}
.sw-uxconfirm em.danger { color: #f79a9a; border-color: rgba(247, 154, 154, 0.45); }

.sw-uxperm { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sw-uxperm span { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--text-faint); }
.sw-uxperm span i { width: 13px; height: 13px; flex: none; border-radius: 4px; border: 1px solid var(--border-strong); position: relative; }
.sw-uxperm span.on { color: var(--text); }
.sw-uxperm span.on i { background: var(--violet); border-color: var(--violet); }
.sw-uxperm span.on i::after {
  content: ""; position: absolute; inset: 3px 2px 4px 2px;
  border-left: 1.4px solid #fff; border-bottom: 1.4px solid #fff;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* 11. NIX MEMBERSHIP — producto propio                                */
/* ------------------------------------------------------------------ */
.sw-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.sw-nm { position: relative; max-width: 470px; aspect-ratio: 10 / 8; margin-left: auto; }
.sw-nm::before {
  content: "";
  position: absolute; inset: 8% -4% 0 8%;
  background: radial-gradient(closest-side, rgba(132, 18, 241, 0.2), transparent 72%);
  filter: blur(14px);
}
.sw-nm__profile {
  position: absolute; left: 0; top: 4%;
  width: 62%;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(28, 23, 46, 0.98), rgba(12, 12, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 34px 70px -34px rgba(0, 0, 0, 0.9);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.sw-nm__profile > header { display: flex; align-items: center; gap: 0.65rem; }
.sw-nm__profile .ava { width: 34px; height: 34px; font-size: 0.62rem; }
.sw-nm__profile b { display: block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; }
.sw-nm__profile header small { color: var(--text-faint); font-size: 0.64rem; }
.sw-nm__facts { display: flex; gap: 1rem; }
.sw-nm__facts small { display: block; font-family: var(--font-display); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.sw-nm__facts b { font-size: 0.76rem; }
.sw-nm__access {
  position: absolute; right: 0; top: 24%;
  width: 44%;
  border-radius: 12px;
  border: 1px solid rgba(126, 226, 161, 0.3);
  background: linear-gradient(160deg, rgba(20, 34, 26, 0.95), rgba(12, 14, 15, 0.97));
  box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.9);
  padding: 0.85rem 1rem;
}
.sw-nm__access b {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; color: #9ceeb7;
}
.sw-nm__access b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6ee79a; box-shadow: 0 0 8px rgba(110, 231, 154, 0.7); }
.sw-nm__access small { display: block; margin-top: 3px; color: var(--text-faint); font-size: 0.62rem; }
.sw-nm__perms {
  position: absolute; left: 12%; bottom: 0;
  width: 56%;
  border-radius: 12px;
  border: 1px solid rgba(132, 18, 241, 0.4);
  background: rgba(16, 14, 26, 0.97);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  padding: 0.85rem 1rem;
  display: flex; flex-direction: column; gap: 6px;
}
.sw-nm__perms small {
  font-family: var(--font-display); font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 2px;
}
.sw-nm__perms span { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--text-faint); }
.sw-nm__perms span i { width: 12px; height: 12px; flex: none; border-radius: 4px; border: 1px solid var(--border-strong); position: relative; }
.sw-nm__perms span.on { color: var(--text); }
.sw-nm__perms span.on i { background: var(--violet); border-color: var(--violet); }
.sw-nm__perms span.on i::after {
  content: ""; position: absolute; inset: 3px 2px 4px 2px;
  border-left: 1.3px solid #fff; border-bottom: 1.3px solid #fff;
  transform: rotate(-45deg);
}
.sw-product__visual .sw-note { text-align: right; }

html.motion-ready .sw-product__visual.is-visible .sw-nm__profile { animation: sw-settle 0.8s var(--ease) both; }
html.motion-ready .sw-product__visual.is-visible .sw-nm__access { animation: sw-settle 0.8s var(--ease) 0.18s both; }
html.motion-ready .sw-product__visual.is-visible .sw-nm__perms { animation: sw-settle 0.8s var(--ease) 0.32s both; }

/* ------------------------------------------------------------------ */
/* 12. EMPEZAR — hoja de diagnóstico                                   */
/* ------------------------------------------------------------------ */
.sw-start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.sw-diag {
  max-width: 460px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(24, 21, 40, 0.96), rgba(11, 11, 18, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.sw-diag > header { display: flex; align-items: center; gap: 0.7rem; }
.sw-diag > header b { flex: 1; font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; }
.sw-diag__q small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.sw-diag__q i { display: block; height: 22px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.sw-diag__q i.fill { background: linear-gradient(90deg, rgba(132, 18, 241, 0.18) 62%, rgba(255, 255, 255, 0.03) 62%); border-color: rgba(168, 85, 255, 0.35); }
.sw-diag__q i.fill.w2 { background: linear-gradient(90deg, rgba(132, 18, 241, 0.18) 44%, rgba(255, 255, 255, 0.03) 44%); }
.sw-diag__notes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.sw-diag__notes span {
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  transform: rotate(var(--r, 0deg));
  background: rgba(255, 255, 255, 0.02);
}
.sw-diag > footer { border-top: 1px solid var(--border); padding-top: 0.8rem; }

/* ------------------------------------------------------------------ */
/* 13. FAQ — acordeones accesibles                                     */
/* ------------------------------------------------------------------ */
.sw-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.sw-faq__head { position: sticky; top: calc(var(--header-height) + 3rem); }
.sw-faq__list { display: flex; flex-direction: column; }
.sw-faqitem { border-top: 1px solid var(--border); }
.sw-faqitem:last-child { border-bottom: 1px solid var(--border); }
.sw-faqitem h3 { margin: 0; }
.sw-faqitem__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.2rem 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--text);
  min-height: 44px;
  transition: color var(--dur-1) var(--ease);
}
.sw-faqitem__btn:hover { color: var(--violet-bright); }
.sw-faqitem__btn i {
  position: relative;
  width: 14px; height: 14px; flex: none;
  transition: transform var(--dur-2) var(--ease);
}
.sw-faqitem__btn i::before,
.sw-faqitem__btn i::after {
  content: ""; position: absolute; background: var(--violet-bright);
}
.sw-faqitem__btn i::before { left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; }
.sw-faqitem__btn i::after { top: 0; bottom: 0; left: 6px; width: 2px; border-radius: 1px; transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
.sw-faqitem__btn[aria-expanded="true"] i::after { transform: scaleY(0); opacity: 0; }
.sw-faqitem__panel { overflow: hidden; }
.sw-faqitem__panel[hidden] { display: none; }
.sw-faqitem__panel p {
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 58ch;
  padding: 0 0.2rem 1.3rem;
}

/* ------------------------------------------------------------------ */
/* 14. CTA FINAL — piezas alineadas                                    */
/* ------------------------------------------------------------------ */
.sw-closing { overflow: hidden; padding: clamp(6rem, 11vw, 9rem) 0; }
.sw-closing__aura {
  position: absolute; top: 50%; left: 50%;
  width: 62vw; max-width: 720px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(132, 18, 241, 0.15), transparent 70%);
  pointer-events: none;
}
.sw-closing__inner { max-width: 780px; text-align: center; position: relative; margin-inline: auto; }
.sw-closing__inner h2 { font-size: var(--fs-h2-lg); max-width: 22ch; margin: 0 auto 1.2rem; text-wrap: balance; }
.sw-closing__inner > p { color: var(--text-muted); font-size: var(--fs-lead); max-width: 46ch; margin: 0 auto 2.4rem; }
.sw-closing__actions { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

.sw-closing__proof {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sw-closing__proof .piece {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  background: rgba(16, 15, 26, 0.9);
}
.sw-closing__proof .piece small {
  font-family: var(--font-display);
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.sw-closing__proof .arrow {
  position: relative;
  width: clamp(1.2rem, 3vw, 2.2rem); height: 1px;
  background: linear-gradient(90deg, rgba(168, 85, 255, 0.6), rgba(168, 85, 255, 0.25));
}
.sw-closing__proof .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid rgba(168, 85, 255, 0.65);
  border-right: 1px solid rgba(168, 85, 255, 0.65);
  transform: rotate(45deg);
}
.sw-closing__proof .panel {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(132, 18, 241, 0.45);
  border-radius: 11px;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(160deg, rgba(28, 22, 46, 0.97), rgba(12, 12, 20, 0.98));
  box-shadow: 0 18px 40px -22px var(--violet-glow);
}
.sw-closing__proof .panel b { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; }

/* ------------------------------------------------------------------ */
/* 15. RESPONSIVE                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .sw-hero.hero-viewport { min-height: auto; padding-block: clamp(2.5rem, 8vw, 4rem) var(--section-y); }
  .sw-hero__grid { grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem); }
  .sw-hero-scene { margin-inline: auto; max-width: 560px; }
  .sw-hero__note { text-align: center; }

  .sw-what__grid,
  .sw-product__grid,
  .sw-start__grid { grid-template-columns: 1fr; }
  .sw-what__visual,
  .sw-product__visual { max-width: 560px; }
  .sw-nm { margin-left: 0; }
  .sw-product__visual .sw-note { text-align: left; }

  .sw-signals__list { grid-template-columns: repeat(2, 1fr); }

  .sw-start__list { grid-template-columns: 1fr; }
  .sw-perm__head, .sw-perm__row { grid-template-columns: minmax(7rem, 1.6fr) repeat(4, minmax(2rem, 1fr)); }

  .sw-org__pane { grid-template-columns: 1fr; gap: 1.5rem; }

  .sw-base__board { grid-template-columns: 1fr; }
  .sw-base__thread { display: none; }
  .sw-base__joint { padding-top: 0.6rem; }

  .sw-rules__grid { grid-template-columns: 1fr; }

  .sw-connect__grid { grid-template-columns: 1fr; }
  .sw-hub { max-width: 30rem; }

  .sw-versions__board { grid-template-columns: 1fr; }
  .sw-versions__arrow { width: 1px; height: clamp(1.6rem, 4vw, 2.4rem); margin-inline: auto;
    background: linear-gradient(rgba(168, 85, 255, 0.6), rgba(168, 85, 255, 0.15)); }
  .sw-versions__arrow::after { right: -3.5px; top: auto; bottom: -1px;
    border-top: 6px solid rgba(168, 85, 255, 0.5);
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 0; }

  .sw-ux__board { grid-template-columns: repeat(2, 1fr); }
  .sw-uxitem,
  .sw-uxitem:nth-child(4),
  .sw-uxitem:nth-child(5) { grid-column: span 1; }
  .sw-uxitem:nth-child(5) { grid-column: span 2; }

  .sw-faq__grid { grid-template-columns: 1fr; }
  .sw-faq__head { position: static; }
}

@media (max-width: 760px) {
  .sw-signals__list { grid-template-columns: 1fr; }

  /* La escena desordenada pasa a secuencia legible */
  .sw-mess { min-height: 0; padding: 3rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
  .sw-mess__frag { position: static; width: 100% !important; max-width: none; transform: rotate(0); }

  .sw-adapt { min-height: 0; display: flex; flex-direction: column; gap: 1rem; }
  .sw-adapt__generic, .sw-adapt__fitted { position: static; }
  .sw-adapt__generic { display: none; }

  .sw-type--wide,
  .sw-type--right,
  .sw-type--narrow { grid-template-columns: 1fr; width: 100%; margin-left: 0; }
  .sw-type--right .sw-type__visual { order: 2; }

  .sw-ux__board { grid-template-columns: 1fr; }
  .sw-uxitem:nth-child(5) { grid-column: span 1; }

  .sw-nm { aspect-ratio: auto; display: flex; flex-direction: column; gap: 0.8rem; }
  .sw-nm::before { display: none; }
  .sw-nm__profile, .sw-nm__access, .sw-nm__perms { position: static; width: 100%; }

  .sw-hero-scene { aspect-ratio: auto; display: flex; flex-direction: column; gap: 0.8rem; }
  .sw-hero-scene::before { display: none; }
  .sw-hero-core { position: static; min-height: 250px; }
  .sw-frag { position: static; width: 100% !important; transform: none; animation: none !important; }
  .sw-frag--state small { display: block; }
  .sw-frag--date, .sw-frag--state { display: none; }

  .sw-closing__proof .piece:nth-child(n+3) { display: none; }
}

@media (max-width: 560px) {
  .sw-hero__title { overflow-wrap: anywhere; }
  .sw-hero__actions .btn { flex: 1 1 auto; }
  .sw-closing__actions .btn { width: 100%; }
  .sw-org__tab { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
}

/* ------------------------------------------------------------------ */
/* 16. PREFERENCIAS DE MOVIMIENTO                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .sw-frag { animation: none !important; }
  .sw-org__pane.is-active { animation: none; }
}
