/* Hoja de estilos de VerifyX: paleta y tipografía de docs/04-anexos/marca/README.md. Sin recursos externos. */
:root {
  --ink: #14171C; --ink-2: #0F1216; --panel: #1E232B; --panel-2: #232A34;
  --line: #2E3742;
  --text: #EDEFF2; --text-dim: #AEB7C2; --text-mute: #8A94A3;
  --accent: #5B76F7; --focus: #8AA0FF;
  --pass: #2FA96A; --fail: #E0483D; --accent-btn: #4A63E8; --fail-btn: #C93A30; --fail-deep: #A62F27; --warn: #E8A13C;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 4px; --radius-lg: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--text-mute); }
.spacer { flex: 1; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand .x { color: var(--accent); }
.brand small { font-weight: 500; color: var(--text-dim); font-size: 13px; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 900; }

.card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 14px; }
.card .brand { margin-bottom: 4px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--text-dim); }
input, select { background: var(--ink-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: inherit; min-height: 42px; }
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

.btn { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 42px; }
.btn:hover { border-color: var(--text-mute); }
.btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.btn.danger { background: var(--fail-btn); border-color: var(--fail-btn); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }

.msg { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--panel-2); border-left: 3px solid var(--accent); font-size: 14px; }
.msg.error { border-left-color: var(--fail); }
.msg.ok { border-left-color: var(--pass); }
.msg.warn { border-left-color: var(--warn); }
.msg:empty { display: none; }

.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: var(--ink-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--text-dim); }
.content { max-width: 980px; margin: 0 auto; padding: 24px 24px 24px; display: grid; gap: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 600; }
.crumbs span { color: var(--text-mute); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=search] { min-width: 220px; }

.list { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.list th, .list td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); background: var(--panel-2); }
.list tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { text-align: right; white-space: nowrap; }
.actions .btn { margin-left: 6px; }
.name { display: flex; align-items: center; gap: 10px; }
.ico { width: 18px; height: 18px; border-radius: 3px; background: var(--text-mute); flex: none; }
.ico.f { background: var(--warn); } .ico.a { background: var(--pass); }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; width: min(420px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.dlg { padding: 24px; display: grid; gap: 14px; }
.dlg p { margin: 0; color: var(--text-dim); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }


@media (max-width: 720px) {
  .content { padding: 16px; }
  .list thead { display: none; }
  .list td { display: block; border: 0; padding: 4px 14px; }
  .list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .num, .actions { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* Acceso y formularios */
/* Co-branding NEXA al pie de la tarjeta de acceso: el fondo negro del logo se funde con la tarjeta. */
.nexa { width: 160px; height: auto; justify-self: center; margin-top: 6px; border-radius: 2px; mix-blend-mode: screen; }
a { color: var(--focus); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
form.inline { display: inline; margin: 0; }
.enrol { display: grid; gap: 12px; font-size: 14px; color: var(--text-dim); }
.enrol p { margin: 0; }
.qr { width: 220px; height: 220px; border-radius: var(--radius); border: 6px solid #fff; background: #fff; justify-self: center; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; word-break: break-all; text-align: center; font-size: 15px; color: var(--text); }
.hint { font-size: 12px; color: var(--text-mute); margin: 0; }
.page { max-width: 460px; margin: 0 auto; padding: 24px; display: grid; gap: 16px; }
.empty { text-align: center; padding: 48px 16px; }
.page .card { width: 100%; }

/* Navegación */
.crumbs a { color: var(--accent); font-weight: 600; text-decoration: none; padding: 2px 4px; }
.crumbs a:hover { text-decoration: underline; }
.name a { color: var(--text); font-weight: 600; text-decoration: none; }
.name a.folder { color: var(--focus); }
.name a:hover { text-decoration: underline; }
.where { color: var(--text-mute); font-size: 12px; }

/* Gestión de contenido */
progress { width: 100%; height: 8px; accent-color: var(--accent); }
.toolbar.admin-only { justify-content: space-between; }
