* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: white;
  position: relative;
  padding-bottom: 25px;
  min-height: 100vh;
}

.container {
  width: 90%;
  margin: auto;
  padding: 30px 0;
}

.info {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.cover {
  width: 230px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.details {
  flex: 1;
  max-width: 500px;
}

.details h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.details p {
  margin: 5px 0;
  color: #ffffff;
  word-wrap: break-word;
}

.details h3 {
  margin-top: 15px;
}

h2 {
  margin-bottom: 15px;
}

.chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 30px;
  background: #ffffff0d;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: #ffcdd9;
  transform: scale(1.02);
}

.card h3 {
  font-size: 20px;
}

.card p {
  font-size: 18px;
  color: #ffffff;
}

.card-nuevo {
  border: 2px solid #cc0000;
}

.cap-etiqueta-nuevo {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cover {
    width: 180px;
  }
  
  .details {
    max-width: 100%;
  }
}

.pagination {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 8px; 
}

.pagination a {
  padding: 8px 12px;
  background: #222;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s;
  min-width: 40px;   
  text-align: center;
}

.pagination a:hover {
  background: #ff95af;
}

.pagination .active {
  background: #ff95af;
}

a {
  text-decoration: none;
  color: inherit;
}

a:visited {
  color: inherit;
}

a:active {
  color: inherit;
}

a:focus {
  outline: none;
}

.cover-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fav-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #9e3043;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.fav-btn:hover {
  background: #ff95af;
}

.alt-nombres {
  list-style: none; 
  padding-left: 0;
  margin: 5px 0 10px;
}

.alt-nombres li {
  color: #ccc;
  font-size: 14px;
}

.alt-text {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 10px;
}

.capitulos-container {
  flex: 1;
}

.titulo-capitulos {
  margin-bottom: 15px;
}

.sinopsis-container {
  position: relative;
  max-width: 100%;
}

.sinopsis-texto {
  max-height: 80px;
  overflow: hidden;
  line-height: 1.5;
  transition: max-height 0.3s ease;
  word-wrap: break-word;
  white-space: normal;
}

.sinopsis-texto.sinopsis-expandida {
  max-height: 2000px;
}

.btn-leer-mas {
  background: none;
  border: none;
  color: #9e3043;
  cursor: pointer;
  padding: 5px 0;
  font-size: 14px;
  text-decoration: underline;
  display: block;
  margin-top: 5px;
}

.btn-leer-mas:hover {
  color: #ff7a85;
}

