/* Estilos del módulo del canal de denuncias. Usa --wb-accent si la página lo define. */
.wb-intro a { color: var(--wb-accent, #c96630); font-weight: 700; }
.wb-portal { display: grid; gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.wb-portal h2 { margin: 0; font-size: 1.9rem; line-height: 1.2; }
.wb-portal h3 { margin: .5rem 0 0; font-size: 1.25rem; }
.wb-lead { margin: 0; font-size: 1.1rem; text-align: center; }
.wb-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.wb-choice {
  display: grid; gap: .6rem; min-height: 170px; padding: 1.75rem 1.5rem; border: 2px solid var(--wb-accent, #c96630);
  border-radius: 10px; background: #fff; color: inherit; font: inherit; text-align: center; cursor: pointer;
  box-shadow: 0 4px 10px #0000001f; transition: background .2s ease, color .2s ease;
}
.wb-choice strong { color: var(--wb-accent, #c96630); font-size: 1.6rem; line-height: 1.2; }
.wb-choice:hover, .wb-choice:focus-visible { background: var(--wb-accent, #c96630); color: #fff; }
.wb-choice:hover strong, .wb-choice:focus-visible strong { color: #fff; }
.wb-back { justify-self: start; padding: .3rem 0; border: 0; background: none; color: var(--wb-accent, #c96630); font: inherit; font-weight: 700; cursor: pointer; }
.wb-button {
  justify-self: start; min-height: 48px; padding: .75rem 1.8rem; border: 0; border-radius: 6px;
  background: var(--wb-accent, #c96630); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.wb-button:disabled { cursor: wait; opacity: .65; }
.wb-form { display: grid; gap: 1rem; }
.wb-form label, .wb-toolbar label { display: grid; gap: .35rem; font-weight: 600; }
.wb-form label[hidden] { display: none; }
.wb-portal input:not([type="checkbox"]), .wb-portal textarea, .wb-portal select {
  width: 100%; min-height: 44px; padding: .6rem .75rem; border: 1px solid #bbb; border-radius: 4px; background: #fff; font: inherit;
}
.wb-portal textarea { min-height: 160px; resize: vertical; }
.wb-form .wb-check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 600; }
.wb-check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--wb-accent, #c96630); }
.wb-hint { color: #666; font-size: .92rem; font-weight: 400; }
.wb-error { margin: 0; color: #8a2d20; font-weight: 700; }
.wb-error:empty { display: none; }
.wb-receipt { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0; padding: 1.25rem; border-radius: 8px; background: #f8ece6; }
.wb-receipt dt { font-weight: 700; }
.wb-receipt dd { margin: 0; overflow-wrap: anywhere; }
.wb-code { font-size: 1.4rem; font-weight: 700; letter-spacing: .12em; }
.wb-list-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }
.wb-user { color: #666; }
.wb-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
.wb-items { display: grid; gap: .75rem; }
.wb-item {
  display: grid; gap: .35rem; padding: 1rem 1.1rem; border: 1px solid #e3d6cf; border-radius: 8px;
  background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.wb-item:hover, .wb-item:focus-visible { border-color: var(--wb-accent, #c96630); }
.wb-item-meta { color: #666; font-size: .92rem; }
.wb-state { justify-self: start; padding: .15rem .6rem; border-radius: 20px; background: #eee; font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.wb-state.is-pendiente { background: #fde4d6; color: #8a3a12; }
.wb-state.is-en-tramitacion { background: #fff1c2; color: #6b5200; }
.wb-state.is-cerrada { background: #dff0e3; color: #1f5f2f; }
.wb-empty { margin: 0; color: #666; }
.wb-message { margin: 0; white-space: pre-wrap; }
.wb-history { margin: 0; padding-left: 1.4rem; }
.wb-history p { margin: .2rem 0 .6rem; color: #555; }
.wb-history li { margin-bottom: .3rem; }
.wb-email-block { display: grid; gap: .75rem; }
.wb-warning {
  margin: 0; padding: .9rem 1.1rem; border-left: 5px solid var(--wb-accent, #c96630); border-radius: 4px;
  background: #fff4d6; color: #4a3500; font-weight: 700;
}
.wb-ok { margin: 0; color: #1f5f2f; font-weight: 700; }
.wb-ok:empty { display: none; }
.wb-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.wb-small {
  min-height: 40px; padding: .4rem 1rem; border: 2px solid var(--wb-accent, #c96630); border-radius: 6px;
  background: #fff; color: var(--wb-accent, #c96630); font: inherit; font-weight: 700; cursor: pointer;
}
.wb-small:hover, .wb-small:focus-visible { background: var(--wb-accent, #c96630); color: #fff; }
.wb-conversation { display: grid; gap: .75rem; }
.wb-comment { max-width: 85%; padding: .8rem 1rem; border: 1px solid #e3d6cf; border-radius: 8px; background: #fff; }
.wb-comment.is-compliance { justify-self: end; border-color: #f0d2c2; background: #f8ece6; }
.wb-comment-meta { margin: 0 0 .3rem; color: #666; font-size: .92rem; font-weight: 700; }
.wb-comment-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wb-users { display: grid; gap: .6rem; }
.wb-user-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem 1rem; border: 1px solid #e3d6cf; border-radius: 8px; background: #fff;
}
.wb-user-row.is-inactive { background: #f3f3f3; color: #666; }
.wb-user-info { display: grid; gap: .15rem; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .wb-choices, .wb-toolbar { grid-template-columns: 1fr; }
  .wb-choice { min-height: 130px; }
  .wb-receipt { grid-template-columns: 1fr; }
  .wb-button { justify-self: stretch; }
  .wb-actions { margin-left: 0; }
  .wb-comment { max-width: 100%; }
}
