/* /inspector/: el archivo de casos del Inspector (índice) y la página de cada expediente, que son solo sus hojas.
   Estética de la app (tema oscuro, barra casi negra, mandarina); maquetas aprobadas el 10/10/2026 en
   files/outputs/blog-maquetas/ (6 y 7) y el ícono en files/outputs/inspector/ (A). El visor de a una hoja usa visor.css. */
:root {
  --background: #141414;
  --surface: #1f1f1f;
  --surface-raised: #2a2a2a;
  --border: #3a3a3a;
  --chrome: #0a0a0b;
  --text: #f2f2f2;
  --text-soft: #cfcfcf;
  --muted: #9a9a9a;
  --accent: #f7931a;
  --accent-strong: #ffa940;
  --reviewed: #5cff9d;
  --classified: #ff5a52;
  --mono: "DejaVu Sans Mono", monospace;
  --page-width: 1180px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: "Noto Sans", "DejaVu Sans", sans-serif; }
a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; }

/* ── Barra de arriba ───────────────────────────────────────────────────── */
.topbar { min-height: 64px; background: var(--chrome); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  padding: 10px var(--gutter); position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(247, 147, 26, 0.5); }
.brand-name { font-weight: 900; font-size: 20px; }
.brand-tagline { color: var(--muted); font-size: 14px; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.nav a { color: var(--text-soft); text-decoration: none; padding-bottom: 3px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nav .inspector-icon { width: 22px; height: 22px; flex: none; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }
/* La misma página en el otro idioma (/inspector/ ↔ /en/inspector/, desde el 11/10/2026). */
.nav a.lang { border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px; font-size: 13px; }
.nav a.lang:hover { border-color: var(--muted); }

/* ── Comunes ───────────────────────────────────────────────────────────── */
.overline { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 10px; }
.button { display: inline-block; background: var(--accent); color: #111; font-weight: 900; padding: 12px 20px; border-radius: 6px;
  text-decoration: none; border: 1px solid var(--accent); }
.button:hover { background: var(--accent-strong); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button.ghost:hover { border-color: var(--muted); }
.button.disabled, .button.disabled:hover { color: var(--muted); border-color: var(--border); cursor: default; }
.soon-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px dashed #777;
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; color: #aaa; vertical-align: 1px; }
/* El sello del estado de la revisión, como el de un expediente de papel. */
.stamp { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; padding: 5px 10px;
  border: 2px solid; border-radius: 4px; background: rgba(10, 10, 11, 0.85); white-space: nowrap; }
.stamp.reviewed { color: var(--reviewed); border-color: var(--reviewed); }
.stamp.review { color: var(--accent-strong); border-color: var(--accent-strong); }
/* Los que todavía no están: sello rojo, doble filete, como el de un legajo reservado. */
.stamp.red { color: var(--classified); border-color: var(--classified); box-shadow: inset 0 0 0 2px rgba(10, 10, 11, 0.85), inset 0 0 0 3px var(--classified);
  padding: 7px 12px; font-size: 15px; }
.foot { max-width: var(--page-width); margin: 48px auto 0; padding: 22px var(--gutter) 48px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px; }

/* ── Índice: el archivo ────────────────────────────────────────────────── */
.page-head { max-width: var(--page-width); margin: 0 auto; padding: 56px var(--gutter) 20px; }
.page-head h1 { font-size: clamp(36px, 7vw, 46px); font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.title-row { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.title-row .inspector-icon { width: clamp(56px, 12vw, 76px); height: clamp(56px, 12vw, 76px); flex: none; color: var(--text); }
.title-row .overline { margin-bottom: 4px; }
.page-head p { color: #c9c9c9; font-size: 18px; line-height: 1.5; margin: 0; max-width: 46em; }
.page-head .ledger { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 22px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.page-head .ledger b { color: var(--text); font-size: 15px; margin-right: 6px; }
.group { margin-top: 26px; }
.group-title { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); font-family: var(--mono); font-size: 13px;
  font-weight: 400; letter-spacing: 0.18em; color: var(--accent); }
.archive { max-width: var(--page-width); margin: 0 auto; padding: 30px var(--gutter) 8px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 44px 28px; }
.file { display: flex; flex-direction: column; }
.file .tab { align-self: flex-start; background: var(--surface-raised); border: 1px solid var(--border); border-bottom: 0;
  border-radius: 8px 8px 0 0; padding: 6px 16px 5px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: #d8d8d8; }
.file .folder { background: var(--surface); border: 1px solid var(--border); border-radius: 0 10px 10px 10px; overflow: hidden;
  display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.file .folder:hover { border-color: var(--muted); }
.file .cover-wrap { position: relative; }
.file .cover { display: block; width: 100%; height: auto; }
.file.pending .folder { border-style: dashed; }
.file.pending .tab { color: var(--muted); }
.file.pending .stamp { transform: rotate(-9deg); right: auto; left: 50%; bottom: 50%; translate: -50% 50%; }
.file.pending h2 { color: #d6d6d6; }
.file.pending p { color: var(--muted); }
.file .stamp { position: absolute; right: 14px; bottom: 14px; transform: rotate(-7deg); }
.file .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
/* Las etiquetas del expediente (Primeros pasos, Historia, Contemporáneos): no dependen del número, por eso van en la tarjeta y no como grupo. */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.file h2 { font-size: 22px; font-weight: 900; margin: 2px 0 0; line-height: 1.25; }
.file p { color: #c9c9c9; font-size: 15px; line-height: 1.5; margin: 0; flex: 1; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; padding-top: 12px;
  border-top: 1px dashed var(--border); font-size: 13px; }
.ficha dt { font-family: var(--mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; padding-top: 2px; }
.ficha dd { margin: 0; color: #dcdcdc; }
/* Las técnicas del inspector: una ficha por técnica, con el botón que la abre en el mapa. */
.techniques { margin-top: 40px; scroll-margin-top: 16px; }
.techniques-intro { max-width: var(--page-width); margin: 10px auto 0; padding: 0 var(--gutter); color: #c9c9c9; font-size: 16px; line-height: 1.5; }
.technique-grid { max-width: var(--page-width); margin: 0 auto; padding: 24px var(--gutter) 8px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.technique { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 10px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 16px; }
.technique:target { border-color: var(--accent); }
.technique-number { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.technique h3 { font-size: 21px; font-weight: 900; margin: 0; line-height: 1.25; }
.technique-lede { color: #d6d6d6; font-size: 15px; line-height: 1.5; margin: 0; }
.technique dl { margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); flex: 1; }
.technique dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.technique dt:first-child { margin-top: 0; }
.technique dd { margin: 3px 0 0; color: #c9c9c9; font-size: 14px; line-height: 1.5; }
.technique .button { align-self: flex-start; margin-top: 14px; }
/* El muestrario: la misma grilla que las técnicas, con el filete gris para que no se confundan. */
.specimen { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--muted); border-radius: 10px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.specimen-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.specimen h3 { font-size: 19px; font-weight: 900; margin: 0; line-height: 1.25; }
.specimen p { color: #c9c9c9; font-size: 14px; line-height: 1.5; margin: 0; flex: 1; }
.specimen-txid { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.specimen .button { align-self: flex-start; margin-top: 10px; }
.method { max-width: var(--page-width); margin: 46px auto 0; padding: 0 var(--gutter); }
.method h2 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.method .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.method .step { border-top: 2px solid var(--border); padding-top: 14px; font-size: 15px; line-height: 1.5; color: #c9c9c9; }
.method .step b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ── Un expediente: sus hojas ──────────────────────────────────────────── */
.sheets-head { max-width: var(--page-width); margin: 0 auto; padding: 40px var(--gutter) 0; display: grid;
  grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.sheets-head h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 900; line-height: 1.1; margin: 10px 0 14px; }
.sheets-head .lede { font-size: 19px; line-height: 1.55; color: #d6d6d6; margin: 0 0 18px; max-width: 36em; }
.sheets-head .stamp { display: inline-block; transform: rotate(-4deg); margin: 4px 0 6px; }
.facts { display: flex; gap: 8px 26px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin: 0 0 24px; }
.facts b { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.curator { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 20px; font-size: 15px; line-height: 1.5; color: #d0d0d0; }
.curator p { margin: 0 0 10px; }
.curator blockquote { margin: 0 0 12px; font-size: 14px; color: var(--text-soft); }
.curator blockquote p { margin: 0; }
.curator .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.curator .avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface-raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--accent); }
.curator small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.curator b { font-size: 18px; color: var(--text); }
.curator .button { display: block; text-align: center; margin: 14px 0 0; }
.strip { max-width: var(--page-width); margin: 36px auto 0; padding: 22px var(--gutter) 0; border-top: 1px solid var(--border); }
/* «Los datos» del expediente (21/10/2026): TXID y direcciones para copiar o abrir. */
.case-data { max-width: var(--page-width); margin: 32px auto 0; padding: 0 var(--gutter); }
.case-data summary { cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent); }
.case-data dl { margin: 16px 0 0; display: grid; gap: 14px; }
.case-data dt { font-size: 14px; color: var(--text-soft); margin: 0 0 4px; }
.case-data dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.case-data code { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; user-select: all; }
.case-data a { color: var(--muted); font-size: 13px; }
.case-data a:hover { color: var(--text); }
.strip h2 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--muted); margin: 0 0 12px; font-weight: 400; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.thumb { display: block; text-decoration: none; }
.thumb img { display: block; width: 100%; height: auto; border-radius: 2px; border: 1px solid #333; }
.thumb:hover img { border-color: var(--accent); }
.thumb span { display: block; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.sheets { max-width: 1000px; margin: 0 auto; padding: 34px var(--gutter) 10px; }
.sheet { margin: 0 0 44px; scroll-margin-top: 16px; }
.sheet figcaption { display: inline-block; background: var(--surface-raised); border: 1px solid var(--border); border-bottom: 0;
  border-radius: 8px 8px 0 0; padding: 6px 16px 5px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: #e0e0e0; }
.sheet figcaption span { color: var(--muted); }
.sheet img { display: block; width: 100%; height: auto; border-radius: 0 3px 3px 3px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); }
/* La primera hoja parece apoyada sobre las demás, como en una carpeta. */
.sheet:first-child img { box-shadow: 6px 6px 0 #2a2a2a, 12px 12px 0 #202020, 0 18px 40px rgba(0, 0, 0, 0.6); }

/* ── Pantallas chicas ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sheets-head { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand-tagline { display: none; }
  .nav { margin-left: 0; gap: 18px; }
  .page-head { padding-top: 36px; }
  .sheet { margin-bottom: 28px; }
  .sheet:first-child img { box-shadow: 3px 3px 0 #2a2a2a, 6px 6px 0 #202020; }
}
