.formato-libro-wrapper {
  width: 100%;
  margin: 0 auto;
}

.seccion-formatos {
  background: linear-gradient(to bottom, #1a1a1a 0%, #000000 100%);
  padding: 80px 20px;
  color: #e6d7a8;
  font-family: 'Garamond', serif;
  text-align: center;
}

.titulo-formatos {
  font-size: 2.6em;
  color: #d4af37;
  margin-bottom: 10px;
}

.iconito-runa {
  color: #d4af37;
  font-size: 1.2em;
  margin-right: 8px;
}

.linea-magica {
  width: 110px;
  height: 4px;
  margin: 0 auto 40px;
  background: linear-gradient(90deg, #d4af37, #f5e6b2, #d4af37);
  border-radius: 4px;
  animation: brilloMagico 2s infinite alternate;
}

@keyframes brilloMagico {
  from { box-shadow: 0 0 6px #d4af37; }
  to { box-shadow: 0 0 16px #f5e6b2; }
}

.descripcion-saga {
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #e6d7a8;
}

.contenedor-formatos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.formato-libro {
  background-color: #000;
  padding: 24px;
  width: calc(33.333% - 40px);
  border: 2px solid transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s ease;
}

.formato-libro img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #2a2a2a;
}

.formato-libro h3 {
  font-size: 1.35em;
  color: #f0d98c;
  margin-bottom: 10px;
}

.formato-libro p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.formato-libro a {
  background-color: #d4af37;
  color: #000;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.formato-libro.tapa-dura:hover {
  border-color: #d4af37;
  box-shadow: 0 0 25px rgba(212,175,55,0.4);
}

.formato-libro.tapa-blanda:hover {
  border-color: #2ecc71;
  box-shadow: 0 0 25px rgba(46,204,113,0.3);
}

.formato-libro.ebook:hover {
  border-color: #3498db;
  box-shadow: 0 0 25px rgba(52,152,219,0.3);
}

@media (max-width: 1024px) {
  .formato-libro { width: calc(50% - 40px); }
}

@media (max-width: 600px) {
  .formato-libro { width: 100%; }
}