/* ENDOPLUSIA · ESTILOS DE ÍTEMS (compartidos app + web)
   Generado por tools/construir_css_compartido.cjs a partir de estilo_cayetanito.css. */
/* Unidad base del lector: equivale a 1rem de la app en pantalla y en el PDF. */
:where(.endo-reader) {
  --endo-rem: var(--endo-reader-font-size, 1rem);
}
@media print {
  :where(.endo-reader) {
    --endo-rem: 10.6pt;
  }
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:where(.endo-reader) *, :where(.endo-reader) *::before, :where(.endo-reader) *::after {
  box-sizing: border-box;
}
:where(.endo-reader):not(.ep-pad) {
  color-scheme: light dark;
}
:where(.endo-reader):not(ep-pad) {
  -webkit-text-size-adjust: 100%;
}
:where(.endo-reader):not(ep-pad) {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1E1E1E;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 16px;
}
@media (min-width: 600px) {
  :where(.endo-reader):not(ep-pad) {
    font-size: 17px;
  }
}
@media (min-width: 1200px) {
  :where(.endo-reader):not(ep-pad) {
    font-size: 18px;
  }
}
:where(.endo-reader[data-theme="dark"]):not(ep-pad) {
    color: #E0E0E0;
}
:where(.endo-reader) h1 {
  color: #005BAC;
  font-size: calc(1.6 * var(--endo-rem, 1rem));
  border-bottom: 3px solid #005BAC;
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  line-height: 1.2;
}
:where(.endo-reader) h2 {
  color: #B71C1C;
  font-size: calc(1.4 * var(--endo-rem, 1rem));
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}
:where(.endo-reader) h3 {
  color: #1C4587;
  font-size: calc(1.2 * var(--endo-rem, 1rem));
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}
@media (min-width: 1024px) {
  :where(.endo-reader) h1 { font-size: calc(2 * var(--endo-rem, 1rem)); }
  :where(.endo-reader) h2 { font-size: calc(1.6 * var(--endo-rem, 1rem)); }
}
:where(.endo-reader[data-theme="dark"]) h1 {
    color: #8AB4F8;
    border-bottom-color: #8AB4F8;
  }
:where(.endo-reader[data-theme="dark"]) h2 { color: #FF8A80; }
:where(.endo-reader[data-theme="dark"]) h3 { color: #90CAF9; }
:where(.endo-reader) ul, :where(.endo-reader) ol {
  margin-bottom: calc(1 * var(--endo-rem, 1rem));
  padding-left: 1.5em;
}
:where(.endo-reader) ul {
  list-style: none;
  padding-left: 0;
}
:where(.endo-reader) ul li {
  margin-bottom: calc(0.5 * var(--endo-rem, 1rem));
  padding-left: 1.4em;
  text-indent: -1.4em;
}
:where(.endo-reader) ul li::before {
  content: '•';
  color: #1C4587;
  font-weight: bold;
  margin-right: 8px;
}
:where(.endo-reader) ul ul {
  padding-left: 1.8em;
  margin-top: 4px;
}
:where(.endo-reader) ul ul li::before {
  content: '◦';
  color: #1976D2;
}
:where(.endo-reader) .referencia {
  font-size: calc(0.9 * var(--endo-rem, 1rem));
  color: #666;
  margin-top: calc(2 * var(--endo-rem, 1rem));
  border-top: 1px dashed #ccc;
  padding-top: 12px;
}
:where(.endo-reader) mark, :where(.endo-reader) .hl {
  background: #fff176;
  color: #111;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: bold;
}
:where(.endo-reader[data-theme="dark"]) ul li::before { color: #8AB4F8; }
:where(.endo-reader[data-theme="dark"]) ul ul li::before { color: #64B5F6; }
:where(.endo-reader[data-theme="dark"]) .referencia {
    color: #AAA;
    border-top-color: #444;
  }
:where(.endo-reader) .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-bottom: 24px;
  border-radius: 8px;
}
:where(.endo-reader) .table-wrap > table {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ccc;
  text-align: left;
}
:where(.endo-reader) .table-wrap > table th,
:where(.endo-reader) .table-wrap > table td {
  border: 1px solid #ccc;
  padding: 12px;
  vertical-align: top;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal;
  min-width: 120px;
}
:where(.endo-reader) .table-wrap > table.sticky-table th:first-child,
:where(.endo-reader) .table-wrap > table.sticky-table td:first-child,
:where(.endo-reader) .table-wrap > table th.sticky-col,
:where(.endo-reader) .table-wrap > table td.sticky-col,
:where(.endo-reader) .table-wrap > table th.sticky-col-sm,
:where(.endo-reader) .table-wrap > table td.sticky-col-sm,
:where(.endo-reader) .table-wrap > table th.sticky-col-md,
:where(.endo-reader) .table-wrap > table td.sticky-col-md,
:where(.endo-reader) .table-wrap > table th.sticky-col-lg,
:where(.endo-reader) .table-wrap > table td.sticky-col-lg {
  position: sticky !important;
  left: 0;
  z-index: 10;
  background-color: #ffffff !important;
  border-right: 2px solid #005BAC !important;
  box-shadow: 4px 0 8px rgba(0,0,0,0.10);
}
:where(.endo-reader) .table-wrap > table.sticky-table th:first-child,
:where(.endo-reader) .table-wrap > table.sticky-table td:first-child,
:where(.endo-reader) .table-wrap > table th.sticky-col,
:where(.endo-reader) .table-wrap > table td.sticky-col {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 120px !important;
}
:where(.endo-reader) .table-wrap > table.sticky-table th:not(:first-child),
:where(.endo-reader) .table-wrap > table.sticky-table td:not(:first-child) {
  width: clamp(140px, 16vw, 240px) !important;
  max-width: 240px !important;
}
:where(.endo-reader) .table-wrap a {
  word-break: break-all;
}
:where(.endo-reader[data-theme="dark"]) .table-wrap > table,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table th,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table td {
    border-color: #444;
  }
:where(.endo-reader[data-theme="dark"]) .table-wrap > table.sticky-table th:first-child,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table.sticky-table td:first-child,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table th.sticky-col,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table td.sticky-col,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table th.sticky-col-sm,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table td.sticky-col-sm,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table th.sticky-col-md,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table td.sticky-col-md,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table th.sticky-col-lg,
  :where(.endo-reader[data-theme="dark"]) .table-wrap > table td.sticky-col-lg {
    background-color: #1E1E1E !important;
    border-right-color: #8AB4F8 !important;
  }
:where(.endo-reader) .endo-item .table-wrap .sticky-table th,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th {
  vertical-align: middle !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table td {
  vertical-align: top !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th:first-child,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td:first-child,
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col,
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-sm,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-sm,
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-md,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-md,
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-lg,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-lg {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.nowrap,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.nowrap,
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.num,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.num {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.wrap,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.wrap {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.center,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.center {
  text-align: center !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.right,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.right {
  text-align: right !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.num,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.num {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-sm,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-sm {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 120px !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-md,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-md {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 200px !important;
}
:where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-lg,
:where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-lg {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 280px !important;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] {
  --sig-size: 1.45em;
  --sig-stroke: 0.045em;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th,
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  vertical-align: middle !important;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th.wrap,
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td.wrap {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th:nth-child(2),
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th:nth-child(3),
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th:nth-child(4),
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td:nth-child(2),
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td:nth-child(3),
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td:nth-child(4) {
  text-align: center !important;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th:nth-child(5),
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td:nth-child(5) {
  text-align: left !important;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .sig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .sig.up,
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .sig.dn,
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .sig.dash {
  font-weight: 900;
  font-size: var(--sig-size);
  text-shadow:
    var(--sig-stroke) 0 0 currentColor,
    calc(var(--sig-stroke) * -1) 0 0 currentColor,
    0 var(--sig-stroke) 0 currentColor,
    0 calc(var(--sig-stroke) * -1) 0 currentColor;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .sig.n {
  font-weight: 700;
  font-size: 1em;
  text-shadow: none;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .sig.mix,
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .sig.var {
  display: inline;
  font-weight: 600;
  font-size: 1em;
  text-shadow: none;
}
:where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] .mini {
  font-size: .85em;
  font-weight: 600;
}
@media (max-width: 600px) {
  :where(.endo-reader) .table-wrap > table.sticky-table th:not(:first-child),
  :where(.endo-reader) .table-wrap > table.sticky-table td:not(:first-child) {
    width: clamp(120px, 38vw, 180px) !important;
    max-width: 180px !important;
  }

  :where(.endo-reader) .table-wrap > table th,
  :where(.endo-reader) .table-wrap > table td {
    padding: 8px;
    font-size: calc(0.9 * var(--endo-rem, 1rem));
    min-width: 100px;
  }

  :where(.endo-reader) .endo-item .table-wrap .sticky-table {
    --sticky-mobile: 110px;
    --col-mobile: 82px;
    --col-mobile-max: 96px;
  }

  :where(.endo-reader) .endo-item .table-wrap .sticky-table th:first-child,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td:first-child,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-sm,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-sm,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-md,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-md,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-lg,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-lg {
    width: var(--sticky-mobile) !important;
    min-width: var(--sticky-mobile) !important;
    max-width: var(--sticky-mobile) !important;
  }

  :where(.endo-reader) .endo-item .table-wrap .sticky-table th:not(:first-child),
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td:not(:first-child) {
    width: var(--col-mobile) !important;
    min-width: var(--col-mobile) !important;
    max-width: var(--col-mobile-max) !important;
  }

  :where(.endo-reader) .endo-item .table-wrap .sticky-table th,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td {
    padding: 7px !important;
    font-size: calc(0.86 * var(--endo-rem, 1rem)) !important;
  }

  :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table {
    table-layout: auto !important;
  }

  :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table th,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    vertical-align: middle !important;
  }

  :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table th:not(:first-child),
  :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table td:not(:first-child) {
    width: auto !important;
    min-width: var(--col-mobile) !important;
    max-width: none !important;
  }

  :where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] {
    --sig-size: 1.56em;
    --sig-stroke: 0.05em;
  }

  :where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th:first-child,
  :where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td:first-child {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
  }

  :where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] th:not(:first-child),
  :where(.endo-reader) .endo-item table.sticky-table[aria-label^="Patrones:"] td:not(:first-child) {
    white-space: nowrap !important;
  }
}
:where(.endo-reader) .table-caption{
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--endo-v2-surface-line, #EEF2F7);
  color: var(--endo-v2-text, #1F2937);
  font-size: calc(0.98 * var(--endo-rem, 1rem));
  line-height: 1.4;
}
:where(.endo-reader) .table-caption strong{
  font-weight: 800;
}
:where(.endo-reader) .table-notes{
  margin: 10px 0 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--endo-v2-surface-soft, #F6F8FB);
  border-top: 1px solid var(--endo-v2-border, #DDE5EF);
  color: var(--endo-v2-text-soft, #374151);
  font-size: calc(0.94 * var(--endo-rem, 1rem));
  line-height: 1.5;
}
:where(.endo-reader) .table-notes > :first-child{ margin-top: 0; }
:where(.endo-reader) .table-notes > :last-child{ margin-bottom: 0; }
:where(.endo-reader) .table-notes p,
:where(.endo-reader) .table-notes ul,
:where(.endo-reader) .table-notes ol{
  margin: calc(.45 * var(--endo-rem, 1rem)) 0;
}
:where(.endo-reader) .table-notes ul li{
  margin-bottom: calc(.3 * var(--endo-rem, 1rem));
}
:where(.endo-reader[data-theme="dark"]) .table-caption{
    background: var(--endo-v2-surface-line, #263244);
    color: var(--endo-v2-text, #E5E7EB);
  }
:where(.endo-reader[data-theme="dark"]) .table-notes{
    background: var(--endo-v2-surface-soft, #1F2937);
    border-top-color: var(--endo-v2-border, #334155);
    color: var(--endo-v2-text-soft, #D1D5DB);
  }
:where(.endo-reader) .table-wrap .sticky-table.cols-custom {
  table-layout: fixed !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:first-child,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:first-child,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col-sm,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col-sm,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col-md,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col-md,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col-lg,
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col-lg {
  width: var(--col-1, 180px) !important;
  min-width: var(--col-1, 180px) !important;
  max-width: var(--col-1, 180px) !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(2),
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(2) {
  width: var(--col-2, 140px) !important;
  min-width: var(--col-2, 140px) !important;
  max-width: var(--col-2, 140px) !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(3),
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(3) {
  width: var(--col-3, 140px) !important;
  min-width: var(--col-3, 140px) !important;
  max-width: var(--col-3, 140px) !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(4),
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(4) {
  width: var(--col-4, 140px) !important;
  min-width: var(--col-4, 140px) !important;
  max-width: var(--col-4, 140px) !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(5),
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(5) {
  width: var(--col-5, 160px) !important;
  min-width: var(--col-5, 160px) !important;
  max-width: var(--col-5, 160px) !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(6),
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(6) {
  width: var(--col-6, 160px) !important;
  min-width: var(--col-6, 160px) !important;
  max-width: var(--col-6, 160px) !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(7),
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(7) {
  width: var(--col-7, 160px) !important;
  min-width: var(--col-7, 160px) !important;
  max-width: var(--col-7, 160px) !important;
}
:where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(8),
:where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(8) {
  width: var(--col-8, 160px) !important;
  min-width: var(--col-8, 160px) !important;
  max-width: var(--col-8, 160px) !important;
}
@media (max-width: 600px) {
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:first-child,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:first-child,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col-sm,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col-sm,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col-md,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col-md,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th.sticky-col-lg,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td.sticky-col-lg {
    width: var(--col-1-mobile, var(--sticky-mobile, var(--col-1, 120px))) !important;
    min-width: var(--col-1-mobile, var(--sticky-mobile, var(--col-1, 120px))) !important;
    max-width: var(--col-1-mobile, var(--sticky-mobile, var(--col-1, 120px))) !important;
  }

  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(2),
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(2) {
    width: var(--col-2-mobile, var(--col-mobile, var(--col-2, 100px))) !important;
    min-width: var(--col-2-mobile, var(--col-mobile, var(--col-2, 100px))) !important;
    max-width: var(--col-2-mobile-max, var(--col-mobile-max, var(--col-2-mobile, var(--col-mobile, var(--col-2, 100px))))) !important;
  }

  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(3),
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(3) {
    width: var(--col-3-mobile, var(--col-mobile, var(--col-3, 100px))) !important;
    min-width: var(--col-3-mobile, var(--col-mobile, var(--col-3, 100px))) !important;
    max-width: var(--col-3-mobile-max, var(--col-mobile-max, var(--col-3-mobile, var(--col-mobile, var(--col-3, 100px))))) !important;
  }

  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(4),
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(4) {
    width: var(--col-4-mobile, var(--col-mobile, var(--col-4, 100px))) !important;
    min-width: var(--col-4-mobile, var(--col-mobile, var(--col-4, 100px))) !important;
    max-width: var(--col-4-mobile-max, var(--col-mobile-max, var(--col-4-mobile, var(--col-mobile, var(--col-4, 100px))))) !important;
  }

  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(5),
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(5) {
    width: var(--col-5-mobile, var(--col-mobile, var(--col-5, 100px))) !important;
    min-width: var(--col-5-mobile, var(--col-mobile, var(--col-5, 100px))) !important;
    max-width: var(--col-5-mobile-max, var(--col-mobile-max, var(--col-5-mobile, var(--col-mobile, var(--col-5, 100px))))) !important;
  }

  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(6),
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(6) {
    width: var(--col-6-mobile, var(--col-mobile, var(--col-6, 100px))) !important;
    min-width: var(--col-6-mobile, var(--col-mobile, var(--col-6, 100px))) !important;
    max-width: var(--col-6-mobile-max, var(--col-mobile-max, var(--col-6-mobile, var(--col-mobile, var(--col-6, 100px))))) !important;
  }

  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(7),
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(7) {
    width: var(--col-7-mobile, var(--col-mobile, var(--col-7, 100px))) !important;
    min-width: var(--col-7-mobile, var(--col-mobile, var(--col-7, 100px))) !important;
    max-width: var(--col-7-mobile-max, var(--col-mobile-max, var(--col-7-mobile, var(--col-mobile, var(--col-7, 100px))))) !important;
  }

  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th:nth-child(8),
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td:nth-child(8) {
    width: var(--col-8-mobile, var(--col-mobile, var(--col-8, 100px))) !important;
    min-width: var(--col-8-mobile, var(--col-mobile, var(--col-8, 100px))) !important;
    max-width: var(--col-8-mobile-max, var(--col-mobile-max, var(--col-8-mobile, var(--col-mobile, var(--col-8, 100px))))) !important;
  }
}
:where(.endo-reader) .table-wrap .sticky-table.patterns-table {
  --sig-size: 1.6em;
  --sig-stroke: 0.06em;
}
:where(.endo-reader) .table-wrap .sticky-table.patterns-table th,
:where(.endo-reader) .table-wrap .sticky-table.patterns-table td {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  vertical-align: middle !important;
}
:where(.endo-reader) .table-wrap .sticky-table.patterns-table th.wrap,
:where(.endo-reader) .table-wrap .sticky-table.patterns-table td.wrap {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
:where(.endo-reader) .table-wrap .sticky-table .sig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
:where(.endo-reader) .table-wrap .sticky-table .sig.up,
:where(.endo-reader) .table-wrap .sticky-table .sig.dn,
:where(.endo-reader) .table-wrap .sticky-table .sig.dash {
  font-weight: 900;
  font-size: var(--sig-size, 1.55em);
  text-shadow:
    var(--sig-stroke, 0.055em) 0 0 currentColor,
    calc(var(--sig-stroke, 0.055em) * -1) 0 0 currentColor,
    0 var(--sig-stroke, 0.055em) 0 currentColor,
    0 calc(var(--sig-stroke, 0.055em) * -1) 0 currentColor;
}
:where(.endo-reader) .table-wrap .sticky-table .sig.n {
  font-weight: 800;
  font-size: 1em;
  text-shadow: none;
}
:where(.endo-reader) .table-wrap .sticky-table .sig.mix,
:where(.endo-reader) .table-wrap .sticky-table .sig.var {
  display: inline;
  font-weight: 700;
  font-size: 1em;
  text-shadow: none;
}
@media (max-width: 600px) {
  :where(.endo-reader) .table-wrap .sticky-table.patterns-table {
    --sig-size: 1.72em;
    --sig-stroke: 0.07em;
  }
}
@media (max-width:600px) {:where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table.cols-custom{     table-layout:fixed !important;     min-width:calc(       var(--col-1-mobile, var(--col-1, 0px)) +       var(--col-2-mobile-max, var(--col-2-mobile, var(--col-2, 0px))) +       var(--col-3-mobile-max, var(--col-3-mobile, var(--col-3, 0px))) +       var(--col-4-mobile-max, var(--col-4-mobile, var(--col-4, 0px)))     ) !important;   }    :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table.cols-custom th:nth-child(2),   :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table.cols-custom td:nth-child(2){     width:var(--col-2-mobile, var(--col-mobile, var(--col-2, 100px))) !important;     min-width:var(--col-2-mobile, var(--col-mobile, var(--col-2, 100px))) !important;     max-width:var(--col-2-mobile-max, var(--col-mobile-max, var(--col-2-mobile, var(--col-mobile, var(--col-2, 100px))))) !important;   }    :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table.cols-custom th:nth-child(3),   :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table.cols-custom td:nth-child(3){     width:var(--col-3-mobile, var(--col-mobile, var(--col-3, 100px))) !important;     min-width:var(--col-3-mobile, var(--col-mobile, var(--col-3, 100px))) !important;     max-width:var(--col-3-mobile-max, var(--col-mobile-max, var(--col-3-mobile, var(--col-mobile, var(--col-3, 100px))))) !important;   }    :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table.cols-custom th:nth-child(4),   :where(.endo-reader) .endo-item .table-wrap .sticky-table.ref-table.cols-custom td:nth-child(4){     width:var(--col-4-mobile, var(--col-mobile, var(--col-4, 100px))) !important;     min-width:var(--col-4-mobile, var(--col-mobile, var(--col-4, 100px))) !important;     max-width:var(--col-4-mobile-max, var(--col-mobile-max, var(--col-4-mobile, var(--col-mobile, var(--col-4, 100px))))) !important;   }   :where(.endo-reader) .endo-item .table-wrap .sticky-table.patterns-table[aria-label^="Patrones:"] th:nth-child(5),   :where(.endo-reader) .endo-item .table-wrap .sticky-table.patterns-table[aria-label^="Patrones:"] td:nth-child(5){     width:var(--col-5-mobile, var(--col-5, 220px)) !important;     min-width:var(--col-5-mobile, var(--col-5, 220px)) !important;     max-width:var(--col-5-mobile-max, var(--col-5-mobile, var(--col-5, 220px))) !important;     white-space:normal !important;     overflow-wrap:anywhere !important;     word-break:break-word !important;   }   :where(.endo-reader) .endo-item .table-wrap .sticky-table.patterns-table th:nth-child(6),   :where(.endo-reader) .endo-item .table-wrap .sticky-table.patterns-table td:nth-child(6){     width:var(--col-6-mobile, var(--col-6, 220px)) !important;     min-width:var(--col-6-mobile, var(--col-6, 220px)) !important;     max-width:var(--col-6-mobile-max, var(--col-6-mobile, var(--col-6, 220px))) !important;     white-space:normal !important;     overflow-wrap:anywhere !important;     word-break:break-word !important;   }   :where(.endo-reader) .endo-item .table-wrap .sticky-table.patterns-table th:nth-child(7),   :where(.endo-reader) .endo-item .table-wrap .sticky-table.patterns-table td:nth-child(7){     width:var(--col-7-mobile, var(--col-7, 220px)) !important;     min-width:var(--col-7-mobile, var(--col-7, 220px)) !important;     max-width:var(--col-7-mobile-max, var(--col-7-mobile, var(--col-7, 220px))) !important;     white-space:normal !important;     overflow-wrap:anywhere !important;     word-break:break-word !important;   }
}
:where(.endo-reader) details.colap,
:where(.endo-reader) .colap details {
  margin: 6px 0;
  padding: 0;
  border: 0;
  background: transparent;
}
:where(.endo-reader) details.colap > summary::-webkit-details-marker,
:where(.endo-reader) .colap details > summary::-webkit-details-marker {
  display: none;
}
:where(.endo-reader) details.colap > summary,
:where(.endo-reader) .colap details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0 5px 6px;
  margin: 0;
  font-weight: 760;
  color: #1C4587;
  border-left: 3px solid #d1dbe6;
  border-bottom: 1px solid #e6e6e6;
}
:where(.endo-reader) details.colap > summary::after,
:where(.endo-reader) .colap details > summary::after {
  content: "▸";
  margin-left: auto;
  font-size: 0.95em;
  opacity: 0.9;
  transform: translateY(-0.5px);
  color: currentColor;
}
:where(.endo-reader) details.colap[open] > summary,
:where(.endo-reader) .colap details[open] > summary {
  color: #005BAC;
  border-left-color: #005BAC;
  border-bottom-color: #d9e3f2;
  background: linear-gradient(90deg, rgba(0,91,172,0.09), transparent 55%);
}
:where(.endo-reader) details.colap[open] > summary::after,
:where(.endo-reader) .colap details[open] > summary::after {
  content: "▾";
  opacity: 0.95;
}
:where(.endo-reader) details.colap > .content,
:where(.endo-reader) .colap details > .content {
  padding: 6px 0 8px 6px;
  margin: 0;
  border-left: 3px solid #d1dbe6;
  line-height: 1.58;
}
:where(.endo-reader) details.colap[open] > .content,
:where(.endo-reader) .colap details[open] > .content {
  border-left-color: #005BAC;
  background: linear-gradient(90deg, rgba(0,91,172,0.05), transparent 65%);
}
:where(.endo-reader) details.colap > .content > :first-child,
:where(.endo-reader) .colap details > .content > :first-child {
  margin-top: 0;
}
:where(.endo-reader) details.colap > .content > :last-child,
:where(.endo-reader) .colap details > .content > :last-child {
  margin-bottom: 0;
}
@media (hover: hover) {
  :where(.endo-reader) details.colap > summary:hover,
  :where(.endo-reader) .colap details > summary:hover {
    color: #005BAC;
    border-left-color: #005BAC;
  }
}
:where(.endo-reader) details.colap > summary:focus-visible,
:where(.endo-reader) .colap details > summary:focus-visible {
  outline: 2px solid rgba(0,91,172,0.35);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  :where(.endo-reader) details.colap[open] > .content,
  :where(.endo-reader) .colap details[open] > .content {
    animation: endoAccFade 110ms ease-out;
  }
}
@keyframes endoAccFade {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0); }
  }
:where(.endo-reader[data-theme="dark"]) details.colap > summary,
  :where(.endo-reader[data-theme="dark"]) .colap details > summary {
    color: #FFE9D6;
    border-left-color: #33414f;
    border-bottom-color: #2e2e2e;
    background: transparent;
  }
:where(.endo-reader[data-theme="dark"]) details.colap[open] > summary,
  :where(.endo-reader[data-theme="dark"]) .colap details[open] > summary {
    color: #FFB86B;
    border-left-color: #FF7A1A;
    border-bottom-color: #3a3a3a;
    background: linear-gradient(90deg, rgba(255,122,26,0.22), transparent 55%);
  }
:where(.endo-reader[data-theme="dark"]) details.colap > .content,
  :where(.endo-reader[data-theme="dark"]) .colap details > .content {
    border-left-color: #33414f;
    color: #E8E8E8;
  }
:where(.endo-reader[data-theme="dark"]) details.colap[open] > .content,
  :where(.endo-reader[data-theme="dark"]) .colap details[open] > .content {
    border-left-color: #FF7A1A;
    background: linear-gradient(90deg, rgba(255,122,26,0.14), transparent 65%);
  }
:where(.endo-reader[data-theme="dark"]) details.colap > summary:focus-visible,
  :where(.endo-reader[data-theme="dark"]) .colap details > summary:focus-visible {
    outline-color: rgba(255,122,26,0.55);
  }
@media (hover: hover) {
    :where(.endo-reader[data-theme="dark"]) details.colap > summary:hover,
    :where(.endo-reader[data-theme="dark"]) .colap details > summary:hover {
      color: #FFB86B;
      border-left-color: #FF7A1A;
    }
}
:where(.endo-reader) details.colap > .content.toc,
:where(.endo-reader) .colap details > .content.toc {
  padding-left: 10px;
}
:where(.endo-reader) details.colap > .content.toc ul,
:where(.endo-reader) .colap details > .content.toc ul {
  margin: 0;
  padding-left: 0;
}
:where(.endo-reader) details.colap > .content.toc li,
:where(.endo-reader) .colap details > .content.toc li {
  padding-left: 0;
  text-indent: 0;
  margin-bottom: calc(0.35 * var(--endo-rem, 1rem));
}
:where(.endo-reader) details.colap > .content.toc li::before,
:where(.endo-reader) .colap details > .content.toc li::before {
  content: none;
}
:where(.endo-reader) details.colap > .content.toc a,
:where(.endo-reader) .colap details > .content.toc a {
  display: block;
  padding-left: calc(0.15 * var(--endo-rem, 1rem));
  text-decoration: none;
}
:where(.endo-reader) .caja {
  background-color: #F3F9FF;
  border-left: 1px solid #0077CC;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}
:where(.endo-reader) .caja > :first-child {
  margin-top: 0;
}
:where(.endo-reader) .caja > :last-child {
  margin-bottom: 0;
}
:where(.endo-reader) .caja p,
:where(.endo-reader) .caja ul,
:where(.endo-reader) .caja ol {
  margin: calc(.45 * var(--endo-rem, 1rem)) 0;
}
:where(.endo-reader) .caja ul li {
  margin-bottom: calc(.35 * var(--endo-rem, 1rem));
}
@media (hover: hover) {
  :where(.endo-reader) .caja:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }
}
:where(.endo-reader[data-theme="dark"]) .caja {
    background: linear-gradient(90deg, rgba(255,122,26,0.16), rgba(18,18,18,0) 70%);
    border-left-color: #FF7A1A;
    color: #E8E8E8;
    box-shadow: none;
  }
:where(.endo-reader[data-theme="dark"]) .caja a {
    color: #FFB86B;
    text-decoration-color: rgba(255,122,26,.45);
  }
:where(.endo-reader[data-theme="dark"]) .caja a:hover {
    text-decoration-color: rgba(255,122,26,.85);
  }
:where(.endo-reader) .code-sample{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 18px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(0, 91, 172, 0.18);
}
:where(.endo-reader) .code-sample pre{
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}
:where(.endo-reader) .code-sample code{
  display: block;
  min-width: max-content;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: calc(0.88 * var(--endo-rem, 1rem));
  line-height: 1.5;
  color: #e5eef8;
}
:where(.endo-reader[data-theme="dark"]) .code-sample{
    background: #0b1120;
    border-color: rgba(138, 180, 248, 0.22);
  }
:where(.endo-reader[data-theme="dark"]) .code-sample code{
    color: #e8edf5;
  }
:where(.endo-reader) .endo-item, :where(.endo-reader) .caja, :where(.endo-reader) .informe, :where(.endo-reader) details.colap, :where(.endo-reader) details.colap > .content, :where(.endo-reader) .colap details, :where(.endo-reader) .colap details > .content, :where(.endo-reader) .code-sample {   min-width: 0 !important;   max-width: 100% !important; }
:where(.endo-reader) pre {   display: block;   width: 100% !important;   max-width: 100% !important;   margin: 12px 0 16px;   padding: 12px 14px;   border-radius: 12px;   border: 1px solid rgba(0, 91, 172, 0.18);   color: #1E1E1E;   font-size: calc(0.88 * var(--endo-rem, 1rem));   line-height: 1.55;   white-space: pre-wrap !important;   word-break: break-word !important;   overflow-x: hidden !important;   box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
:where(.endo-reader) pre code {   display: block;   width: 100% !important;   max-width: 100% !important;   min-width: 0 !important;   font: inherit;   color: inherit;   background: transparent !important;   border: 0 !important;   padding: 0 !important;   white-space: inherit !important; }
:where(.endo-reader) .code-sample {   width: 100% !important;   max-width: 100% !important;   overflow-x: hidden !important;   -webkit-overflow-scrolling: auto;   margin: 14px 0 18px;   padding: 0;   border-radius: 12px;   background: #f8fafc;   border: 1px solid rgba(0, 91, 172, 0.18); }
:where(.endo-reader) .code-sample pre {   margin: 0 !important;   padding: 14px 16px !important;   white-space: pre-wrap !important;   overflow-wrap: anywhere !important;   word-break: break-word !important;   overflow-x: hidden !important; }
:where(.endo-reader) .code-sample code {   display: block;   width: 100% !important;   max-width: 100% !important;   min-width: 0 !important;   white-space: inherit !important;   overflow-wrap: inherit !important;   word-break: inherit !important;   font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;   font-size: calc(0.88 * var(--endo-rem, 1rem));   line-height: 1.5;   color: #1E1E1E; }
:where(.endo-reader) :not(pre) > code {   max-width: 100%;   padding: 1px 6px;   border-radius: 6px;   border: 1px solid rgba(0, 91, 172, 0.18);   background: rgba(0, 91, 172, 0.06);   color: #005BAC;   font-size: 0.9em; }
:where(.endo-reader[data-theme="dark"]) pre,   :where(.endo-reader[data-theme="dark"]) .code-sample {     background:       linear-gradient(180deg, rgba(255,122,26,0.12), rgba(18,18,18,0.35)),       #0b1120;     border-color: rgba(138, 180, 248, 0.22);     color: #e8edf5;     box-shadow: none;   }
:where(.endo-reader[data-theme="dark"]) .code-sample code {     color: #e8edf5;   }
:where(.endo-reader[data-theme="dark"]) :not(pre) > code {     background: rgba(138, 180, 248, 0.10);     border-color: rgba(138, 180, 248, 0.25);     color: #8AB4F8;   }
@media (max-width: 600px) {   :where(.endo-reader) pre,   :where(.endo-reader) .code-sample pre {     padding: 10px 11px !important;     border-radius: 10px;     font-size: calc(0.82 * var(--endo-rem, 1rem));     line-height: 1.48;   }    :where(.endo-reader) :not(pre) > code {     font-size: 0.86em;     padding: 1px 5px;   }
}
:where(.endo-reader) pre.pre-scroll, :where(.endo-reader) pre.nowrap, :where(.endo-reader) .code-sample.pre-scroll, :where(.endo-reader) .code-sample.nowrap, :where(.endo-reader) .code-sample.pre-scroll pre, :where(.endo-reader) .code-sample.nowrap pre {   white-space: pre !important;   overflow-x: auto !important;   overflow-y: hidden;   overflow-wrap: normal !important;   word-break: normal !important;   -webkit-overflow-scrolling: touch; }
:where(.endo-reader) pre.pre-scroll code, :where(.endo-reader) pre.nowrap code, :where(.endo-reader) .code-sample.pre-scroll code, :where(.endo-reader) .code-sample.nowrap code {   min-width: max-content !important;   white-space: pre !important;   overflow-wrap: normal !important;   word-break: normal !important; }
:where(.endo-reader) sup.rcite {
  font-size: calc(0.69 * var(--endo-rem, 1rem)); /* 11 px al 100 %, crece con el tamaño elegido */
  vertical-align: super;
  margin-left: 2px;
}
:where(.endo-reader) sup.rcite a {
  text-decoration: none;
  font-weight: 700;
  padding: 1px 7px;
  border: 1px solid rgba(0, 91, 172, 0.25);
  border-radius: 999px;
  color: #005BAC;
  background-color: rgba(0, 91, 172, 0.04);
  transition: all 0.2s ease;
}
:where(.endo-reader) sup.rcite a:hover {
  background-color: rgba(0, 91, 172, 0.12);
  border-color: #005BAC;
}
:where(.endo-reader[data-theme="dark"]) sup.rcite a {
    color: #8AB4F8;
    border-color: rgba(138, 180, 248, 0.3);
    background-color: rgba(138, 180, 248, 0.08);
  }
:where(.endo-reader) [id], :where(.endo-reader) .refs li, :where(.endo-reader):not(#ep-pad) .refs li {
  scroll-margin-top: 75px;
}
:where(.endo-reader) :target {
  outline: none;
  border: 2px solid #F97316 !important;
  background-color: rgba(249, 115, 22, 0.05) !important;
  border-radius: 8px;
  padding: 4px 8px;
  animation: target-fade 2s ease-in-out;
}
@keyframes target-fade {
  0%   { box-shadow: 0 0 15px rgba(249, 115, 22, 0.6); }
  100% { box-shadow: 0 0 0 transparent; }
}
:where(.endo-reader[data-theme="dark"]) :target {
    border-color: #FB923C !important;
    background-color: rgba(251, 146, 60, 0.1) !important;
  }
:where(.endo-reader) .back-to-text {
  text-decoration: none;
  font-size: calc(0.69 * var(--endo-rem, 1rem)); /* 11 px al 100 %, crece con el tamaño elegido */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #005BAC;
  background-color: rgba(0, 91, 172, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  vertical-align: middle;
}
:where(.endo-reader) .back-to-text::before {
  content: "↑";
  font-size: 12px;
}
:where(.endo-reader) .back-to-text:hover {
  background-color: rgba(0, 91, 172, 0.15);
  transform: translateY(-2px);
}
:where(.endo-reader[data-theme="dark"]) .back-to-text {
    color: #8AB4F8;
    background-color: rgba(138, 180, 248, 0.12);
  }
:where(.endo-reader[data-theme="dark"]) .back-to-text:hover {
    background-color: rgba(138, 180, 248, 0.2);
  }
:where(.endo-reader) img {
  display: block;
  margin: calc(1.5 * var(--endo-rem, 1rem)) auto;
}
:where(.endo-reader[data-theme="dark"]) mark, :where(.endo-reader[data-theme="dark"]) .hl {
    background-color: rgba(255, 122, 26, 0.42);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.65);
    box-shadow: inset 0 0 0 1px rgba(255, 184, 107, 0.35);
    border-radius: 4px;
    padding: 0 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
:where(.endo-reader):not(ep-pad), :where(.endo-reader):not(ep-pad) {
  font-family: var(--endo-reader-font) !important;
  font-size: var(--endo-reader-font-size);
  line-height: var(--endo-reader-line-height);
  letter-spacing: var(--endo-reader-letter-spacing);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:where(.endo-reader) .endo-item,
:where(.endo-reader) .endo-item p,
:where(.endo-reader) .endo-item li,
:where(.endo-reader) .endo-item td,
:where(.endo-reader) .endo-item th,
:where(.endo-reader) .endo-item summary,
:where(.endo-reader) .endo-item details,
:where(.endo-reader) .endo-item blockquote,
:where(.endo-reader) .endo-item .caja,
:where(.endo-reader) .endo-item .content {
  font-family: var(--endo-reader-font) !important;
}
:where(.endo-reader):not(ep-pad) {
  font-family: var(--endo-reader-font) !important;
}
:where(.endo-reader) .endo-item p,
:where(.endo-reader) .endo-item li {
  font-size: calc(1 * var(--endo-rem, 1rem));
  line-height: var(--endo-reader-line-height);
}
:where(.endo-reader) .endo-item h1,
:where(.endo-reader) .endo-item h2,
:where(.endo-reader) .endo-item h3,
:where(.endo-reader) .endo-item h4,
:where(.endo-reader) .endo-item summary {
  font-family: var(--endo-reader-font) !important;
  text-rendering: optimizeLegibility;
}
@media (orientation: landscape) {
  :where(.endo-reader):not(ep-pad) {
    font-size: 16.5px;
  }

  :where(.endo-reader) .endo-item {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EndoplusiaRoboto";
  src: url("fonts/roboto_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EndoplusiaMontserrat";
  src: url("fonts/montserrat_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EndoplusiaLora";
  src: url("fonts/lora_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* ▼ Grosores 500 y 700 (Fontsource 5.3.0, OFL-1.1): negritas reales en app y web ▼ */
@font-face {
  font-family: "EndoplusiaRoboto";
  src: url("fonts/roboto-greek-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "EndoplusiaRoboto";
  src: url("fonts/roboto-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaRoboto";
  src: url("fonts/roboto-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EndoplusiaRoboto";
  src: url("fonts/roboto-greek-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "EndoplusiaRoboto";
  src: url("fonts/roboto-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaRoboto";
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter-greek-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter-greek-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaInter";
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EndoplusiaMontserrat";
  src: url("fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaMontserrat";
  src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EndoplusiaMontserrat";
  src: url("fonts/montserrat-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaMontserrat";
  src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EndoplusiaLora";
  src: url("fonts/lora-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaLora";
  src: url("fonts/lora-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EndoplusiaLora";
  src: url("fonts/lora-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "EndoplusiaLora";
  src: url("fonts/lora-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ▲ fin grosores ▲ */
:where(.endo-reader):not(ep-pad), :where(.endo-reader):not(ep-pad) {
  font-family: var(--endo-reader-font) !important;
  font-size: var(--endo-reader-font-size) !important;
  line-height: var(--endo-reader-line-height) !important;
  letter-spacing: var(--endo-reader-letter-spacing);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:where(.endo-reader):not(#ep-pad),
:where(.endo-reader) .endo-item,
:where(.endo-reader) .endo-item p,
:where(.endo-reader) .endo-item li,
:where(.endo-reader) .endo-item td,
:where(.endo-reader) .endo-item th,
:where(.endo-reader) .endo-item summary,
:where(.endo-reader) .endo-item details,
:where(.endo-reader) .endo-item blockquote,
:where(.endo-reader) .endo-item .caja,
:where(.endo-reader) .endo-item .content,
:where(.endo-reader) .endo-item .informe {
  font-family: var(--endo-reader-font) !important;
}
:where(.endo-reader):not(ep-pad) {
  font-family: var(--endo-reader-font) !important;
}
:where(.endo-reader) .endo-item p,
:where(.endo-reader) .endo-item li {
  font-size: calc(1 * var(--endo-rem, 1rem));
  line-height: var(--endo-reader-line-height) !important;
}
:where(.endo-reader) .endo-item h1,
:where(.endo-reader) .endo-item h2,
:where(.endo-reader) .endo-item h3,
:where(.endo-reader) .endo-item h4,
:where(.endo-reader) .endo-item summary {
  font-family: var(--endo-reader-font) !important;
  text-rendering: optimizeLegibility;
}
:where(.endo-reader) .endo-item code,
:where(.endo-reader) .endo-item pre,
:where(.endo-reader) .endo-item kbd,
:where(.endo-reader) .endo-item samp,
:where(.endo-reader) pre,
:where(.endo-reader) code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}
@media (orientation: landscape) {
  :where(.endo-reader):not(ep-pad) {
    font-size: calc(var(--endo-reader-font-size) * 0.97) !important;
  }

  :where(.endo-reader):not(#ep-pad),
  :where(.endo-reader) .endo-item {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}
:where(.endo-reader) .endo-tree li::before {   content: "";   position: absolute;   top: 0.75em;   left: calc(-0.9 * var(--endo-rem, 1rem));   width: calc(0.75 * var(--endo-rem, 1rem));   border-top: 2px solid #cbd5e1; }
:where(.endo-reader) .endo-tree summary:hover {   background: #dceeff; }
:where(.endo-reader[data-theme="dark"]) .endo-tree li::before {     border-top-color: #4b5563;   }
:where(.endo-reader[data-theme="dark"]) .endo-tree summary:hover {     background: #334155;   }
:where(.endo-reader):not(.ep-pad) {
  --endo-v2-bg: #FFFFFF;
  --endo-v2-surface: #FFFFFF;
  --endo-v2-surface-soft: #F6F8FB;
  --endo-v2-surface-line: #EEF2F7;

  --endo-v2-text: #1F2937;
  --endo-v2-text-soft: #374151;
  --endo-v2-muted: #4B5563; /* 6.9:1 sobre #F6F8FB (antes #6B7280, 4.5:1 en el límite) */

  --endo-v2-border: #DDE5EF;
  --endo-v2-border-soft: #E8EEF5;

  --endo-v2-accent: #0B6FAE;
  --endo-v2-accent-strong: #005BAC;
  --endo-v2-accent-soft: rgba(0, 91, 172, 0.08);

  --endo-v2-orange: #F97316;
  --endo-v2-orange-strong: #EA580C;
  --endo-v2-orange-soft: rgba(249, 115, 22, 0.10);

  --endo-v2-radius: 9px;
  --endo-v2-radius-sm: 6px;

  --endo-v2-shadow-none: none;
  --endo-v2-reading-width: 920px;

  /* Sigue el tamaño elegido (barra lateral de la app, «Aa», A−/A+ de la web); antes fijo en 17 px. */
  --endo-v2-font-size: var(--endo-reader-font-size, 16px);
  --endo-v2-line-height: 1.58;
}
/* Modo noche descansado: gris muy oscuro y texto blanco suave (párrafo ≈ 11.7:1; antes 14:1,
   demasiado brillante para lectura prolongada). Misma paleta en app (visor_android.css) y web. */
:where(.endo-reader[data-theme="dark"]):not(.ep-pad) {
    --endo-v2-bg: #111827;
    --endo-v2-surface: #172031;
    --endo-v2-surface-soft: #1F2937;
    --endo-v2-surface-line: #263244;

    --endo-v2-text: #E5E7EB;
    --endo-v2-text-soft: #D1D5DB;
    --endo-v2-muted: #9CA3AF;

    --endo-v2-border: #334155;
    --endo-v2-border-soft: #2A3647;

    --endo-v2-accent: #FFB86B;
    --endo-v2-accent-strong: #FF7A1A;
    --endo-v2-accent-soft: rgba(255, 122, 26, 0.13);

    --endo-v2-orange: #FF7A1A;
    --endo-v2-orange-strong: #FF9B45;
    --endo-v2-orange-soft: rgba(255, 122, 26, 0.16);
}
:where(.endo-reader):not(ep-pad), :where(.endo-reader):not(ep-pad) {
  color: var(--endo-v2-text) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item {
  max-width: var(--endo-v2-reading-width) !important;
  margin: 0 auto 18px auto !important;
  padding: 12px 10px 22px 10px !important;
  background: transparent !important;
  color: var(--endo-v2-text) !important;
  font-size: var(--endo-v2-font-size) !important;
  line-height: var(--endo-v2-line-height) !important;
  box-shadow: none !important;
}
@media (min-width: 700px) {
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item {
    padding: 16px 18px 28px 18px !important;
  }
}
@media (orientation: landscape) and (min-width: 700px) {
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item {
    max-width: 960px !important;
    padding-top: 14px !important;
  }
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item > h1:first-child {
  position: relative !important;
  margin: 2px 0 10px 0 !important;
  padding: 8px 10px 9px 13px !important;

  border: 0 !important;
  border-left: 4px solid var(--endo-v2-accent-strong) !important;
  border-bottom: 1px solid var(--endo-v2-border-soft) !important;

  background: linear-gradient(
    90deg,
    var(--endo-v2-accent-soft),
    transparent 78%
  ) !important;
  color: var(--endo-v2-text) !important;

  font-size: clamp(calc(1.28 * var(--endo-rem, 1rem)), 5vw, calc(1.72 * var(--endo-rem, 1rem))) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.018em !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item > h1:first-child::before {
  content: none !important;
  display: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item > .meta {
  display: block !important;
  margin: 6px 0 14px 0 !important;
  padding: 7px 10px !important;

  border: 1px solid var(--endo-v2-border-soft) !important;
  border-left: 3px solid var(--endo-v2-accent) !important;
  border-radius: var(--endo-v2-radius-sm) !important;

  background: var(--endo-v2-surface-soft) !important;
  color: var(--endo-v2-muted) !important;

  font-size: calc(0.88 * var(--endo-rem, 1rem)) !important;
  line-height: 1.38 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item h2 {
  margin: 22px 0 9px 0 !important;
  padding: 0 0 5px 0 !important;

  border: 0 !important;
  border-bottom: 1px solid var(--endo-v2-border-soft) !important;

  color: var(--endo-v2-accent-strong) !important;
  background: transparent !important;

  font-size: clamp(calc(1.12 * var(--endo-rem, 1rem)), 3.7vw, calc(1.34 * var(--endo-rem, 1rem))) !important;
  line-height: 1.26 !important;
  letter-spacing: -0.008em !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item h2::before {
  content: "" !important;
  display: inline-block !important;
  width: 4px !important;
  height: 1em !important;
  margin-right: 8px !important;
  border-radius: 999px !important;
  background: var(--endo-v2-accent-strong) !important;
  transform: translateY(0.12em) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item h3 {
  margin: 17px 0 7px 0 !important;
  padding: 0 !important;

  color: var(--endo-v2-text) !important;

  font-size: clamp(calc(1.02 * var(--endo-rem, 1rem)), 3.2vw, calc(1.15 * var(--endo-rem, 1rem))) !important;
  line-height: 1.32 !important;
  font-weight: 780 !important;
  letter-spacing: -0.004em !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item h3::before {
  content: "" !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  margin-right: 8px !important;
  border-radius: 999px !important;
  background: var(--endo-v2-accent) !important;
  vertical-align: 0.12em !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item h4 {
  margin: 14px 0 6px 0 !important;
  color: var(--endo-v2-text-soft) !important;
  font-size: calc(0.98 * var(--endo-rem, 1rem)) !important;
  line-height: 1.34 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item p {
  margin: calc(0.52 * var(--endo-rem, 1rem)) 0 !important;
  color: var(--endo-v2-text-soft) !important;
  line-height: var(--endo-v2-line-height) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item ul,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item ol {
  margin-top: calc(0.42 * var(--endo-rem, 1rem)) !important;
  margin-bottom: calc(0.72 * var(--endo-rem, 1rem)) !important;
  padding-left: calc(1.1 * var(--endo-rem, 1rem)) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item li {
  margin: calc(0.32 * var(--endo-rem, 1rem)) 0 !important;
  padding-left: calc(0.08 * var(--endo-rem, 1rem)) !important;
  color: var(--endo-v2-text-soft) !important;
  line-height: 1.52 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item li::marker {
  color: var(--endo-v2-accent-strong) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item strong,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item b {
  color: var(--endo-v2-text) !important;
  font-weight: 800 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details {
  margin: 7px 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-left: 3px solid var(--endo-v2-border) !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap[open],
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details[open] {
  border-left-color: var(--endo-v2-accent-strong) !important;
  box-shadow: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap > summary,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details > summary {
  position: relative !important;
  list-style: none !important;
  cursor: pointer !important;

  margin: 0 !important;
  padding: 7px 34px 7px 10px !important;

  border: 0 !important;
  border-bottom: 1px solid var(--endo-v2-border-soft) !important;
  border-radius: 0 !important;

  background: transparent !important;
  color: var(--endo-v2-text) !important;

  font-weight: 820 !important;
  letter-spacing: 0.005em !important;
  line-height: 1.28 !important;

  box-shadow: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap[open] > summary,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details[open] > summary {
  color: var(--endo-v2-accent-strong) !important;
  background: linear-gradient(
    90deg,
    var(--endo-v2-accent-soft),
    transparent 72%
  ) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap > summary::-webkit-details-marker,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details > summary::-webkit-details-marker {
  display: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap > summary::after,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details > summary::after {
  content: "▸" !important;
  position: absolute !important;
  right: 11px !important;
  top: 50% !important;

  transform: translateY(-50%) !important;
  color: currentColor !important;

  font-size: calc(0.95 * var(--endo-rem, 1rem)) !important;
  font-weight: 900 !important;
  opacity: 0.9 !important;

  transition: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap[open] > summary::after,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details[open] > summary::after {
  content: "▾" !important;
  transform: translateY(-50%) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap > .content,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details > .content,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details .content {
  margin: 0 !important;
  padding: 8px 0 9px 10px !important;

  border: 0 !important;
  border-left: 0 !important;

  background: transparent !important;
  color: var(--endo-v2-text-soft) !important;
  box-shadow: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap[open] > .content,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details[open] > .content {
  background: linear-gradient(
    90deg,
    rgba(0, 91, 172, 0.035),
    transparent 72%
  ) !important;
}
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item details.colap[open] > .content,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item details[open] > .content {
    background: linear-gradient(
      90deg,
      rgba(255, 122, 26, 0.075),
      transparent 72%
    ) !important;
  }
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .caja,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .box,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .nota,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .alerta,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .perla {
  margin: 8px 0 !important;
  padding: 9px 11px !important;

  border: 0 !important;
  border-left: 3px solid var(--endo-v2-accent-strong) !important;
  border-radius: var(--endo-v2-radius-sm) !important;

  background: var(--endo-v2-surface-soft) !important;
  color: var(--endo-v2-text-soft) !important;

  box-shadow: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .caja p,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .box p,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .nota p,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .alerta p,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .perla p {
  margin: calc(0.42 * var(--endo-rem, 1rem)) 0 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .alerta,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .danger,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .redflag {
  border-left-color: #DC2626 !important;
  background: rgba(220, 38, 38, 0.07) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .perla,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .tip,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .keypoint {
  border-left-color: #059669 !important;
  background: rgba(5, 150, 105, 0.07) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .warning,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .precaucion {
  border-left-color: var(--endo-v2-orange) !important;
  background: var(--endo-v2-orange-soft) !important;
}
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .caja,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .box,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .nota,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .perla {
    background: linear-gradient(
      90deg,
      rgba(255, 122, 26, 0.11),
      rgba(255, 122, 26, 0.035) 46%,
      transparent 100%
    ) !important;
    border-left-color: var(--endo-v2-orange) !important;
  }
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .alerta,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .danger,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .redflag {
    background: rgba(239, 68, 68, 0.12) !important;
    border-left-color: #FF6B6B !important;
  }
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .warning,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .precaucion {
    background: rgba(255, 122, 26, 0.14) !important;
    border-left-color: var(--endo-v2-orange) !important;
  }
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre.copyable,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .code-sample {
  margin: 9px 0 12px 0 !important;
  padding: 10px 11px !important;

  border: 1px solid var(--endo-v2-border-soft) !important;
  border-left: 3px solid var(--endo-v2-accent) !important;
  border-radius: var(--endo-v2-radius-sm) !important;

  background: var(--endo-v2-surface-soft) !important;
  color: var(--endo-v2-text) !important;

  box-shadow: none !important;

  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  overflow-x: auto !important;

  font-size: calc(0.9 * var(--endo-rem, 1rem)) !important;
  line-height: 1.48 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item code {
  background: rgba(0, 91, 172, 0.07) !important;
  border: 1px solid var(--endo-v2-border-soft) !important;
  color: var(--endo-v2-accent-strong) !important;
}
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item pre,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item pre.copyable,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .code-sample {
    background: var(--endo-v2-surface) !important;
    color: var(--endo-v2-text) !important;
    border-color: var(--endo-v2-border) !important;
    border-left-color: var(--endo-v2-orange) !important;
  }
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item code {
    background: rgba(255, 122, 26, 0.12) !important;
    border-color: rgba(255, 122, 26, 0.22) !important;
    color: #FFB86B !important;
  }
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .table-wrap {
  margin: 11px 0 15px 0 !important;

  border: 1px solid var(--endo-v2-border) !important;
  border-radius: var(--endo-v2-radius-sm) !important;

  background: var(--endo-v2-surface) !important;
  box-shadow: none !important;

  overflow-x: auto !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table {
  background: var(--endo-v2-surface) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table th {
  background: var(--endo-v2-surface-soft) !important;
  color: var(--endo-v2-text) !important;
  font-weight: 820 !important;
  border-bottom: 1px solid var(--endo-v2-border) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table td {
  background: var(--endo-v2-surface) !important;
  color: var(--endo-v2-text-soft) !important;
  border-bottom: 1px solid var(--endo-v2-border-soft) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table th,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table td {
  padding: 8px 9px !important;
  line-height: 1.34 !important;
  vertical-align: top !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table tr:last-child td {
  border-bottom: 0 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table .sticky-col,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .sticky-table .sticky-col,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .table-wrap > table.sticky-table th:first-child,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .table-wrap > table.sticky-table td:first-child {
  background: var(--endo-v2-surface) !important;
  border-right: 2px solid var(--endo-v2-accent) !important;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.06) !important;
}
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item table th {
    background: var(--endo-v2-surface-soft) !important;
    color: var(--endo-v2-text) !important;
  }
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item table td {
    background: var(--endo-v2-surface) !important;
    color: var(--endo-v2-text-soft) !important;
  }
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .table-wrap {
    border-color: var(--endo-v2-border) !important;
    background: var(--endo-v2-surface) !important;
  }
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item table .sticky-col,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .sticky-table .sticky-col,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .table-wrap > table.sticky-table th:first-child,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .table-wrap > table.sticky-table td:first-child {
    background: var(--endo-v2-surface-soft) !important;
    border-right-color: var(--endo-v2-orange) !important;
  }
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item sup.rcite a {
  color: var(--endo-v2-accent-strong) !important;
  border-color: var(--endo-v2-border) !important;
  background: var(--endo-v2-accent-soft) !important;
  box-shadow: none !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .refs,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item ol.refs {
  margin-top: 9px !important;
  padding-left: calc(1.15 * var(--endo-rem, 1rem)) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .refs li,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item ol.refs li {
  margin: calc(0.42 * var(--endo-rem, 1rem)) 0 !important;
  color: var(--endo-v2-muted) !important;
  font-size: calc(0.9 * var(--endo-rem, 1rem)) !important;
  line-height: 1.46 !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item a {
  color: var(--endo-v2-accent-strong) !important;
  text-decoration-thickness: 0.07em !important;
  text-underline-offset: 0.14em !important;
}
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item sup.rcite a,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item a {
    color: #FFB86B !important;
  }
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item mark,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .hl {
  background: rgba(250, 204, 21, 0.48) !important;
  color: #111827 !important;
  border-radius: 4px !important;
  padding: 0 4px !important;
  font-weight: 760 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
:where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item mark,
  :where(.endo-reader[data-theme="dark"]):not(.ep-pad):not(ep-pad) .endo-item .hl {
    background: rgba(255, 122, 26, 0.44) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 0 0 1px rgba(255, 184, 107, 0.32) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55) !important;
  }
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item img {
  max-width: 100% !important;
  border-radius: var(--endo-v2-radius-sm) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item img.endo-img {
  border: 1px solid var(--endo-v2-border) !important;
  background: var(--endo-v2-surface) !important;
}
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .caja,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .box,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .nota,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .alerta,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .perla,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .table-wrap,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre.copyable,
:where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .code-sample {
  box-shadow: none !important;
}
@media (hover: hover) {
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap:hover,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details:hover,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .caja:hover,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .table-wrap:hover,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre.copyable:hover {
    box-shadow: none !important;
    transform: none !important;
  }
}
@media print {
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item {
    background: #FFFFFF !important;
    color: #111827 !important;
    box-shadow: none !important;
  }
  :where(.endo-reader):not(.ep-pad):not(ep-pad), :where(.endo-reader):not(.ep-pad):not(ep-pad):not(ep-pad), :where(.endo-reader):not(#ep-pad):not(.ep-pad):not(ep-pad) {
    color: #111827 !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item {
    max-width: none !important;
    padding: 0 !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item > h1:first-child,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .caja,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .table-wrap,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre.copyable {
    box-shadow: none !important;
  }
}
@media (max-width: 520px) {
  :where(.endo-reader):not(.ep-pad) {
    --endo-v2-font-size: var(--endo-reader-font-size, 16px);
    --endo-v2-line-height: 1.54;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item {
    padding: 10px 9px 20px 9px !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item > h1:first-child {
    margin-bottom: 8px !important;
    padding: 7px 8px 8px 11px !important;
    font-size: clamp(calc(1.18 * var(--endo-rem, 1rem)), 6vw, calc(1.45 * var(--endo-rem, 1rem))) !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item > .meta {
    margin-bottom: 10px !important;
    padding: 6px 8px !important;
    font-size: calc(0.84 * var(--endo-rem, 1rem)) !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details {
    margin: 6px 0 !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap > summary,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details > summary {
    padding: 7px 31px 7px 9px !important;
    font-size: calc(0.98 * var(--endo-rem, 1rem)) !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details.colap > .content,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details > .content,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item details .content {
    padding: 7px 0 8px 9px !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item p {
    margin: calc(0.46 * var(--endo-rem, 1rem)) 0 !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item li {
    margin: calc(0.28 * var(--endo-rem, 1rem)) 0 !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table th,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item table td {
    padding: 7px 7px !important;
    font-size: calc(0.86 * var(--endo-rem, 1rem)) !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .caja,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .box,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .nota,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .alerta,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .perla {
    padding: 8px 9px !important;
    margin: 7px 0 !important;
  }

  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item pre.copyable,
  :where(.endo-reader):not(.ep-pad):not(ep-pad) .endo-item .code-sample {
    padding: 9px 9px !important;
    font-size: calc(0.84 * var(--endo-rem, 1rem)) !important;
  }
}
:where(.endo-reader):not(.ep-pad) {

  --endo-bg: #f7f8fb;
  --endo-surface: #ffffff;
  --endo-surface-soft: #f1f4f8;
  --endo-text: #18202a;
  --endo-text-soft: #4d5a68;
  --endo-border: rgba(24, 32, 42, 0.12);
  --endo-accent: #1565c0;
  --endo-accent-soft: rgba(21, 101, 192, 0.10);
  --endo-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
:where(.endo-reader):not(ep-pad), :where(.endo-reader):not(ep-pad) {
  font-family: var(--endo-reader-font) !important;
  font-size: var(--endo-reader-font-size) !important;
  line-height: var(--endo-reader-line-height) !important;
  color: var(--endo-text) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:where(.endo-reader):not(#ep-pad),
:where(.endo-reader) .endo-item,
:where(.endo-reader) .endoplusia-item {
  color: var(--endo-text) !important;
}
:where(.endo-reader):not(ep-pad) {
  color: var(--endo-text) !important;
}
:where(.endo-reader) .endo-item,
:where(.endo-reader) .endoplusia-item,
:where(.endo-reader) .caja,
:where(.endo-reader) .card,
:where(.endo-reader) details.colap,
:where(.endo-reader) .content,
:where(.endo-reader) .table-wrap,
:where(.endo-reader) pre.copyable {
  background-color: var(--endo-surface);
  color: var(--endo-text);
  border-color: var(--endo-border);
}
:where(.endo-reader) .meta,
:where(.endo-reader) small,
:where(.endo-reader) .text-muted,
:where(.endo-reader) .leyenda,
:where(.endo-reader) .caption,
:where(.endo-reader) figcaption {
  color: var(--endo-text-soft) !important;
}
:where(.endo-reader) details.colap {
  border: 1px solid var(--endo-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}
:where(.endo-reader) details.colap > summary {
  background: var(--endo-surface-soft);
  color: var(--endo-text);
  font-size: calc(var(--endo-reader-font-size) * 0.98);
  line-height: 1.35;
  font-weight: 700;
}
:where(.endo-reader) details.colap[open] > summary {
  border-bottom: 1px solid var(--endo-border);
}
:where(.endo-reader) .table-wrap {
  background: var(--endo-surface);
  border: 1px solid var(--endo-border);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
:where(.endo-reader) table,
:where(.endo-reader) .sticky-table {
  color: var(--endo-text);
  background: var(--endo-surface);
}
:where(.endo-reader) th {
  background: var(--endo-surface-soft);
  color: var(--endo-text);
}
:where(.endo-reader) td {
  color: var(--endo-text);
  border-color: var(--endo-border);
}
:where(.endo-reader) pre,
:where(.endo-reader) pre.copyable,
:where(.endo-reader) code {
  color: var(--endo-text);
  background: var(--endo-surface-soft);
}
:where(.endo-reader[data-theme="dark"]):not(.ep-pad) {
    --endo-bg: #0b1018;
    --endo-surface: #111827;
    --endo-surface-soft: #182233;
    --endo-text: #e7edf6;
    --endo-text-soft: #aeb9c8;
    --endo-border: rgba(231, 237, 246, 0.13);
    --endo-accent: #8ab4f8;
    --endo-accent-soft: rgba(138, 180, 248, 0.16);
    --endo-shadow: none;
}
:where(.endo-reader[data-theme="dark"]):not(ep-pad), :where(.endo-reader[data-theme="dark"]):not(ep-pad) {
    color: var(--endo-text) !important;
}
:where(.endo-reader[data-theme="dark"]) .endo-item,
  :where(.endo-reader[data-theme="dark"]) .endoplusia-item,
  :where(.endo-reader[data-theme="dark"]) .caja,
  :where(.endo-reader[data-theme="dark"]) .card,
  :where(.endo-reader[data-theme="dark"]) details.colap,
  :where(.endo-reader[data-theme="dark"]) .content,
  :where(.endo-reader[data-theme="dark"]) .table-wrap,
  :where(.endo-reader[data-theme="dark"]) pre.copyable {
    background-color: var(--endo-surface) !important;
    color: var(--endo-text) !important;
    border-color: var(--endo-border) !important;
  }
:where(.endo-reader[data-theme="dark"]) details.colap > summary,
  :where(.endo-reader[data-theme="dark"]) th,
  :where(.endo-reader[data-theme="dark"]) .sticky-col {
    background: var(--endo-surface-soft) !important;
    color: var(--endo-text) !important;
  }
:where(.endo-reader[data-theme="dark"]) td,
  :where(.endo-reader[data-theme="dark"]) li,
  :where(.endo-reader[data-theme="dark"]) p,
  :where(.endo-reader[data-theme="dark"]) div,
  :where(.endo-reader[data-theme="dark"]) span {
    color: inherit;
  }
:where(.endo-reader[data-theme="dark"]) a {
    color: var(--endo-accent) !important;
  }
:where(.endo-reader[data-theme="dark"]) mark,
  :where(.endo-reader[data-theme="dark"]) .hl {
    background: rgba(255, 214, 102, 0.22) !important;
    color: #fff3c4 !important;
    border-radius: 4px;
    padding: 0 0.18em;
  }
:where(.endo-reader[data-theme="dark"]) .meta,
  :where(.endo-reader[data-theme="dark"]) small,
  :where(.endo-reader[data-theme="dark"]) .text-muted,
  :where(.endo-reader[data-theme="dark"]) .leyenda,
  :where(.endo-reader[data-theme="dark"]) .caption,
  :where(.endo-reader[data-theme="dark"]) figcaption {
    color: var(--endo-text-soft) !important;
  }
:where(.endo-reader[data-theme="dark"]) img,
  :where(.endo-reader[data-theme="dark"]) .endo-img {
    filter: brightness(0.96) contrast(1.03);
  }
@media print {
  :where(.endo-reader):not(ep-pad), :where(.endo-reader):not(ep-pad) {
    color: #111827 !important;
    font-family: Arial, "Helvetica Neue", sans-serif !important;
    font-size: 10.6pt !important;
    line-height: 1.42 !important;
  }

  :where(.endo-reader):not(#ep-pad),
  :where(.endo-reader) .endo-item,
  :where(.endo-reader) .endoplusia-item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
  }

  :where(.endo-reader):not(ep-pad) {
    color: #111827 !important;
  }

  :where(.endo-reader) h1 {
    font-size: 17pt !important;
    line-height: 1.18 !important;
    margin: 0 0 5mm 0 !important;
    color: #0f172a !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  :where(.endo-reader) h2 {
    font-size: 13.5pt !important;
    line-height: 1.22 !important;
    margin: 6mm 0 2.5mm 0 !important;
    color: #0f172a !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  :where(.endo-reader) h3 {
    font-size: 11.8pt !important;
    margin: 4.5mm 0 2mm 0 !important;
    color: #111827 !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  :where(.endo-reader) p,
  :where(.endo-reader) li {
    font-size: 10.6pt !important;
    line-height: 1.42 !important;
  }

  :where(.endo-reader) ul,
  :where(.endo-reader) ol {
    margin-top: 1.5mm !important;
    margin-bottom: 2.2mm !important;
    padding-left: 5.5mm !important;
  }

  :where(.endo-reader) li {
    margin: 0.8mm 0 !important;
  }

  :where(.endo-reader) .meta {
    font-size: 8.7pt !important;
    color: #475569 !important;
    margin-bottom: 4mm !important;
  }
  :where(.endo-reader) details.colap {
    display: block !important;
    border: 1px solid #d7dde7 !important;
    border-radius: 8px !important;
    margin: 3.2mm 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;

    /*
     * IMPORTANTE:
     * No usamos break-inside: avoid global aquí.
     * Si lo hacemos, un acordeón grande salta a otra hoja y deja espacios enormes.
     */
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  :where(.endo-reader) details.colap > summary {
    display: block !important;
    background: #eef2f7 !important;
    color: #0f172a !important;
    font-size: 10.3pt !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    padding: 2.2mm 3mm !important;
    border-bottom: 1px solid #d7dde7 !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  :where(.endo-reader) details.colap > .content,
  :where(.endo-reader) details.colap .content {
    display: block !important;
    padding: 2.8mm 3mm !important;
    background: #ffffff !important;
    color: #111827 !important;
  }

  :where(.endo-reader) .caja,
  :where(.endo-reader) .card {
    border: 1px solid #d7dde7 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #111827 !important;
    padding: 3mm !important;
    margin: 3mm 0 !important;
    box-shadow: none !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
  :where(.endo-reader) .table-wrap {
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 3mm 0 !important;
    padding: 0 !important;
    background: transparent !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  :where(.endo-reader) table,
  :where(.endo-reader) .sticky-table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 8.4pt !important;
    line-height: 1.25 !important;
    background: #ffffff !important;
    color: #111827 !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  :where(.endo-reader) thead {
    display: table-header-group;
  }

  :where(.endo-reader) tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  :where(.endo-reader) th,
  :where(.endo-reader) td {
    border: 0.5pt solid #cbd5e1 !important;
    padding: 1.6mm 1.7mm !important;
    vertical-align: top !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    color: #111827 !important;
  }

  :where(.endo-reader) th {
    background: #eaf0f7 !important;
    font-weight: 700 !important;
  }

  :where(.endo-reader) .sticky-col {
    position: static !important;
    left: auto !important;
    background: #f1f5f9 !important;
  }

  :where(.endo-reader) pre,
  :where(.endo-reader) pre.copyable {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    border: 1px solid #d7dde7 !important;
    border-radius: 7px !important;
    background: #f8fafc !important;
    color: #111827 !important;
    padding: 2.5mm !important;
    font-size: 8.8pt !important;
    line-height: 1.3 !important;
    break-inside: auto !important;
  }

  :where(.endo-reader) img,
  :where(.endo-reader) .endo-img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  :where(.endo-reader) a {
    color: #0f4c81 !important;
    text-decoration: none !important;
  }
  :where(.endo-reader) .table-wrap,
  :where(.endo-reader) .endo-item .table-wrap,
  :where(.endo-reader):not(#ep-pad) .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow: visible !important;
    overflow-x: visible !important;

    margin: 3mm 0 !important;
    padding: 0 !important;

    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  :where(.endo-reader) .table-wrap > table,
  :where(.endo-reader) .endo-item .table-wrap > table,
  :where(.endo-reader):not(#ep-pad) .table-wrap > table,
  :where(.endo-reader) .table-wrap table.sticky-table,
  :where(.endo-reader) .endo-item .table-wrap table.sticky-table,
  :where(.endo-reader):not(#ep-pad) .table-wrap table.sticky-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;

    font-size: 7.6pt !important;
    line-height: 1.22 !important;

    page-break-inside: auto !important;
    break-inside: auto !important;

    background: #ffffff !important;
    color: #111827 !important;
  }
  :where(.endo-reader) .table-wrap > table th,
  :where(.endo-reader) .table-wrap > table td,
  :where(.endo-reader) .endo-item .table-wrap > table th,
  :where(.endo-reader) .endo-item .table-wrap > table td,
  :where(.endo-reader):not(#ep-pad) .table-wrap > table th,
  :where(.endo-reader):not(#ep-pad) .table-wrap > table td,
  :where(.endo-reader) .table-wrap .sticky-table th,
  :where(.endo-reader) .table-wrap .sticky-table td,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom th,
  :where(.endo-reader) .table-wrap .sticky-table.cols-custom td,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table.cols-custom th,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table.cols-custom td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    padding: 1.15mm 1.25mm !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;

    vertical-align: top !important;

    border: 0.45pt solid #cbd5e1 !important;
    color: #111827 !important;
  }
  :where(.endo-reader) .table-wrap > table.sticky-table th:first-child,
  :where(.endo-reader) .table-wrap > table.sticky-table td:first-child,
  :where(.endo-reader) .table-wrap > table th.sticky-col,
  :where(.endo-reader) .table-wrap > table td.sticky-col,
  :where(.endo-reader) .table-wrap > table th.sticky-col-sm,
  :where(.endo-reader) .table-wrap > table td.sticky-col-sm,
  :where(.endo-reader) .table-wrap > table th.sticky-col-md,
  :where(.endo-reader) .table-wrap > table td.sticky-col-md,
  :where(.endo-reader) .table-wrap > table th.sticky-col-lg,
  :where(.endo-reader) .table-wrap > table td.sticky-col-lg,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th:first-child,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td:first-child,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-sm,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-sm,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-md,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-md,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table th.sticky-col-lg,
  :where(.endo-reader) .endo-item .table-wrap .sticky-table td.sticky-col-lg {
    position: static !important;
    left: auto !important;
    z-index: auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    background: #f8fafc !important;
    border-right: 0.45pt solid #cbd5e1 !important;
    box-shadow: none !important;
  }
  :where(.endo-reader) .table-wrap th,
  :where(.endo-reader) .endo-item .table-wrap th,
  :where(.endo-reader):not(#ep-pad) .table-wrap th {
    background: #eaf0f7 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
  }
  :where(.endo-reader) thead {
    display: table-header-group !important;
  }

  :where(.endo-reader) tfoot {
    display: table-footer-group !important;
  }

  :where(.endo-reader) tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  :where(.endo-reader) table.pdf-wide-table,
  :where(.endo-reader) .table-wrap table.pdf-wide-table,
  :where(.endo-reader) .endo-item .table-wrap table.pdf-wide-table,
  :where(.endo-reader):not(#ep-pad) .table-wrap table.pdf-wide-table {
    font-size: 6.8pt !important;
    line-height: 1.16 !important;
  }

  :where(.endo-reader) table.pdf-wide-table th,
  :where(.endo-reader) table.pdf-wide-table td {
    padding: 0.95mm 1mm !important;
  }
  :where(.endo-reader) table.pdf-ultrawide-table,
  :where(.endo-reader) .table-wrap table.pdf-ultrawide-table,
  :where(.endo-reader) .endo-item .table-wrap table.pdf-ultrawide-table,
  :where(.endo-reader):not(#ep-pad) .table-wrap table.pdf-ultrawide-table {
    font-size: 6.2pt !important;
    line-height: 1.12 !important;
  }

  :where(.endo-reader) table.pdf-ultrawide-table th,
  :where(.endo-reader) table.pdf-ultrawide-table td {
    padding: 0.75mm 0.85mm !important;
  }
}
/* Ajustes de tablas para el PDF (antes quedaban fuera de @media print y se aplicaban también en
   pantalla: letra de 8,6 pt y celdas blancas ilegibles en modo oscuro). */
@media print {
  :where(.endo-reader) table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    margin: 2.5mm 0 !important;
    font-size: 8.6pt !important;
    line-height: 1.18 !important;
  }
  :where(.endo-reader) thead {
    display: table-header-group !important;
  }
  :where(.endo-reader) tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  :where(.endo-reader) th, :where(.endo-reader) td {
    border: .45pt solid #cbd5e1 !important;
    padding: 1.2mm 1.3mm !important;
    vertical-align: top !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
  :where(.endo-reader) th {
    background: #edf2f7 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
  }
  :where(.endo-reader) td {
    background: #ffffff !important;
  }
}

/* Tablas en pantalla (no afecta al PDF): tamaño legible y altura de fila compacta, también en ítems antiguos. */
@media screen {
  :where(.endo-reader) table {
    font-size: calc(0.92 * var(--endo-reader-font-size, 1rem));
    line-height: 1.4;
  }

  /* Tablas antiguas sin div.table-wrap: bordes y relleno como las demás. */
  :where(.endo-reader) :not(.table-wrap) > table {
    border-collapse: collapse;
    margin: 10px 0 14px;
  }

  :where(.endo-reader) :not(.table-wrap) > table th,
  :where(.endo-reader) :not(.table-wrap) > table td {
    border: 1px solid var(--endo-border, rgba(24, 32, 42, 0.12));
    padding: 6px 8px;
    vertical-align: top;
  }
}

/* ---------- Lectura cómoda (2026-10) ----------
   Corte de palabras con guion según el idioma de la página (lang="es"): donde el sistema tiene
   diccionario (Android, iOS, macOS, Chrome con diccionario) se prefiere «determi-nación» a cortar
   la palabra en cualquier letra. Títulos, código y fórmulas no se cortan. */
:where(.endo-reader) {
  -webkit-hyphens: auto;
  hyphens: auto;
}
:where(.endo-reader) :is(h1, h2, h3, h4, h5, summary, code, pre, kbd, .formula-block) {
  -webkit-hyphens: manual;
  hyphens: manual;
}
