body {
  font-family: "Lato", sans-serif;
  font-size: 18px;
}

.page h1 {
  color: var(--h1-color);
}
.page h2 {
  color: var(--h2-color);
  font-size: 140%;
}
a {
  color: var(--link-text-color);
}

.note {
  border-left: 4px solid var(--note-color);
  color: var(--note-text-color);
}

.num_block {
  border-left: 4px solid #16a085;
}
.num_block[prefix="Teorema"] {
  border-left: 4px solid #2ecc71;
}
.num_block[prefix="Lema"] {
  border-left: 4px solid #f39c12;
}

.image_expand {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.interactive {
  text-align: center;
  border: 1px solid var(--interactive-border-color);
  border-radius: 2px;
  background: var(--interactive-color);
}
.image_link {
  border: 2px solid var(--image-border-color);
}

li {
  padding: 0 0 0.1em 0;
}

code,
code_math {
  display: inline;
}

code,
code_math {
  font-family: "Lato", monospace;
  font-size: 103%;
  color: var(--h2-color);
  font-weight: bold;
  text-shadow: 1px 1px rgba(223, 218, 218, 0.15);
}

pre {
  font-family: "UbuntuMono", monospace;
  font-size: 107%;
}
xmp {
  font-family: "UbuntuMono", monospace;
  font-size: 107%;
  color: #e67e22;
  border: 1px solid #e67e22;
}

.katex {
  font-size: 110% !important;
}

.cover_title {
  position: absolute;
  top: 595px;
  left: 57px;
  color: var(--h5-color);
  font-size: 350%;
  text-align: center;
  text-shadow: 1px 2px rgba(0, 0, 0, 0.15);
}
.cover_subtitle {
  position: absolute;
  left: 57px;
  bottom: 45px;
  text-align: center;
  color: var(--h5-color);
  font-size: 220%;
  text-shadow: 1px 2px rgba(0, 0, 0, 0.15);
}

.chap_text {
  position: absolute;
  right: var(--page-right-margin);
  top: 500px;
  color: white;
  font-size: 500%;
  text-shadow: 1px 2px rgba(0, 0, 0, 0.15);
}
.chap_name {
  color: white;
  position: relative;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  left: 58px;
  width: 582px;
  top: 550px;
  height: 170px;
  font-size: 250%;
  text-shadow: 1px 2px rgba(0, 0, 0, 0.15);
}

body.dark .invertcolor {
  filter: invert(1) hue-rotate(180deg);
}

.titbig {
  color: var(--h1-color);
  font-size: 20px;
  font-weight: bold;
}

/* inicio saber */
.saber {
  display: none;
}
:checked ~ .saber {
  display: block;
}
input.noshow[type="checkbox"] {
  position: absolute;
  left: -999em;
}

/* fin del saber 

/* destacar una palabra. */

.citas {
  margin: 0 0 2em 0; /* Centra la línea vertical en el contenedor */
  padding-left: 1.5ch;

  font-weight: bold;
  font-style: italic;
  padding-right: 1.5ch;
  font-size: 95%;
  border-left: 2px solid #4fb8fe; /* Cambia el color y el grosor según tus preferencias */
  height: auto; /* Altura de la línea vertical */
  margin: 0 auto; /* Centra la línea vertical en el contenedor */
}

CSS for Floating Images

/* Estilos base */
.contenido {
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Estilos para el contenedor de sección */
.seccion {
  clear: both; /* Evita que el float afecte a las siguientes secciones */
  margin-bottom: 1.5em; /* Espacio entre secciones */
  overflow: hidden; /* Contiene los floats */
}

/* Estilos para imágenes flotantes */

.flotaiz {
  float: left;
  margin: auto;
  margin-right: 10px; /*espacio entre imagen y texto*/
  margin-bottom: 8px;
  max-width: 50%; /*Tamaño máximo de la iamgenm*/
}
/* esta es la del "librito" */
.flotade {
  float: right;
  margin: auto;
  margin-left: 10px; /*espacio entre imagen y texto*/
  margin-bottom: 8px;
  max-width: 50%; /*Tamaño máximo de la iamgenm*/
}

/* para adornar algín parrafo a la derecha */

.adorno {
  float: right;
  margin-left: 10px;
}

.espaciado-derecho {
  padding-right: 30px; /* Espacio adicional a la derecha */
}

*/ #square {
  background: lightblue;
  width: 100px;
  height: 100px;
}

#circle {
  background: lightblue;
  border-radius: 50%;
  width: 100px;
  height: 100px;
}
#circleDos {
  float: left;
  width: 300px; /* radio*/
  height: 300px; /* posicion del centro*/
  margin: 20px;
  shape-outside: circle();
  clip-path: circle();
  background: lightblue;
}
#circleMitad {
  float: left;
  width: 150px;
  height: 150px;
  margin: 20px;
  shape-outside: circle(50% at 30%);
  clip-path: circle(50% at 0%);
  background: lightblue;
}
#ellipse {
  float: left;
  width: 150px;
  height: 150px;
  margin: 20px;
  shape-outside: ellipse(20% 50%);
  clip-path: ellipse(20% 50%);
  background: lightblue;
}

#triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 80px solid lightblue;
}
#triangleFlecha {
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-right: 80px solid lightblue;
  border-bottom: 40px solid transparent;
}

#polygon {
  float: left;
  width: 150px;
  height: 150px;
  margin: 0 20px;
  shape-outside: polygon(
    0 0,
    100% 0,
    100% 20%,
    60% 20%,
    60% 100%,
    40% 100%,
    40% 20%,
    0 20%
  );
  clip-path: polygon(
    0 0,
    100% 0,
    100% 20%,
    60% 20%,
    60% 100%,
    40% 100%,
    40% 20%,
    0 20%
  );
  background: lightblue;
}
/* el circulo lohace una figura redonda transparente <img src="src/moon.png" id="moon" /> */
#moon {
  float: left;
  width: 150px;
  height: 150px;
  shape-outside: url("./src/moon.png");
}

.sin_boton {
  background-color: rgba(1, 1, 1, 0);
}

.sin_boton .btn_expand {
  border: solid red;
  background-color: rgba(1, 1, 1, 0);
  background-image: url("img/vacio.png");
}

details {
  font-size: 16px;
  font-style: italic;
  padding-left: 5px;
}

summary {
  font-size: 105%;
  font-weight: bold;
}

/* Clase base con todo el formato */
.bullet li {
  padding-left: 35px;
  margin-left: -30px;
  list-style: none;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 30px;
}

/* Clases solo para las diferentes imágenes */
.bullet-pajaro li {
  background-image: url("../images/general/bul_01.svg");
}

.bullet-arbol li {
  background-image: url("../images/general/bul_02.svg");
}

.bullet-desierto li {
  background-image: url("../images/general/bul_03.svg");
}
.bullet-ecosistema li {
  background-image: url("../images/general/bul_04.svg");
}
.bullet-mar li {
  background-image: url("../images/general/bul_05.svg");
}
.bullet-humedal li {
  background-image: url("../images/general/bul_06.svg");
}

.bullet-montana li {
  background-image: url("../images/general/bul_07.svg");
}
.bullet-tundra li {
  background-image: url("../images/general/bul_08.svg");
}

.bullet-eco li {
  background-image: url("../images/general/bul_09.svg");
  background-size: 25px;
}

/* destacar una palabra. */
.destacar {
  font-size: 103%;
  font-weight: bold;
  color: var(--h2-color);
  text-shadow: 1px 1px rgba(92, 90, 90, 0.15);
}

/* cuestionarios */
.cuestionario {
  width: 90%;
  margin: 20px auto;
  padding: 10px;
  border: 2px solid #5e0d0d;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  background-color: rgba(250, 250, 250, 0.1);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.85);
}

.pregunta {
  margin-bottom: 20px;
  width: 90%;
  margin: 20px auto;
  padding: 10px;
  background-color: rgba(236, 239, 243, 0.4);
  border: 2px solid #0e0d5e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: rgb(0, 0, 5);
  text-shadow: 1.5px 0.5px rgba(0, 0, 0, 0.85);
  font-size: 20px;
}

.opcion {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  background-color: #fbf8f8;
  color: rgb(0,0,5);
  font-size: 20px;
}

.opcion:hover {
  background-color: #f2f2f2;
}

.opcion.correcta {
  background-color: #c6efce;
}

.opcion.incorrecta {
  background-color: #ffc6c6;
}

.opcion .letra {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ff0000;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  margin-right: 10px;
  padding: 4px;
  padding-left: 8px;
  padding-right: 8px;
}

.opcion .respuesta {
  padding: 10px;

}

.siguiente {
  background-color: #4caf50;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.siguiente:hover {
  background-color: #3e8e41;
}

.resultado {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
}

/* REFERENCIAS DE IMAGENES */
.imgref {
  /* Estilo base similar a bibref */
  display: inline;
  position: relative;
  color: var(--bibliography-color);
  border-bottom: 1px dashed var(--bibliography-color);
  cursor: pointer;
}

.imgref .popup[active] {
  /* Popup para la imagen */
  display: block;
  /* Ajusta el contenido y el posicionamiento del popup según tus necesidades */
}

.imgref_caption {
  /* Leyenda de la imagen */
  display: block;
  font-style: italic;
  margin-top: 5px;
}

.imgref_source {
  /* Fuente de la imagen */
  font-size: smaller;
  color: gray;
}

#imgref1 {
  /* Estilos específicos para esta referencia */
  background-color: lightblue;
  padding: 10px;
}

/* inicio cajas var(--popup-bib-info-background); */

.caja5 {
  color: white;
  text-shadow: 2px 2px 3px black;
  padding: 15px;
  border-radius: 15px;
}

.caja6 {
  background: rgba(1, 1, 1, 0);
}

.caja6 h5 {
  padding: 0.3rem 0.5rem;
  margin: 0;
  color: white;
  text-align: center;
  font-size: 28px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

.caja6 .content {
  text-align: center;
  padding: 5px;
  padding-left: 7px;
  background-color: rgb(255, 255, 255);
  border-radius: 15px;
}

body.dark .caja6 .content {
  color: white;
}

.caja6 figcaption {
  margin-top: -15px;
  margin-bottom: -10px;
}

.caja6 .modo1 {
  background: rgb(31, 120, 31);
  text-shadow: 2px 2px 3px black;
}

.caja6 .modo2 {
  background: rgba(120, 50, 250, 0.9);
  text-shadow: 2px 2px 3px black;
  background-repeat: no-repeat;
}

.caja6 .modo3 {
  background: #8dae63;
  text-shadow: 2px 2px 3px black;
  background-repeat: no-repeat;
}

.caja6 .modo4 {
  background: #e65100;
  text-shadow: 2px 2px 3px black;
  background-repeat: no-repeat;
}

.caja6 .modo5 {
  background: #d81b60;
  text-shadow: 2px 2px 3px black;
}

.caja6 .modo6 {
  background: #5e35b1;
  text-shadow: 2px 2px 3px black;
  background-repeat: no-repeat;
}

.caja6 .modo7 {
  background: #301400;
  text-shadow: 2px 2px 3px black;
  background-repeat: no-repeat;
}

.boxblue {
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #000099;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  background-color: var(--popup-bib-info-background);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.15);
  padding: 8px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 12px;
  width: 90%;
}
.boxwhite {
  color: var(--text-color);
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #07078b;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  background-color: rgba(254, 254, 254, 0.474);
  text-shadow: 2px 2px rgba(27, 25, 25, 0.15);
  padding: 15px 25px 20px;
  border-radius: 12px;
  width: 85%;
}

.boxclear2 {
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px 25px 20px;
  border-radius: 12px;
  width: 65%;
}
.boxclear {
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #606093;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  background-color: rgba(250, 250, 250, 0.1);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.85);
  padding: 15px 25px 20px;
  border-radius: 12px;
  width: 85%;
  text-align: center;
}

.boxred {
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgb(255, 0, 21);
  padding: 8px;
  padding-left: 15px;
  padding-right: 15px;
  box-shadow: 3px 5px 2px rgba(0, 0, 0, 0.5);
  text-shadow: 1px 4px rgba(0, 0, 0, 0.15);
  border-radius: 22px;
  color: aliceblue;
  background-color: rgb(255, 0, 21);
  width: 50%;
}
.boxcoral {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  background-color: rgb(236, 135, 141);
  border: 5px solid rgb(255, 0, 21);
  border-radius: 6px;
  box-shadow: 4px 3px 6px black;
  text-shadow: 1px 1px rgba(92, 90, 90, 0.15);
  padding-bottom: 15px;
}

.boxtit {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--popup-bib-info-background);
  padding: 8px;
  padding-left: 15px;
  padding-right: 15px;
  border: 1px solid #000099;
  border-radius: 6px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.boxtit h4 {
  color: var(--h1-color);
  font-weight: bold;
  padding: 6px;
  font-size: 28px;
  text-align: center;
  margin: -8px -15px -15px;
  border-radius: 6px 6px;
}

/* fin cajas  */

/* tooltip no oficial */
/* styles.css */
.tooltip {
  position: relative;
  display: inline; /* Cambiado de inline-block a inline para evitar el salto */
  cursor: pointer; /* Cursor normal pero clickeable */
  color: var(--h1-color); /* Color normal 222 */
  transition: color 0.3s ease; /* Transición suave del color */
  font-family: "Lato" sans-serif;
  text-align: center;
  font-weight: bold;
}

/* Cambio de color al pasar el cursor */
.tooltip:hover {
  color: var(--note-color); /* Color azul estilo Wikipedia */
  text-decoration: underline;
}

/* Estilos base comunes TEXTO*/
.tooltip_top_left,
.tooltip_top_right,
.tooltip_bottom_left,
.tooltip_bottom_right {
  position: absolute;
  visibility: hidden;
  width: 250px;
  background-color: #fafafa;
  padding: 12px;
  border: 1px solid #a2a9b1;
  border-radius: 5px;
  box-shadow: 1 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 90%;
  color: black; /* El texto dentro del tooltip mantiene color normal */
  z-index: 1000;
  font-weight: normal;
}

/* Variantes de posición vertical margin seapra la linea*/
.tooltip_top_left,
.tooltip_top_right {
  bottom: 100%;
  margin-bottom: 10px;
}

.tooltip_bottom_left,
.tooltip_bottom_right {
  top: 100%;
  margin-top: 10px;
}

/* Posición horizontal */
.tooltip_top_left,
.tooltip_bottom_left {
  right: 0;
}

.tooltip_top_right,
.tooltip_bottom_right {
  left: 0;
}

/* Flechas base */
.tooltip_top_left::before,
.tooltip_top_right::before,
.tooltip_bottom_left::before,
.tooltip_bottom_right::before {
  content: "";
  position: absolute;
  border: 6px solid transparent;
}

/* Flechas para tooltips superiores */
.tooltip_top_left::before,
.tooltip_top_right::before {
  bottom: -12px;
  border-top-color: #a2a9b1;
}

/* Flechas para tooltips inferiores */
.tooltip_bottom_left::before,
.tooltip_bottom_right::before {
  top: -12px;
  border-bottom-color: #a2a9b1;
}

/* Posición horizontal de las flechas */
.tooltip_top_left::before,
.tooltip_bottom_left::before {
  right: 15px;
}

.tooltip_top_right::before,
.tooltip_bottom_right::before {
  left: 15px;
}

/* Mostrar el tooltip */
.tooltip:hover .tooltip_top,
.tooltip:hover .tooltip_top_left,
.tooltip:hover .tooltip_top_right,
.tooltip:hover .tooltip_bottom_left,
.tooltip:hover .tooltip_bottom_right {
  visibility: visible;
}
/* Estilos base con soporte para imagen */
.tooltip_top_left,
.tooltip_top_right,
.tooltip_bottom_left,
.tooltip_bottom_right {
  position: absolute;
  visibility: hidden;
  width: 250px;
  background-color: #ffffff;
  padding: 8px 12px;
  border: 1px solid #a2a9b1;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 90%px;
  line-height: 1.4;
  color: (169, 204, 227);
  z-index: 1000;
}

/* Contenedor para la imagen */

/* Estilos para el contenido con imagen */
.tooltip-content {
  overflow: hidden; /* Limpia el float */
}

/* Clearfix para el contenedor */
.tooltip-content::after {
  content: "";
  display: table;
  clear: both;
}

/* Tooltip específico para imágenes */
.tooltip_image {
  position: absolute;
  visibility: hidden;
  max-width: 400px; /* Ancho del contenedor */
  max-height: 400px; /* Alto del contenedor */
  background-color: #e5eeeb;
  padding: 8px; /* Aumentado un poco el padding para dar espacio */
  border: 1px solid #a2a9b1;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  object-fit: cover;
  font-size: 14px;
}

/* Estilos de la imagen 
  */

*/ .tooltip_image img {
  max-width: 100%;
  max-height: 100%;
  width: auto; /* Ancho automático */
  height: auto; /* Alto automático */
  object-fit: contain; /* La imagen se ajusta manteniendo proporciones */
  object-fit: cover;
  display: block;
  margin: auto; /* Centra la imagen */
  border-radius: 2px;
}

/* Posicionamiento vertical */
.tooltip_image.top_left,
.tooltip_image.top_right {
  bottom: 100%;
  margin-bottom: 5px;
}

.tooltip_image.bottom_left,
.tooltip_image.bottom_right {
  top: 100%;
  margin-top: 5px;
}

/* Posicionamiento horizontal */
.tooltip_image.top_left,
.tooltip_image.bottom_left {
  right: 0;
}

.tooltip_image.top_right,
.tooltip_image.bottom_right {
  left: 0;
}

/* Flechas */
.tooltip_image::before {
  content: "";
  position: absolute;
  border: 6px solid transparent;
}

/* Posiciones de flechas */
.tooltip_image.top_left::before,
.tooltip_image.top_right::before {
  bottom: -12px;
  border-top-color: #a2a9b1;
}

.tooltip_image.bottom_left::before,
.tooltip_image.bottom_right::before {
  top: -12px;
  border-bottom-color: #a2a9b1;
}

.tooltip_image.top_left::before,
.tooltip_image.bottom_left::before {
  right: 15px;
}

.tooltip_image.top_right::before,
.tooltip_image.bottom_right::before {
  left: 15px;
}

/* Mostrar tooltip */
.tooltip:hover .tooltip_image {
  visibility: visible;
}

/* Tablas zebra */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th,
td {
  border: 1px solid #007bff;
  padding: 10px;
  text-align: left;
  color: #222;
}
th {
  background-color: var(--h2-color);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.15);
  text-align: center;
  vertical-align: middle;
  /* background-color: #0056b3;  Azul oscuro para el encabezado */
  color: white;
}
tr:nth-child(even) {
  background-color: #e7f1ff; /* Azul claro para filas pares */
}
tr:nth-child(odd) {
  background-color: #ffffff; /* Blanco para filas impares */
}
tr:hover {
  background-color: #b3d7ff; /* Azul suave al pasar el cursor */
}
@media (max-width: 600px) {
  table,
  th,
  td {
    display: block;
    width: 100%;
  }
  th,
  td {
    box-sizing: border-box;
    border: none;
    padding: 8px;
  }
  th {
    background-color: transparent;
    position: relative;
  }
  th::after {
    content: ":";
    position: absolute;
    right: 10px;
  }
}

.page_number {
  position: absolute;
  bottom: 8px;
  font-weight: bold;
  font-size: 90%;
  line-height: 1.2em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: rgb(245, 246, 199);
  text-shadow: rgba(84, 84, 10, 0.695);

  /* Estilos para el círculo */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(2, 8, 119, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Posicionamiento basado en el número de página */
.page:nth-of-type(even) .page_number {
  right: 18px;
  left: auto;
}

.page:nth-of-type(odd) .page_number {
  left: 18px;
  right: auto;
}
