/* ==========================================================================
   CENTRO DE AYUDA — centro-de-ayuda.php
   ========================================================================== */

.help-page {
  max-width: 68rem;
  padding-bottom: var(--page-bottom);
}

.help-hero {
  padding-top: var(--hero-space);
  padding-bottom: 0;
  text-align: center;
}

.help-hero__title {
  width: 100%;
  font-size: clamp(2.35rem, 1.75rem + 2.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.help-search-wrap {
  width: 100%;
  max-width: none;
  margin-top: 0;
  margin-bottom: 5.5rem;
}

@media (min-width: 640px) {
  .help-search-wrap {
    margin-bottom: 6.5rem;
  }
}

@media (min-width: 1024px) {
  .help-search-wrap {
    margin-bottom: 7.5rem;
  }
}

.help-search {
  width: 100%;
  padding: 0.95rem 1.15rem 0.95rem 3rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0b1524;
  color: #f8fafc;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.help-search::placeholder {
  color: #94a3b8;
}

.help-search:focus {
  border-color: rgba(110, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 200, 255, 0.14);
}

.help-search-field {
  position: relative;
}

.help-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: #94a3b8;
  pointer-events: none;
}

.help-section {
  margin-top: var(--section-space-tight);
}

.help-section--faqs {
  margin-top: var(--section-space-tight);
}

.help-section--cta {
  margin-top: var(--section-space);
}

.help-section__head {
  margin-bottom: 1.5rem;
}

.help-section__title {
  margin: 0;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.65rem);
  font-weight: 700;
  color: #fff;
}

.help-empty {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(134, 147, 255, 0.22);
  text-align: center;
  font-size: 0.92rem;
}

.help-empty.is-visible {
  display: block;
}

.help-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.help-filter {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(134, 147, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.help-filter:hover {
  border-color: rgba(110, 200, 255, 0.28);
  color: #fff;
}

.help-filter.is-active {
  border-color: rgba(110, 200, 255, 0.45);
  background: rgba(110, 200, 255, 0.12);
  color: #fff;
}

.help-faq-group {
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .help-faq-group {
    margin-top: 4.25rem;
  }
}

@media (min-width: 1024px) {
  .help-faq-group {
    margin-top: 5rem;
  }
}

.help-empty + .help-faq-group {
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .help-empty + .help-faq-group {
    margin-top: 1.5rem;
  }
}

.help-faq-group .faq-item {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.help-faq-group.is-hidden,
.help-section.is-hidden {
  display: none;
}

.help-faq-group .faq-content-inner a {
  color: #9ec8ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.help-faq-group .faq-content-inner a:hover {
  color: #c5ddff;
}

html[data-theme="light"] .help-search {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

html[data-theme="light"] .help-search::placeholder {
  color: #9ca3af;
}

html[data-theme="light"] .help-search:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

html[data-theme="light"] .help-search-icon {
  color: #9ca3af;
}

html[data-theme="light"] .help-section__title,
html[data-theme="light"] .help-hero__title {
  color: #111827;
}

html[data-theme="light"] .help-empty {
  border-color: #d1d5db;
  color: #6b7280;
}

html[data-theme="light"] .help-faq-group .faq-content-inner a {
  color: #1a365d;
}

html[data-theme="light"] .help-empty a {
  color: #1a365d;
}

html[data-theme="light"] .help-filter {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
}

html[data-theme="light"] .help-filter:hover {
  border-color: #9ca3af;
  color: #111827;
}

html[data-theme="light"] .help-filter.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}
