.contenedor {
  border: 1px solid black;
  border-radius: 8px;
  height: 95vh;
  max-width:1024px;
  margin: 0 auto;
  position: relative; /* Para posicionar la navegación dentro */
  overflow: hidden; /* Oculta cualquier desbordamiento del contenedor */
  background-color: white;
}

.texto {
  height: 100%;
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 0px 3px 10px 4px rgba(0, 0, 0, 0.89);
  padding: 20px 30px 0 30px;
  box-sizing: border-box;
  overflow-y: auto; /* Permite scroll vertical */
  overflow-x: hidden;
}

.texto .contenido {
  padding-bottom: 120px; /* Espacio para que el contenido no quede oculto detrás de la barra */
}

.navegacion {
  position: absolute; /* Cambiado de sticky a absolute */
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #a0f199;
  border-left: 1px solid black;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  border-radius: 0 0 8px 8px;
  z-index: 10; /* Asegura que quede por encima del contenido */
}

nav.bookNav {
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #a0f199;
  padding: 10px 20px;
  color: black;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Difuminado hacia arriba */
nav.bookNav::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
	background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  pointer-events: none;
}

nav .nav-title {
  flex-basis: 100%;
  text-align: center;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Estilos adicionales para los enlaces de navegación */
.nav-prev, .nav-catalog, .nav-next {
  margin: 5px;
}

.nav-prev a, .nav-catalog a, .nav-next a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.nav-prev a:hover, .nav-catalog a:hover, .nav-next a:hover {
  text-decoration: underline;
}