.texto-glosario {
  font-size: 17px;
  font-weight: bold;
  color: #6a1b9a; /* morado */
}

.texto-glosario-2 {
  color: #8e24aa; /* morado un poco más vibrante */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.texto-glosario-2:hover {
  color: #ab47bc; /* tono más claro al pasar el cursor */
  text-decoration: underline;
  transform: scale(1.05);
}

.texto-glosario-2:active {
  color: #6a1b9a; /* tono más oscuro al presionar */
  transform: scale(0.95);
}


.book-glosario {
  position: relative;
  width: 900px;
  height: 600px;
  perspective: 2000px;
  margin: auto;
}
.book-glosario .page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: visible;
  background: #fbf7f2;
  border: 1px solid #ccc;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 28px, rgba(0,0,0,0.08) 29px);
  background-size: 100% 29px;
}
.book-glosario .page.left::before,
.book-glosario .page.left::after,
.book-glosario .page.right::before,
.book-glosario .page.right::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #f5f0e8;
  border: 1px solid #bbb;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.book-glosario .page.left::before { transform: translate(-20px, 0); z-index: -1; }
.book-glosario .page.left::after  { transform: translate(-40px, 0); z-index: -2; }
.book-glosario .page.right::before { transform: translate(20px, 0); z-index: -1; }
.book-glosario .page.right::after  { transform: translate(40px, 0); z-index: -2; }
.book-glosario::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 24px; height: 100%;
  background: #bfb8ae;
  transform: translateX(-50%);
  border-radius: 12px;
  box-shadow: inset 2px 0 6px rgba(0,0,0,0.1), inset -2px 0 6px rgba(0,0,0,0.1);
  z-index: -1;
}
.book-glosario .page.left { left: 0; }
.book-glosario .page.right { right: 0; }

.book-glosario .list-container {
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: #fff;
  border: 2px solid #9c27b0;
  border-radius: 8px;
  overflow: hidden;
}
.book-glosario .list-header {
  background: #9c27b0;
  color: #fff;
  padding: 12px 16px;
  font-size: 16px;
}
.book-glosario .content-list {
  list-style: none;
  height: calc(100% - 48px);
  overflow-y: auto;
}
.book-glosario .content-list li {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  color: #222;
  transition: background 0.2s;
}
.book-glosario .content-list li.active,
.book-glosario .content-list li:hover {
  background: rgba(156,39,176,0.2);
}
.book-glosario .header {
  position: absolute;
  top: 60px;
  width: 100%;
  text-align: center;
  color: #6a1b9a;
  font-size: 36px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.book-glosario .card {
  position: absolute;
  top: 120px;
  bottom: 20px;
  left: 40px;
  right: 40px;
  background: #fff;
  border: 2px solid #9c27b0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.book-glosario .card h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #333;
}
.book-glosario .card .icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  color: #9c27b0;
  opacity: 0.3;
}
.book-glosario .card p {
  color: #444;
  line-height: 1.6;
  font-size: 16px;
}

.text-justify {
  text-align: justify;
}

#detail-objetivo-title {
  font-size: 18px;
}

#detail-objetivo {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}


#detail-objetivo-title {
  margin-top: 1rem;
  color: #6a1b9a;
  font-weight: bold;
  font-size: 20px;
}
#detail-title {
  color: #6a1b9a !important;
  font-weight: bold;
  font-size: 24px;
}

@media (max-width: 767.98px) {
  .book-glosario {
    transform: scale(0.65);
    transform-origin: top center;
  }

  /* Opcional: Asegura que el modal no corte contenido */
  .modal-content {
    overflow-x: auto;
  }

  /* También podrías reducir un poco el alto si lo deseas */
  .book-glosario {
    height: 480px; /* o lo que creas conveniente */
  }
}




