/* css/biblioteca.css */

.biblioteca-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 70vh;
}

.biblioteca-header {
  margin-bottom: 32px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 16px;
}

.biblioteca-header h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.biblioteca-header p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

/* Grilla adaptable de libros */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}

.book-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.book-cover-wrapper {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-color: #f4f4f4;
  overflow: hidden;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.book-author {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 16px 0;
}

.btn-read {
  margin-top: auto;
  display: block;
  text-align: center;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-read:hover {
  background-color: #333333;
}

