/* =====================================================
   ADIT Help Center – Estilos
   =====================================================
   Modal elegante y moderno para el Centro de Ayuda.
   Paleta: tonos oscuros ADIT + acentos azules.
   ===================================================== */

/* ── Overlay ──────────────────────────────────────── */
.hc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
  opacity: 0;
}
.hc-overlay.hc-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 1;
  padding: 3vh 16px;
  overflow-y: auto;
}

/* ── Dialog ───────────────────────────────────────── */
.hc-dialog {
  width: min(780px, 96%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.06);
  animation: hcSlideIn 0.3s ease-out;
}
@keyframes hcSlideIn {
  from { opacity: 0; transform: translateY(-24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Container ────────────────────────────────────── */
.hc-container {
  background: #ffffff;
  border-radius: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  line-height: 1.6;
}

/* ── Header ───────────────────────────────────────── */
.hc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px 22px;
  background: linear-gradient(179deg, #8b002f 0%, #9d9b9c00 100%);
  border-radius: 16px 16px 0 0;
  color: #fff;
  position: relative;
}
.hc-header-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  font-size: 24px;
  flex-shrink: 0;
}
.hc-header-text {
  flex: 1;
}
.hc-title {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.hc-subtitle {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
  font-weight: 400;
}
.hc-version {
  background: rgba(255,255,255,0.15);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 6px;
}
.hc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.hc-close:hover {
  background: rgba(220, 38, 38, 0.8);
}

/* ── Sections ─────────────────────────────────────── */
.hc-section {
  padding: 22px 32px;
  border-bottom: 1px solid #f1f5f9;
}
.hc-section:last-of-type {
  border-bottom: none;
}
.hc-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hc-section h3 i {
  color: #3b82f6;
  font-size: 17px;
}

/* ── Sección actual (contextual) ──────────────────── */
.hc-current {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-left: 4px solid #3b82f6;
}
.hc-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.hc-section-header h3 {
  margin: 0;
}
.hc-section-icon {
  font-size: 22px;
  color: #3b82f6;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
}
.hc-section-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: #475569;
}
.hc-tips {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.hc-tips li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.hc-tips li:last-child {
  border-bottom: none;
}
.hc-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 14px;
}

/* ── Guía de navegación – Grid ────────────────────── */
.hc-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
}
.hc-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  gap: 4px;
}
.hc-nav-card:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}
.hc-nav-card i {
  font-size: 22px;
  color: #3b82f6;
  margin-bottom: 4px;
}
.hc-nav-card strong {
  font-size: 13px;
  color: #1e293b;
}
.hc-nav-card small {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* ── Atajos ───────────────────────────────────────── */
.hc-shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hc-shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.hc-shortcut:hover {
  background: #f1f5f9;
}
.hc-shortcut-key {
  min-width: 140px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.hc-shortcut-desc {
  font-size: 13px;
  color: #64748b;
}

/* ── Soporte ──────────────────────────────────────── */
.hc-support {
  background: #fefce8;
  border-left: 4px solid #eab308;
}
.hc-support h3 i {
  color: #eab308;
}
.hc-support p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #475569;
}
.hc-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.hc-btn-primary {
  background: #1e293b;
  color: #fff;
}
.hc-btn-primary:hover {
  background: #334155;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}
.hc-btn-secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.hc-btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
  text-decoration: none;
}
.hc-support-note {
  font-size: 12px !important;
  color: #92400e !important;
  background: rgba(234, 179, 8, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0 !important;
}
.hc-support-note i {
  margin-right: 4px;
}

/* ── Footer ───────────────────────────────────────── */
.hc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: #f8fafc;
  border-radius: 0 0 16px 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #94a3b8;
}
.hc-footer i {
  margin-right: 4px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  .hc-header {
    padding: 22px 20px 18px;
  }
  .hc-section {
    padding: 18px 20px;
  }
  .hc-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hc-shortcut {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .hc-shortcut-key {
    min-width: auto;
  }
  .hc-support-actions {
    flex-direction: column;
  }
  .hc-btn {
    width: 100%;
    justify-content: center;
  }
  .hc-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px 20px;
  }
  .hc-dialog {
    border-radius: 12px;
  }
  .hc-header {
    border-radius: 12px 12px 0 0;
  }
  .hc-container {
    border-radius: 12px;
  }
  .hc-footer {
    border-radius: 0 0 12px 12px;
  }
}

/* ── Scrollbar del dialog ─────────────────────────── */
.hc-dialog::-webkit-scrollbar {
  width: 6px;
}
.hc-dialog::-webkit-scrollbar-track {
  background: transparent;
}
.hc-dialog::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.hc-dialog::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
