
:root {
  --theme: #7B3F92;
  --gold: #D4AF37;
  --bg: #F7F4F8;
  --text: #1a1a1a;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif; }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background: var(--theme); color:white; position:sticky; top:0; }
.topbar h1 { margin:0; font-weight:700; }
.topbar nav a { color:white; text-decoration:none; margin-left:12px; padding:6px 8px; border-radius:8px; }
.topbar nav a.active, .topbar nav a:hover { background: rgba(255,255,255,0.18); }
main { padding:16px; max-width:880px; margin:0 auto; }
h2 { margin-top:8px; }
.card { background:white; border-radius:16px; padding:16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card .hero { width:100%; border-radius:12px; margin-bottom:10px; }
.numero { color: var(--theme); font-weight:700; margin:4px 0 6px; }
.texto { font-size: 1.2rem; line-height: 1.6; }
.chips { margin-top:10px; }
.chips span { display:inline-block; background:#f0e9f5; color:#3e1f53; padding:4px 8px; border-radius:999px; margin-right:6px; margin-bottom:6px; font-size:0.85rem; }
.actions { display:flex; gap:10px; margin-top:14px; flex-wrap: wrap; }
button, .btn { background: var(--theme); color:white; border:none; padding:10px 14px; border-radius:12px; font-weight:600; cursor:pointer; }
button:hover, .btn:hover { filter: brightness(1.05); }
.hidden { display:none; }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:12px; margin-top:12px; }
.grid .item { background:white; border-radius:14px; padding:12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.grid .item img { width:100%; border-radius:10px; }
.grid .item .num { color: var(--theme); font-weight:700; font-size:0.95rem; margin-top:6px; }
.grid .item .tx { margin-top:6px; font-size:0.98rem; line-height:1.5; }
.filters { display:flex; gap:8px; flex-wrap:wrap; background:white; padding:8px; border-radius:12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.foot { position:sticky; bottom:0; display:flex; justify-content:center; gap:10px; background:white; padding:8px; border-top:1px solid #eee; }
.foot .mini { margin-left:auto; align-self:center; color:#666; text-decoration:none; padding:6px 10px; }
.offline { display:flex; align-items:center; justify-content:center; min-height:100vh; }
/* High contrast mode */
body.hc { background:#000; color:#fff; }
body.hc .topbar { background:#000; }
body.hc .card, body.hc .filters, body.hc .grid .item { background:#111; color:#fff; }
body.hc a, body.hc button { background:#fff; color:#000; }
