* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red-1: #8f231b;
  --red-2: #b33024;
  --green-1: #1e8e3e;
  --green-2: #34a853;
  --text: #222;
  --muted: #7a7a7a;
  --bg: #f4f4f4;
  --card: #ffffff;
  --line: #e6e6e6;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


body {
  font-family: "Poppins", sans-serif;
  background: #f1eeee;
  color: var(--text);
}
.icono-libro {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.icono-libro svg {
  width: 100%;
  height: 100%;
}
.page {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

/* HEADER */
.topbar {
  width: 100%;
  min-height: 78px;
  background: linear-gradient(135deg, var(--red-1), var(--red-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.topbar h1 {
  font-family: "Srisakdi", cursive;
  font-size: 2.4rem;
  font-weight: 700;
}

.book-icon {
  position: absolute;
  left: 22px;
  font-size: 2.6rem;
  background: none;
  border: none;
}

/* HERO (COMPU IGUAL QUE ANTES) */
.hero {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 🔥 compu igual */
}

/* TAB */
.tabs {
  display: flex;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.tab {
  width: 100%;
  padding: 20px 14px;
  border: none;
  background: #faf7f7;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-1);
  box-shadow: inset 0 -3px 0 var(--red-1);
}

/* CONTENIDO */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 60px;
}

.label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* BOTONES */
.status-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* VERDE */
.active-btn {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: white;
}

/* ROJO */
.disabled-btn {
  background: linear-gradient(135deg, var(--red-1), var(--red-2));
  color: white;
}

/* CARD INFO */
.info-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.info-item:last-child {
  border-right: none;
}

.info-title {
  font-size: 0.9rem;
  color: var(--muted);
}

.info-value {
  font-size: 1.35rem;
  font-weight: 700;
}

/* LISTA */
.details-list {
  background: var(--card);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.details-list li {
  font-size: 1.05rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* 📱 RESPONSIVE PERFECTO 🔥 */
@media (max-width: 768px) {

  /* 🔥 HERO FIX TOTAL */
  .hero {
    height: auto;
    padding: 0;
    background: none; /* elimina gris */
  }

  .hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* llena sin espacios */
  }

  /* HEADER */
  .topbar h1 {
    font-size: 1.4rem;
  }

  .book-icon {
    font-size: 1.6rem;
    left: 12px;
  }

  /* TEXTO */
  h2 {
    font-size: 1.8rem;
  }

  .content {
    padding: 30px 16px;
  }

  /* CARDS */
  .info-card {
    grid-template-columns: 1fr;
  }

  .info-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }

  .info-item:last-child {
    border-bottom: none;
  }
}