/* Estilos SVG y contenedores */
.overflow {
  overflow: visible;
}

.flecha-svg {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  fill: rgba(107, 200, 240, 0.9);
  filter: drop-shadow(-3px 3px 2px rgba(0, 0, 0, 0.8));
  animation: pulso 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulso {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

@media (max-width: 768px) {
  .flecha-svg {
    width: 50px;
    height: 50px;
    right: -5px;
  }
}

@media (max-width: 480px) {
  .flecha-svg {
    top: 5px;
    right: -10px;
  }
}

/* Modales y Botones */
.exit-fullscreen-btn {
  position: fixed;
  top: 75px;
  right: 25px;
  padding: 15px 25px;
  background: #37aae1;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 5002;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.exit-fullscreen-btn:hover {
  background: #4fa8d0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  animation: none;
}

.exit-fullscreen-btn::before {
  content: '×';
  font-size: 18px;
  margin-right: 10px;
}

#contentFrame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 99vw;
  height: 95vh;
  border: 10px solid #6bc8f0;
  box-shadow: 0 0 40px rgba(107, 200, 240, 0.6);
  border-radius: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 5002;
  display: none;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-direction: column;
}

#pdfContainer {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transform-origin: top center;
  will-change: transform;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #6bc8f0;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.item-footer1 {
  padding: 0 2rem 2rem;
}

.item-subtitle p {
  margin-bottom: 0;
}

/* Estilo del botón transparente para el SVG */
.btn-title-audio {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.2s ease;
}

.btn-title-audio:hover {
  transform: scale(1.15);
}

/* Tamaño estándar para las imágenes SVG */
.audio-svg-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Animación sutil de pulso cuando se está reproduciendo el audio */
.btn-title-audio.playing .audio-svg-icon {
  animation: audio-pulse 1.2s infinite alternate ease-in-out;
}

@keyframes audio-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.18);
    opacity: 0.85;
  }
}