/**
 * Estilos compartidos del área /soporte tras el rediseño docs-site dark.
 * Lo usan: soporte/index, soporte/documentacion, soporte/contacto,
 * soporte/estado, soporte/incidentes, soporte/ayuda, soporte/article-viewer
 * y las páginas de soporte/legal/*.
 *
 * Prefijo de clases: .spt-*  (support shell).
 * Convive con dashboard-dark.css, que aporta los tokens --rdy-* y .rdy-btn-*.
 */

body.rdy-dash {
  background: var(--rdy-bg, #0a0a0f);
  color: var(--rdy-text, #ececf1);
  font-family: 'Inter', sans-serif;
}
body.rdy-dash *,
body.rdy-dash *::before,
body.rdy-dash *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ───── Top bar ───── */
.spt-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rdy-border, rgba(255,255,255,0.07));
  padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.spt-brand {
  font-weight: 800; font-size: 1.05rem;
  color: var(--rdy-text, #ececf1);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.spt-brand:hover { color: var(--rdy-text, #ececf1); text-decoration: none; }
.spt-brand img { width: 26px; height: 26px; border-radius: 6px; }
.spt-brand .spt-brand-sep { color: var(--rdy-text-faint, #6e6e80); font-weight: 500; }
.spt-brand .spt-brand-tag { color: var(--rdy-text-dim, #a0a0b0); font-weight: 500; }

.spt-topbar-spacer { flex: 1; }

.spt-topbar-links { display: flex; gap: 18px; }
.spt-topbar-links a {
  color: var(--rdy-text-dim, #a0a0b0);
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.15s;
}
.spt-topbar-links a:hover { color: var(--rdy-text, #ececf1); text-decoration: none; }
.spt-topbar-links a.active { color: var(--rdy-primary-2, #b094ff); }
@media (max-width: 700px) {
  .spt-topbar-links a span { display: none; }
}
@media (max-width: 480px) {
  .spt-topbar { padding: 12px 16px; gap: 10px; }
  .spt-topbar-links { gap: 10px; }
}

/* ───── Layout wrap ───── */
.spt-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 70px;
}
.spt-wrap.spt-wrap-wide { max-width: 1280px; }
.spt-wrap.spt-wrap-narrow { max-width: 820px; }

/* ───── Breadcrumbs ───── */
.spt-breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  color: var(--rdy-text-faint, #6e6e80); font-size: 0.85rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.spt-breadcrumbs a { color: var(--rdy-text-dim, #a0a0b0); text-decoration: none; }
.spt-breadcrumbs a:hover { color: var(--rdy-text, #ececf1); }
.spt-breadcrumbs i { font-size: 0.65rem; color: var(--rdy-text-faint, #6e6e80); }

/* ───── Hero ───── */
.spt-hero { padding: 10px 0 28px; }
.spt-hero h1 {
  font-size: 2.1rem; font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(115deg, #fff 30%, #b094ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -0.02em;
}
.spt-hero h1.spt-hero-h1-xl { font-size: 2.4rem; }
.spt-hero > p {
  color: var(--rdy-text-dim, #a0a0b0);
  font-size: 1rem; line-height: 1.6;
  max-width: 620px; margin: 0 0 18px;
}
.spt-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ───── Generic card ───── */
.spt-card {
  background: var(--rdy-surface, #16161f);
  border: 1px solid var(--rdy-border, rgba(255,255,255,0.07));
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}
.spt-card h2 {
  margin: 0 0 14px;
  color: var(--rdy-text, #ececf1);
  font-size: 1.15rem; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
  letter-spacing: -0.01em;
}
.spt-card h2 i { color: var(--rdy-primary, #7c5cff); font-size: 0.95rem; }
.spt-card p {
  color: var(--rdy-text-dim, #cfcfdc);
  font-size: 0.94rem; line-height: 1.65;
  margin: 0 0 12px;
}
.spt-card p:last-child { margin-bottom: 0; }

/* ───── Callouts ───── */
.spt-callout {
  display: flex; gap: 14px;
  padding: 14px 18px;
  border-radius: 11px;
  margin: 16px 0;
  border: 1px solid;
  font-size: 0.92rem; line-height: 1.6;
}
.spt-callout i { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.spt-callout p { margin: 0 0 6px; color: var(--rdy-text-dim, #cfcfdc); }
.spt-callout p:last-child { margin-bottom: 0; }
.spt-callout strong { color: var(--rdy-text, #ececf1); }
.spt-callout a { color: var(--rdy-primary-2, #b094ff); }
.spt-callout-info {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
}
.spt-callout-info i { color: #60a5fa; }
.spt-callout-tip {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
}
.spt-callout-tip i { color: #4ade80; }
.spt-callout-warn {
  background: rgba(254, 231, 92, 0.08);
  border-color: rgba(254, 231, 92, 0.3);
}
.spt-callout-warn i { color: #fee75c; }
.spt-callout-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}
.spt-callout-danger i { color: #ef4444; }

/* ───── Section block heading ───── */
.spt-block { margin-top: 36px; }
.spt-block-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.spt-block-head h2 {
  margin: 0;
  color: var(--rdy-text, #ececf1);
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.spt-block-head h2 i { color: var(--rdy-primary, #7c5cff); margin-right: 8px; font-size: 0.95rem; }
.spt-block-head .spt-block-more {
  margin-left: auto;
  color: var(--rdy-text-dim, #a0a0b0);
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
}
.spt-block-head .spt-block-more:hover { color: var(--rdy-primary-2, #b094ff); }

/* ───── CTA final ───── */
.spt-cta {
  margin-top: 40px;
  background: linear-gradient(115deg, rgba(124, 92, 255, 0.12), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.spt-cta-text { flex: 1; min-width: 240px; }
.spt-cta h3 { margin: 0 0 4px; color: var(--rdy-text, #ececf1); font-size: 1.05rem; font-weight: 600; }
.spt-cta p { margin: 0; color: var(--rdy-text-dim, #a0a0b0); font-size: 0.9rem; }
.spt-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ───── Status dot ───── */
.spt-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.spt-status-dot-ok    { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); }
.spt-status-dot-warn  { background: #fee75c; box-shadow: 0 0 0 4px rgba(254, 231, 92, 0.15); }
.spt-status-dot-down  { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }

/* ───── Pill / badge ───── */
.spt-pill {
  display: inline-block;
  background: var(--rdy-bg-soft, #0e0e13);
  border: 1px solid var(--rdy-border, rgba(255,255,255,0.07));
  color: var(--rdy-text-dim, #a0a0b0);
  padding: 3px 11px; border-radius: 999px;
  font-size: 0.78rem;
}

/* ───── Long-form prose ───── */
.spt-prose {
  color: var(--rdy-text-dim, #cfcfdc);
  font-size: 0.97rem; line-height: 1.75;
}
.spt-prose h2 {
  color: var(--rdy-text, #ececf1);
  font-size: 1.4rem; font-weight: 700;
  margin: 32px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}
.spt-prose h3 {
  color: var(--rdy-text, #ececf1);
  font-size: 1.1rem; font-weight: 600;
  margin: 24px 0 10px;
  scroll-margin-top: 80px;
}
.spt-prose p { margin: 0 0 14px; }
.spt-prose ul, .spt-prose ol { padding-left: 22px; margin: 0 0 14px; }
.spt-prose li { margin-bottom: 6px; }
.spt-prose a { color: var(--rdy-primary-2, #b094ff); text-decoration: none; }
.spt-prose a:hover { text-decoration: underline; }
.spt-prose strong { color: var(--rdy-text, #ececf1); }
.spt-prose code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.87rem;
  background: var(--rdy-surface, #16161f);
  border: 1px solid var(--rdy-border, rgba(255,255,255,0.07));
  padding: 1px 7px; border-radius: 5px;
  color: var(--rdy-primary-2, #b094ff);
}
.spt-prose blockquote {
  border-left: 3px solid var(--rdy-primary, #7c5cff);
  padding: 6px 16px;
  margin: 14px 0;
  background: rgba(124, 92, 255, 0.05);
  color: var(--rdy-text-dim, #cfcfdc);
  border-radius: 0 8px 8px 0;
}
.spt-prose hr {
  border: none;
  border-top: 1px solid var(--rdy-border, rgba(255,255,255,0.07));
  margin: 28px 0;
}

/* ───── TOC genérico (sticky en columna lateral) ───── */
.spt-toc {
  position: sticky; top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 12px;
}
.spt-toc::-webkit-scrollbar { width: 6px; }
.spt-toc::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
.spt-toc h3 {
  color: var(--rdy-text-faint, #6e6e80);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 14px;
  padding-left: 10px;
}
.spt-toc ul { list-style: none; padding: 0; margin: 0; }
.spt-toc li { margin-bottom: 2px; }
.spt-toc a {
  display: block;
  color: var(--rdy-text-dim, #a0a0b0);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.spt-toc a:hover {
  color: var(--rdy-text, #ececf1);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
}
.spt-toc a.active {
  color: var(--rdy-primary-2, #b094ff);
  background: rgba(124, 92, 255, 0.08);
  border-left-color: var(--rdy-primary, #7c5cff);
}
