/* ════════════════════════════════════════
   NEGOTIALE — HELP CENTER
   Hereda variables de landing.css
════════════════════════════════════════ */

/* Navbar siempre con fondo (no hay hero detrás). */
.navbar {
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

body {
  padding-top: 76px;
}

/* ── Layout general ── */
.help-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 80px;
}

/* ── Sidebar de categorías ── */
.help-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.help-sidebar h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 700;
}

.help-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}

.help-cat-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.help-cat-link.is-active {
  background: linear-gradient(135deg, var(--primary-dim), var(--accent-dim));
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
  font-weight: 600;
}

.help-cat-link-icon {
  font-size: 1rem;
}

/* ── Buscador ── */
.help-main {
  min-width: 0;
}

.help-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  transition: border-color var(--transition);
}

.help-search:focus-within {
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.help-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0;
}

.help-search input::placeholder {
  color: var(--text-muted);
}

/* ── Header de categoría ── */
.help-cat-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.help-cat-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.help-cat-header-icon {
  font-size: 1.6rem;
}

.help-cat-header-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 28px;
}

/* ── Grid de tarjetas de artículo ── */
.help-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.help-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* Acento gradiente arriba de cada card al hover. */
.help-article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.help-article-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.help-article-card:hover::before {
  opacity: 1;
}

.help-article-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.help-article-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.help-article-card-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.help-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* ════════════════════════════════════════
   DETALLE DE ARTÍCULO
════════════════════════════════════════ */
.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.help-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.help-breadcrumb a:hover {
  color: var(--primary-glow);
}

/* Card principal del artículo: borde con gradiente sutil + fondo limpio. */
.help-article {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
}

/* Línea de acento gradiente en el tope del card (verde + azul). */
.help-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-warm));
}

.help-article h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.help-article-summary {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-dim), var(--accent-dim));
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin: 0 0 32px;
}

/* ── Pasos numerados ── */
.help-article-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.help-article-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.help-article-steps li:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.help-article-steps li::before {
  counter-increment: step;
  content: counter(step);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.help-article-steps li > * {
  min-width: 0;
}

.help-article-steps li strong {
  color: var(--text-primary);
}

.help-article-steps li a {
  color: var(--primary-glow);
  text-decoration: underline;
}

.help-article-steps li code {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82em;
  color: var(--primary-glow);
}

/* ── CTA al final del artículo ── */
.help-article-cta {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  text-align: center;
}

.help-article-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.help-article-cta p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .help-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .help-sidebar {
    position: static;
  }
  .help-article {
    padding: 24px;
  }
  .help-article h1 {
    font-size: 1.4rem;
  }
  .help-article-steps li {
    padding: 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .help-article {
    padding: 18px;
  }
  .help-article-steps li {
    flex-direction: column;
    gap: 8px;
  }
}
