/* Help Center público. Basado en la estructura del tema anterior de Zendesk (Vertio). */
:root {
  --brand: #db073c;
  --brand-dark: #b0052f;
  --text: #333;
  --muted: #6b6b6b;
  --link: #db073c;
  --border: #e3e3e3;
  --bg-soft: #f1f1f1;
  --footer: #363633;
  --radius: 6px;
  --max: 1160px;
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; line-height: 1.6; font-size: 16px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.hc-container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Cabecera */
.hc-header { background: var(--brand); color: #fff; }
.hc-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.hc-logo img { display: block; height: 32px; width: auto; }
.hc-header__nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.hc-header__nav a, .hc-header__nav summary { color: #fff; cursor: pointer; }
.hc-locale { position: relative; }
.hc-locale ul { position: absolute; right: 0; top: 130%; margin: 0; padding: 6px 0; list-style: none; background: #fff;
  border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.15); min-width: 140px; z-index: 10; }
.hc-locale li a { display: block; padding: 6px 14px; color: var(--text); }

/* Migas + buscador */
.hc-subheader { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.hc-subheader__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.hc-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.hc-breadcrumbs li + li::before { content: ">"; margin-right: 6px; color: var(--muted); }
.hc-breadcrumbs a { color: var(--text); }

.hc-search { display: flex; gap: 8px; }
.hc-search input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; }
.hc-search button { padding: 8px 16px; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff; font: inherit; cursor: pointer; }
.hc-search--small { width: min(340px, 100%); }
.hc-search--small button { display: none; }
.hc-search--large { max-width: 640px; margin: 0 auto; }
.hc-search--large input { padding: 14px 16px; font-size: 18px; }
.hc-search { position: relative; }
/* Capa de resultados mientras se escribe: flota sobre la página, bajo el campo */
.hc-instant-search { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); text-align: left; max-height: min(70vh, 520px); overflow-y: auto; }
/* En la cabecera el campo es estrecho y está a la derecha: la capa crece hacia la izquierda */
.hc-search--small .hc-instant-search { left: auto; width: min(460px, calc(100vw - 32px)); }
/* En el móvil el campo ocupa todo el ancho: la capa también */
@media (max-width: 600px) { .hc-search--small .hc-instant-search { left: 0; width: auto; } }
.hc-instant-search__list { list-style: none; margin: 0; padding: 4px 0; }
.hc-instant-search__item { display: block; padding: 8px 14px; color: var(--text); }
.hc-instant-search__item:hover, .hc-instant-search__item.is-selected, .hc-instant-search__all.is-selected { background: var(--bg-soft); text-decoration: none; }
.hc-instant-search__title { display: block; font-weight: 600; line-height: 1.35; }
.hc-instant-search__path { display: block; color: var(--muted); font-size: 13px; }
.hc-instant-search__all { display: block; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.hc-instant-search__empty { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 14px; }

.hc-main { padding-top: 32px; padding-bottom: 56px; min-height: 60vh; }
.hc-page-title { font-size: 30px; font-weight: 600; margin: 0 0 12px; }
.hc-lead { color: var(--muted); margin-top: 0; }

/* Portada */
.hc-hero { text-align: center; padding: 24px 0 40px; }
.hc-hero h1 { font-size: 34px; font-weight: 600; margin: 0 0 20px; }
.hc-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hc-category-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.hc-category-card h2 { font-size: 20px; margin: 0 0 10px; }
.hc-category-card h2 a { color: var(--text); }
.hc-category-card ul { margin: 0; padding-left: 18px; font-size: 15px; }
.hc-promoted { margin-top: 48px; }
.hc-promoted h2 { font-size: 22px; }
.hc-promoted ul { columns: 2; column-gap: 32px; padding-left: 18px; }
.hc-promoted li { break-inside: avoid; margin-bottom: 6px; }

/* Categoría / sección */
.hc-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-top: 24px; }
.hc-section-block h2 { font-size: 20px; margin: 0 0 8px; }
.hc-section-block h2 a { color: var(--text); }
.hc-article-list { list-style: none; margin: 0; padding: 0; }
.hc-article-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.hc-article-list--full li { padding: 10px 0; }
.hc-article-list .is-promoted a::before { content: "★ "; color: var(--brand); }
.hc-see-all { display: inline-block; margin-top: 10px; font-size: 14px; }
.hc-badge { font-size: 12px; background: #fff4e5; color: #8a5a00; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }

/* Artículo */
.hc-article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.hc-article-sidebar h2 { font-size: 15px; margin: 0 0 10px; }
.hc-article-sidebar ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hc-article-sidebar li a { display: block; padding: 8px 10px; margin-bottom: 4px; background: var(--bg-soft); color: var(--text); border-radius: 3px; line-height: 1.35; }
.hc-article-sidebar li.is-current a { background: var(--brand); color: #fff; }
.hc-article { max-width: 760px; }
.hc-article header h1 { font-size: 30px; font-weight: 600; line-height: 1.25; margin: 0 0 6px; }
.hc-meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.hc-editor-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff4e5; border: 1px solid #f2a93b;
  border-radius: var(--radius); padding: 8px 12px; margin-bottom: 20px; font-size: 14px; }
.hc-editor-bar--preview { background: #fff7ed; border-color: #f5c48f; color: #8a4b0f; font-weight: 600; }

.hc-toc { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 28px; }
.hc-toc h2 { font-size: 15px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.hc-toc ol { list-style: none; margin: 0; padding: 0; }
.hc-toc li { margin: 3px 0; }
.hc-toc .hc-toc__level-3 { padding-left: 18px; font-size: 15px; }
.hc-toc .hc-toc__level-4 { padding-left: 36px; font-size: 14px; }

.hc-article-body { font-size: 16px; }
.hc-article-body h2 { font-size: 26px; font-weight: 600; margin: 40px 0 12px; scroll-margin-top: 16px; }
.hc-article-body h3 { font-size: 21px; font-weight: 600; margin: 28px 0 10px; scroll-margin-top: 16px; }
.hc-article-body h4 { font-size: 18px; font-weight: 600; margin: 22px 0 8px; scroll-margin-top: 16px; }
.hc-article-body p { margin: 0 0 14px; }
.hc-article-body .wysiwyg-text-align-justify { text-align: justify; }
.hc-article-body .wysiwyg-text-align-center { text-align: center; }
.hc-article-body figure { margin: 20px 0; text-align: center; }
.hc-article-body figcaption { color: var(--muted); font-size: 14px; }
.hc-article-body img { border-radius: 3px; }
.hc-article-body pre { background: #f6f6f6; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; font-size: 14px; line-height: 1.45; }
.hc-article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
/* :where() → especificidad mínima: el CSS propio de un artículo (<style>) siempre gana */
.hc-article-body :where(table) { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; }
.hc-article-body :where(th, td) { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
/* Cabecera azul solo en tablas sin clase (las de Zendesk): las que llevan clase traen su propio CSS */
.hc-article-body :where(table:not([class]) th) { background: #3d8eb9; color: #fff; }
.hc-article-body blockquote { border-left: 4px solid var(--brand); margin: 16px 0; padding: 4px 16px; color: var(--muted); }
.hc-article-body mark { background: #fff2a8; }

.hc-vote { text-align: center; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; }
.hc-vote__buttons { display: flex; gap: 12px; justify-content: center; }
.hc-vote button { border: 1px solid var(--brand); background: #fff; color: var(--brand); padding: 6px 18px; border-radius: 3px; font: inherit; cursor: pointer; }
.hc-vote button:hover { background: var(--brand); color: #fff; }
.hc-vote__summary { color: var(--muted); font-size: 13px; }
.hc-more-questions { text-align: center; margin-top: 24px; }

/* Búsqueda */
.hc-search-results { list-style: none; padding: 0; }
.hc-search-results li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.hc-search-results h2 { font-size: 18px; margin: 0 0 4px; }
.hc-search-results p { margin: 0; color: var(--muted); font-size: 15px; }
.hc-search-results mark { background: #fff2a8; color: var(--text); }

.hc-footer { background: var(--footer); color: #ddd; padding: 28px 0; font-size: 14px; text-align: center; }

@media (max-width: 800px) {
  .hc-article-layout { grid-template-columns: 1fr; }
  .hc-article-sidebar { order: 2; }
  .hc-promoted ul { columns: 1; }
  .hc-header__nav { gap: 12px; }
}

/* Clases que genera CKEditor (subconjunto de ckeditor5-content.css: la hoja completa cambia la tipografía
   del artículo y sus reglas de tablas pisarían el <style> propio de cada artículo). :where() → el CSS
   del artículo siempre gana. */
.hc-article-body :where(figure.image) { display: table; clear: both; text-align: center; margin: .9em auto; }
.hc-article-body :where(figure.image img) { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.hc-article-body :where(figure.image > figcaption) { display: table-caption; caption-side: bottom; padding: .6em; font-size: .75em; color: var(--muted); }
.hc-article-body :where(.image.image_resized) { display: block; box-sizing: border-box; max-width: 100%; }
.hc-article-body :where(.image.image_resized img) { width: 100%; }
.hc-article-body :where(img.image_resized) { height: auto; }
.hc-article-body :where(.image-style-side, .image-style-align-right) { float: right; margin-left: 1.5em; }
.hc-article-body :where(.image-style-side) { max-width: 50%; }
.hc-article-body :where(.image-style-align-left) { float: left; margin-right: 1.5em; }
.hc-article-body :where(.image-style-align-center) { margin-left: auto; margin-right: auto; }
.hc-article-body :where(.image-style-block-align-left) { margin-left: 0; margin-right: auto; }
.hc-article-body :where(.image-style-block-align-right) { margin-left: auto; margin-right: 0; }
.hc-article-body :where(figure.table) { margin: 20px 0; overflow-x: auto; }
.hc-article-body :where(figure.table > table) { margin: 0; }
.hc-article-body :where(li.ck-list-marker-bold)::marker { font-weight: 700; }
.hc-article-body :where(li.ck-list-marker-italic)::marker { font-style: italic; }
.hc-article-body :where(li.ck-list-marker-color)::marker { color: var(--ck-content-list-marker-color); }
.hc-article-body :where(.text-tiny) { font-size: .7em; }
.hc-article-body :where(.text-small) { font-size: .85em; }
.hc-article-body :where(.text-big) { font-size: 1.4em; }
.hc-article-body :where(.text-huge) { font-size: 1.8em; }
/* CKEditor convierte font-weight:bold de un <button> en un <strong> exterior: que el botón lo herede */
.hc-article-body button { font: inherit; }
.hc-article-body .raw-html-embed { margin: 16px 0; }
