/* --------------------- */
/* Estilos generales     */
/* --------------------- */

/* Centrar y escalar imágenes */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin: 0 auto 1rem;
  max-width: 100%;
  height: auto;
}

/* Iframes responsivos */
iframe {
  display: block;
  margin: 1.5rem auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Tablas más limpias */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f0f0f0;
  font-weight: 600;
}

table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Tipografía y estructura general */
.md-typeset {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Titulares internos con espacio */
h1, h2, h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

/* --------------------- */
/* Contenedores Layout   */
/* --------------------- */

/* Forzar ancho completo en header y navegación */
.md-header,
.md-header__inner,
.md-tabs {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 1rem;
}

/* Navegación: scroll horizontal si hay muchos tabs */
.md-tabs {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Estilo de los tabs */
.md-tabs__item {
  flex: 1 1 auto;
  white-space: nowrap;
  text-align: center;
}

.md-tabs__link {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  font-size: 0.9rem;
}

/* Botón de menú (≡) alineado a la izquierda */
.md-header__button {
  flex: 0 0 auto;
  margin-right: auto;
}

/* --------------------- */
/* Contenido principal   */
/* --------------------- */

/* Título automático generado por MkDocs (nav) */
.md-content__inner > .md-content__title {
  text-align: left !important;
  font-size: 1.8rem !important;
  margin-left: 0 !important;
  margin-bottom: 1.5rem !important;
  color: #222 !important;
  font-weight: 700 !important;
}
