/* Centro de ayuda NotIA */
.ayuda-page {
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.5rem, 2vw, 1rem);
  padding-right: clamp(0.5rem, 2vw, 1rem);
}

/* Público (sin sidebar): usar todo el ancho y centrar el bloque */
body:not(.notia-panel-app) .main-content:has(.ayuda-page) {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 2.5rem;
  box-sizing: border-box;
}

.ayuda-page__public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.ayuda-breadcrumb a {
  color: #0277bd;
  text-decoration: none;
}

.ayuda-breadcrumb a:hover {
  text-decoration: underline;
}

.ayuda-hub-card {
  display: block;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ayuda-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 119, 189, 0.12);
  color: inherit;
}

.ayuda-hub-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 136, 209, 0.12);
  color: #0277bd;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.ayuda-hub-card__icon--faq {
  background: rgba(94, 53, 181, 0.1);
  color: #5e35b1;
}

.ayuda-contacto {
  max-width: 720px;
}

.ayuda-mapa-nav .config-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(2, 136, 209, 0.12);
}

.ayuda-mapa-nav.notia-action-bar {
  justify-content: flex-start;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.15rem;
  background: transparent;
}

.ayuda-mapa-nav__label {
  flex: 0 0 auto;
  margin-right: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

body.notia-panel-app .ayuda-mapa-nav {
  top: 0.75rem;
  z-index: 5;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 0.75rem;
  padding: 0.4rem 0.45rem;
}

.ayuda-seccion__title {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ayuda-modulos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ayuda-modulo {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: #f8fbfd;
  border: 1px solid rgba(2, 136, 209, 0.1);
}

.ayuda-modulo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ayuda-modulo__pasos {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.ayuda-modulo__pasos li + li {
  margin-top: 0.35rem;
}

.ayuda-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ayuda-faq-item {
  border: 1px solid rgba(2, 136, 209, 0.12);
  border-radius: 10px;
  background: #fafcfe !important;
  overflow: hidden;
  color: #0f172a !important;
}

.ayuda-faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
  color: #0f172a !important;
}

.ayuda-faq-item > summary::-webkit-details-marker {
  display: none;
}

.ayuda-faq-item > summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 136, 209, 0.1);
  color: #0277bd;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.ayuda-faq-item[open] > summary::after {
  content: '−';
}

.ayuda-faq-item > summary:hover {
  background: rgba(2, 136, 209, 0.04);
}

.ayuda-faq-item__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 0.75rem;
  color: #334155 !important;
  line-height: 1.55;
}

.ayuda-faq-item__body p,
.ayuda-faq-seccion .h6,
.ayuda-contacto .h6,
.ayuda-contacto p,
.ayuda-modulo,
.ayuda-modulo p,
.ayuda-modulo li,
.ayuda-hub-card {
  color: #334155 !important;
}

.ayuda-hub-card h2,
.ayuda-seccion__title {
  color: #0f172a !important;
}

.ayuda-mapa-nav .notia-action-link {
  background: #fff;
  color: #0d5c63;
  border-color: rgba(13, 92, 99, 0.22);
}

.ayuda-mapa-nav .notia-action-link:hover,
.ayuda-mapa-nav .notia-action-link:focus-visible {
  background: rgba(13, 92, 99, 0.06);
  color: #0f766e;
  border-color: rgba(13, 92, 99, 0.4);
}

.ayuda-breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.95;
}

body.notia-panel-app .ayuda-page .config-header .ayuda-breadcrumb,
body.notia-panel-app .ayuda-page .config-header .ayuda-breadcrumb a,
body.notia-panel-app .ayuda-page .config-header .ayuda-breadcrumb span {
  color: rgba(255, 255, 255, 0.95) !important;
}

@media (max-width: 575.98px) {
  .ayuda-page .config-header {
    padding: 1.15rem 1rem !important;
  }

  .ayuda-mapa-nav {
    position: static !important;
    background: transparent;
    backdrop-filter: none;
    padding: 0.15rem 0;
  }

  .ayuda-faq-item > summary {
    font-size: 0.92rem;
    align-items: flex-start;
  }

  .ayuda-modulo__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
