@media screen and (min-width: 1024px) {
  html {
    /* zoom: 130%; */
    font-size: 130%;
    text-align: center;
  }

  /* body {
    transform: scale(1.3);
    transform-origin: top center;


  } */
}

body {
  /* transform: scale(1.1);
  transform-origin: top center; */
  position: relative;
  margin: auto;
  max-width: 800px;
  /* border: 5px solid red; */
  /* font-size: 1rem; */
}

/* ===== RESPONSIVE MOBILE FIXES ===== */
@media screen and (max-width: 768px) {
  html {
    zoom: 100% !important;
    text-align: left !important;
  }

  body {
    transform: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden;
  }

  .doc-content {
    padding: 5%;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Control general de overflow para elementos problemáticos */
  .pager, .chapters-links, .inside-chapter-links {
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Contenedor de tablas con scroll horizontal en móvil */
  table {

    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
  }

  /* Mejorar la experiencia de scroll en tablas */
  table::-webkit-scrollbar {
    height: 6px;
  }

  table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  table::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }

  table::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

  /* Fix pre y code en móvil */
  pre, code {
    max-width: 100% !important;
    overflow-x: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
  }

  /* Fix imágenes en móvil */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

.doc-content {
  padding: 10%;
  width: 100%;
}






.copy-button {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.2;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.copy-button:hover {
  opacity: 0.6;
  transform: translateY(-50%) scale(1.1);
}

.copy-button:active {
  opacity: 0.9;
  transform: translateY(-50%) scale(0.95);
}

.copy-button img.copy-icon {
  width: 20px;
  height: 20px;
  filter: grayscale(100%) brightness(0%);
  transition: filter 0.2s ease;
}

.copy-button.copied img.copy-icon {
  filter: hue-rotate(100deg) brightness(1.2);
}



pre.imgx {

  cursor: pointer;
  /* white-space: pre-wrap; */
  /* word-wrap: break-word; */
  /* overflow-x: auto; */
  /* font-family: monospace; */
  /* font-size: 14px; */
  /* line-height: 1; */
  overflow: hidden;
  max-width: 100%;
  /* font-size: 8px; */
}

pre.imgx span {
  display: inline-block;
  transition: transform 0.2s, color 0.2s;
}

pre.imgx span.lupa,
pre.imgx span:hover {
  /* color: #0f0 !important; */

  /* background: yellow; */
  /* color: red; */
  /* cambia el color */
  opacity: 0.4;
  transform: scale(2.5);
  /* crece un poco */
}

/* pre.imgx span:hover { */
/* } */
@media (max-width: 600px) {
  pre.imgx {
    /* font-size: 5px; */
    line-height: 1;
    /* compacto para que no se descuadre */
  }
}

/* Estilos para el pager */
.pager {
  width: 100%;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid #e5e5e5;
  border-bottom: 2px solid #e5e5e5;
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  min-height: 60px;
}

.prev_page, .next_page {
  background: transparent!important;
  color: rgb(14, 91, 110)!important;

  font-weight: 500;
  padding: 0;
  text-decoration: none;
  font-size: 0.9rem;


  transition: all 0.3s ease;
  max-width: 45%;
  text-align: left;
  overflow: hidden;
}
.prev_page {
  float: left;
}
.next_page {
  float: right;
}
.prev_page:hover, .next_page:hover {
  color:rgb(14, 91, 110);
  /* background: transparent; */
  /* transform: translateY(-2px); */
  text-decoration: none;
}

.prev_page:before {
  content: "← ";
  font-weight: bold;
}

.next_page:after {
  content: " →";
  font-weight: bold;
}


/* Para páginas que solo tienen un enlace */
.pager .prev_page:only-child,
.pager .next_page:only-child {
  max-width: 100%;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .pager {
    /* flex-direction: column; */
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 1rem 0;
  }

  .prev_page,
  .next_page {
    float:left;
    /* float: none; */
    max-width: 42%;
    /* text-align: center; */
    /* width: 100%; */
    box-sizing: border-box;
    font-size: 0.8rem;
  }

  .next_page {
    float:right;
    text-align:right;
  }
}

/* Estilos para los enlaces de capítulos */
.chapters-links {
  width: 100%;
  margin:0;
  margin-top: 1rem 0;
  /* padding: 1rem; */
  /* background: #f8f9fa; */
  /* border-radius: 6px; */
  /* border: 1px solid #e9ecef; */
}

.chapters-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chapters-links li {
  margin: 0;
}

.chapters-links a {
  text-transform: uppercase;;
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #a39f9f;


  transition: all 0.2s ease;

  font-size: 0.9rem;
  white-space: nowrap;
}

.chapters-links a:hover {
  /* background: #08a; */
  /* color: rgb(0, 0, 0); */
  text-decoration: none;
  /* border-color: #08a; */
  /* color: white; */
  /* background: #495057; */
  /* border-radius: 10px; */
  color: #495057;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .chapters-links {
    padding: 0.25rem;
  }

  .chapters-links ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .chapters-links a {
    display: block;
    /* text-align: center; */
    white-space: normal;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* Estilos para enlaces dentro del capítulo */
.inside-chapter-links {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  /* border: 1px solid #e9ecef; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inside-chapter-links h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #495057;
  text-align: center;
  font-weight: 600;
}

.inside-chapter-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: chapter-counter;
  columns: 2;
  column-gap: 2rem;
  column-fill: balance;
  max-height: 400px;
  overflow: visible;
}

.inside-chapter-links li {
  margin: 0;
  counter-increment: chapter-counter;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 0.5rem;
}

.inside-chapter-links a {
  display: inline-block;
  text-transform: none;
  text-align: left;
  letter-spacing: 0.05em;
  padding: 0.5em;
  transition-property: background;
  transition-duration: 0.1s;
  color: rgba(36, 133, 157, 0.772);
  text-decoration: none;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-word;
  text-transform: uppercase;
}

.inside-chapter-links a::before {
  content: counter(chapter-counter) " ";
  font-weight: 600;
}

.inside-chapter-links a:hover {
  background: rgba(0, 119, 170, 0.1);
  text-decoration: none;
}

.inside-chapter-links a.current {
  /* background: rgba(0, 119, 170, 0.15); */
  font-weight: 600;
}

/* Responsive para móviles - enlaces dentro del capítulo */
@media (max-width: 768px) {
  .inside-chapter-links {
    padding: 0.5rem;
    margin: 1rem 0;
  }

  .inside-chapter-links ul {
    columns: 1;
    max-height: none;
  }

  .inside-chapter-links a {
    font-size: 0.7rem;
    padding: 0.3em;
  }
}

/* ===== HEADER STYLES ===== */
header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  margin: 0;
  max-height: 80px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
}

/* Contenedor del lado derecho con hamburguesa y menú */
.header-right {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-logo {
  font-weight: bold;
  color: #2a4b8d;
  text-decoration: none;
  font-size: 1.1rem;
  flex-shrink: 0;
  position:relative;
  left:0;
}

.nav-logo:hover {
  color: #1a365d;
}

/* Botón hamburguesa */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: #2a4b8d;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: 1px;
}

.menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg);
}

/* Menú de navegación - horizontal en la barra */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-right: 0.75rem;
}

.nav-menu.show {
  opacity: 1;
  visibility: visible;
  max-width: 200px;
}

.theme-controls, .lang-controls, .nav-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-controls {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid #dee2e6;
}

.nav-controls {
  margin-right: 0.5rem;
  padding-right: 0.5rem;
  border-right: 1px solid #dee2e6;
}

.theme-btn, .lang-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.theme-btn:hover, .lang-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

.theme-icon {
  width: 18px;
  height: 18px;
  color: #495057;
  transition: color 0.2s ease;
}

.theme-btn:hover .theme-icon {
  color: #007bff;
}

/* Estilos para botones de navegación */
.nav-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  text-decoration: none;
  color: inherit;
}

.nav-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.nav-icon {
  width: 18px;
  height: 18px;
  color: #495057;
  transition: color 0.2s ease;
}

.nav-btn:hover .nav-icon {
  color: #007bff;
}

/* Ajustar el contenido principal para el header fijo */
body {
  padding-top: 70px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
  }

  body  {
    padding-top: 60px;
  }

  .header-container {
    /* flex-direction: column; */
    /* align-items: stretch; */
    gap: 0.5rem;
  }

  .header-right {
    justify-content: space-between;
    width: 100%;
  }

  .nav-menu {
    order: -1;
    margin-right: 0;
    justify-content: center;
  }

  .nav-menu.show {
    max-width: 100%;
    width: auto;
  }

  .menu-toggle {
    align-self: flex-end;
  }

  .theme-btn, .lang-btn {
    min-width: 32px;
    height: 32px;
    padding: 0.3rem;
  }

  .theme-icon {
    width: 16px;
    height: 16px;
  }
}/* Ajustar el contenido principal para el header fijo */
body {
  padding-top: 70px;
}

/* Responsive header */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
    max-height: 60px;
    min-height: 60px;
    opacity: 0.7;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-logo {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }

  .header-right {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .menu-toggle {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger {
    width: 22px;
    height: 2px;
    background-color: #2a4b8d;
    display: block;
  }

  header nav {
    justify-content: flex-end;
  }

  header menu {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* ===== THEME SYSTEM ===== */
/* Variables CSS para temas */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-color: #007bff;
  --border-color: #dee2e6;
  --code-bg: #f8f9fa;
  --code-border: #e9ecef;
}

/* Tema oscuro */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --accent-color: #4dabf7;
  --border-color: #495057;
  --code-bg: #2d2d2d;
  --code-border: #495057;
}

/* Forzar tema dark en html y body - IMPORTANTE: usar colores que al invertirse den el resultado deseado */
[data-theme="dark"] html {
  background: #ffffff; /* Se invierte a negro */
}

[data-theme="dark"] body {
  background: #ffffff; /* Se invierte a negro */
  color: #000000; /* Se invierte a blanco */
}

/* Aplicar variables a los elementos principales */
/* html {
  background-color: var(--bg-primary);
} */

body  {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sobrescribir elementos específicos */
/* p, span, div, h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
} */

/* Tablas y código */
/* table {
  background-color: var(--code-bg);
  border: 0px solid var(--code-border);
} */

code {
  background-color: var(--code-bg);
  border: 0px solid var(--code-border);
  color: var(--text-primary);
}

/* Enlaces */
a {
  color: var(--accent-color);
}

a:hover {
  color: var(--text-primary);
}

/* Ajustes específicos para navegación */
.pager a {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 0px solid var(--border-color);
}

.pager a:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
}

.chapters-links, .inside-chapter-links {
  /* background-color: var(--bg-secondary); */
  border: 0px solid var(--border-color);
}

.chapters-links a, .inside-chapter-links a {
  color: var(--text-secondary);
}

.chapters-links a:hover, .inside-chapter-links a:hover {
  color: var(--accent-color);
}

/* Elementos activos */
.inside-chapter-links a.current {
  /* background-color: var(--accent-color); */
  color: var(--accent-color);
}

/* HR y divisores */
hr {
  border-color: var(--border-color);
}

/* Tema automático - respeta preferencias del sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --accent-color: #4dabf7;
    --border-color: #495057;
    --code-bg: #2d2d2d;
    --code-border: #495057;
  }
}

/* ===== TEMA OSCURO CON FILTRO DE INVERSIÓN ===== */
html[data-theme="dark"] {
  filter: invert(1) hue-rotate(180deg);
}

/* Revertir la inversión en las imágenes para que se vean normales */
html[data-theme="dark"] img {
  filter: invert(1) hue-rotate(180deg);
  background-color: rgb(154, 154, 154);
}

html[data-theme="light"] img {
  background-color: transparent;
}

html[data-theme="dark"] img.copy-icon {
  /* filter: invert(1) hue-rotate(180deg); */
  background-color: transparent
}
/* Opcional: revertir la inversión en videos también */
html[data-theme="dark"] video {
  filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] table {
  background-color: transparent;
}

/* Estilos para el índice reconstruido */
.index-content {
  margin: 2rem 0;
  padding: 1rem;
}

.chapter-title {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

.chapter-pages {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 1rem;
}

.chapter-pages li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
}

.chapter-pages li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

.chapter-pages a {
  color: #2980b9;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.chapter-pages a:hover {
  color: #3498db;
  text-decoration: underline;
}

/* Estilos para tema oscuro */
html[data-theme="dark"] .chapter-title {
  color: #ecf0f1;
  border-bottom-color: #3498db;
}

html[data-theme="dark"] .chapter-pages a {
  color: #5dade2;
}

html[data-theme="dark"] .chapter-pages a:hover {
  color: #85c1e9;
}

html[data-theme="dark"] .chapter-pages li:before {
  color: #3498db;
}

/* Estilos específicos para el índice con clase index_list */
.index_list {
  text-align: left;
  margin: 2rem 0;
  padding: 0;
}

.index_list .chapter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  text-align: left;
}

.index_list .chapter-link:hover {
  color: #000;
  text-decoration: none;
}

.index_list .chapter-link::after {
  content: attr(data-page);
  margin-left: 10px;
  font-weight: bold;
}

/* ===== ESTILOS PARA SWIPE NAVIGATION ===== */
.swipe-indicator {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swipe-indicator.left {
  left: 20px;
  transform: translateY(-50%) translateX(-10px);
}

.swipe-indicator.right {
  right: 20px;
  transform: translateY(-50%) translateX(10px);
}

.swipe-indicator.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.swipe-indicator .arrow {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Sólo mostrar indicadores en móvil */
@media (min-width: 769px) {
  .swipe-indicator {
    display: none !important;
  }
}

.index_list .chapter-link .dots {
  flex-grow: 1;
  border-bottom: 1px dotted #000;
  margin: 0 8px;
  height: 1px;
  align-self: flex-end;
  margin-bottom: 3px;
}

.index_list .section-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 1rem;
  text-align: left;
}

.index_list .section-item {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  font-weight: normal;
  text-align: left;
}

.index_list .section-item a {
  color: #000;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.index_list .section-item a:hover {
  color: #000;
  text-decoration: none;
}

.index_list .section-item a::after {
  content: attr(data-page);
  margin-left: 10px;
}

.index_list .section-item a .dots {
  flex-grow: 1;
  border-bottom: 1px dotted #000;
  margin: 0 8px;
  height: 1px;
  align-self: flex-end;
  margin-bottom: 3px;
}

/* Estilos para subsecciones H4 */
.index_list .subsection-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0 1rem;
  text-align: left;
}

.index_list .subsection-item {
  margin: 0.1rem 0;
  font-size: 0.8rem;
  font-weight: normal;
  text-align: left;
}

.index_list .subsection-item a {
  color: #666;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-style: italic;
}

.index_list .subsection-item a:hover {
  color: #333;
  text-decoration: none;
}

.index_list .subsection-item a::after {
  content: attr(data-page);
  margin-left: 8px;
  font-size: 0.75rem;
}

.index_list .subsection-item a .dots {
  flex-grow: 1;
  border-bottom: 1px dotted #999;
  margin: 0 6px;
  height: 1px;
  align-self: flex-end;
  margin-bottom: 2px;
}

@media screen and (max-width: 768px) {

  h4  {

    /* border: 1px solid green; */
      margin-left: 0!important;
    width: 100%;
      /* margin-left: 0!important; */
  }

  h4 > span {
    display:block;
    /* display: inline-block; */
    text-indent:0;
    /* text-align: left!important; */
    /* margin-left:0!important; */
  }

  h6  {

    /* border: 1px solid green; */
      margin-left: 0!important;
    width: 100%;
      /* margin-left: 0!important; */
  }

  h6 > span {
    display:block;
    /* display: inline-block; */
    text-indent:0;
    /* text-align: left!important; */
    /* margin-left:0!important; */
  }
}

/* ===== MOBILE EXTRA SMALL SCREENS ===== */
@media screen and (max-width: 480px) {
  .pager {
    padding: 0.25rem;
    margin: 0.75rem 0;
    gap: 0.25rem;
  }

  .prev_page,
  .next_page {
    max-width: 40%;
    font-size: 0.75rem;
    padding: 0;
  }

  .chapters-links {
    padding: 0.125rem;
  }

  .chapters-links ul {
    gap: 0.125rem;
  }

  .chapters-links a {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
  }

  .inside-chapter-links {
    padding: 0.375rem;
    margin: 0.75rem 0;
  }

  .inside-chapter-links a {
    font-size: 0.65rem;
    padding: 0.25em;
  }

  .doc-content {
    padding: 3% !important;
  }
}


nav.breadcrumb {
  font-family: 'Crimson Pro', serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f1f3f5;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: #6c757d;
}

nav.breadcrumb a {
  text-decoration: none;
  color: rgb(14, 91, 110);
  transition: all 0.2s ease;
  white-space: nowrap;

}

nav.breadcrumb a:hover {
  color: var(--accent-color);
  /* text-decoration: underline; */
}

nav.breadcrumb span {
  white-space: nowrap;
}


main {
  margin:auto;
  padding-top:0!important;
  /* text-align: center; */
}

/* Estilos para WinBox modal */
.wb-body {
  background: transparent !important;
  background-color: transparent !important;
}

.winbox .wb-body {
  background: transparent !important;
  background-color: transparent !important;
}
