/* ============================================================ */
/* ===== BOOK DETAIL - 3 COLUMNAS ===== */
/* ============================================================ */

.book-detail {
  padding: 60px 25px;
  background: #ffffff;
}

.book-detail-container {
  max-width: 1100px;
  margin: 0 auto;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* ===== COLUMNA 1: IMAGEN ===== */

.book-detail-img {
  width: 100%;
}

.book-detail-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ===== COLUMNA 2: INFORMACIÓN ===== */

.book-detail-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 14px;
}

.book-detail-year {
  font-size: 15px;
  color: #005198;
  font-weight: 700;
  margin-bottom: 16px;
}

.book-detail-label {
  font-size: 13px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.book-detail-authors {
  margin-bottom: 10px;
}

.book-detail-authors p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 2px;
}

.book-detail-publisher {
  font-size: 14px;
  color: #718096;
  margin-bottom: 18px;
}

.book-detail-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
}

/* ===== COLUMNA 3: COMPRA ===== */

.book-detail-buy {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}

.book-detail-availability {
  display: inline-block;
  background: #c6f6d5;
  color: #22543d;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.book-detail-format {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 20px;
}

.book-detail-buy .book-price {
  justify-content: center;
  margin-bottom: 4px;
}

.book-detail-buy .book-price-amount {
  font-size: 40px;
}

.book-detail-buy .book-price-symbol {
  font-size: 20px;
  margin-top: 6px;
}

.book-detail-buy .book-price-cents {
  font-size: 18px;
  margin-top: 4px;
}

.book-detail-price-label {
  font-size: 12px;
  color: #718096;
  margin-bottom: 14px;
}

.book-detail-buy .book-discount {
  font-size: 13px;
  color: #2d9a4a;
  font-weight: 600;
  margin-bottom: 20px;
}

.book-detail-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #005198, #0066c2);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.book-detail-btn:hover {
  background: linear-gradient(135deg, #004080, #005198);
  box-shadow: 0 4px 12px rgba(0, 81, 152, 0.35);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .book-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .book-detail-img {
    max-width: 280px;
    margin: 0 auto;
  }

  .book-detail-buy {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .book-detail {
    padding: 40px 20px;
  }

  .book-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .book-detail-img {
    max-width: 240px;
    margin: 0 auto;
  }

  .book-detail-info h2 {
    font-size: 22px;
  }

  .book-detail-buy {
    grid-column: auto;
    max-width: 100%;
  }
}
