/* buscar — estilos. Sin framework. Tokens por tema en html[data-theme], modo claro/oscuro automático
   (prefers-color-scheme) o forzado con html[data-mode="light|dark"]. */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --text: #0f172a; --text-2: #475569; --text-3: #64748b;
  --accent: #2563eb; --accent-2: #1d4ed8; --accent-soft: rgba(37, 99, 235, .12);
  --glass: rgba(255, 255, 255, .74); --glass-strong: rgba(255, 255, 255, .9); --glass-border: rgba(255, 255, 255, .55);
  --line: rgba(15, 23, 42, .08); --shadow: 0 10px 30px rgba(15, 23, 42, .12);
  --mark-bg: #fef08a; --mark-fg: #1f2937;
  --danger: #dc2626; --ok: #16a34a; --warn: #d97706;
  --base-1: #f8fafc; --base-2: #eef2ff;
  --luz-1: #5eead4; --luz-2: #60a5fa; --luz-3: #c084fc; --luz-4: #a5f3fc; --luz-op: .62;
}
html[data-theme="atardecer"] { --luz-1: #fb923c; --luz-2: #f472b6; --luz-3: #a78bfa; --luz-4: #fde68a; --base-2: #fff1f2; --accent: #db2777; --accent-2: #be185d; --accent-soft: rgba(219, 39, 119, .12); }
html[data-theme="oceano"] { --luz-1: #22d3ee; --luz-2: #3b82f6; --luz-3: #6366f1; --luz-4: #67e8f9; --base-2: #ecfeff; --accent: #0891b2; --accent-2: #0e7490; --accent-soft: rgba(8, 145, 178, .12); }
html[data-theme="bosque"] { --luz-1: #4ade80; --luz-2: #10b981; --luz-3: #a3e635; --luz-4: #6ee7b7; --base-2: #f0fdf4; --accent: #059669; --accent-2: #047857; --accent-soft: rgba(5, 150, 105, .12); }
html[data-theme="grafito"] { --luz-1: #94a3b8; --luz-2: #64748b; --luz-3: #cbd5e1; --luz-4: #e2e8f0; --base-2: #f1f5f9; --luz-op: .45; --accent: #334155; --accent-2: #1e293b; --accent-soft: rgba(51, 65, 85, .12); }

@media (prefers-color-scheme: dark) {
  html:not([data-mode="light"]) { color-scheme: dark; --text: #e2e8f0; --text-2: #94a3b8; --text-3: #94a3b8; --accent: #60a5fa; --accent-2: #93c5fd; --accent-soft: rgba(96, 165, 250, .16); --glass: rgba(15, 23, 42, .66); --glass-strong: rgba(15, 23, 42, .84); --glass-border: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .09); --shadow: 0 12px 34px rgba(0, 0, 0, .45); --mark-bg: #854d0e; --mark-fg: #fef3c7; --base-1: #0b1220; --base-2: #111a2e; --luz-op: .38; }
}
html[data-mode="dark"] { color-scheme: dark; --text: #e2e8f0; --text-2: #94a3b8; --text-3: #94a3b8; --accent: #60a5fa; --accent-2: #93c5fd; --accent-soft: rgba(96, 165, 250, .16); --glass: rgba(15, 23, 42, .66); --glass-strong: rgba(15, 23, 42, .84); --glass-border: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .09); --shadow: 0 12px 34px rgba(0, 0, 0, .45); --mark-bg: #854d0e; --mark-fg: #fef3c7; --base-1: #0b1220; --base-2: #111a2e; --luz-op: .38; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--text); background: linear-gradient(160deg, var(--base-1), var(--base-2)); -webkit-font-smoothing: antialiased; line-height: 1.45; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
mark { background: var(--mark-bg); color: var(--mark-fg); border-radius: 3px; padding: 0 1px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--glass-strong); padding: 8px 12px; border-radius: 8px; }
svg.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.sm { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Fondo animado (luces) ─────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(160deg, var(--base-1), var(--base-2)); }
.luz { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--luz-op); will-change: transform; mix-blend-mode: normal; }
.luz.l1 { width: 56vmax; height: 56vmax; left: -14vmax; top: -18vmax; background: var(--luz-1); animation: luz1 26s ease-in-out infinite alternate; }
.luz.l2 { width: 48vmax; height: 48vmax; right: -12vmax; top: -6vmax; background: var(--luz-2); animation: luz2 31s ease-in-out infinite alternate; }
.luz.l3 { width: 52vmax; height: 52vmax; left: 18vmax; bottom: -24vmax; background: var(--luz-3); animation: luz3 23s ease-in-out infinite alternate; }
.luz.l4 { width: 36vmax; height: 36vmax; right: 8vmax; bottom: -10vmax; background: var(--luz-4); animation: luz4 37s ease-in-out infinite alternate; }
@keyframes luz1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(22vmax, 14vmax) scale(1.18); } }
@keyframes luz2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-18vmax, 20vmax) scale(.9); } }
@keyframes luz3 { from { transform: translate(0, 0) scale(.95); } to { transform: translate(14vmax, -16vmax) scale(1.2); } }
@keyframes luz4 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-20vmax, -8vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .luz { animation: none !important; } }

/* ── Capa de la app ─────────────────────────────────────────────────────── */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--text); font-weight: 500; font-size: 14px; line-height: 1; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn.icon { padding: 8px; }
.btn:disabled { opacity: .55; cursor: default; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); font-size: 14px; max-width: calc(100vw - 32px); }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ── Barra superior ─────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 500; font-size: 12px; color: var(--text-3); letter-spacing: 0; }
.top .brand { font-size: 20px; }
.top .sb { flex: 1; max-width: 720px; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; border: 2px solid var(--glass-strong); }
.avatar:hover { filter: brightness(1.1); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 324px; max-width: calc(100vw - 24px); padding: 10px; z-index: 40; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu .who b { display: block; font-size: 15px; }
.menu .who span { font-size: 12px; color: var(--text-3); }
.menu .item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; text-align: left; font-size: 14px; }
.menu .item:hover { background: var(--accent-soft); }
.menu h4 { margin: 10px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 10px 8px; }
.theme-sw { position: relative; aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; overflow: hidden; background: #eee; padding: 0; }
.theme-sw.active { border-color: var(--accent); }
.theme-sw span { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .9; }
.theme-sw .a { width: 70%; height: 70%; left: -15%; top: -15%; animation: luz1 6s ease-in-out infinite alternate; }
.theme-sw .b { width: 60%; height: 60%; right: -10%; top: 10%; animation: luz2 7s ease-in-out infinite alternate; }
.theme-sw .c { width: 70%; height: 70%; left: 20%; bottom: -25%; animation: luz3 8s ease-in-out infinite alternate; }
.theme-sw small { position: absolute; left: 0; right: 0; bottom: 3px; font-size: 8px; letter-spacing: -.01em; text-align: center; color: #0f172a; font-weight: 600; text-shadow: 0 0 4px rgba(255,255,255,.9); }
.modes { display: flex; gap: 6px; padding: 0 10px 6px; }
.modes .btn { flex: 1; justify-content: center; padding: 7px 6px; font-size: 12px; gap: 5px; min-width: 0; }
.modes .btn.active { border-color: var(--accent); color: var(--accent); }

/* ── Caja de búsqueda ───────────────────────────────────────────────────── */
.sb { position: relative; }
.sb form { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px 0 18px; border-radius: 28px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.sb form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.sb input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 18px; height: 100%; }
.sb input::placeholder { color: var(--text-3); }
.sb input[type=search]::-webkit-search-cancel-button, .sb input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.wiki .find input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.sb .ic { color: var(--text-3); }
.sb.compact form { height: 44px; border-radius: 22px; box-shadow: none; padding: 0 10px 0 14px; }
.sb.compact input { font-size: 16px; }
.sb .clear { display: none; }
.sb.has-text .clear { display: inline-flex; }
.sb .kbd { font-size: 11px; color: var(--text-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
@media (max-width: 719px) { .sb .kbd { display: none; } .top .brand small { display: none; } .top .nav .lbl { display: none; } .top { gap: 8px; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); } }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 35; padding: 6px; max-height: 60vh; overflow: auto; }
.suggest .s { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.suggest .s:hover, .suggest .s.active { background: var(--accent-soft); }
.suggest .s .ic { color: var(--text-3); }
.suggest .s small { color: var(--text-3); font-size: 12px; margin-left: auto; white-space: nowrap; }
.suggest .s .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Chips / filtros ────────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 13px; font-weight: 500; color: var(--text-2); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip select, select.sel { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--glass); color: var(--text-2); border-radius: 999px; padding: 7px 30px 7px 13px; font: inherit; font-size: 13px; font-weight: 500; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 11px center; }

/* ── Inicio ─────────────────────────────────────────────────────────────── */
.home { flex: 1; display: flex; flex-direction: column; }
.home .top-min { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.home .center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px 60px; margin-top: -4vh; }
.home .brand { font-size: 56px; margin-bottom: 4px; }
.home .brand small { font-size: 16px; }
.home .tag { color: var(--text-2); font-size: 15px; margin: 0 0 26px; text-align: center; }
.home .sb { width: 100%; max-width: 660px; }
.home .chips { margin-top: 18px; justify-content: center; }
.home .quick { width: 100%; max-width: 660px; margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 719px) { .home .quick { grid-template-columns: 1fr; } .home .brand { font-size: 44px; } }
.home .quick h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.home .quick a, .home .quick button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--text); font-size: 14px; }
.home .quick a:hover, .home .quick button:hover { background: var(--glass); text-decoration: none; }
.home .quick .ic { color: var(--text-3); }
.home .quick .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Resultados ─────────────────────────────────────────────────────────── */
.main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px; flex: 1; }
.results .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; }
.results .count { font-size: 13px; color: var(--text-3); margin: 4px 0 14px; }
.rlist { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.r { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; }
.r:hover, .r:focus-within, .r.active { background: var(--glass); border-color: var(--glass-border); }
.r .kind { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.r .kind.pdf { background: rgba(220, 38, 38, .12); color: #dc2626; }
.r .kind.imagen { background: rgba(217, 119, 6, .14); color: #d97706; }
.r .kind.planilla { background: rgba(22, 163, 74, .14); color: #16a34a; }
.r .kind.manual { background: rgba(124, 58, 237, .14); color: #7c3aed; }
.r .kind.dibujo { background: rgba(8, 145, 178, .14); color: #0891b2; }
.r .ctx { font-size: 12px; color: var(--text-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 2px; }
.r .ctx .sep::before { content: "›"; margin: 0 2px; }
.r .ctx .dot::before { content: "·"; margin: 0 2px; }
.r h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.r h3 a { color: var(--accent); }
.r .snip { margin: 4px 0 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.r .meta { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.r .meta a { color: var(--text-3); }
.more { margin: 16px 0 30px; }
.empty { max-width: 640px; padding: 24px; }
.empty h3 { margin: 0 0 8px; font-size: 18px; }
.empty p, .empty li { color: var(--text-2); font-size: 14px; }
.skeleton { height: 70px; border-radius: 14px; background: linear-gradient(90deg, var(--glass) 25%, var(--glass-strong) 50%, var(--glass) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-bottom: 8px; max-width: 760px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Manuales ───────────────────────────────────────────────────────────── */
.wiki { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1023px) { .wiki { grid-template-columns: 1fr; } .wiki .side { display: none; } .wiki.side-open .side { display: block; position: fixed; inset: 0; z-index: 60; border-radius: 0; overflow: auto; } }
.wiki .side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding: 12px; }
.wiki .side .find { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass-strong); margin-bottom: 8px; }
.wiki .side .find input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; min-width: 0; }
.tree ul { list-style: none; margin: 0; padding-left: 14px; }
.tree > ul { padding-left: 0; }
.tree li { margin: 1px 0; }
.tree .node { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 8px; font-size: 14px; }
.tree .node:hover { background: var(--accent-soft); }
.tree .node.active { background: var(--accent); color: #fff; }
.tree .node.active a { color: #fff; }
.tree .node a { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree .tg { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); padding: 0; }
.tree .tg.leaf { visibility: hidden; }
.tree li.closed > ul { display: none; }
.tree .tg .ic { transition: transform .15s; }
.tree li:not(.closed) > .node .tg .ic { transform: rotate(90deg); }
.tree .cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 12px 6px 4px; font-weight: 600; }
.article { padding: 28px 32px 40px; min-height: 60vh; }
@media (max-width: 719px) { .article { padding: 20px 16px 32px; } }
.article .crumbs { font-size: 13px; color: var(--text-3); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.article .crumbs span::after { content: "›"; margin-left: 6px; }
.article .crumbs span:last-child::after { content: ""; }
.article h1.title { font-size: 32px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.15; }
.article .info { font-size: 13px; color: var(--text-3); margin-bottom: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.article .toc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; background: var(--glass); max-width: 420px; }
.article .toc h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.article .toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.article .toc li.lvl3 { margin-left: 14px; font-size: 13px; }
.article .body { max-width: 72ch; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.article .body img { max-width: 100%; height: auto; border-radius: 8px; }
.article .body table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; font-size: 14px; }
.article .body td, .article .body th { border: 1px solid var(--line); padding: 6px 10px; }
.article .body h1, .article .body h2, .article .body h3 { scroll-margin-top: 84px; letter-spacing: -.01em; }
.article .body pre { background: var(--glass); padding: 12px; border-radius: 10px; overflow-x: auto; }
.article .body blockquote { border-left: 3px solid var(--accent); margin: 0; padding: 4px 14px; color: var(--text-2); }
.article .body .o_knowledge_behavior_anchor, .article .body .o_knowledge_embedded_view { display: none; }
.article .children { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.article .children h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.article .children a { display: inline-flex; align-items: center; gap: 6px; margin: 4px 10px 4px 0; font-size: 14px; }
.article .foot { margin-top: 24px; font-size: 13px; color: var(--text-3); display: flex; gap: 14px; }
.wiki-home h2 { margin: 0 0 6px; }
.wiki-home .roots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.wiki-home .roots a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font-weight: 500; }
.wiki-home .roots a:hover { border-color: var(--accent); text-decoration: none; }

/* ── Login ──────────────────────────────────────────────────────────────── */
.login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 400px; padding: 30px 28px; }
.login .brand { font-size: 36px; display: block; margin-bottom: 4px; }
.login p { color: var(--text-2); margin: 0 0 20px; font-size: 14px; }
.login label { display: block; font-size: 13px; font-weight: 500; margin: 12px 0 6px; color: var(--text-2); }
.login input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-strong); outline: none; font-size: 16px; }
.login input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.login .btn { width: 100%; justify-content: center; height: 44px; margin-top: 20px; font-size: 15px; }
.login .err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(220, 38, 38, .1); color: var(--danger); font-size: 14px; }
.login .hint { margin-top: 16px; font-size: 12px; color: var(--text-3); }

/* ── Estado ─────────────────────────────────────────────────────────────── */
.estado .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.estado .card { padding: 16px; }
.estado .card h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.estado .card .big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.estado .card .sub { font-size: 13px; color: var(--text-2); }
.estado .err { color: var(--danger); font-size: 13px; white-space: pre-wrap; }
.estado table { width: 100%; border-collapse: collapse; font-size: 14px; }
.estado td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.estado td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.page-title { font-size: 22px; margin: 6px 0 14px; letter-spacing: -.02em; }
.muted { color: var(--text-3); font-size: 13px; }
