/* NISPLY Security Team y NISPLY Security Lab como páginas separadas (30/11/2026, Aiur).
   Estética sobria: líneas finas, numeración en monoespaciada, sin halos ni colores de estado.
   Lo usan /security-team/ y /security-lab/ (es, ca, en). El visor del informe: assets/js/visor-informe.js */

/* Cómo trabajamos: cuatro pasos en línea, separados por un filete */
.sx-pasos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; counter-reset: paso;
  border-top: 1px solid var(--bd-50); }
@media (min-width: 900px) { .sx-pasos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-paso { padding: 1.75rem 0 1.5rem; border-bottom: 1px solid var(--bd-30); }
@media (min-width: 900px) {
  .sx-paso { padding: 2rem 2rem 0 0; border-bottom: 0; }
  .sx-paso + .sx-paso { padding-left: 2rem; border-left: 1px solid var(--bd-30); }
}
.sx-paso__num { display: block; margin-bottom: 1rem; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em;
  color: var(--fg-50); }
.sx-paso h3 { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.sx-paso p { margin: 0; color: var(--fg-70); line-height: 1.6; }

/* Banda del laboratorio en la página del Team y ficha de la publicación en la del Lab */
.sx-pub { display: grid; gap: 2rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--bd-40); border-radius: var(--radius); background: var(--card-bg); }
@media (min-width: 860px) { .sx-pub { grid-template-columns: minmax(0, 1fr) 260px; gap: 3.5rem; } }
@media (min-width: 860px) { .sx-pub--ficha { grid-template-columns: 300px minmax(0, 1fr); } }
/* Enlace directo al estudio (nisply.com/security-lab/#NSL-PUB-2026-001-ES, para LinkedIn): que la cabecera fija no tape
   la ficha. La ancla antigua (#nsl-pub-2026-001) es un span vacío justo encima. */
.sx-pub--ficha, .sx-ancla { scroll-margin-top: calc(var(--header-h, 72px) + 24px); }
.sx-ancla { display: block; height: 0; }
.sx-pub__ref { margin: 0; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--fg-50); }
.sx-pub h2, .sx-pub h3 { margin: .75rem 0 .75rem; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); font-weight: 500;
  line-height: 1.2; letter-spacing: -.02em; }
.sx-pub__txt { margin: 0; color: var(--fg-70); line-height: 1.65; max-width: 62ch; }
.sx-pub__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none;
  font-size: .875rem; color: var(--fg-60); }
.sx-pub__meta b { font-weight: 500; color: var(--fg-80); }
.sx-pub .actions { margin-top: 1.5rem; }

/* Portada del informe: una hoja con su sombra, sin adornos */
.sx-portada { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; }
.sx-portada img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--bd-40);
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 16px 40px rgba(0,0,0,.28); transition: transform .3s var(--spring, ease); }
@media (hover: hover) and (pointer: fine) { .sx-portada:hover img { transform: translateY(-3px); } }
:root[data-theme="light"] .sx-portada img { box-shadow: 0 1px 2px rgba(20,23,28,.08), 0 16px 40px rgba(20,23,28,.12); }
.sx-pub:not(.sx-pub--ficha) .sx-portada { max-width: 260px; margin-inline: auto; }
@media (max-width: 859px) { .sx-pub--ficha .sx-portada { max-width: 220px; } }

/* Las tres cifras del estudio con su barra, como en la portada del PDF */
.sx-cifras { margin: 1.5rem 0 0; max-width: 620px; }
.sx-barra { display: flex; gap: 3px; height: 6px; margin-bottom: .9rem; }
.sx-barra span { display: block; height: 100%; }
.sx-barra .sx-c1 { background: #C0432F; } .sx-barra .sx-c2 { background: var(--fg-40, #8A8D93); } .sx-barra .sx-c3 { background: var(--fg-20, #3A3D43); }
.sx-cifras ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; }
.sx-cifras b { display: block; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
  color: var(--foreground); }
.sx-cifras li span { font-size: .8125rem; color: var(--fg-60); line-height: 1.4; }
.sx-cifras li::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: .6rem; border-radius: 2px; }
.sx-cifras li:nth-child(1)::before { background: #C0432F; }
.sx-cifras li:nth-child(2)::before { background: var(--fg-40, #8A8D93); }
.sx-cifras li:nth-child(3)::before { background: var(--fg-20, #3A3D43); }
.sx-nota { margin: 1rem 0 0; font-size: .8125rem; color: var(--fg-50); }

/* Líneas de trabajo del laboratorio: rejilla de 2×2 con filetes, sin tarjetas */
.sx-lineas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; border-top: 1px solid var(--bd-50); }
@media (min-width: 768px) { .sx-lineas { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; } }
.sx-lineas li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--bd-30); }
.sx-lineas__num { font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-50); padding-top: .2rem; }
.sx-lineas h3 { margin: 0 0 .35rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.sx-lineas p { margin: 0; color: var(--fg-70); line-height: 1.6; }

/* Visor del informe: diálogo a pantalla casi completa con las páginas una debajo de otra */
.sx-visor { width: min(100vw - 24px, 980px); height: calc(100dvh - 24px); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 1px solid var(--bd-50); border-radius: 12px; background: var(--background); color: var(--foreground); overflow: hidden; }
.sx-visor[open] { display: flex; flex-direction: column; }
.sx-visor::backdrop { background: rgba(8, 9, 11, .78); backdrop-filter: blur(4px); }
.sx-visor__barra { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem 1.25rem; border-bottom: 1px solid var(--bd-40); }
.sx-visor__tit { flex: 1; min-width: 0; margin: 0; font-size: .9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-visor__tit small { display: block; font-family: var(--font-mono); font-size: .6875rem; font-weight: 400; color: var(--fg-50); }
.sx-visor__pag { font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-60); white-space: nowrap; }
.sx-visor__cerrar { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--bd-50);
  border-radius: 999px; background: transparent; color: var(--foreground); cursor: pointer; }
.sx-visor__cerrar:hover { background: color-mix(in oklab, var(--foreground) 8%, transparent); }
.sx-visor__cerrar svg { width: 16px; height: 16px; }
.sx-visor__hojas { flex: 1; overflow-y: auto; padding: 1.5rem; display: grid; gap: 1.25rem; justify-items: center;
  background: color-mix(in oklab, var(--foreground) 6%, var(--background)); overscroll-behavior: contain; }
.sx-visor__hojas img { display: block; width: 100%; max-width: 820px; height: auto; aspect-ratio: 1240 / 1754; background: #FAF9F7;
  border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
@media (max-width: 640px) {
  .sx-visor { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .sx-visor__hojas { padding: .75rem; gap: .75rem; }
  .sx-visor__barra .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sx-portada img { transition: none; } }
