:root { color-scheme: light; --ink: #071637; --navy: #052460; --blue: #2b56c8; --gold: #e3b25a; --paper: #f7f4ee; --tint: #efe9dc; --muted: #5a6479; --line: rgba(7,22,55,.12); font: 15px/1.55 Manrope, system-ui, sans-serif; color: #17203a; background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; }
button:disabled { cursor: default; opacity: .55; }
button:hover:not(:disabled), .button:hover { filter: brightness(.96); }
.outline { border: 1px solid var(--line); background: #fff; }
.plain { border: 0; background: transparent; color: var(--blue); padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; min-height: 40px; }
.danger { color: #a3261b; }
.danger-solid { background: #a3261b; color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 3; background: #fff; padding: 10px; }
.skip:focus { top: 8px; }
.foro-header { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 10px 24px; min-height: 60px; background: var(--ink); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: #fff; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 600 20px Fraunces, Georgia, serif; }
.foro-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.foro-header nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: #ffffffc7; font-weight: 700; font-size: 14px; }
.foro-header nav a[aria-current] { background: #ffffff1f; color: #fff; }
.identity { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #ffffffcc; }
.identity button { background: transparent; padding: 4px; color: #f3d595; font-size: 13px; }
.brand:hover { color: #fff; }
main { max-width: 1228px; margin: 0 auto; padding: 28px 24px 56px; }
main:focus { outline: none; }
main.thread-width { max-width: 908px; }
main.list-width { max-width: 1128px; }
h1, h2, h3 { color: var(--ink); font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0; }
.muted, small { color: var(--muted); }
small { font-size: 12.5px; }
.eyebrow { color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.stack, #view { display: flex; flex-direction: column; gap: 18px; }
.stack { gap: 12px; }
.columns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.primary { flex: 999 1 560px; min-width: 0; display: grid; gap: 26px; }
.sidebar { flex: 1 1 280px; display: grid; gap: 14px; }
.heading, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.heading { align-items: flex-end; }
.heading > :first-child { flex: 1 1 320px; }
.heading p { margin-top: 6px; }
.search { flex: 0 1 260px; }
.card, .category-list, .thread-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.card { padding: 16px 18px; }
.category-list, .thread-list { overflow: hidden; }
.category-row, .thread-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 14px 18px; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(7,22,55,.08); }
.category-row:last-child, .thread-row:last-child { border-bottom: 0; }
.category-row:hover, .category-tile:hover, .thread-row:hover { background: var(--paper); color: inherit; }
.row-main { flex: 1 1 300px; min-width: 0; }
.row-title { font-size: 15.5px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.row-desc { color: var(--muted); font-size: 13.5px; }
.row-stats { color: var(--muted); font-size: 13px; text-align: right; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.category-tile { display: grid; gap: 4px; padding: 14px 16px; text-decoration: none; color: inherit; }
.states { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.states .category-tile { display: flex; justify-content: space-between; padding: 10px 14px; }
.pill { display: inline-block; font: 700 11px/1 Manrope, sans-serif; padding: 4px 8px; border-radius: 999px; background: var(--tint); color: var(--navy); margin: 0 6px 2px 0; vertical-align: 2px; }
.banner { padding: 14px 16px; border-radius: 14px; background: #fdf1dc; color: #7a4800; font-size: 14px; }
.banner a { color: inherit; font-weight: 800; }
.success { background: #e6f3ec; color: #1f7a4d; }
.rules { margin: 0; padding-left: 20px; font-size: 13.5px; display: grid; gap: 4px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); }
.breadcrumb a { font-weight: 700; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { min-height: 40px; font-size: 13px; padding: 9px 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-head { display: flex; gap: 18px; padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.table-head > :first-child, .thread-row .row-main { flex: 1 1 380px; }
.replies { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.activity { width: 150px; text-align: right; font-size: 13px; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; font-size: 14px; }
.pagination a { font-weight: 700; }
.message { padding: 18px 20px; display: grid; gap: 10px; overflow-wrap: anywhere; }
.message.mine { border: 2px solid #9db9ff; }
.message-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.message-head small { display: inline-block; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #9db9ff; font-weight: 800; color: var(--ink); }
.message-actions { border-top: 1px solid rgba(7,22,55,.08); padding-top: 6px; gap: 4px; }
.message-actions .report { margin-left: auto; }
.placeholder { background: #f0eee9; border: 1px dashed rgba(7,22,55,.22); color: #4a5263; }
.markdown { white-space: pre-wrap; overflow-wrap: anywhere; }
.markdown p, .markdown ul, .markdown blockquote { margin: 0 0 8px; }
.markdown > :last-child { margin-bottom: 0; }
.markdown ul { padding-left: 22px; }
.markdown blockquote { padding: 6px 12px; border-left: 3px solid var(--gold); background: var(--paper); color: var(--muted); }
code { background: var(--tint); padding: 1px 4px; border-radius: 3px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; border-radius: 10px; border: 1px solid rgba(7,22,55,.16); background: #fff; color: var(--ink); padding: 10px 12px; font-weight: 500; font-size: 15px; min-height: 44px; }
textarea { resize: vertical; line-height: 1.5; }
.check-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.counter { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.preview { padding: 12px; min-height: 140px; background: var(--paper); border-radius: 10px; }
.format summary { font-weight: 800; cursor: pointer; }
.format pre { white-space: pre-wrap; font-size: 13px; }
.login-card { max-width: 450px; margin: 32px auto; padding: 28px; display: grid; gap: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
#codigo { letter-spacing: .4em; }
#status:empty { display: none; }
#status { margin-bottom: 16px; color: var(--muted); }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 24px 60px -24px rgba(7,22,55,.45); }
dialog::backdrop { background: rgba(7,22,55,.55); }
dialog fieldset { display: grid; gap: 8px; padding: 0; margin: 0; border: 0; }
dialog legend { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
dialog .actions { justify-content: flex-end; }
@media (max-width: 600px) {
  .foro-header { padding: 10px 16px; gap: 8px 12px; }
  .identity { width: 100%; justify-content: flex-end; }
  main { padding: 24px 16px 40px; }
  h1 { font-size: 29px; }
  .table-head { display: none; }
  .thread-row .row-main { flex-basis: 100%; }
  .activity { margin-left: auto; width: auto; }
  .replies { width: auto; }
  .replies::after { content: ' respuestas'; font-size: 12px; font-weight: 500; }
  .row-stats { text-align: left; }
  .message { padding: 14px 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .states { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

.foro-logo { display: block; height: 36px; width: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
