/* series.css */

/* ================================================================================================================================================================================
   ESTILOS NUEVOS PARA SERIES
   ================================================================================================================================================================================ */

/* Sección Superior - Trailer */
.trailer-section {
  width: 100%;
  /* max-height: 35vh; */
  /* min-height: 300px; */
  max-height: 40vh;
  min-height: 375px;
  margin-bottom: .75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%); */
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); */
}

.trailer-container {
  width: 100%;
  /* height: 100%; */
  height: -webkit-fill-available;
  padding: .25rem;
  position: relative;
}

.trailer-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sección de Capítulos */
.chapters-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.chapters-title {
  color: #9174b3;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: left;
  padding-left: 0.5rem;
  border-left: 4px solid #9174b3;
}

/* Grid de Capítulos */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Tarjetas de Capítulos */
.chapter-card {
  /* background: linear-gradient(135deg, #2a2a3e 0%, #1e1e2e 100%); */
  border: 1px solid #495057;
  border-radius: 12px;
  /* padding: 1.5rem; */
  padding:  1rem 1rem .5rem;
  text-decoration: none;
  color: #f1f1f1;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

/* Thumbnail del capítulo */
.chapter-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  /* background: #1a1a2e; */
}

.chapter-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.chapter-card:hover .chapter-thumbnail img {
  transform: scale(1.05);
}

/* Overlay del botón play */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: all 0.3s ease;
  pointer-events: none;
}

.chapter-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}


.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  /* background: linear-gradient(90deg, #9174b3, #b19bca); */
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.chapter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(145, 116, 179, 0.3);
  border-color: #9174b3;
}

.chapter-card:hover::before {
  transform: scaleX(1);
}

.chapter-card-content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  /* height: 100%; */
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0.75rem 0 .25rem;
  gap: 1rem;
}

.chapter-title {
  font-size: 1rem;
  font-weight: 400;
  color: #f1f1f1;
  margin: 0;
  /* line-height: 1.4; */
  flex: 1;
}

.chapter-duration {
  background: rgba(145, 116, 179, 0.2);
  color: #b19bca;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.chapter-author {
  color: #aaa;
  font-style: italic;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  flex-grow: 0;
  margin: 0;
}

.chapter-doi {
  color: #666;
  /* font-size: 0.75rem; */
  font-size: 0.7rem;
  /* margin-top: .5rem; */
  display: block;
  word-break: break-all;
}

/* Tarjeta especial de Bibliografía */
.bibliography-card {
  /* background: linear-gradient(135deg, #3a2a4e 0%, #2e1e3e 100%); */
  border-color: #9174b3;
  height: max-content;
  min-height: max-content;
  padding: 0.5rem 1rem;
}

.bibliography-card .chapter-title {
  color: #b19bca;
  font-weight: 700;
}

.bibliography-card .chapter-header{
  margin: .5rem;
}

.bibliography-card:hover {
  border-color: #b19bca;
  box-shadow: 0 12px 24px rgba(177, 155, 202, 0.4);
}

/* Ajustes para la sección de Agradecimientos y Créditos */
/* .creditos_agradecimientos {
  background: rgba(42, 42, 62, 0.5);
  border: 1px solid #495057;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.creditos_agradecimientos .nav-pills .nav-link {
  color: #aaa;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.creditos_agradecimientos .nav-pills .nav-link.active {
  background-color: #9174b3;
  color: white;
}

.creditos_agradecimientos .nav-pills .nav-link:hover:not(.active) {
  background-color: rgba(145, 116, 179, 0.2);
  color: #b19bca;
}

.creditos_agradecimientos .tab-content {
  color: #dee2e6;
  padding: 1rem 0;
}

.creditos_agradecimientos p {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 0.75rem;
} */

/* Responsive Design */
@media (min-width: 1400px) {
  .chapters-grid {
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-columns: repeat(5, 1fr); */
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .chapters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .chapters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media (max-width: 767px) {
  .chapters-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .chapters-title {
    font-size: 1.5rem;
  }

  .trailer-section {
    max-height: 30vh;
    min-height: 250px;
  }

  .chapter-card {
    /* min-height: 140px; */
  }

  .chapter-thumbnail {
    height: 150px;
  }

  .chapter-card-content {
    /* padding: 1.25rem; */
  }
}

@media (max-width: 480px) {
  .chapters-grid {
    grid-template-columns: 1fr;
  }

  .chapter-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chapter-duration {
    margin-top: 0.5rem;
  }
}

/* ================================================================================================================================================================================
ESTILOS DE "libro_gemini/" USADOS PARA VIEWS / LIBRO
================================================================================================================================================================================ */

/* .libro {
    text-align: center;
  }
  
  .libro-logo {
    height: 40vmin;
    pointer-events: none;
  }
  
  @media (prefers-reduced-motion: no-preference) {
    .libro-logo {
      animation: App-logo-spin infinite 20s linear;
    }
  }
  
   
  .libro-link {
    color: #61dafb;
  }
  
  @keyframes App-logo-spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
   */


@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Open+Sans:wght@300&display=swap');

body .libro {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;

}

#root {
  background-color: #212529;
}

.alturaPorDefecto {
  /* text-align: left;
  padding-left: 60px;
  padding-right: 40px; */
  padding: 2rem 2rem 1rem 2rem;
}

.libro-logo {
  /* height: 40vmin; */
  pointer-events: none;
}

.libro-logo.ur {
  margin: 1rem 0 1rem 2rem;
}

.libro-logo.bh {
  max-height: 90px;
}

.libro-header {
  background-color: #383434;
  ;
  display: flex;
  /* align-items: left; */
  /* justify-content: center; */
  font-size: calc(10px + 2vmin);
  color: white;
  justify-content: space-between;
  align-items: center;

}



.libro-header img {
  max-height: 65px;
}

.libro-footer {
  background-color: #383434;
  font-style: italic;
  padding: 1em;
  padding-bottom: 1em;
  height: auto;
  /* margin-top: 4em; */
  /* position: fixed; */
  bottom: 0;
  width: 100%;
  color: #dee2e6;
  font-size: 0.9rem;
}

/*Footer*/
footer {
  background-color: #383434;
  padding: 1em;
  width: 100%;
  color: #dee2e6;
  font-size: 0.9rem;
  margin-top: 2%;
  font-style: normal;
}

.footer-head {
  display: flex;
  justify-content: center;
  /* Centra horizontalmente los elementos dentro de footer-head */
  align-items: center;
  /* Alinea verticalmente los elementos */
  width: 100%;
  /* Asegura que el contenedor ocupe todo el ancho disponible */
  padding-bottom: 1.2rem;
}

.footer-head img {
  width: 130px;
  padding-left: 1rem;
}

.footer-contents {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid #FFF;
}

/* Ajuste de las columnas para footer-contents */
.footer-contents .md-6,
.footer-contents .lg-6 {
  flex: 0 0 50%;
  max-width: 50%;

}

.footer-contents p.escribenos {
  text-align: left;
  font-size: 1rem !important;
  display: grid;
}

p.disclaimer {
  padding-top: 0.5rem;
  text-align: justify;
  font-size: 0.7rem !important;
}

.footer-contents .md-4,
.footer-contents .lg-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.footer-block {
  margin: 10px;
  min-width: 250px;
}

.footer-bottom {
  border-top: 1px solid #FFF;
  padding-top: 10px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  flex-wrap: wrap;
  color: #17d1fc;
}

.footer-links a {
  color: #17d1fc;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

  .footer-contents,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-contents .md-6,
  .footer-contents .lg-6,
  .footer-contents .md-4,
  .footer-contents .lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* fin Footer*/

.libro-link {
  color: #61dafb;
}

@keyframes libro-logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Estilos Navbar */
div#navbarNav {
  font-size: 1rem;
}

.navbar {
  background-color: transparent;
  /* Fondo oscuro para la barra de navegación */
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  /* Texto blanco para los enlaces */
}

.navbar-dark .navbar-toggler-icon {
  background-color: transparent;
  /* Icono del menú hamburguesa en blanco */
}

/* Opcional: Espacio entre los elementos del menú */
.navbar-nav .nav-item {
  margin-right: 15px;
}

.navbar-nav .nav-item:last-child {
  margin-right: 0;
  /* Eliminar margen del último elemento */
}

.imagePortada {
  width: 100%;
}



.bh_rights {
  font-size: 11px;
  color: #dee2e6;
}

.book-container {
  position: relative;
  width: 200px;
}

.book-image {
  width: 100%;
  height: auto;
  display: block;
}

.book-description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.book-container:hover .book-description {
  opacity: 1;
}

.book-link {
  color: #FFF;
  text-decoration: underline;
}

/* .tablaCont {
	background-color: #212529 !important;
	--bs-list-group-bg: unset;
	--bs-list-group-border-color: #5c6168;
} */



/* .row.mt-5 {
	padding-bottom: 5%;
} */

.tab-content.texto-adic {
  color: whitesmoke;
  font-size: 0.85rem;
  text-align: justify;
}

.tab-button.active {
  background: gray;
}

.tab-button {
  border-radius: 5px;
  background: unset;
  color: whitesmoke;
  font-size: 0.85rem;
}






.interl {
  margin: unset;
}

.card.bg-cbh {
  background-color: unset;
  color: #dee2e6;
  border-color: #495057;

}

.miga-pan {
  font-size: 0.85rem;
}

.bib_title a {
  text-decoration: none !important;
  font-weight: bold;
  color: #b19bca;
  font-size: 0.9rem;
}

span.pregunta a {
  text-decoration: none;
  color: #FFF;
}

.pregunta {
  font-size: 0.85rem;
}

/* Estilos para el modal */
.modal-fullscreen {
  display: flex !important;
  padding: 0 !important;
}

.modal-fullscreen .modal-dialog {
  width: 80%;
  height: 80vh;
  /* Usamos viewport height para una altura relativa a la pantalla */
  max-width: none !important;
  max-height: none !important;
  margin: auto;
}

.modal-fullscreen .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-fullscreen .modal-header {
  /* Opcional: Ajusta la altura mínima del header si es necesario */
  /* min-height: 50px; */
  flex-shrink: 0;
  /* Evita que el header se encoja */
}

.modal-fullscreen .modal-body {
  padding: 0;
  flex-grow: 1;
  /* El body ocupa el espacio restante */
  display: flex;
}

.modal-fullscreen .modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  /* El iframe ocupa todo el espacio disponible en el body */
  border: none;
}

.modal-fullscreen .modal-footer {
  /* Opcional: Ajusta la altura mínima del footer si es necesario */
  /* min-height: 50px; */
  flex-shrink: 0;
  /* Evita que el footer se encoja */
}

/* fin estilos modal */
/* 


.modal-title.modal-t {
	font-size: 1.25rem;
}

.modal-open .modal {
  background: linear-gradient(to bottom, rgba(34, 31, 77, 0) 65%, rgba(27, 20, 45, 0) 100%) !important;
}

.modal-body .p {
  text-align: justify;
}

.modal-dialog {
  max-width: 600px;
  margin: 1.75rem auto;
  padding-top: 5%;
}

.modal-content {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #ffffffe0;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: .3rem;
  outline: 0;
}
 */
.centered-video {
  display: block;
  margin: 0 auto;
}

.centered-text {
  text-align: center;
  color: black;
}

.modal-dialog {
  position: relative;
  width: auto;
  pointer-events: none;
}

/* .card {
  border:none;
} */

.card:hover {
  background-color: rgba(126, 149, 173, 0.281);
}

/* .capitulo.list-group-item.list-group-item-action:hover:active {
	background-color: unset;
} */

.blq-central {
  text-align: center;
}

.btn.btn-danger.cerrar {
  background-color: #16ccf5;
  border-color: #16ccf5;
}

.cont-cerrar {
  margin-right: 2%;
}




/* Estilos Tabla de contenido  */

.title-segmento {
  color: #9174b3;
  display: flex;
  justify-content: center;
}

.container1 {
  padding-top: 1rem;
}

.capitulo {
  font-size: 0.85rem;
  color: #f1f1f1;
  text-decoration: none;
}


.ajuste-contenido {
  float: right;
  font-size: 0.85rem;
}

.bh_author {
  font-style: italic;
  font-size: 0.8rem;

}

.list-group-item {
  color: white;
  background-color: unset;
  border-color: #495057;
}



/* Fin estilos Tabla de contenido */

/* Agradecimientos y comentarios */

.espaciado {
  padding: 0 0.5rem 0 0.5rem;
}

.btns {
  width: 100%;
  font-size: 0.85rem;
  background-color: unset;
}

#creditos,
#agradecimientos {
  border-top: 1px solid white;
}

.txt {
  font-size: 0.85rem;
  text-align: justify;
  margin: unset;
}

.seccionT {
  font-size: 0.9rem;
  font-weight: bold;
}

/* Fin Agradecimientos y comentarios */

/* Botones anterior siguiente */
#btnAnteriorA,
#btnSiguienteA {
  text-decoration: unset;
}

/* Fin botones anterior siguiente */

@media only screen and (max-width : 900px) {
  .imagePortada {
    display: none;
  }
}

/* Ajuste video vimeo */
#video-container.video-vimeo {
  position: relative;
  width: 90%;
  max-width: 1080px;
  aspect-ratio: 16 / 9;
}

iframe.iframe-vimeo {
  width: 100%;
  height: 100%;
}

iframe[id^="vimeo-player-"] {
  width: 100%;
  height: 100%;
  border: none;
}


.menu-btn.menu-btn-vimeo {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.menu.menu-vimeo {
  display: none;
  position: absolute;
  top: 50px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 10;
}

.menu-vimeo button.button-vimeo {
  display: block;
  background-color: transparent;
  border: none;
  color: white;
  margin: 5px 0;
  cursor: pointer;
  text-align: left;
}

@media (max-width: 768px) {

  .menu-btn-vimeo,
  .menu-vimeo {
    top: 5px;
    left: 5px;
    padding: 5px;
  }

  .menu-vimeo button {
    margin: 3px 0;
    padding: 5px;
  }
}

/* Fin ajuste VIMEO */

/* Ajuste DOI */
.doi {
  font-size: 0.7rem;
  background-color: unset;
  border-color: #495057;
  color: #f1f1f1;
  text-decoration: none;
}

.doi:hover {
  color: #f1f1f1;
  font-weight: bold;
}

/* Fin ajuste DOI */

/* Ajuste CITAS*/
.citation {
  /* display: none; */
  font-size: 0.85rem;
}

.fa-solid.fa-copy.pl-4 {
  padding-left: 1%;
}

.notificacion {
  /* position: fixed; 
  top: 20px; 
  right: 20px;  */
  background-color: #333;
  color: #fff;
  padding: 0.5% 1%;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  /* z-index: 1000;  */
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 250px;
}

.notificacion.mostrar {
  opacity: 1;
  display: block;
}

/* Fin ajuste */

/* ajuste nuevo menu notificación */
.nuevomenu p {
  text-align: right;
}

.espacios {
  padding-right: 2rem;
}

.animado,
.fa-solid.fa-arrow-up {
  display: inline-block;
  animation-duration: 1s;
  animation-name: grow-shrink;
  padding-right: 2%;
  animation-iteration-count: infinite;
}

@keyframes grow-shrink {

  25%,
  75% {
    scale: 100%;
  }

  50% {
    scale: 110%;
    /* color: magenta; */
  }
}

/* ajuste creditos */
.table.tb-color-none {
  border-color: transparent;
}

/* fin ajuste */

.acciones-compartir {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Espacio entre botones */
  margin-bottom: 1rem;
  /* o ajusta según tu diseño */
}

.citation {
  position: relative;
}

#mostrarCitasBtn {
  background-color: #1877f2;
  padding: 6px 10px;
  font-size: 14px;
  height: 32px;
  line-height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-bottom: -2px;
  /* Ajusta según se vea */
}

#mostrarCitasBtn {
  position: relative;
  top: -5px;
  /* o 2px según el ajuste fino que necesites */
}




.player-container {
  max-width: 400px;
  margin: auto;
  background: #2c2c2c;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
  position: relative;
  width: 100%;
  /* padding-top: 56.25%; /* Proporción 16:9 */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

iframe#my-vimeo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.player-container .title {
  color: #FFF;
  font-size: 1.1rem;
  font-weight: bold;
}

.subtitle {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 20px;
}


.entrevista_descripcion {
  font-size: 0.9rem;
  color: #aaa;
  text-align: justify;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.time {
  color: #fff;
  font-size: 12px;
  width: 35px;
  text-align: center;
}

#progress-bar {
  flex: 1;
  appearance: none;
  height: 5px;
  background: #555;
  border-radius: 5px;
  outline: none;
}

#progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  background: #00BFFF;
  border-radius: 50%;
  cursor: pointer;
}

.controls {
  margin-bottom: 20px;
}

.controls button {
  background: none;
  border: none;
  color: white;
  margin: 0 10px;
  font-size: 22px;
  cursor: pointer;
}

.controls button:hover {
  color: #00BFFF;
}

/*Modal preguntas*/
.custom-modal {
  width: 700px;
  background-color: #212529;
  /* bg-dark */
  color: white;
  /* text-white */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


/* ============================================================================================================================================================================================================================
   ESTILOS PARA MODAL DE SERIES
   
   ============================================================================================================================================================================================================================ */


/* Thumbnail del capítulo con video preview */
.chapter-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.chapter-thumbnail iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none; /* Evita interacción con el iframe */
}

.chapter-card:hover .chapter-thumbnail iframe {
  transform: scale(1.05);
}

/* Overlay del botón play */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.chapter-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Modal Principal */
.modal-series .modal-content {
  background-color: #1e1e2e;
  /* border: 1px solid #9174b3; */
  border-radius: 12px;
  color: #f1f1f1;
}

.modal-series .modal-dialog {
  /* max-width: 90vw; */
  /* margin: 1.75rem auto; */
  max-width: 75vw;
  margin: .5rem auto;
}

/* Header del Modal */
.modal-series-header {
  background: linear-gradient(135deg, #2a2a3e 0%, #1e1e2e 100%);
  border-bottom: 2px solid #9174b3;
  padding: 1.5rem;
}

.modal-series-title {
  color: #b19bca;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-series .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modal-series .btn-close:hover {
  opacity: 1;
}

/* Body del Modal */
.modal-series-body {
  padding: 0;
  background-color: #1a1a2e;
}

/* Contenedor del Video */
.modal-series-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Aspect ratio 16:9 */
  background-color: #000;
}

.modal-series-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Información del Capítulo */
.modal-series-info {
  padding: 1.5rem;
  background-color: #1e1e2e;
  border-top: 1px solid #495057;
}

.modal-series-info p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #dee2e6;
  line-height: 1.6;
}

.modal-series-info p:last-child {
  margin-bottom: 0;
}

.modal-series-author,
.modal-series-duration,
.modal-series-doi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-series-info strong {
  color: #b19bca;
  min-width: 80px;
}

.modal-series-doi a {
  color: #17d1fc;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-all;
}

.modal-series-doi a:hover {
  color: #b19bca;
  text-decoration: underline;
}

/* Footer del Modal */
.modal-series-footer {
  background: linear-gradient(135deg, #2a2a3e 0%, #1e1e2e 100%);
  border-top: 2px solid #9174b3;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Botones del Modal */
.modal-series-btn-primary,
.modal-series-btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-series-btn-primary {
  background: linear-gradient(135deg, #9174b3 0%, #b19bca 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(145, 116, 179, 0.3);
}

.modal-series-btn-primary:hover {
  background: linear-gradient(135deg, #b19bca 0%, #9174b3 100%);
  box-shadow: 0 6px 16px rgba(145, 116, 179, 0.5);
  transform: translateY(-2px);
}

.modal-series-btn-secondary {
  background-color: #495057;
  color: #dee2e6;
}

.modal-series-btn-secondary:hover {
  background-color: #5c6168;
  color: white;
}

/* Backdrop del Modal */
.modal-series .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.85);
}

/* Animación de entrada */
.modal-series.show .modal-dialog {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design para el Modal */
@media (max-width: 992px) {
  .modal-series .modal-dialog {
    max-width: 95vw;
    margin: 1rem auto;
  }

  .modal-series-title {
    font-size: 1.25rem;
  }

  .modal-series-info {
    padding: 1rem;
  }

  .modal-series-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-series-btn-primary,
  .modal-series-btn-secondary {
    width: 100%;
    padding: 0.875rem;
  }
}

@media (max-width: 768px) {
  .modal-series .modal-dialog {
    max-width: 100vw;
    margin: 0;
    height: 100vh;
  }

  .modal-series .modal-content {
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .modal-series-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .modal-series-video-container {
    flex: 1;
    padding-top: 0;
    height: auto;
  }

  .modal-series-title {
    font-size: 1.1rem;
  }

  .modal-series-info p {
    font-size: 0.875rem;
  }

  .modal-series-info strong {
    min-width: 70px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .modal-series-header {
    padding: 1rem;
  }

  .modal-series-title {
    font-size: 1rem;
    line-height: 1.4;
  }

  .modal-series-info {
    padding: 0.875rem;
  }

  .modal-series-footer {
    padding: 0.875rem;
  }
}

/* Mejora de accesibilidad */
.modal-series-btn-primary:focus,
.modal-series-btn-secondary:focus {
  outline: 2px solid #b19bca;
  outline-offset: 2px;
}

/* Loading state para el iframe */
.modal-series-video-container::before {
  content: 'Cargando video...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #dee2e6;
  font-size: 1.1rem;
  z-index: 0;
}

.modal-series-video-container iframe {
  z-index: 1;
}

/* ============================================================================================================================================================================================================================
   ESTILOS PARA MODAL DE SERIES
   
   ============================================================================================================================================================================================================================ */


/* ============================================================================================================================================================================================================================
   ESTILOS PARA AGRADECIMIENTOS Y CRÉDITOS
   
   ============================================================================================================================================================================================================================ */


/* Contenedor principal de agradecimientos y créditos */
.creditos_agradecimientos {
  /* background: linear-gradient(135deg, rgba(42, 42, 62, 0.8) 0%, rgba(30, 30, 46, 0.8) 100%); */
  /* border: 1px solid #495057; */
  border-radius: 12px;
  padding: 2rem 2rem 0;
  /* margin-top: 2rem; */
  margin-top: .5rem;
  /* margin-bottom: 2rem; */
}

/* Nav Pills Personalizadas */
.nav-pills-custom {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #495057;
}

.nav-link-custom {
  color: #dee2e6 !important;
  background-color: transparent !important;
  border: 2px solid #495057;
  border-radius: 8px;
  /* padding: 0.75rem 1.5rem !important; */
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.nav-link-custom:hover {
  background-color: rgba(145, 116, 179, 0.2) !important;
  border-color: #9174b3;
  color: #b19bca !important;
  transform: translateY(-2px);
}

.nav-link-custom.active {
  background: linear-gradient(135deg, #9174b3 0%, #b19bca 100%) !important;
  border-color: #9174b3;
  color: white !important;
  box-shadow: 0 4px 12px rgba(145, 116, 179, 0.4);
}

/* Contenido de los tabs */
.tab-content-custom {
  padding: 1.5rem 0;
  color: #dee2e6;
  min-height: 60px;
  transition: min-height 0.3s ease;
}

/* Cuando hay contenido activo */
.tab-content-custom .tab-pane.active {
  min-height: 200px;
}

/* Mensaje cuando no hay nada seleccionado */
.tab-content-custom:empty::after {
  content: 'Selecciona una opción para ver su contenido';
  display: block;
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 2rem 0;
}

/* Agradecimientos */
.acknowledgements-content {
  /* max-width: 900px; */
  margin: 0 auto;
}

.acknowledgements-content p {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 1.25rem;
  color: #dee2e6;
}

.acknowledgements-content p:last-child {
  margin-bottom: 0;
}

/* Créditos */
.credits-content {
  width: 100%;
}

/* Créditos Editoriales (columna izquierda) */
.editorial-credits {
  padding-right: 2rem;
}

.editorial-credits .seccionT {
  font-size: 1.1rem;
  font-weight: 700;
  color: #b19bca;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.editorial-credits .seccionT:first-child {
  margin-top: 0;
}

.editorial-credits .seccion {
  font-size: 0.95rem;
  color: #dee2e6;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  padding-left: 1rem;
}

/* Créditos de Producción (columna derecha) */
.production-credits {
  padding-left: 2rem;
  border-left: 2px solid #495057;
}

.production-credits-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1rem;
}

.production-credits-table td {
  vertical-align: top;
  padding: 0.5rem 0;
}

.credit-label {
  font-weight: 600;
  color: #b19bca;
  font-size: 0.95rem;
  padding-right: 1rem;
  white-space: nowrap;
  min-width: 140px;
}

.credit-value {
  color: #dee2e6;
  font-size: 0.95rem;
  line-height: 1.6;
}

.credit-value span {
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 991px) {
  .creditos_agradecimientos {
    padding: 1.5rem;
  }

  .nav-pills-custom {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-link-custom {
    text-align: center;
    width: 100%;
  }

  .credits-content .row {
    flex-direction: column;
  }

  .editorial-credits {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .production-credits {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid #495057;
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  .creditos_agradecimientos {
    padding: 1.25rem;
  }

  .nav-pills-custom {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .nav-link-custom {
    padding: 0.625rem 1rem !important;
    font-size: 0.9rem;
  }

  .tab-content-custom {
    padding: 1rem 0;
  }

  .acknowledgements-content p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .editorial-credits .seccionT {
    font-size: 1rem;
  }

  .editorial-credits .seccion {
    font-size: 0.875rem;
  }

  .credit-label,
  .credit-value {
    font-size: 0.875rem;
  }

  .credit-label {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .creditos_agradecimientos {
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-link-custom {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem;
  }

  .acknowledgements-content p {
    font-size: 0.85rem;
  }

  .editorial-credits {
    padding-right: 0;
  }

  .editorial-credits .seccion {
    padding-left: 0.5rem;
  }

  .production-credits-table {
    border-spacing: 0 0.75rem;
  }

  .credit-label {
    min-width: 100px;
    padding-right: 0.75rem;
    font-size: 0.8rem;
  }

  .credit-value {
    font-size: 0.8rem;
  }
}

/* Animación de entrada para el contenido de los tabs */
.tab-pane {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras de accesibilidad */
.nav-link-custom:focus {
  outline: 2px solid #b19bca;
  outline-offset: 2px;
}

/* Separador visual entre secciones de créditos editoriales */
.editorial-credits > div + div {
  margin-top: 1.5rem;
}

/* Hover effect para las filas de la tabla de producción */
.production-credits-table tr {
  transition: background-color 0.2s ease;
}

.production-credits-table tr:hover {
  background-color: rgba(145, 116, 179, 0.1);
  border-radius: 4px;
}


   /* ============================================================================================================================================================================================================================
   ESTILOS PARA AGRADECIMIENTOS Y CRÉDITOS
   
   ============================================================================================================================================================================================================================ */
/* HACER QUE LA MIGA DE PAN SEA VISIBLE */
   .breadcrumb-item.active::before {
  color: #dee2e6bf !important; 
}