/* ===== StaffWeb - estilos (KingCrafters: naranja + acero) ===== */
:root {
  --bg: #0d1117;
  --bg-2: #131a22;
  --card: #161e28;
  --card-2: #1c2633;
  --border: #263241;
  --text: #e6edf3;
  --muted: #8b98a8;
  --accent: #f5961f;
  --accent-2: #e2731a;
  --accent-ink: #2b1300;
  --steel: #c9d1db;
  --discord: #5865f2;
  --ok: #22c55e;
  --bad: #ef4444;
  --warn: #facc15;
  --info: #60a5fa;
  --radius: 12px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1100px 560px at 50% -12%, rgba(245, 150, 31, .16) 0%, transparent 62%), var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

.container { max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; }
.loading { color: var(--muted); padding: 48px 0; text-align: center; }

/* ----- barra superior ----- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  background: rgba(13, 17, 23, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand-name { letter-spacing: .3px; }
.brand-name b { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--card-2); }
.spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); object-fit: cover; }
.avatar.lg { width: 56px; height: 56px; }

/* ----- tarjetas ----- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.card h2 { margin: 0 0 4px; font-size: 20px; }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.page-title { margin: 4px 0 18px; font-size: 26px; }

/* ----- formularios ----- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--bad); margin-left: 3px; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
input, textarea, select {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  transition: border-color .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.counter { float: right; color: var(--muted); font-size: 12px; font-weight: 400; }

.btn {
  background-image: linear-gradient(180deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: filter .15s, opacity .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background-image: none; background: var(--card-2); color: var(--text); border-color: var(--border); }
.btn.danger { background-image: none; background: transparent; color: var(--bad); border-color: #5b2626; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ----- login ----- */
.auth { max-width: 440px; margin: 24px auto; }
.hero { text-align: center; margin-bottom: 18px; }
.hero img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 28px rgba(245, 150, 31, .28)); }
.hero h1 { margin: 6px 0 2px; font-size: 26px; }
.hero p { margin: 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.tabs button {
  flex: 1; background: transparent; border: 0; color: var(--muted);
  padding: 8px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer;
}
.tabs button.active { background: var(--card-2); color: var(--text); }
.notice {
  background: rgba(88, 101, 242, .12); border: 1px solid rgba(88, 101, 242, .35);
  color: #c7ccff; padding: 10px 12px; border-radius: 9px; font-size: 14px; margin-bottom: 16px;
}
.notice.warn { background: rgba(250, 204, 21, .08); border-color: rgba(250, 204, 21, .35); color: #fcd9a0; }

/* ----- estados ----- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.badge.ENTREVISTA { background: rgba(59, 130, 246, .16); color: var(--info); }
.badge.PENDIENTE { background: rgba(250, 204, 21, .14); color: var(--warn); }
.badge.ACEPTADA { background: rgba(34, 197, 94, .15); color: var(--ok); }
.badge.RECHAZADA { background: rgba(239, 68, 68, .15); color: var(--bad); }
.badge.ADMIN { background: rgba(245, 150, 31, .16); color: var(--accent); }
.badge.USER { background: var(--card-2); color: var(--muted); }

/* ----- listas ----- */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text);
}
a.item:hover { border-color: #3a4a5e; text-decoration: none; }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item .meta { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 26px 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .n { font-size: 28px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 13px; }
.stat.p .n { color: var(--warn); } .stat.i .n { color: var(--info); } .stat.a .n { color: var(--ok); } .stat.r .n { color: var(--bad); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button {
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 5px 14px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
}
.filters button.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ----- detalle ----- */
.qa { border-top: 1px solid var(--border); padding: 14px 0; }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa .q { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.qa .a { white-space: pre-wrap; word-break: break-word; }
.mono { font-family: var(--mono); font-size: 13px; }

.timeline { display: flex; flex-direction: column; gap: 10px; }
.reply { border-left: 3px solid var(--border); padding: 6px 0 6px 14px; }
.reply.ACEPTADA { border-color: var(--ok); }
.reply.RECHAZADA { border-color: var(--bad); }
.reply.PENDIENTE { border-color: var(--warn); }
.reply.ENTREVISTA { border-color: var(--info); }
.reply .head { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.reply .body { white-space: pre-wrap; word-break: break-word; }

.status-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.status-pick button {
  border: 1px solid var(--border); background: var(--bg-2); color: var(--muted);
  border-radius: 9px; padding: 10px; font: inherit; font-weight: 600; cursor: pointer;
}
.status-pick button.on.ENTREVISTA { border-color: var(--info); color: var(--info); }
.status-pick button.on.PENDIENTE { border-color: var(--warn); color: var(--warn); }
.status-pick button.on.ACEPTADA { border-color: var(--ok); color: var(--ok); }
.status-pick button.on.RECHAZADA { border-color: var(--bad); color: var(--bad); }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.table-wrap { overflow-x: auto; }

.back { display: block; width: fit-content; margin-bottom: 12px; color: var(--muted); }

/* ----- aviso flotante ----- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--card-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  max-width: 90vw; z-index: 50;
}
.toast.error { border-color: #7f2a2a; }
.toast.success { border-color: #8a5212; }

/* ----- guias ----- */
.row.between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.row.nowrap { flex-wrap: nowrap; }
.hero-links { justify-content: center; margin-top: 12px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc li::marker { color: var(--accent); font-weight: 700; }
.toc .toc-link { font-size: 15px; color: var(--text); text-align: left; }
.toc .toc-link:hover { color: var(--accent); text-decoration: none; }
.rules h3 { scroll-margin-top: 80px; }
.form-actions { margin-top: 14px; }
.search { margin-bottom: 16px; }
.chip {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(245, 150, 31, .14); color: var(--accent); letter-spacing: .3px;
}
.guide-title { margin-top: 10px; font-size: 32px; }
.guide { padding: 26px 30px; }
.md { font-size: 16px; line-height: 1.7; word-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md h2 { font-size: 22px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.md h3 { font-size: 18px; margin: 22px 0 8px; }
.md h4 { font-size: 16px; margin: 18px 0 6px; color: var(--accent); }
.md p { margin: 0 0 14px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 24px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--accent); }
.md strong { color: #fff; }
.md code {
  font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; color: #ffd29a;
}
.md pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 0 0 14px; }
.md pre code { background: none; border: 0; padding: 0; color: var(--text); }
.md blockquote {
  margin: 0 0 14px; padding: 10px 16px; border-left: 4px solid var(--accent);
  background: rgba(245, 150, 31, .07); border-radius: 0 10px 10px 0; color: #f3e3cf;
}
.md-table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 10px; }
.md-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.md-table th { background: var(--card-2); color: var(--steel); text-align: left; font-weight: 700; font-size: 13px; padding: 9px 12px; white-space: nowrap; }
.md-table td { padding: 8px 12px; border-top: 1px solid var(--border); vertical-align: top; min-width: 90px; }
.md-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.md img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; margin: 8px 0; }
.md a { text-decoration: underline; }

.editor { min-height: 420px; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.small-tabs { max-width: 280px; margin-bottom: 10px; }
.grid-cat { display: grid; grid-template-columns: 1fr 140px; gap: 14px; }
.md-help { margin-top: 10px; color: var(--muted); font-size: 13px; }
.md-help summary { cursor: pointer; font-weight: 600; }
.md-help .mono { margin-top: 8px; line-height: 1.9; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }

/* ----- nombres con rango (estilo chat de Minecraft) ----- */
.mcname { font-weight: 600; }
.mcname span { text-shadow: 1px 1px 0 rgba(0, 0, 0, .55); }
.mc-preview {
  background: #1b1b1b; border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 14px; font-size: 16px; min-height: 44px;
}
.mc-preview.small { padding: 6px 10px; font-size: 15px; min-height: 0; display: inline-block; margin-bottom: 4px; white-space: nowrap; }
.mc-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.mc-palette .swatch { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.mc-palette .swatch:hover { border-color: #fff; }
.mc-palette .fmt {
  height: 26px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.mc-palette input[type=color] { width: 34px; height: 28px; padding: 0 2px; border-radius: 6px; cursor: pointer; }
.rank-select { min-width: 130px; padding: 6px 8px; }
.lock-note { color: var(--bad); font-size: 12px; font-weight: 700; margin-top: 4px; }

/* ----- avatares ----- */
.avatar.xs { width: 20px; height: 20px; }
.avatar.xl { width: 88px; height: 88px; border: 3px solid var(--border); }
.title.big { font-size: 20px; }
.avatar-actions { margin-top: 16px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ----- foro ----- */
.card.flush { padding: 6px 0; }
.forum-cat, .forum-thread {
  display: flex; align-items: center; gap: 16px; padding: 14px 22px;
  border-top: 1px solid var(--border); color: var(--text);
}
.forum-cat:first-child, .forum-thread:first-child { border-top: 0; }
a.forum-thread:hover { background: var(--card-2); text-decoration: none; }
.forum-thread.pinned { background: rgba(245, 150, 31, .05); }
.forum-cat .title { font-size: 17px; font-weight: 700; color: var(--text); margin-right: 8px; }
.forum-cat .grow, .forum-thread .grow { min-width: 0; flex: 1; }
.grid-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.forum-thread .title { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.forum-stats { width: 110px; color: var(--muted); font-size: 13px; text-align: right; flex-shrink: 0; }
.forum-stats b { color: var(--text); }
.forum-last { width: 230px; flex-shrink: 0; font-size: 14px; overflow: hidden; }
.forum-last a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 600; }
.admin-mini { flex-shrink: 0; }
.author-inline { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.chip.small { font-size: 11px; padding: 1px 8px; }
.chip.muted { background: var(--card-2); color: var(--muted); }
.pager { justify-content: center; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; cursor: pointer; }
.check input { width: auto; }
.perm-list { display: flex; flex-direction: column; gap: 2px; }
.perm-list .check { display: flex; margin-bottom: 6px; font-size: 14px; font-weight: 500; align-items: flex-start; }
.perm-list .check input { margin-top: 4px; }

.thread-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.modbar { gap: 10px; padding: 12px 18px; }
.modbar select { width: auto; padding: 6px 8px; }
.post { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px 22px; }
.post-author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; border-right: 1px solid var(--border); padding-right: 18px; }
.post-name { word-break: break-word; }
.post-main { min-width: 0; display: flex; flex-direction: column; }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.post-num { color: var(--muted); }
.post-body { flex: 1; }
.post-actions { margin-top: 12px; gap: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.link-btn.danger:hover { color: var(--bad); }
.editor.small { min-height: 160px; }
.md-preview { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; min-height: 160px; }

/* ----- pasos de la postulacion ----- */
.steps { display: flex; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding: 0 8px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; height: 2px; background: var(--border);
  left: calc(50% + 24px); right: calc(-50% + 24px);
}
.step.done:not(:last-child)::after { background: var(--accent); }
.step .dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; background: var(--bg-2); border: 2px solid var(--border); color: var(--muted);
}
.step.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.current .dot { border-color: var(--info); color: var(--info); box-shadow: 0 0 0 4px rgba(96, 165, 250, .15); }
.step.current.good .dot { border-color: var(--ok); background: var(--ok); color: #04210f; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.step.current.bad .dot { border-color: var(--bad); background: var(--bad); color: #fff; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.step.skipped { opacity: .45; }
.step-text { padding-top: 8px; max-width: 230px; }
.step-label { font-weight: 700; }
.step:not(.current):not(.done) .step-label { color: var(--muted); }
.form-hint { margin: -6px 0 14px; }

/* ----- menu Staff y acceso a Mi cuenta ----- */
.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 500; user-select: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: " ▾"; font-size: 11px; }
.nav-menu summary:hover, .nav-menu[open] summary { color: var(--text); background: var(--card); }
.nav-menu.active summary { color: var(--text); background: var(--card-2); }
.nav-menu-list {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 170px; z-index: 20;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); display: flex; flex-direction: column;
}
.nav .nav-menu-list a { padding: 8px 12px; }
.userchip-link { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 4px 8px 4px 4px; border-radius: 999px; }
.userchip-link:hover, .userchip-link.active { background: var(--card); text-decoration: none; }

/* ----- Minecraft ----- */
.mc-head { width: 16px; height: 16px; border-radius: 3px; image-rendering: pixelated; flex-shrink: 0; }
.row > .mc-head { width: 48px; height: 48px; border-radius: 8px; }
.mc-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 4px; }
.mc-line.compact { justify-content: center; }
.mc-name { color: var(--text); font-weight: 600; }
.mc-state { display: inline-flex; align-items: center; gap: 5px; }
.mc-state .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.mc-state.online { color: var(--ok); font-weight: 600; }
.mc-state.online .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.mc-state.inline { margin-left: 12px; font-size: 13px; }
.mc-privacy { margin: 14px 0; font-size: 14px; }
.link-code { display: inline-block; font-size: 20px; padding: 10px 16px; margin: 4px 0 10px; letter-spacing: 1px; color: var(--accent); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; user-select: all; }

/* ----- devlogs ----- */
.devlog-card { display: block; padding: 0; overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
.devlog-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.devlog-cover { width: 100%; max-height: 260px; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.devlog-body { padding: 18px 22px; }
.devlog-body h2 { margin: 6px 0 6px; font-size: 22px; }
.devlog-body .sub { margin: 0; }
.devlog-hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 8px; }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .step .meta { font-size: 12px; }
  .forum-cat, .forum-thread { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .forum-stats { width: auto; text-align: left; }
  .forum-last { width: 100%; }
  .post { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .post-author { flex-direction: row; text-align: left; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .post-author .avatar.lg { width: 36px; height: 36px; }
  .guide { padding: 18px; }
  .grid-cat { grid-template-columns: 1fr; }
  .grid-even { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .userchip .name { display: none; }
}

/* ----- tipos de postulacion ----- */
.grid-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
.type-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-2); color: var(--text); transition: border-color .15s, transform .15s; }
.type-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.type-card.off { opacity: .7; }
.type-name { font-weight: 800; font-size: 17px; }
.type-foot { margin-top: auto; padding-top: 6px; }
.type-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  background: rgba(245, 150, 31, .12); color: var(--accent); border: 1px solid rgba(245, 150, 31, .3); }
.type-filters button .count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px;
  font-size: 11px; background: var(--warn); color: #2b2100; text-align: center; }
.meta.warn { color: var(--warn); }
.perm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.perm-table th, .perm-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.perm-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.perm-table .c { text-align: center; width: 100px; }
.perm-table input { width: auto; }
.q-editor { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.q-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--card-2); }
.q-head { display: flex; gap: 6px; align-items: center; }
.q-head input { flex: 1; }
.q-num { min-width: 24px; height: 24px; border-radius: 50%; background: var(--card); color: var(--muted); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.q-opts { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.q-opts label { display: flex; gap: 6px; align-items: center; margin: 0; }
.q-opts select { width: auto; }
.q-opts input[type=number] { width: 90px; }
.q-item .field { margin: 8px 0 0; }
@media (max-width: 760px) {
  .grid-eq { grid-template-columns: 1fr; }
}

/* ----- pagina de inicio ----- */
.landing { display: flex; flex-direction: column; gap: 28px; }
.home-hero { display: flex; gap: 36px; align-items: center; padding: 34px 32px; border: 1px solid var(--border); border-radius: 18px;
  background: radial-gradient(700px 320px at 15% 0%, rgba(245, 150, 31, .18), transparent 70%), linear-gradient(160deg, var(--card) 0%, var(--bg-2) 100%); }
.home-logo { width: 170px; height: 170px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 10px 28px rgba(245, 150, 31, .28)); }
.home-text { flex: 1; min-width: 0; }
.home-tag { color: var(--accent); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.home-title { margin: 4px 0 8px; font-size: 44px; line-height: 1.05; letter-spacing: -.01em; }
.home-desc { color: var(--steel); margin: 0 0 18px; max-width: 560px; }
.ip-box { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); max-width: 100%; }
.ip-label { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.ip { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0 12px; color: var(--steel); font-size: 14px; vertical-align: middle; }
.online-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.home-actions { margin-top: 20px; }
.btn.discord { background-image: none; background: var(--discord); border-color: var(--discord); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { position: relative; display: block; padding: 18px 18px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--text); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tile-title { font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.tile-go { position: absolute; top: 16px; right: 16px; color: var(--accent); font-weight: 800; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head { margin-bottom: 12px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--card); color: var(--text); transition: border-color .15s; }
.news-card:hover { border-color: var(--accent); text-decoration: none; }
.news-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--card-2); }
.news-cover.empty-cover { display: flex; align-items: center; justify-content: center; }
.news-cover.empty-cover img { width: 64px; height: 64px; object-fit: contain; opacity: .5; }
.news-body { padding: 12px 14px 14px; }
.news-title { font-weight: 700; margin: 2px 0 4px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.join { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.card.join .grow { flex: 1; min-width: 220px; }
.card.join .sub { margin: 0; }

/* ----- informes ----- */
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.report-search, .bans-search { max-width: 280px; }
.item > .mc-head, .row > .mc-head { border-radius: 6px; }
.report-head { margin-bottom: 16px; align-items: flex-start; }
.page-title.flat { margin: 0; }
.section-title { margin: 0 0 10px; font-size: 16px; color: var(--steel); }
.incident .title { font-weight: 600; }
.incident-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 4px; }
.incident-actions { margin-top: 14px; }
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.att { margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.att img, .att video { width: 100%; height: 150px; object-fit: cover; display: block; background: #000; }
.att video { object-fit: contain; }
.att figcaption { display: flex; gap: 6px; align-items: center; padding: 6px 8px; font-size: 12px; color: var(--muted); }
.att figcaption .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { background: none; border: 0; color: var(--bad); cursor: pointer; padding: 0 2px; font-size: 13px; }
.file-picker .file-btn { position: relative; overflow: hidden; }
.file-picker .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.file-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.file-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-kind { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.uploads { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.upload-row .bar { height: 6px; border-radius: 6px; background: var(--card-2); overflow: hidden; margin-top: 4px; }
.upload-row .bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upload-row.done .bar-fill { background: var(--ok); }
.upload-row.failed .bar-fill { background: var(--bad); width: 100%; }
.add-files { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.add-files .row { margin-top: 10px; }
.card.highlight { border-color: var(--accent); }
.sanction { font-weight: 700; font-size: 16px; margin-bottom: 12px; overflow-wrap: anywhere; }
.btn.ok { background-image: none; background: var(--ok); border-color: var(--ok); color: #052e14; }
.notice.ok { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
.notice.bad { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.quote { margin: 6px 0 2px; padding-left: 10px; border-left: 3px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--steel); }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mini-item:last-child { border-bottom: 0; padding-bottom: 0; }
.badge.ABIERTO { background: rgba(59, 130, 246, .16); color: var(--info); }
.badge.ACEPTADO { background: rgba(34, 197, 94, .15); color: var(--ok); }
.badge.CERRADO { background: rgba(239, 68, 68, .15); color: var(--bad); }
.badge.ACTIVO { background: rgba(239, 68, 68, .15); color: var(--bad); }
.badge.EXPIRADO { background: var(--card-2); color: var(--muted); }
.badge.REVOCADO { background: rgba(59, 130, 246, .16); color: var(--info); }

/* ----- registro de baneos ----- */
.table-wrap { overflow-x: auto; margin-top: 12px; }
.bans-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bans-table th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.bans-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.bans-table .reason { min-width: 200px; overflow-wrap: anywhere; }
.bans-table .chip { margin-left: 6px; }
.nowrap { white-space: nowrap; }
.mono-name { font-weight: 600; }
.pager { justify-content: center; margin-top: 14px; }

@media (max-width: 760px) {
  .home-hero { flex-direction: column; text-align: center; padding: 26px 18px; gap: 16px; }
  .home-logo { width: 120px; height: 120px; }
  .home-title { font-size: 34px; }
  .home-desc { margin-left: auto; margin-right: auto; }
  .home-actions { justify-content: center; }
  .online-pill { margin: 12px 0 0; display: flex; justify-content: center; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .stats.three { grid-template-columns: 1fr; }
  .report-search, .bans-search { max-width: none; }
  .report-head { flex-direction: column; }
}

/* ----- pie y textos legales ----- */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: 980px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.site-footer .meta { color: var(--muted); font-size: 12px; }
.legal-check { align-items: flex-start; font-size: 14px; line-height: 1.5; }
.legal-check input { margin-top: 3px; }
.legal-date { margin-top: 18px; }
