/* Centro de ayuda público de ChatGR. Aislado del panel y de las demás secciones. */
.cgh,
.cgh-home {
  --cgh-ink: #122638;
  --cgh-muted: #536678;
  --cgh-green: #08785a;
  --cgh-border: #dbe6e5;
  --cgh-soft: #f3f8f5;
  --cgh-tint: #eaf5ef;
  color: var(--cgh-ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cgh *,
.cgh *::before,
.cgh *::after,
.cgh-home *,
.cgh-home *::before,
.cgh-home *::after {
  box-sizing: border-box;
}

.cgh [hidden],
.cgh-home [hidden] {
  display: none !important;
}

.cgh {
  padding-block: 3.5rem 4rem;
}

.cgh p,
.cgh-home p {
  font-size: 1rem;
  line-height: 1.7;
}

.cgh :is(h1, h2, h3),
.cgh-home :is(h1, h2, h3) {
  margin: 0;
  color: var(--cgh-ink);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.cgh :focus-visible,
.cgh-home :focus-visible {
  outline: 3px solid #126fbd;
  outline-offset: 4px;
}

.cgh :is(a, button, summary),
.cgh-home :is(a, button, summary) {
  -webkit-tap-highlight-color: transparent;
}

.cgh .cgh-hero {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.cgh .cgh-hero .eyebrow,
.cgh-home .eyebrow {
  margin-bottom: .875rem;
  color: var(--cgh-green);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.cgh .cgh-hero h1 {
  max-width: 44rem;
  font-size: clamp(2.25rem, 4.3vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -.04em;
}

.cgh .cgh-hero p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--cgh-muted);
  font-size: 1.125rem;
}

.cgh .cgh-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .625rem .75rem;
  max-width: 49rem;
  margin: 0 0 1.25rem;
}

.cgh .cgh-search label {
  grid-column: 1 / -1;
  font-size: .875rem;
  font-weight: 650;
}

.cgh .cgh-search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1px solid #a8c2b9;
  border-radius: .625rem;
  background: #fff;
  color: var(--cgh-ink);
  font: inherit;
  font-size: 1rem;
}

.cgh .cgh-search input::placeholder {
  color: var(--cgh-muted);
  opacity: 1;
}

.cgh .cgh-search .btn {
  min-height: 3.25rem;
  font-size: 1rem;
}

.cgh .cgh-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.cgh .cgh-topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .625rem .875rem;
  border: 1px solid var(--cgh-border);
  border-radius: .5rem;
  background: #fff;
  color: #345449;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.cgh .cgh-topic:hover {
  border-color: #83b49f;
  background: var(--cgh-soft);
}

.cgh .cgh-topic[aria-current="true"],
.cgh .cgh-topic[aria-current="page"] {
  border-color: var(--cgh-green);
  background: var(--cgh-green);
  color: #fff;
}

.cgh .cgh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  margin-bottom: 2rem;
}

.cgh #help-results {
  margin: 0;
  color: var(--cgh-muted);
  font-size: .875rem;
}

.cgh .cgh-reset,
.cgh .cgh-faq-link,
.cgh .cgh-breadcrumb a,
.cgh .cgh-toc a,
.cgh .cgh-article p a {
  color: var(--cgh-green);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.cgh .cgh-reset {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 650;
}

.cgh [data-help-section] + [data-help-section] {
  margin-top: 3rem;
}

.cgh .cgh-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.cgh .cgh-section-head h2 {
  font-size: 1.625rem;
  font-weight: 700;
}

.cgh .cgh-section-head p {
  margin: 0;
  color: var(--cgh-muted);
  font-size: .875rem;
}

.cgh .cgh-grid,
.cgh .cgh-related-grid,
.cgh-home .cgh-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cgh .cgh-guide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--cgh-border);
  border-radius: .875rem;
  background: #fff;
  color: var(--cgh-ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.cgh .cgh-guide:hover {
  border-color: #83b49f;
  background: #f8fbf9;
}

.cgh .cgh-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  background: var(--cgh-tint);
  color: var(--cgh-green);
  font-size: 1.25rem;
  font-weight: 650;
}

.cgh .cgh-guide-category,
.cgh .cgh-category {
  display: block;
  color: #386952;
  font-size: .875rem;
  font-weight: 650;
}

.cgh .cgh-guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.cgh .cgh-guide-description {
  margin: 0;
  color: var(--cgh-muted);
  font-size: 1rem;
}

.cgh .cgh-guide-meta {
  display: block;
  padding-top: .5rem;
  margin-top: auto;
  color: var(--cgh-green);
  font-size: .875rem;
  font-weight: 650;
}

.cgh .cgh-faq-list {
  border-top: 1px solid var(--cgh-border);
}

.cgh .cgh-faq {
  border-bottom: 1px solid var(--cgh-border);
}

.cgh .cgh-faq summary {
  position: relative;
  display: block;
  min-height: 3rem;
  padding: 1.125rem 2.25rem 1.125rem 0;
  color: var(--cgh-ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
}

.cgh .cgh-faq summary::-webkit-details-marker {
  display: none;
}

.cgh .cgh-faq summary::marker {
  content: "";
}

.cgh .cgh-faq summary::after {
  content: "+";
  position: absolute;
  top: 1rem;
  right: .375rem;
  color: var(--cgh-green);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.cgh .cgh-faq[open] summary::after {
  content: "−";
}

.cgh .cgh-faq p {
  max-width: 56rem;
  margin: 0 0 1rem;
  padding-right: 2rem;
  color: var(--cgh-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.cgh .cgh-faq-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-bottom: .75rem;
  font-size: .875rem;
  font-weight: 650;
}

.cgh .cgh-empty {
  padding: 2rem;
  border-radius: .875rem;
  background: var(--cgh-soft);
}

.cgh .cgh-empty h2 {
  font-size: 1.375rem;
}

.cgh .cgh-empty p {
  margin: .75rem 0 0;
  color: var(--cgh-muted);
}

.cgh .cgh-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.75rem 2rem;
  margin-top: 3rem;
  border-radius: .875rem;
  background: var(--cgh-soft);
}

.cgh .cgh-support > div {
  flex: 1 1 20rem;
  min-width: 0;
}

.cgh .cgh-support h2 {
  font-size: 1.375rem;
}

.cgh .cgh-support p {
  margin: .5rem 0 0;
  color: var(--cgh-muted);
}

.cgh .cgh-support .btn,
.cgh .cgh-article-actions .btn,
.cgh-home .btn {
  font-size: .875rem;
}

.cgh .cgh-breadcrumb {
  margin-bottom: 2rem;
}

.cgh .cgh-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .375rem .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--cgh-muted);
}

.cgh .cgh-breadcrumb li + li::before {
  content: "/";
  margin-right: .75rem;
  color: #7a8b83;
}

.cgh .cgh-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
  align-items: start;
  gap: 4rem;
}

.cgh .cgh-article {
  min-width: 0;
  max-width: 48rem;
}

.cgh .cgh-article-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--cgh-border);
}

.cgh .cgh-article-header h1 {
  margin: .75rem 0 1.25rem;
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 750;
  letter-spacing: -.035em;
}

.cgh .cgh-article-header p {
  margin: 0;
  color: var(--cgh-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.cgh .cgh-article :is(ul, ol) {
  padding-left: 1.5rem;
}

.cgh .cgh-article li + li {
  margin-top: .5rem;
}

.cgh .cgh-article :is(h2, h3) {
  margin-bottom: .875rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
}

.cgh .cgh-requirements {
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: .875rem;
  background: var(--cgh-soft);
}

.cgh .cgh-requirements ul {
  margin: 0;
  color: #405d50;
}

.cgh .cgh-step {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--cgh-border);
}

.cgh .cgh-step p {
  margin: 0;
  color: #405569;
  font-size: 1rem;
  line-height: 1.85;
}

.cgh .cgh-note {
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid var(--cgh-green);
  background: #f6faf8;
}

.cgh .cgh-note h2 {
  font-size: 1.125rem;
}

.cgh .cgh-note p {
  margin: 0;
  color: #405d50;
}

.cgh .cgh-article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
}

.cgh .cgh-toc {
  position: sticky;
  top: 6.75rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 1px solid var(--cgh-border);
  font-size: .875rem;
}

.cgh .cgh-toc h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.cgh .cgh-toc :is(ul, ol) {
  display: grid;
  gap: .875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cgh .cgh-toc a {
  display: inline-block;
  text-decoration: none;
  line-height: 1.55;
}

.cgh .cgh-toc a:hover {
  text-decoration: underline;
}

.cgh .cgh-related-grid {
  margin-top: 1.25rem;
}

.cgh .cgh-article-layout + section {
  margin-top: 3.5rem;
}

.cgh .cgh-not-found {
  max-width: 44rem;
  padding-block: 2rem;
}

.cgh .cgh-not-found h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cgh .cgh-not-found p {
  margin: 1.25rem 0;
  color: var(--cgh-muted);
}

.cgh-home .cgh-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .875rem 2rem;
  margin-bottom: 1.75rem;
}

.cgh-home .cgh-home-head > div {
  min-width: 0;
  max-width: 48rem;
}

.cgh-home .cgh-home-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 750;
}

.cgh-home .cgh-home-head p {
  max-width: 47rem;
  margin: .875rem 0 0;
  color: var(--cgh-muted);
}

.cgh-home .cgh-home-head > .btn {
  flex-shrink: 0;
}

.cgh-home .cgh-home-guide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--cgh-border);
  border-radius: .875rem;
  background: #fff;
  color: var(--cgh-ink);
  text-decoration: none;
}

.cgh-home .cgh-home-guide:hover {
  border-color: #83b49f;
  background: #f8fbf9;
}

.cgh-home .cgh-home-guide strong {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.cgh-home .cgh-home-guide span {
  color: var(--cgh-muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .cgh .cgh-grid,
  .cgh .cgh-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cgh .cgh-article-layout {
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 2rem;
  }

  .cgh-home .cgh-home-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .cgh {
    padding-block: 2.25rem 3rem;
  }

  .cgh .cgh-hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .cgh .cgh-hero p {
    font-size: 1rem;
  }

  .cgh .cgh-grid,
  .cgh .cgh-related-grid,
  .cgh-home .cgh-home-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cgh .cgh-guide,
  .cgh-home .cgh-home-guide {
    padding: 1.25rem;
  }

  .cgh .cgh-section-head {
    display: block;
  }

  .cgh .cgh-section-head p {
    margin-top: .5rem;
  }

  .cgh .cgh-support {
    padding: 1.5rem;
    margin-top: 2.5rem;
  }

  .cgh .cgh-support > .btn {
    width: 100%;
  }

  .cgh .cgh-article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cgh .cgh-toc {
    position: static;
    order: -1;
    padding: 1.25rem;
    border: 0;
    border-radius: .75rem;
    background: var(--cgh-soft);
  }

  .cgh .cgh-article-header h1 {
    font-size: 2rem;
  }

  .cgh .cgh-requirements,
  .cgh .cgh-note,
  .cgh .cgh-empty {
    padding: 1.25rem;
  }

  .cgh .cgh-article-actions {
    align-items: stretch;
  }

  .cgh .cgh-article-actions > .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .cgh .cgh-search {
    grid-template-columns: 1fr;
  }

  .cgh .cgh-search .btn {
    width: 100%;
  }

  .cgh .cgh-topic {
    padding-inline: .75rem;
  }

  .cgh .cgh-faq p {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cgh *,
  .cgh-home * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .cgh {
    padding-block: 1rem;
  }

  .cgh .cgh-article-layout {
    display: block;
  }

  .cgh .cgh-toc,
  .cgh .cgh-support,
  .cgh .cgh-article-actions {
    display: none;
  }

  .cgh .cgh-step,
  .cgh .cgh-requirements,
  .cgh .cgh-guide {
    break-inside: avoid;
  }
}
