/*
 Theme Name:   Dolopedia
 Theme URI:    https://dev.dolopedia.com/
 Description:  Tema propio de Dolopedia (sin Divi desde el 19/10/2026). Guía de estilo Dolopedia + estilo B «Editorial Bold».
 Author:       Dolopedia
 Version:      2.0.0
 Text Domain:  divi-child
*/

/* ==========================================================================
   Notas Bibliográficas y Glosario Front-End
   ========================================================================== */

/* Estilos para las citas superíndice en el texto */
.citation-ref-link {
    color: #11b1af;
    font-weight: 600;
    text-decoration: none;
    padding: 0 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 85%;
}

.citation-ref-link:hover {
    color: #0d8a88;
    background-color: rgba(17, 177, 175, 0.1);
}

/* Sección del Glosario Bibliográfico al final */
.bibliografia-glossary-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f1f5f9;
    font-family: inherit;
}

.bibliografia-glossary-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bibliografia-glossary-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: decimal;
}

.bibliografia-glossary-item {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    padding-left: 8px;
    transition: color 0.2s ease;
}

.bibliografia-glossary-item:hover {
    color: #1e293b;
}

.bibliografia-item-content {
    display: inline;
}

/* Formatos de los elementos del glosario */
.bib-author {
    font-weight: 600;
    color: #334155;
}

.bib-title {
    font-style: normal;
    color: #1e293b;
}

.bib-journal {
    color: #475569;
}

.bib-volume, .bib-pages, .bib-year {
    color: #64748b;
}

/* Enlaces bibliográficos */
.bib-link {
    display: inline-flex;
    align-items: center;
    color: #11b1af;
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.bib-link:hover {
    color: #0d8a88;
    text-decoration: underline;
}

/* Botón de retorno (flecha) */
.bib-backlink {
    color: #11b1af;
    text-decoration: none;
    font-weight: bold;
    margin-left: 8px;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

.bib-backlink:hover {
    color: #0d8a88;
    transform: translateY(-2px);
}


/* ============================================================
 * Dolopedia — Ficha de autor en artículo + página de autor (CV)
 * ============================================================ */
.dolo-ficha {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #f6f8fa;
    border: 1px solid #e3e7eb;
    border-left: 5px solid #ee8273;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 32px 0;
}
.dolo-ficha-foto {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.dolo-ficha-info { display: flex; flex-direction: column; gap: 2px; }
.dolo-ficha-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #8a97a4; }
.dolo-ficha-name { font-size: 18px; font-weight: 700; color: #04233f; text-decoration: none; }
.dolo-ficha-name:hover { color: #ee8273; }
.dolo-ficha-job { color: #5a6b7b; font-size: 14px; }
.dolo-ficha-workplace { color: #8a97a4; font-size: 13px; }
.dolo-ficha-colegiado { color: #8a97a4; font-size: 12px; }
.dolo-ficha-link { color: #ee8273; font-weight: 600; font-size: 13px; text-decoration: none; margin-top: 4px; }
.dolo-ficha-link:hover { text-decoration: underline; }

.dolo-author-wrap { padding: 30px 0 60px; }
.dolo-author-cv { max-width: 900px; margin: 0 auto; }
.dolo-author-head { display: flex; gap: 26px; align-items: center; background: #04233f; color: #fff; border-radius: 12px; padding: 30px 32px; }
.dolo-author-foto { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.15); flex-shrink: 0; }
.dolo-author-name { color: #fff; margin: 0 0 4px; font-size: 30px; }
.dolo-author-job { color: #ee8273; font-weight: 600; font-size: 17px; margin: 0 0 12px; }
.dolo-author-facts { list-style: none; margin: 0; padding: 0; color: #c7d3df; font-size: 14px; }
.dolo-author-facts li { margin: 2px 0; }
.dolo-author-facts strong { color: #fff; }
.dolo-author-socials { margin: 14px 0 0; }
.dolo-author-socials a { color: #fff; background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 6px; margin-right: 8px; text-decoration: none; font-size: 13px; display: inline-block; }
.dolo-author-socials a:hover { background: #ee8273; }
.dolo-author-section { margin-top: 30px; }
.dolo-author-section h2 { color: #04233f; border-bottom: 2px solid #ee8273; padding-bottom: 6px; }
.dolo-author-count { background: #ee8273; color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 10px; vertical-align: middle; }
.dolo-author-interests { columns: 2; }
.dolo-author-cv-text { color: #2c3a47; line-height: 1.7; }
.dolo-author-articles { padding-left: 18px; }
.dolo-author-articles li { margin: 6px 0; }
.dolo-author-articles a { color: #123a5e; text-decoration: none; }
.dolo-author-articles a:hover { color: #ee8273; }

@media (max-width: 640px) {
    .dolo-author-head { flex-direction: column; text-align: center; }
    .dolo-author-interests { columns: 1; }
}

/* ============================================================
 * Dolopedia — Plantilla de artículo (single.php)
 * ============================================================ */
.dolo-single-container { max-width: 1680px !important; width: 90%; margin-left: auto; margin-right: auto; }

.dolo-single-hero { background: #eef0f2; padding: 26px 0 30px; border-bottom: 1px solid #e3e7eb; }
.dolo-breadcrumbs { font-size: 13px; color: #5a6b7b; margin-bottom: 14px; }
.dolo-breadcrumbs a { color: #123a5e; text-decoration: none; }
.dolo-breadcrumbs a:hover { color: #ee8273; }
.dolo-breadcrumbs .sep { margin: 0 7px; color: #aab4be; }
.dolo-breadcrumbs .current { color: #04233f; }

.dolo-single-titlerow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dolo-single-title { font-size: 40px; line-height: 1.1; font-weight: 800; color: #04233f; margin: 0; letter-spacing: -.5px; }
.dolo-ai-btn { background: #ee8273; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s ease; }
.dolo-ai-btn:hover { background: #e4685a; }
.dolo-ai-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }

.dolo-single-intro { font-size: 17px; line-height: 1.6; color: #3a4754; max-width: 820px; margin: 16px 0 0; }
.dolo-single-author { margin-top: 18px; font-size: 14px; color: #5a6b7b; }

/* Créditos (inc/creditos.php): recuadro a la derecha del título */
.dolo-single-hero-grid.con-creditos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 40px; align-items: start; }
.dolo-creditos { background: #fff; border: 1px solid #dfe4e9; border-top: 3px solid #F2827F; padding: 16px 18px 8px; }
.dolo-creditos-tit { margin: 0 0 10px; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 700; color: #8a97a4; }
.dolo-creditos ul { list-style: none; margin: 0; padding: 0; }
.dolo-creditos li { margin: 0; border-top: 1px solid #eef1f4; }
.dolo-creditos li:first-child { border-top: 0; }
.dolo-creditos a { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; }
.dolo-creditos img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #eef0f2; }
.dolo-creditos strong { display: block; color: #123a5e; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.dolo-creditos small { display: block; color: #8a97a4; font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.dolo-creditos a:hover strong { color: #ee8273; }
.dolo-creditos li:nth-child(n+5) { display: none; } /* DOLO_CREDITOS_VISIBLES = 4 */
.dolo-creditos.abierto li:nth-child(n+5) { display: block; }
.dolo-creditos.abierto ul { max-height: 360px; overflow-y: auto; }
.dolo-creditos-mas { display: block; width: 100%; margin: 4px 0 8px; padding: 8px 0 0; border: 0; border-top: 1px solid #eef1f4; background: none; color: #1d6aa8; font-weight: 600; font-size: 13px; cursor: pointer; text-align: left; }
.dolo-creditos-mas:hover { color: #ee8273; }
@media (max-width: 980px) {
    .dolo-single-hero-grid.con-creditos { grid-template-columns: 1fr; gap: 22px; }
}
.dolo-single-author-label { text-transform: uppercase; font-size: 11px; letter-spacing: .05em; color: #8a97a4; display: block; margin-bottom: 2px; }
.dolo-single-author-name { display: block; color: #123a5e; font-weight: 600; font-size: 15px; text-decoration: none; }
.dolo-single-author-name:hover { color: #ee8273; }
.dolo-single-author-meta { display: block; color: #8a97a4; margin-top: 1px; }

/* Layout dos columnas */
.dolo-single-layout { display: flex; gap: 40px; align-items: flex-start; padding-top: 36px; padding-bottom: 60px; }
.dolo-toc { width: 250px; flex-shrink: 0; position: sticky; top: 90px; border-radius: 8px; overflow: hidden; border: 1px solid #e3e7eb; }
.dolo-toc-head { background: #04233f; color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; }
.dolo-toc-list { background: #f6f8fa; padding: 8px 0; display: block; }
.dolo-toc-list a { display: block; padding: 7px 16px; color: #3a4754; text-decoration: none; font-size: 14px; border-left: 3px solid transparent; }
.dolo-toc-list a:hover { color: #ee8273; }
.dolo-toc-list a.is-active { color: #04233f; font-weight: 600; border-left-color: #ee8273; background: #fff; }
/* Jerarquía del índice: sangrado + guía de árbol (línea vertical y enganche
   horizontal) para que se vea de un vistazo qué entradas son hijas de cuál. */
.dolo-toc-list a[class*="lvl-"] { position: relative; }
.dolo-toc-list a.lvl-3 { padding-left: 34px; font-size: 13px; }
.dolo-toc-list a.lvl-4 { padding-left: 50px; font-size: 13px; }
.dolo-toc-list a.lvl-5 { padding-left: 66px; font-size: 12.5px; }
.dolo-toc-list a.lvl-3::before,
.dolo-toc-list a.lvl-4::before,
.dolo-toc-list a.lvl-5::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: #cdd6de; }
.dolo-toc-list a.lvl-3::after,
.dolo-toc-list a.lvl-4::after,
.dolo-toc-list a.lvl-5::after { content: ""; position: absolute; top: 17px; width: 8px; height: 1px; background: #cdd6de; }
.dolo-toc-list a.lvl-3::before { left: 20px; }
.dolo-toc-list a.lvl-3::after  { left: 20px; }
.dolo-toc-list a.lvl-4::before { left: 36px; }
.dolo-toc-list a.lvl-4::after  { left: 36px; }
.dolo-toc-list a.lvl-5::before { left: 52px; }
.dolo-toc-list a.lvl-5::after  { left: 52px; }
/* Nivel 4 de subapartado (h6) */
.dolo-toc-list a.lvl-6 { padding-left: 82px; font-size: 12.5px; }
.dolo-toc-list a.lvl-6::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: #cdd6de; left: 68px; }
.dolo-toc-list a.lvl-6::after { content: ""; position: absolute; top: 17px; width: 8px; height: 1px; background: #cdd6de; left: 68px; }
/* La entrada activa también resalta su guía. */
.dolo-toc-list a.is-active::before, .dolo-toc-list a.is-active::after { background: #ee8273; }

/* Cuerpo del artículo (serif tipo enciclopedia) */
.dolo-article-body { flex: 1; min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.75; color: #2c3a47; }
.dolo-article-body h2, .dolo-article-body .dolo-section-title { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 24px; font-weight: 700; color: #04233f; margin: 34px 0 12px; scroll-margin-top: 90px; }
.dolo-article-body h3 { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 19px; font-weight: 600; color: #123a5e; margin: 24px 0 8px; scroll-margin-top: 90px; }
.dolo-article-body p { margin: 0 0 16px; }
.dolo-article-body a { color: #ee8273; text-decoration: none; }
.dolo-article-body a:hover { text-decoration: underline; }
.dolo-article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.dolo-article-body ul, .dolo-article-body ol { margin: 0 0 16px 22px; }
.dolo-article-section { margin-bottom: 8px; }

@media (max-width: 900px) {
    .dolo-single-layout { flex-direction: column; }
    .dolo-toc { width: 100%; position: static; }
    .dolo-single-title { font-size: 30px; }
}

/* Sub-secciones del artículo (h3/h4/h5). El tamaño y el color bajan con el
   nivel, y la sección se sangra, para que la jerarquía se lea en el cuerpo
   igual que en el índice. */
.dolo-article-body .dolo-subsection-title { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; color: #123a5e; scroll-margin-top: 90px; }
.dolo-article-body h3.dolo-subsection-title { font-size: 18px; margin: 22px 0 8px; }
.dolo-article-body h4.dolo-subsection-title { font-size: 16px; margin: 18px 0 6px; color: #2c5f8a; }
.dolo-article-body h5.dolo-subsection-title { font-size: 15px; margin: 16px 0 6px; color: #2c5f8a; font-weight: 700; }
.dolo-article-body .dolo-lvl-3 { margin-left: 16px; }
.dolo-article-body .dolo-lvl-4 { margin-left: 32px; }
.dolo-article-body .dolo-lvl-5 { margin-left: 48px; }
@media (max-width: 980px) {
    .dolo-article-body .dolo-lvl-3 { margin-left: 8px; }
    .dolo-article-body .dolo-lvl-4 { margin-left: 16px; }
    .dolo-article-body .dolo-lvl-5 { margin-left: 24px; }
}

/* La cabecera de Divi (#top-menu, .mobile_menu_bar…) ya no existe: ver «CABECERA (.dh)» en assets/css/dolo-b.css. */

/* Bibliografía: citas en superíndice + glosario */
.dolo-article-body a.reference-link { font-size: .7em; vertical-align: super; line-height: 0; color: #ee8273; text-decoration: none; font-weight: 600; padding: 0 1px; }
.dolo-article-body a.reference-link:hover { text-decoration: underline; }
.dolo-biblio { margin-top: 36px; border-top: 2px solid #ee8273; padding-top: 10px; }
.dolo-biblio-list { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.55; color: #3a4754; padding-left: 22px; }
.dolo-biblio-list li { margin: 8px 0; scroll-margin-top: 90px; }
.dolo-biblio-list .bib-author { font-weight: 600; color: #04233f; }
.dolo-biblio-list .bib-link { color: #ee8273; text-decoration: none; font-size: 13px; }
.dolo-biblio-list .bib-back { color: #8a97a4; text-decoration: none; margin-left: 4px; }
/* La referencia se lee SEGUIDA. `.bib-link` está declarado arriba como
   inline-flex (viene del glosario antiguo) y, dentro de la lista, convertía
   cada parte de la cita en una columna. */
.dolo-biblio-list .bib-link { display: inline; align-items: initial; margin-left: 0; font-weight: 600; }
/* El título ES el enlace: se distingue en coral (el <span> de dentro traía su
   propio color y ganaba al del enlace). */
.dolo-biblio-list .bib-link .bib-title { color: #ee8273; }
.dolo-biblio-list .bib-link:hover .bib-title { text-decoration: underline; }
/* Numeración visible: Divi deja las listas sin marcador. */
.dolo-biblio-list { list-style: decimal outside; }
.dolo-biblio-list li::marker { color: #8a97a4; font-size: 13px; }
.dolo-biblio-list .bib-title,
.dolo-biblio-list .bib-journal,
.dolo-biblio-list .bib-author { display: inline; }
.dolo-biblio-list li { text-align: left; }

/* ============================================================
 * Dolopedia — Tipografía
 *  Web (cuerpo + títulos): sans de sistema (Gibson pendiente de licencia)
 *  Contenido científico de artículos: Source Serif 4
 *
 *  Los .woff2 de Gibson nunca se subieron a /fonts/ (ver fonts/LEEME.txt),
 *  así que sus @font-face provocaban 404 en todas las páginas. Se retiran
 *  hasta que el cliente aporte los ficheros; ver LEEME.txt para reponerlos.
 * ============================================================ */
:root {
    --dolo-font-ui: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --dolo-font-content: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* Tipografía de interfaz en toda la web (cuerpo y títulos) */
body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
#main-header, #top-menu, .et_pb_module,
.dolo-single-title, .dolo-single-intro, .dolo-breadcrumbs,
.dolo-toc, .dolo-toc-head, .dolo-author-cv {
    font-family: var(--dolo-font-ui) !important;
}

/* Contenido científico del artículo: Source Serif 4 (texto) */
.dolo-article-body,
.dolo-article-body p,
.dolo-article-body li,
.dolo-article-body td,
.dolo-article-body blockquote {
    font-family: var(--dolo-font-content) !important;
}
/* Pero los títulos de sección del artículo siguen en la tipografía de interfaz */
.dolo-article-body h2,
.dolo-article-body h3,
.dolo-article-body .dolo-section-title,
.dolo-article-body .dolo-subsection-title,
.dolo-biblio-list {
    font-family: var(--dolo-font-ui) !important;
}

/* Source Serif 4 auto-alojada (contenido científico) */
@font-face { font-family:'Source Serif 4'; src:url('fonts/source-serif-4-regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Source Serif 4'; src:url('fonts/source-serif-4-regular-italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Source Serif 4'; src:url('fonts/source-serif-4-semibold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Source Serif 4'; src:url('fonts/source-serif-4-bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* Refuerzo: contenido del artículo SIEMPRE en Source Serif 4 (gana a Divi) */
.dolo-single .dolo-article-body,
.dolo-single .dolo-article-body p,
.dolo-single .dolo-article-body li,
.dolo-single .dolo-article-body td,
.dolo-single .dolo-article-body span:not(.dolo-arbol-state),
.dolo-single .dolo-article-body blockquote {
    font-family: var(--dolo-font-content) !important;
}
.dolo-single .dolo-article-body h2,
.dolo-single .dolo-article-body h3,
.dolo-single .dolo-article-body .dolo-section-title,
.dolo-single .dolo-article-body .dolo-subsection-title {
    font-family: var(--dolo-font-ui) !important;
}

/* Notas bibliográficas: el enlace va incrustado en el título (16/09/2026) */
.bib-title .bib-link,
.bib-journal .bib-link,
.dolo-biblio-list .bib-title .bib-link,
.dolo-biblio-list .bib-journal .bib-link {
    display: inline;
    margin-left: 0;
    font-size: inherit;
    font-weight: inherit;
}
.bib-pmid { white-space: nowrap; }
.bib-pmid .bib-link { margin-left: 0; }

/* Anclas invisibles para conservar los enlaces profundos de la web antigua (#acItem_*) */
.dolo-article-body .dolo-anchor { display: block; height: 0; overflow: hidden; scroll-margin-top: 90px; }

/* Huecos de plantilla (secciones sin contenido).
   Van siempre en el HTML pero con [hidden]; solo los destapa el JS a quien
   tiene la cookie dolo_edita, porque Cloudflare cachea la página y el HTML
   no puede variar según quién la mire. */
/* OJO: no basta con el atributo [hidden]. Divi declara `section { display: block }`
   y una regla de autor gana a la hoja del navegador, así que los huecos se le
   veían al lector. Hay que forzarlo. */
.dolo-article-body .dolo-seccion-hueca[hidden],
.dolo-article-body .dolo-titulo-hueco[hidden],
.dolo-article-body [hidden] { display: none !important; }
.dolo-article-body .dolo-seccion-hueca,
.dolo-article-body .dolo-titulo-hueco { opacity: .6; }
.dolo-article-body .dolo-seccion-hueca { border-left: 3px dashed #cdd6de; padding-left: 12px; }
.dolo-article-body .dolo-titulo-hueco::after {
    content: "sin contenido";
    display: inline-block; margin-left: 8px; vertical-align: middle;
    background: #eef1f4; color: #5a6b7b; font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 2px 7px; border-radius: 3px;
}
.dolo-hueco-aviso { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; color: #5a6b7b; font-style: italic; margin: 0 0 8px; }
/* En el índice, los huecos se distinguen de las secciones escritas. */
.dolo-toc-list a.es-hueco { color: #8a97a3; font-style: italic; }
.dolo-toc-list a.es-hueco::marker { color: #8a97a3; }

/* ============================================================
   PÁGINA DE CATEGORÍA
   Reutiliza el hero, las migas y el cuerpo serif del artículo.
   Orden: contenido → bibliografía → subcategorías → artículos.
   ============================================================ */
.dolo-cat-resumen { margin: 10px 0 0; color: #cfe0ef; font-size: 14px; }
.dolo-categoria .dolo-cat-contenido { margin-bottom: 8px; }

.dolo-cat-bloque { margin-top: 38px; }
.dolo-cat-bloque .dolo-section-title { scroll-margin-top: 90px; }

/* Subcategorías: rejilla de tarjetas */
.dolo-cat-rejilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dolo-cat-tarjeta { margin: 0; }
.dolo-cat-tarjeta > a { display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 14px 16px; background: #f6f8fa; border: 1px solid #e3e7eb; border-left: 3px solid #04233f; border-radius: 0 6px 6px 0; text-decoration: none; transition: background .15s, border-left-color .15s, transform .15s; }
.dolo-cat-tarjeta > a:hover { background: #fff; border-left-color: #ee8273; transform: translateX(2px); }
.dolo-cat-tarjeta-nombre { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; font-weight: 600; color: #04233f; line-height: 1.35; }
.dolo-cat-tarjeta-meta { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 12px; color: #5a6b7b; }

/* Artículos de la categoría */
.dolo-cat-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3e7eb; }
.dolo-cat-articulo { margin: 0; border-bottom: 1px solid #e3e7eb; }
.dolo-cat-articulo > a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; padding: 13px 8px; text-decoration: none; transition: background .15s; }
.dolo-cat-articulo > a:hover { background: #f6f8fa; }
.dolo-cat-articulo-titulo { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; font-weight: 600; color: #04233f; flex: 1 1 320px; }
.dolo-cat-articulo > a:hover .dolo-cat-articulo-titulo { color: #ee8273; }
.dolo-cat-articulo-meta { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 12px; color: #5a6b7b; display: flex; align-items: center; gap: 8px; }
.dolo-cat-etiqueta { background: #04233f; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; }
.dolo-cat-vacia { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #5a6b7b; font-style: italic; }

/* Paginación */
.dolo-categoria .navigation.pagination { margin-top: 22px; }
.dolo-categoria .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.dolo-categoria .page-numbers { display: inline-block; padding: 7px 12px; border: 1px solid #e3e7eb; border-radius: 4px; color: #04233f; text-decoration: none; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; }
.dolo-categoria .page-numbers:hover { border-color: #ee8273; color: #ee8273; }
.dolo-categoria .page-numbers.current { background: #04233f; border-color: #04233f; color: #fff; font-weight: 600; }

@media (max-width: 980px) {
    .dolo-cat-rejilla { grid-template-columns: 1fr; }
}

/* Sin Divi (19/10/2026): Divi recortaba el desborde de la página y ocultaba
   que el cuerpo del artículo tomaba el ancho de su contenido en móvil. */
.dolo-article-body { min-width: 0; max-width: 100%; }
/* 13/11/2026: sin scroll horizontal en la web. Las tablas migradas traen
   anchos fijos (style="width:1200px", celdas de 192px) y se salían de la
   columna también en escritorio: se ajustan al ancho del texto. */
.dolo-article-body table { max-width: 100% !important; height: auto !important; }
/* Solo las MIGRADAS (sin clase dolo-tabla*) se fuerzan al ancho del texto; las
   hechas en el editor o pegadas de Excel respetan su ancho, centrado y sangría. */
.dolo-article-body table:not([class*="dolo-tabla"]) { width: 100% !important; margin-left: 0 !important; }
.dolo-article-body table:not([class*="dolo-tabla"]) td, .dolo-article-body table:not([class*="dolo-tabla"]) th { width: auto !important; }
/* 20/11/2026: las celdas ya NO parten palabras letra a letra (eso aplastaba
   las tablas anchas); si no caben, scroll horizontal (inc/tablas.php). */
.dolo-article-body table td, .dolo-article-body table th { overflow-wrap: normal; word-break: normal; min-width: 5.5em; }
/* Red de seguridad: nada puede ensanchar la página (clip no rompe los sticky). */
html, body { overflow-x: clip; }
.dl-meta { min-width: 0; }
@media (max-width: 900px) {
    .dolo-single-layout { align-items: stretch; }
    .dolo-article-body { width: 100%; }
    .dolo-article-body img, .dolo-article-body iframe { max-width: 100%; height: auto; }
    .dolo-article-body pre { overflow-x: auto; }
}
.dolo-article-body a { overflow-wrap: anywhere; }
/* Palabras larguísimas sin espacios (nombres químicos, cadenas de dosis): que partan antes que desbordar. */
.dolo-article-body, .dolo-single-hero { overflow-wrap: break-word; }
@media (max-width: 900px) {
    .dolo-article-body p, .dolo-article-body li, .dolo-single-intro { overflow-wrap: anywhere; hyphens: auto; }
}

/* Artículo en preparación (inc/vacios.php) */
.dolo-preparacion { border: 2px solid #00263A; background: #f6f9fc; padding: 26px 28px; margin: 6px 0 30px; font-family: var(--dolo-font-ui) !important; }
.dolo-preparacion p, .dolo-preparacion li { font-family: var(--dolo-font-ui) !important; }
.dolo-preparacion-etq { display: inline-block; background: #F2827F; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; margin: 0 0 14px !important; }
.dolo-preparacion-txt { font-size: 18px; line-height: 1.55; color: #00263A; margin: 0 0 18px !important; }
.dolo-preparacion-sub { font-size: 14px; font-weight: 700; color: #5c6b75; margin: 0 0 8px !important; }
.dolo-preparacion-lista { margin: 0 0 20px 1.2em !important; }
.dolo-preparacion-lista li { margin: 0 0 6px; }
.dolo-preparacion-acciones { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 !important; font-size: 15px; }
.dolo-preparacion-cta { background: #00263A; color: #fff !important; padding: 10px 16px; text-decoration: none !important; }
.dolo-preparacion-cta:hover { background: #F2827F; }
.dolo-cat-etiqueta.dolo-cat-prep { background: #F2827F; }

/* Índice fijo que nunca es más alto que la pantalla (21/10/2026): si no cabe,
   se desplaza por dentro. Antes, con índices largos, la parte de abajo no se
   podía ver nunca. Arranca bajo la cabecera fija (72 px + barra de admin). */
.dolo-toc {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px);
    max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 104px);
    display: flex;
    flex-direction: column;
}
.dolo-toc[hidden] { display: none; }
.dolo-toc-head { flex: 0 0 auto; }
.dolo-toc-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9d1d6 transparent; }
.dolo-toc-list::-webkit-scrollbar { width: 6px; }
.dolo-toc-list::-webkit-scrollbar-thumb { background: #c9d1d6; border-radius: 3px; }
@media (max-width: 900px) {
    /* En móvil el índice va arriba, sin fijar: ahí no hace falta limitar el alto. */
    .dolo-toc { max-height: none; }
    .dolo-toc-list { overflow: visible; }
}

/* Banners publicitarios (inc/banners.php): centrados, nunca más anchos que la
   columna y con su hueco reservado (width/height en el <img>) para no mover el texto. */
.dolo-banner { margin: 0 0 28px; text-align: center; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.dolo-banner--articulo-abajo, .dolo-banner--categoria-abajo { margin: 36px 0 0; }
.dolo-banner-etq { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8a97a3; margin-bottom: 4px; }
.dolo-banner a { display: inline-block; line-height: 0; }
.dolo-banner img { display: inline-block; width: auto; max-width: min(100%, 970px); height: auto; border-radius: 4px; }
@media (max-width: 767px) { .dolo-banner img { width: 100%; max-width: 100%; } }

/* Subapartados anidados (recuadros del editor, hasta 4 niveles: h3→h6).
   En la web no se ven como cajas: la jerarquía se marca con el sangrado y una
   guía fina a la izquierda, como en el índice. */
.dolo-article-body .dolo-sub { margin: 18px 0 8px; }
.dolo-article-body .dolo-sub .dolo-sub { margin-left: 4px; padding-left: 16px; border-left: 2px solid #e3e8ed; }
.dolo-article-body h6.dolo-subsection-title { font-size: 14.5px; margin: 14px 0 6px; color: #2c5f8a; font-weight: 700; text-transform: none; letter-spacing: 0; }
.dolo-article-body .dolo-sub > .dolo-subsection-title:first-child { margin-top: 0; }

/* Logo de ESRA bajo el índice del artículo (12/11/2026): el índice y el logo
   van juntos en .dolo-toc-col, que es la columna fija; el índice se desplaza
   por dentro si no cabe y el logo queda siempre visible debajo. */
.dolo-toc-col {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px);
    max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 104px);
    display: flex;
    flex-direction: column;
}
.dolo-toc-col .dolo-toc { width: auto; position: static; max-height: none; flex: 0 1 auto; min-height: 0; }
.dolo-toc-esra { flex: 0 0 auto; display: block; margin-top: 16px; padding: 18px 0; background: #04233f; border-radius: 8px; text-decoration: none !important; border: 0 !important; transition: background .15s; }
.dolo-toc-esra:hover { background: #0b3459; }
.dolo-toc-esra img { display: block; width: 120px; height: auto; margin: 0 auto; }
@media (max-width: 900px) {
    .dolo-toc-col { width: 100%; position: static; max-height: none; }
    .dolo-toc-esra { display: none; }
}

/* Índice: logo completo de ESRA a color, sin el cuadro azul (16/11/2026) */
.dolo-toc-esra{background:none!important;padding:14px 0 0!important;margin-top:12px;border-radius:0}
.dolo-toc-esra:hover{background:none!important;opacity:.85}
.dolo-toc-esra img{width:100%!important;max-width:250px;height:auto}

/* ============================================================
   Cabecera de artículo y categoría (20/11/2026)
   - La cabecera del sitio ya NO es fija en artículos y categorías.
   - Al pasar el título aparece arriba una franja estrecha con él
     (.dolo-tfijo, la crea single-article.js). Es lo único fijo del hero.
   - Autores debajo del título, sin recuadro; fechas a la derecha.
   ============================================================ */
body.single-post .dh, body.category .dh { position: relative; top: auto; }

.dolo-tfijo {
    position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 9985;
    background: #00263A; color: #fff; box-shadow: 0 2px 12px rgba(0,38,58,.22);
    transform: translateY(-110%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s;
}
.dolo-tfijo.on { transform: none; visibility: visible; transition: transform .2s ease; }
.dolo-tfijo .dolo-single-container { height: 48px; display: flex; align-items: center; gap: 14px; }
.dolo-tfijo-t {
    flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left;
    font-weight: 700; font-size: 16px; line-height: 1.2; font-family: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dolo-tfijo-t:hover, .dolo-tfijo-t:focus-visible { color: #F2827F; outline: none; }
@media (max-width: 600px) {
    .dolo-tfijo { top: 0; } /* en móvil la barra de admin no es fija */
    .dolo-tfijo .dolo-single-container { height: 44px; }
    .dolo-tfijo-t { font-size: 14.5px; }
}

/* La columna del índice queda bajo la franja del título. */
@media (min-width: 901px) {
    body.single-post .dolo-toc-col {
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 64px);
        max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 80px);
    }
    body.category .dolo-toc { top: calc(var(--wp-admin--admin-bar--height, 0px) + 64px); }
}

/* Título + autores | fechas */
.dolo-single-hero-grid.con-fechas { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.dolo-fechas { margin: 6px 0 0; padding: 0 0 0 22px; border-left: 3px solid #F2827F; display: flex; flex-direction: column; gap: 12px; min-width: 190px; }
.dolo-fechas div { margin: 0; }
.dolo-fechas dt { margin: 0 0 2px; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 700; color: #8a97a4; }
.dolo-fechas dd { margin: 0; color: #123a5e; font-weight: 600; font-size: 15px; }

.dolo-autores { margin-top: 18px; }
.dolo-autores-tit { margin: 0 0 8px; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 700; color: #8a97a4; }
.dolo-autores ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.dolo-autores li { margin: 0; }
.dolo-autores a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dolo-autores img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #dfe4e9; }
.dolo-autores strong { display: block; color: #123a5e; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.dolo-autores small { display: block; color: #8a97a4; font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.dolo-autores a:hover strong { color: #ee8273; }
.dolo-autores li:nth-child(n+5) { display: none; } /* DOLO_CREDITOS_VISIBLES = 4 */
.dolo-autores.abierto li:nth-child(n+5) { display: block; }
.dolo-autores-mas { margin: 10px 0 0; padding: 0; border: 0; background: none; color: #1d6aa8; font-weight: 600; font-size: 13px; cursor: pointer; }
.dolo-autores-mas:hover { color: #ee8273; }
@media (max-width: 900px) {
    .dolo-single-hero-grid.con-fechas { grid-template-columns: 1fr; gap: 18px; }
    .dolo-fechas { flex-direction: row; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
}

/* ============================================================
   Tablas con scroll horizontal (20/11/2026) — JS en inc/tablas.php
   ============================================================ */
.dolo-article-body table { font-size: 15px; line-height: 1.45; }
.dolo-tabla-caja { position: relative; margin: 0 0 1.4em; max-width: 100%; }
.dolo-tabla-caja table { margin-bottom: 0 !important; }
.dolo-tabla-marco { position: relative; }
.dolo-tabla-vp { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #9fb1c2 #eef1f4; }
.dolo-tabla-vp:focus-visible { outline: 3px solid rgba(242,130,127,.55); outline-offset: 2px; }
.dolo-tabla-caja:not(.desborda) .dolo-tabla-vp { overflow: visible; } /* así funcionan las filas fijas */
.dolo-tabla-vp::-webkit-scrollbar { height: 10px; }
.dolo-tabla-vp::-webkit-scrollbar-track { background: #eef1f4; border-radius: 6px; }
.dolo-tabla-vp::-webkit-scrollbar-thumb { background: #9fb1c2; border-radius: 6px; }
.dolo-tabla-vp::-webkit-scrollbar-thumb:hover { background: #00263A; }
/* Sombras en el lado por el que sigue la tabla */
.dolo-tabla-marco::before, .dolo-tabla-marco::after { content: ""; position: absolute; top: 0; bottom: 10px; width: 28px; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .2s; }
.dolo-tabla-marco::before { left: 0; background: linear-gradient(to right, rgba(0,38,58,.18), rgba(0,38,58,0)); }
.dolo-tabla-marco::after { right: 0; background: linear-gradient(to left, rgba(0,38,58,.18), rgba(0,38,58,0)); }
.dolo-tabla-caja.hay-izq .dolo-tabla-marco::before, .dolo-tabla-caja.hay-der .dolo-tabla-marco::after { opacity: 1; }
/* Aviso + flechas */
.dolo-tabla-aviso { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 6px; font-family: var(--dolo-font-ui, sans-serif); font-size: 12.5px; color: #5a6b7b; }
.dolo-tabla-aviso[hidden] { display: none; }
.dolo-tabla-aviso span { margin-right: 4px; }
.dolo-tabla-aviso span::before { content: "↔"; margin-right: 6px; color: #F2827F; font-weight: 700; }
.dolo-tabla-ir { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #c9d3dc; background: #fff; color: #00263A; font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.dolo-tabla-ir:hover:not(:disabled) { background: #00263A; color: #fff; border-color: #00263A; }
.dolo-tabla-ir:disabled { opacity: .35; cursor: default; }
/* Barra fija abajo con flechas, y copia de las filas fijas arriba */
.dolo-tabla-dock { position: fixed; bottom: 0; z-index: 9970; display: flex; align-items: center; gap: 8px; padding: 6px 8px; box-sizing: border-box; background: rgba(255,255,255,.96); border-top: 1px solid #dfe4e9; box-shadow: 0 -4px 14px rgba(0,38,58,.14); border-radius: 10px 10px 0 0; }
.dolo-tabla-dock[hidden] { display: none; }
.dolo-tabla-dock .dolo-tabla-ir { flex: 0 0 auto; width: 34px; height: 34px; font-size: 20px; }
.dolo-tabla-barra { flex: 1 1 auto; min-width: 0; height: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: auto; scrollbar-color: #00263A #e3e8ed; }
.dolo-tabla-barra > div { height: 1px; }
.dolo-tabla-barra::-webkit-scrollbar { height: 14px; }
.dolo-tabla-barra::-webkit-scrollbar-track { background: #e3e8ed; border-radius: 7px; }
.dolo-tabla-barra::-webkit-scrollbar-thumb { background: #00263A; border-radius: 7px; border: 3px solid #e3e8ed; }
.dolo-tabla-flota { position: fixed; z-index: 9960; overflow: hidden; box-shadow: 0 4px 10px rgba(0,38,58,.15); pointer-events: none; }
.dolo-tabla-flota[hidden] { display: none; }
.dolo-tabla-flota table { margin: 0 !important; max-width: none !important; }
@media (max-width: 900px) {
    .dolo-tabla-caja { margin-left: 0 !important; }
    .dolo-tabla-aviso span { flex: 1; }
}

/* ============================================================
   Validación 21/11 (24/11/2026)
   ============================================================ */
/* Índice: títulos internos de cada apartado, plegables. */
.dolo-toc-list a.con-hijos { padding-right: 34px; }
.dolo-toc-list a[hidden] { display: none; }
.dolo-toc-mas {
    position: absolute; right: 6px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 4px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #8a97a4;
}
.dolo-toc-mas::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.dolo-toc-list a.abierto > .dolo-toc-mas::before { transform: rotate(45deg); margin-top: -3px; }
.dolo-toc-mas:hover { background: #e3e8ed; color: #04233f; }
.dolo-toc-list a.con-hijos { position: relative; }
.dolo-toc-list a.es-interno { color: #5a6b7b; }
.dolo-toc-list a.es-interno.is-active { color: #04233f; }

/* Franja del título: lupa con el índice (solo cuando el índice no está fijo al lado). */
.dolo-tfijo-idx { display: none; flex: 0 0 auto; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.dolo-tfijo-idx:hover, .dolo-tfijo-idx:focus-visible, .dolo-tfijo-idx[aria-expanded="true"] { background: rgba(255,255,255,.12); color: #F2827F; outline: none; }
.dolo-tfijo-panel { background: #f6f8fa; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 24px rgba(0,38,58,.25); }
.dolo-tfijo-panel[hidden] { display: none; }
.dolo-tfijo-panel .dolo-toc-list { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 10px; }
.dolo-tfijo-panel .dolo-toc-list a { color: #3a4754; padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 900px) {
    .dolo-tfijo-idx { display: inline-flex; }
}

/* Títulos dentro del texto: la negrita que pone el editor no cambia el aspecto,
   así dos títulos del mismo nivel se ven iguales (Generalidades / Manifestaciones clínicas). */
.dolo-article-body :is(h2, h3, h4, h5, h6) :is(strong, b) { font-weight: inherit; }
.dolo-tfijo-idx[hidden] { display: none !important; }
/* Escala de títulos dentro del texto: h3 > h4 > h5 > h6 (el h4 no tenía estilo y
   salía con el de Divi, más grande que el h3). */
.dolo-article-body h4 { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; font-weight: 600; color: #2c5f8a; margin: 20px 0 6px; scroll-margin-top: 90px; line-height: 1.35; }
.dolo-article-body h5 { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15.5px; font-weight: 600; color: #2c5f8a; margin: 16px 0 6px; scroll-margin-top: 90px; }
.dolo-article-body h6 { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14.5px; font-weight: 600; color: #3a5a78; margin: 14px 0 6px; scroll-margin-top: 90px; text-transform: none; letter-spacing: 0; }
.dolo-single .dolo-article-body :is(h4, h5, h6), .dolo-single .dolo-article-body :is(h2, h3, h4, h5, h6) span { font-family: var(--dolo-font-ui) !important; }
/* Columnas fijas de las tablas anchas (inc/tablas.php) */
.dolo-tabla-vp td.dolo-col-fija-ult, .dolo-tabla-vp th.dolo-col-fija-ult,
.dolo-tabla-flota td.dolo-col-fija-ult, .dolo-tabla-flota th.dolo-col-fija-ult { box-shadow: 6px 0 8px -6px rgba(0,38,58,.35); }
