/* Centro de Ayuda DentalHub — estilos portados desde el diseño "Help Center.dc.html" */

:root {
  --purple: #6d4ad6;
  --purple-dark: #5b36c9;
  --purple-soft: #f1ecfc;
  --purple-tint: #f5f3fb;
  --purple-border: #c9b8f0;
  --purple-note-bg: #f4effc;
  --purple-note-border: #e1d6f7;
  --ink: #1e2330;
  --ink-strong: #161a24;
  --ink-heading: #1a1e2a;
  --text: #3a4255;
  --text-body: #39414f;
  --text-soft: #515a6b;
  --text-muted: #69707f;
  --text-faint: #8a93a4;
  --slate: #4a5365;
  --slate-btn: #5b6472;
  --label: #7c8493;
  --icon-muted: #9aa2b1;
  --chevron: #b7becb;
  --border: #e8eaf0;
  --border-soft: #eef0f4;
  --bg: #f6f7f9;
  --bg-btn: #f4f5f8;
  --amber-bg: #fbf4e7;
  --amber-border: #efdcb4;
  --amber-label: #9a6f1b;
  --amber-text: #5c4e2e;
  --font: 'Onest', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
button,
input {
  font-family: inherit;
}
::selection {
  background: #e3d8fa;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: #d7dbe5;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: #c1c7d4;
  background-clip: padding-box;
}
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}

.page {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  height: 60px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
}
.menu-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--bg-btn);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--purple);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(109, 74, 214, 0.35);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-heading);
}
.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.01em;
}
.search-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.search-box {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--icon-muted);
  display: flex;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 38px;
  border: 1px solid #e2e5ec;
  background: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.search-input:focus {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109, 74, 214, 0.13);
}
.search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #e9ebf0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--slate-btn);
}
.topbar-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.lang-seg {
  display: flex;
  background: #f1f2f5;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.seg {
  border: none;
  background: transparent;
  color: #7a828f;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.seg.active {
  background: #fff;
  color: var(--purple);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(18, 16, 38, 0.12);
}
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-btn);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
}
.back-link:hover {
  background: var(--bg-btn);
  color: var(--ink);
}
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-btn);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  color: var(--slate-btn);
}
.logout-btn:hover {
  color: #c0392b;
  border-color: #eed4ce;
  background: #fbf1ef;
}

/* ── Scrim (menú móvil) ─────────────────────────────────── */
.scrim {
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(18, 16, 38, 0.42);
  z-index: 40;
  border: none;
  padding: 0;
}

/* ── Shell ──────────────────────────────────────────────── */
.shell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  position: relative;
}

/* ── Navegación lateral ─────────────────────────────────── */
.nav {
  background: #fff;
  overflow-y: auto;
  padding: 18px 14px 50px;
}
.nav-group {
  margin-bottom: 4px;
}
.nav-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 9px 7px;
}
.nav-group-left {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-group-icon {
  color: var(--purple);
  display: flex;
  align-items: center;
}
.nav-group-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--label);
}
.nav-chevron {
  color: var(--chevron);
  display: flex;
}
.nav-items {
  margin: 1px 0 8px 5px;
}
.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  margin: 1px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 500;
  background: transparent;
  color: var(--slate);
  border: none;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: var(--purple-tint);
}
.nav-item.active {
  font-weight: 600;
  background: var(--purple-soft);
  color: var(--purple-dark);
  border-left-color: var(--purple);
}

/* ── Panel principal ────────────────────────────────────── */
.pane {
  overflow-y: auto;
  padding: 22px 16px 90px;
}
.content {
  max-width: 800px;
  margin: 0 auto;
}

/* Resultados de búsqueda */
.results-label {
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 18px;
}
.empty {
  padding: 40px 22px;
  text-align: center;
  border: 1px dashed #dde1ea;
  border-radius: 14px;
  color: var(--text-faint);
  font-size: 15px;
}
.result {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 13px;
  padding: 15px 18px;
  margin-bottom: 10px;
  cursor: pointer;
}
.result:hover {
  border-color: var(--purple-border);
  box-shadow: 0 4px 16px rgba(109, 74, 214, 0.08);
}
.result-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}
.result-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-heading);
  margin: 4px 0 5px;
  letter-spacing: -0.01em;
}
.result-snippet {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Artículo */
.article-group {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.article-title {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0 0 14px;
  color: var(--ink-strong);
}
.article-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 12px;
}
.sections {
  margin-top: 10px;
}
.sec.has-heading {
  border-top: 1px solid var(--border-soft);
}
.sec-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 17px 0 13px;
}
.sec-chevron {
  color: var(--icon-muted);
  display: flex;
  flex: 0 0 auto;
}
.sec-heading {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-body {
  padding: 4px 0 12px;
}
.sec.has-heading .sec-body {
  padding: 0 0 10px 25px;
}

/* Bloques de contenido */
.para {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text);
  margin: 0 0 13px;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 6px 0 18px;
}
.step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.step-n {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 700;
  font-size: 12.5px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.step-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-body);
}
.fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 18px;
}
.field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.field-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--purple);
  margin-top: 8px;
}
.field-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-body);
}
.item-label {
  font-weight: 600;
  color: var(--ink);
}
.note {
  border: 1px solid;
  border-radius: 12px;
  padding: 13px 16px;
  margin: 6px 0 18px;
}
.note-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.note-text {
  font-size: 14px;
  line-height: 1.56;
}
.note.tip {
  background: var(--purple-note-bg);
  border-color: var(--purple-note-border);
}
.note.tip .note-label {
  color: var(--purple);
}
.note.tip .note-text {
  color: #453f58;
}
.note.important {
  background: var(--amber-bg);
  border-color: var(--amber-border);
}
.note.important .note-label {
  color: var(--amber-label);
}
.note.important .note-text {
  color: var(--amber-text);
}
.shot {
  border: 1.5px dashed var(--purple-border);
  border-radius: 13px;
  background: repeating-linear-gradient(
    135deg,
    #f5f2fc,
    #f5f2fc 11px,
    #efeaf9 11px,
    #efeaf9 22px
  );
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 22px;
  text-align: center;
  margin: 6px 0 18px;
}
.shot-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9579d8;
  background: #fff;
  border: 1px solid var(--purple-note-border);
  border-radius: 5px;
  padding: 3px 9px;
}
.shot-caption {
  font-family: var(--mono);
  font-size: 12px;
  color: #7e839a;
  max-width: 400px;
  line-height: 1.5;
}

/* ── Tabla de contenidos ────────────────────────────────── */
.toc {
  display: none;
  border-left: 1px solid var(--border);
  padding: 42px 22px;
  overflow-y: auto;
}
.toc-inner {
  position: sticky;
  top: 0;
}
.toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--icon-muted);
  margin-bottom: 13px;
}
.toc-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid var(--border-soft);
  padding: 6px 0 6px 13px;
  margin: 1px 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}
.toc-item:hover {
  color: var(--purple);
  border-left-color: var(--purple-border);
}

/* ── Página de inicio de sesión ─────────────────────────── */
.login {
  font-family: var(--font);
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 40px;
}
.login-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(18, 16, 38, 0.07);
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.login-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--purple);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(109, 74, 214, 0.35);
}
.login-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.login-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.login-name-a {
  color: var(--purple);
}
.login-name-b {
  color: var(--icon-muted);
}
.login-tagline {
  font-size: 11px;
  font-weight: 500;
  color: #b0b7c4;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}
.login-welcome {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-heading);
  text-align: center;
  margin: 30px 0 26px;
}
.login-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  background: #fff;
  border: 1px solid #e2e5ec;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(18, 16, 38, 0.08);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.login-google:hover {
  border-color: var(--purple-border);
  box-shadow: 0 4px 14px rgba(109, 74, 214, 0.14);
}
.login-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 22px;
}
.login-or span {
  font-size: 13.5px;
  color: var(--icon-muted);
  white-space: nowrap;
}
.login-line {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.login-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.login-label-pw {
  margin: 18px 0 7px;
}
.login-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e2e5ec;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  background: #fff;
}
.login-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 74, 214, 0.13);
}
.login-pw-wrap {
  position: relative;
  display: flex;
}
.login-input-pw {
  flex: 1;
  padding-right: 44px;
}
.login-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--icon-muted);
}
.login-pw-toggle:hover {
  color: var(--slate-btn);
}
.login-pw-toggle span {
  display: flex;
}
.login-error {
  margin-top: 12px;
  font-size: 13.5px;
  color: #c0392b;
  background: #fbeeec;
  border: 1px solid #f0cfc9;
  border-radius: 8px;
  padding: 9px 12px;
}
.login-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 18px;
}
.login-forgot {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.login-forgot:hover {
  color: var(--purple);
}
.login-submit {
  height: 48px;
  background: var(--purple);
  border: none;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(109, 74, 214, 0.3);
}
.login-submit:hover {
  background: var(--purple-dark);
}
.login-google:disabled,
.login-submit:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}
.login-hr {
  height: 1px;
  background: var(--border-soft);
  margin: 26px 0 20px;
}
.login-hr-2 {
  margin: 20px 0 18px;
}
.login-noaccount {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-heading);
  text-align: center;
}
.login-gethelp {
  font-size: 14px;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}
.login-support {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.login-support-mail {
  color: var(--text);
  display: flex;
}
.login-support-mail:hover {
  color: var(--purple);
}
.login-support-wa {
  color: #25a85c;
  display: flex;
}
.login-support-wa:hover {
  color: #1b8a4a;
}
.login-footer {
  margin-top: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.login-copy {
  font-size: 14px;
  color: var(--text);
}
.login-version {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-heading);
}

/* ── Responsive ─────────────────────────────────────────── */
/* Móvil (< 768px): menú como cajón deslizante */
@media (max-width: 767.98px) {
  .brand-text {
    display: none;
  }
  .back-link {
    display: none;
  }
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 290px;
    border-right: 1px solid var(--border);
    z-index: 45;
    transform: translateX(-110%);
  }
  .nav.open {
    transform: none;
    box-shadow: 0 22px 55px rgba(18, 16, 38, 0.2);
  }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
  .nav {
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Tableta (≥ 768px) */
@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
  .scrim {
    display: none;
  }
  .nav {
    border-right: 1px solid var(--border);
  }
  .shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }
  .pane {
    padding: 30px 28px 90px;
  }
}

/* Escritorio (≥ 1024px) */
@media (min-width: 1024px) {
  .shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .pane {
    padding: 42px 56px 100px;
  }
}

/* Escritorio ancho (≥ 1180px): tabla de contenidos visible */
@media (min-width: 1180px) {
  .shell {
    grid-template-columns: 280px minmax(0, 1fr) 256px;
  }
  .toc {
    display: block;
  }
}
