
/* Centro de ayuda */
#help-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
}

#help-dialog .panel-dialog-body {
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  padding-bottom: 24px;
}

.help-intro {
  margin: 0 0 20px;
  color: #64748b;
}

.help-center {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 390px;
  max-height: min(500px, calc(100dvh - 230px));
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #fff;
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  overflow-y: auto;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
}

.help-nav button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.help-nav button:hover,
.help-nav button.active {
  color: #155eef;
  background: #eaf2ff;
}

.help-content {
  min-width: 0;
  padding: 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.help-panel[hidden] { display: none; }
.help-panel h3 { margin: 0 0 16px; color: #0f172a; font-size: 19px; }
.help-panel details { padding: 13px 0; border-bottom: 1px solid #e2e8f0; }
.help-panel details:last-child { border-bottom: 0; }
.help-panel summary { color: #172033; font-weight: 700; cursor: pointer; }
.help-panel details p { margin: 8px 0 0; color: #64748b; font-size: 14px; line-height: 1.55; }
.help-panel a { color: #155eef; font-weight: 700; text-decoration: none; }
.help-panel a:hover { text-decoration: underline; }
.help-coming { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; color: #8a5a00; background: #fff3cd; font-size: 10px; font-weight: 800; }

@media (max-width: 700px) {
  #help-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  #help-dialog .panel-dialog-body {
    max-height: calc(100dvh - 42px);
    overflow-y: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .help-center {
    display: block;
    max-height: none;
    overflow: visible;
  }

  .help-nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .help-nav button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .help-content {
    max-height: calc(100dvh - 300px);
    padding: 18px;
  }
}
