/*body {
  font-family: sans-serif;
  background: #111;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}*/

#caja_novelas {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1000px;
  padding: 0 10px;
  box-sizing: border-box;
}

#ocult_rotador {
  overflow: hidden;
  flex: 1;
  height: auto;
  position: relative;
  perspective: 1200px;
}

#rotador_novelas {
  display: flex;
  align-items: flex-start;
  transition: transform 0.6s ease;
}

#rotador_novelas li {
  list-style: none;
  margin: 0 10px;
  text-align: center;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform-origin: center center;
  flex-shrink: 0;
}

#rotador_novelas img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  /*border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);*/
}

#rotador_novelas a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.3s;
}

#rotador_novelas a:hover {
  color: #ffcc66;
}

a#anterior, a#siguiente {
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #0ff;
  transition: color 0.3s;
}

a#anterior:hover, a#siguiente:hover {
  color: #ffcc66;
}

/* Responsivo */
@media (max-width: 768px) {
  #rotador_novelas img {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  #caja_novelas {
    gap: 5px;
  }
  #rotador_novelas img {
    max-width: 100px;
  }
  #rotador_novelas a {
    font-size: 0.75rem;
  }
  
  @media (max-width: 380px) {
  #caja_novelas {
    gap: 4px;
  }
  #rotador_novelas img {
    max-width: 95px;
  }
  #rotador_novelas a {
    font-size: 0.65rem;
  }
  
}
