/* Piezas del portal que el diseño no dibuja: avisos, tablas, pasaporte, garaje, guías, panel de staff. Mismo sistema de color. */
body { background: radial-gradient(900px 400px at 85% -10%, rgba(52,205,184,.07), transparent 60%), #0a0f14; min-height: 100vh; }
.wrap { padding-block: 18px 60px; }
.nav { flex-wrap: wrap; row-gap: 6px; padding-inline: 0; }
.nav form { margin: 0; }
.nav .out { background: none; border: 0; color: #b5c0c6; font: 500 14.5px var(--body); cursor: pointer; padding: 8px 12px; border-radius: 99px; }
.nav .out:hover { color: #fff; background: rgba(255,255,255,.06); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 9; background: var(--amber); color: #1a1205; padding: 8px 14px; border-radius: 8px; }
.banner { background: var(--amber-d); color: var(--amber); border-radius: 12px; padding: 9px 16px; font-size: 13.5px; margin-bottom: 14px; }
.flash { border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; font-weight: 500; }
.flash.ok { background: var(--teal-d); color: var(--teal); } .flash.err { background: var(--coral-d); color: var(--coral); }
.ptitle { font-size: clamp(44px, 6vw, 84px); text-transform: uppercase; font-weight: 900; margin-bottom: 22px; }
.ptitle em { font-style: normal; color: var(--amber); }
.sectop { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.crumb { color: var(--dim); font-size: 13.5px; margin-bottom: 8px; } .crumb a { color: var(--mut); text-decoration: none; } .crumb a:hover { color: var(--ink); }
.pagebody { padding-block: 10px 0; }
.stack { display: grid; gap: 14px; }
form.inl { display: inline; margin: 0; }
.btn.bad { background: var(--coral-d); color: var(--coral); } .btn.bad:hover { background: #4a2420; }
.demo-login { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.demo-login button { all: unset; box-sizing: border-box; cursor: pointer; background: var(--s2); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-items: center; transition: background .2s, transform .3s var(--ease); width: 100%; }
.demo-login button:hover, .demo-login button:focus-visible { background: var(--s3); transform: translateY(-3px); }
.demo-login .av { grid-row: span 2; width: 52px; height: 52px; font-size: 24px; }
.demo-login b { font: 800 26px/1 var(--display); text-transform: uppercase; } .demo-login small { color: var(--mut); }
table.t { width: 100%; min-width: 560px; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 0 14px 12px; }
table.t td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.n { font: 800 24px/1 var(--display); white-space: nowrap; }
table.t td small { display: block; color: var(--dim); font-size: 12.5px; }
.panelbox { background: var(--s1); border-radius: 18px; padding: 20px; overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { text-decoration: none; background: var(--s2); color: #b5c0c6; padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 13.5px; }
.tabs a:hover { background: var(--s3); color: #fff; } .tabs a.on { background: var(--ink); color: #0a0f14; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
/* Cédula tipo pasaporte, oscura */
.vehi { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.veh { background: var(--s2); border-radius: 18px; overflow: hidden; } .veh svg { width: 100%; height: 120px; display: block; }
.veh .in { padding: 16px 18px; display: grid; gap: 6px; } .veh b { font: 800 26px/1 var(--display); text-transform: uppercase; }
.plate { display: inline-block; background: #eef1ec; color: #0a0f14; font: 900 20px/1 var(--display); letter-spacing: .1em; padding: 5px 12px; border-radius: 6px; }
.fuel { height: 6px; border-radius: 9px; background: rgba(255,255,255,.1); overflow: hidden; } .fuel i { display: block; height: 100%; background: var(--teal); }
.mail { display: grid; gap: 10px; } .mail article { background: var(--s2); border-radius: 16px; padding: 16px 20px; display: grid; gap: 4px; }
.mail article.nuevo { box-shadow: inset 3px 0 0 var(--amber); } .mail b { font-weight: 600; } .mail .de { color: var(--dim); font-size: 12.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .item { background: var(--s2); border-radius: 12px; padding: 8px 14px; font-weight: 500; } .item b { color: var(--amber); font-weight: 700; margin-left: 6px; }
.codebox { font: 800 40px/1 var(--display); letter-spacing: .2em; color: var(--amber); background: var(--amber-d); border-radius: 14px; padding: 18px 24px; display: inline-block; user-select: all; }
.lbl2 { font-size: 13.5px; color: var(--mut); font-weight: 500; display: grid; gap: 8px; }
form.f { display: grid; gap: 16px; max-width: 640px; }
/* Guías */
.wiki { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 32px; align-items: start; }
.wiki aside { position: sticky; top: 14px; display: grid; gap: 14px; max-height: calc(100vh - 28px); overflow: auto; }
.wiki .cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 10px 0 4px; }
.wiki aside a { display: block; color: #aab6bc; text-decoration: none; padding: 7px 12px; border-radius: 10px; font-size: 14.5px; }
.wiki aside a:hover { background: var(--s2); color: #fff; } .wiki aside a.on { background: var(--s3); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--amber); }
.search { display: flex; gap: 8px; } .search .inp { flex: 1; }
.prose { max-width: 74ch; } .prose h2 { font-size: 40px; text-transform: uppercase; margin: 34px 0 12px; } .prose h3 { font-size: 28px; text-transform: uppercase; margin: 22px 0 8px; color: var(--amber); }
.prose p, .prose li { color: #d5dcdf; } .prose p { margin: 0 0 14px; } .prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 16px; }
.prose a { color: var(--amber); } .prose code { background: var(--s2); padding: 1px 6px; border-radius: 5px; }
.prose blockquote { margin: 0 0 16px; background: var(--s2); border-radius: 12px; padding: 14px 18px; box-shadow: inset 3px 0 0 var(--teal); color: #cdd5d8; }
.prose table.md { width: 100%; min-width: 480px; border-collapse: collapse; } .prose table.md th, .prose table.md td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; }
.prose table.md th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-top: 0; }
.estado { background: var(--teal-d); color: var(--teal); border-radius: 12px; padding: 10px 16px; font-size: 14px; margin-bottom: 18px; }
.toc { display: grid; gap: 2px; } .toc a { font-size: 13.5px; padding: 4px 12px; }
.hit { background: var(--amber-d); color: var(--amber); border-radius: 3px; padding: 0 2px; }
footer.pie { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: space-between; }
footer.pie a { color: var(--mut); text-decoration: none; } footer.pie a:hover { color: var(--ink); }
.hero { border-radius: 22px; margin-top: 0; }
.hero .live-panel { top: 20px; }
.news { padding: 0; margin-top: 14px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1000px) { .wiki { grid-template-columns: 1fr; } .wiki aside { position: static; max-height: none; } .two, .three, .vehi, .demo-login { grid-template-columns: 1fr; } .pass { grid-template-columns: 1fr; } .pass .ph { width: 120px; height: 150px; } .pass dl { grid-template-columns: repeat(2, minmax(0,1fr)); } }

a.card, a.fcat, a.fac, a.prod { text-decoration: none; color: inherit; }
.news a.card .body b { text-decoration: none; }

/* ===== Pulido de diseño ===== */
:root { --dim: #8593a0; }
/* Lo activo en ambar, no en blanco: el dueño juega de noche y odia lo brillante */
.nav a.on, .tabs a.on, .filters button[aria-pressed="true"] { background: var(--amber-d); color: var(--amber); box-shadow: inset 0 -2px 0 var(--amber); }
/* Casillas visibles */
.box2 { background: transparent; border: 2px solid #7d8c96; }
.agree input:checked + .box2 { background: var(--amber); border-color: var(--amber); color: #1a1205; }
.agree.off { opacity: .55; cursor: not-allowed; }
.agree small { font-size: 12.5px; }
/* Titulos: una sola tinta, mas aire sobre la barra */
.ptitle { margin-top: 24px; }
.ptitle em { color: inherit; }
.plate { background: #d6d9d2; }
body::before { display: none; }
/* Foro: rejilla que se adapta */
.fcats { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.fcat.wide, .fcat.w2 { grid-column: auto; }
.fcat.wide { background: var(--s2); } .fcat.wide:hover { background: var(--s3); }
footer.pie { border-top: 0; background: var(--s1); border-radius: 18px; padding: 22px 26px; }
.estado { max-width: 74ch; }
/* Administracion */
fieldset.slot { border: 0; background: var(--s1); border-radius: 16px; padding: 18px; margin: 0; display: grid; gap: 14px; min-width: 0; align-content: start; }
fieldset.slot legend { font: 800 22px var(--display); text-transform: uppercase; padding: 0; margin-bottom: 2px; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form.ancho { max-width: 1040px; }
input[type=file]::file-selector-button { background: var(--s3); color: var(--ink); border: 0; border-radius: 99px; padding: 8px 16px; margin-right: 12px; font: 600 13px var(--body); cursor: pointer; }
.chips .item { background: var(--s3); }
@media (max-width: 1000px) { .slots { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .tabs a { flex: none; }
  /* Tablas como tarjetas en el movil: nada queda fuera de la pantalla */
  .hist-wrap, .tablewrap { overflow: visible; }
  table.hist, table.t { min-width: 0 !important; display: block; }
  table.hist thead, table.t thead { display: none; }
  table.hist tbody, table.t tbody { display: grid; gap: 10px; }
  table.hist tr, table.t tr { display: grid; gap: 4px; background: var(--s2); border-radius: 14px; padding: 14px 16px; }
  table.hist td, table.t td { display: block; padding: 0; border: 0; text-align: left; }
  table.hist td.n, table.t td.n { text-align: left; }
}
@media (max-width: 680px) {
  .banner { font-size: 12px; padding: 6px 12px; margin-bottom: 8px; line-height: 1.35; }
}
@media (max-width: 680px) {
  .chip-t { display: none; } .nav .logo { margin-right: 0; font-size: 22px; } .nav .chip.keep { padding: 6px 10px; }
}

/* Cédula idéntica a la del juego: fondo del juego y posiciones en porcentaje; el texto escala con el ancho de la tarjeta */
.ced-wrap { overflow-x: auto; padding-bottom: 2px; }
.ced { position: relative; width: 100%; min-width: 720px; max-width: 1000px; aspect-ratio: 1000 / 625; container-type: inline-size; background: url(/static/img/cedula-fondo.png) center / 100% 100% no-repeat; border-radius: 2.6%; margin: 0 auto 14px; font-family: var(--body); }
.ced > span { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ced .c-t { left: 3%; top: 2%; height: 11%; display: flex; align-items: center; font-weight: 800; font-size: 2.36cqi; letter-spacing: .04em; color: #fff; }
.ced .c-e { left: 50%; width: 47%; top: 2%; height: 11%; display: flex; align-items: center; justify-content: flex-end; font-weight: 500; font-size: 1.46cqi; letter-spacing: .03em; color: rgb(207, 227, 217); }
.ced .c-k { width: 27%; font-size: 1.18cqi; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: rgb(87, 99, 89); }
.ced .c-v { width: 27%; font-size: 1.74cqi; font-weight: 700; color: rgb(15, 28, 23); }
.ced .c-s { font-size: 1.63cqi; width: 26%; }
.ced .c-venc { color: rgb(179, 26, 26); }
.ced .c-firma { left: 60%; width: 34%; top: 75.5%; height: 8%; display: flex; align-items: center; justify-content: center; font-size: 2.25cqi; font-style: italic; font-weight: 300; color: rgb(31, 59, 107); border-bottom: 1px solid rgba(31, 59, 107, .5); }
.ced .c-sello { left: 60%; width: 36%; top: 60%; height: 11%; display: flex; align-items: center; justify-content: center; font-size: 2.8cqi; font-weight: 800; letter-spacing: .06em; color: rgb(179, 20, 20); background: rgba(191, 26, 26, .22); border: 2px solid rgba(179, 20, 20, .5); }
.ced .c-m { left: 2.5%; width: 95%; height: 6.6%; display: flex; justify-content: space-between; overflow: visible; font-family: "OCR-B", "OCR B", Consolas, "Courier New", monospace; font-size: 3.6cqi; line-height: 1.1; color: rgb(51, 64, 56); }
.ced .c-m i { font-style: normal; }
