/* CARRUSEL */
/* Asegura que el contenedor del carrusel no tenga una altura fija */
.carousel-inner {
  width: 100%; /* Ocupa el ancho completo del contenedor */
}

.carousel-item {
  width: 100%;
  height: auto; /* Ajusta la altura automáticamente */
}

/* Mantén las mismas propiedades que los banners */
.carousel-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Mantiene el aspecto y recorta el exceso */
  max-width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: block; /* Asegura que ocupe toda la línea */
}


/* VIDEO */
.video {
  text-align: center;
  padding: 8vh 2vw; /* Usar vh y vw para padding */
}

.video-text-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2vh; /* Usar vh para margin-top */
  padding: 1vh; /* Usar vh para padding */
}

.hashtag {
  font-size: 1.3rem; /* Tamaño de fuente mayor */
  font-weight: bold; /* Texto en negrita */
  color: #32398e; /* Color del texto del hashtag */
  margin-right: 1vw;
}

.video-text {
  font-size: 18px;
  color: #333;
  border-left: 5px solid #32398e; /* Color del borde izquierdo */
  padding-left: 10px;
  width: 45%;
}

/* CIFRAS */
.cifras_biblio {
  text-align: center;
  padding: 50px 0;
}

.cifras_biblio_wrapper {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto;
  width: 60%;
}

.cifras_biblio_container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 28vmin;
  height: 28vmin;
  padding: 0;
  
}

.cifras_biblio_icon {
  width: 4em;
  height: 4em;
  margin-bottom: 0.2em; /* Espacio mínimo debajo del icono */
}

.cifras_biblio_num {
  color: #32398e;
  font-weight: 800;
  font-size: 2.5em;
  margin-bottom: 0.1em; /* Reduce el espacio entre el número y el texto */
}

.cifras_biblio_text {
  color: #32398e;
  font-size: 1.1em;
  margin: 0; /* Elimina espacio extra debajo del texto */
  font-weight: 500;
}

/* NOTICIAS */

.news {
  padding: 0;
  margin-top: 50px;
  margin-bottom: 70px;
  box-sizing: border-box;
  text-align: center; /* Centra contenido */
}

/* Ajusta todas las tarjetas al mismo tamaño */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* Hace que todas las columnas tengan el mismo tamaño */
}

/* Hace que las tarjetas ocupen toda la altura de su contenedor */
.col-md-4 {
  display: flex;
}

.container_noticias h2 {
  color: #32398e;
  font-weight: bold;
  padding: 30px;
  text-align: center;
  margin-bottom: 0;
}

.container_noticias {
  max-width: 70%;
  margin: 0 auto;
}

.card {
  box-shadow: rgba(0, 0, 0, 0.8) 0px 1px 2px 0px;
  margin: 0 auto 20px auto;
  width: 100%;
}

.card-body {
  padding: 15px;
}

.card-body h5 {
  font-size: 1.2em;
  margin: 10px 0;
  font-weight: bold;
  color: #32398e;
}

.card-body p {
  font-size: 0.8em;
  margin: 10px 0;
}

.news {
  text-align: center; /* Centrar contenido */
}

.news a,
.row a {
  /* display: flex; */
  display: inline-block; /* Permite ajustar el ancho al contenido */
  justify-content: center;
  text-decoration: none;
}

.section-ver-mas {
  float: right; /* Mueve la sección a la derecha */
  margin-top: 20px;
  background-color: transparent; /* Fondo transparente */
  color: #32398e; /* Color del texto */
  border: none; /* Sin borde */
  padding: 0; /* Sin espaciado interno */
  cursor: pointer; /* Cambiar el cursor a pointer */
  font-size: 1em; /* Ajusta el tamaño de fuente según sea necesario */
  font-weight: bolder;
  transition: color 0.3s ease; /* Transición suave para el hover */
}

.section-ver-mas:hover {
  color: #f07d06; /* Cambia el color del texto al pasar el ratón */
}

.section-button {
  margin-top: 5px;
  background-color: #32398e; /* Color de fondo */
  color: white; /* Color del texto */
  border: none; /* Sin borde */
  padding: 10px 20px; /* Espaciado interno */
  border-radius: 20px; /* Puntas ovaladas */
  cursor: pointer; /* Cambiar el cursor a pointer */
}

.section-button:hover {
  background-color: #f07d06; /* Color de fondo al pasar el ratón */
}




/* GALERIA */
/* Estilos globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos para el contenedor del carrusel */
.biblio-container {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
}

/* Estilos para el slider */
.biblio-slider-wrapper {
  position: relative;
}

.biblio-slider-wrapper .biblio-slide-button {
  position: absolute;
  top: 50%;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  z-index: 5;
  color: #fff;
  display: flex;
  cursor: pointer;
  font-size: 2.2rem;
  background: #000;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transform: translateY(-50%);
}

.biblio-slider-wrapper .biblio-slide-button:hover {
  background: #f07d06;
}

.biblio-slider-wrapper .biblio-slide-button#biblio-prev-slide {
  left: -25px;
  display: none;
}

.biblio-slider-wrapper .biblio-slide-button#biblio-next-slide {
  right: -25px;
}

.biblio-slider-wrapper .biblio-image-list {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 18px;
  font-size: 0;
  list-style: none;
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.biblio-slider-wrapper .biblio-image-list::-webkit-scrollbar {
  display: none;
}

.biblio-slider-wrapper .biblio-image-item {
  width: 325px;
  height: 400px;
  object-fit: cover;
}

.biblio-container .biblio-slider-scrollbar {
  height: 24px;
  width: 100%;
  display: flex;
  align-items: center;
}

.biblio-slider-scrollbar .biblio-scrollbar-track {
  background: #ccc;
  width: 100%;
  height: 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  position: relative;
}

.biblio-slider-scrollbar:hover .biblio-scrollbar-track {
  height: 4px;
}

.biblio-slider-scrollbar .biblio-scrollbar-thumb {
  position: absolute;
  background: #000;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  cursor: grab;
  border-radius: inherit;
}

.biblio-slider-scrollbar .biblio-scrollbar-thumb:active {
  cursor: grabbing;
  height: 8px;
  top: -2px;
}

.biblio-slider-scrollbar .biblio-scrollbar-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
}

/* Estilos para la galería */
.biblio-gallery h2 {
  color: #32398e;
  font-weight: bold;
  padding: 30px;
  text-align: center;
  margin-bottom: 0;
}

/* BOTON */

.biblio-gallery {
  text-align: center; /* Centrar contenido */
}

.biblio-gallery a {
  display: inline-block; /* Permite ajustar el ancho al contenido */
  text-decoration: none; /* Sin subrayado */
}

.biblio-gallery-button {
  margin-top: 20px;
  margin-bottom: 70px;
  background-color: #32398e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap; /* Evitar que el texto se divida en varias líneas */
}

.biblio-gallery-button:hover {
  background-color: #f07d06;
}

/* PROGRAMAS*/
/* Estilos generales */
.seccion_programas {
  text-align: center;
  padding: 10px 0;
  margin-bottom: 100px;
}

.seccion_programas h2 {
  color: #32398e;
  font-weight: bold;
  padding: 0;
  margin: 0;
  text-align: center;
}

.programas-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 auto;
  max-width: 70%;
}

.programas-item {
  flex: 0 1 calc(20% - 10px);
  margin: 1px;
}

.programas-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  padding: 5px;
  background-color: #fff;
}

/* ENTIDADES */
.support-entities {
  text-align: center;
  padding: 10px 0;
}

.support-entities h3 {
  color: #32398e;
  font-weight: bold;
  padding: 0; /* Reducir padding para menos espacio */
  margin: 0;
  text-align: center;
}

.entities-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px; /* Ajusta el espacio entre las imágenes */
  margin-top: 0; /* Eliminar margen superior */
  padding-top: 0; /* Eliminar padding superior */
  margin: 0 auto;
  max-width: 70%;
}

.entity-item {
  flex: 0 1 90px; /* Ajusta el tamaño del contenedor de las imágenes */
  margin: 1px;
}

.entity-item img {
  width: 120px; /* Ajusta la anchura según sea necesario */
  height: 120px; /* Mantén las imágenes cuadradas */
  object-fit: contain;
  padding: 5px;
  background-color: #fff;
}

/* BOTON DESPLAZAMIENTO */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f07d06;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  display: none; /* Ocultar el botón inicialmente */
}

.scroll-top:hover {
  opacity: 1;
}

.scroll-top:focus {
  outline: none;
}

/* Estilos para pantallas grandes */
@media (max-width: 1270px) {

  .carousel-indicators {
    bottom: 10vh; /* Ajuste de la posición de los indicadores */
  }

  .carousel-indicators li {
    width: 1.2rem;
    height: 1.2rem;
  }

  .video-container iframe {
    width: 50%;
    height: 50vh; /* Mantener más ancho que alto */
  }

  .video-text-container {
    flex-direction: row;
    text-align: left;
  }

  .video-text {
    width: 60%;
  }

  .cifras_biblio {
    text-align: center;
    padding: 20px 0;
  }

  .cifras_biblio_text{
    font-size: 1.2em;
  }

  .container_noticias {
    max-width: 85%;
  }

  .card {
    max-width: 90%;
  }

  .card-body h5 {
    font-size: 1em;
  }

  .card-body p {
    font-size: 0.7em;
  }
}

@media (max-width: 1100px) {
  .container_noticias {
    max-width: 90%;
  }
}

/* Media query para pantallas menores a 1024px */
@media (max-width: 1024px) {
  .cifras_biblio_wrapper {
    width: 85%;
  }
  .cifras_biblio_container {
    width: 26vmin;
    height: 26vmin;
    font-size: 12px;
  }
}

/* Estilos para mobile y tablets */
@media only screen and (max-width: 1023px) {
  .biblio-slider-wrapper .biblio-slide-button {
    display: none !important;
  }
  .biblio-slider-wrapper .biblio-image-list {
    gap: 10px;
    margin-bottom: 15px;
    scroll-snap-type: x mandatory;
  }
  .biblio-slider-wrapper .biblio-image-item {
    width: 280px;
    height: 380px;
  }
  .biblio-slider-scrollbar .biblio-scrollbar-thumb {
    width: 20%;
  }
}

@media (max-width: 999px) {
  .card-body p.card-text {
    display: none;
  }

  .section-ver-mas {
    font-size: 0.7rem;
  }
}

@media (max-width: 830px) {
  .container_noticias {
    max-width: 100%;
    padding: 0 15px;
  }

  .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .col-md-4 {
    display: none; /* Oculta todas las tarjetas */
  }

  .col-md-4:first-child {
    display: block; /* Muestra solo la primera tarjeta */
    max-width: 100%;
    margin-bottom: 15px; /* Espacio entre las tarjetas */
  }

  .card {
    max-width: 100%;
  }

  .card-body {
    padding: 10px;
  }

  .card-body h5 {
    font-size: 0.9em;
  }

  .card-body p {
    font-size: 0.8em;
  }
}

/* Estilos para pantallas medianas */
@media (max-width: 807px) {
  .card {
    max-width: 100%;
  }

  .card-body {
    padding: 10px;
  }

  .card-body h5 {
    font-size: 0.9em;
  }

  .card-body p {
    font-size: 0.8em;
  }
}

/* Estilos para pantallas medianas (779px a 1268px) */
@media (max-width: 780px) {

  .carousel-indicators {
    bottom: 7vh; /* Ajuste de la posición de los indicadores */
  }

  .carousel-indicators li {
    width: 1rem;
    height: 1rem;
  }

  .video-container iframe {
    width: 50%;
    height: 35vh; /* Mantener más ancho que alto */
  }

  .video-text-container {
    flex-direction: column;
    text-align: center;
  }

  .video-text {
    font-size: 14px;
    width: 80%;
    border-left: none;
  }

  .programas-item {
    flex: 0 1 calc(25% - 10px); /* Ajustar el ancho para mostrar más columnas */
  }

  .programas-item img {
    width: 100px; /* Reducir el tamaño de las imágenes */
    height: 100px;
  }

  .seccion_programas {
    margin-bottom: 30px;
  }

  .entity-item {
    flex: 0 1 70px; /* Ajustar el tamaño del contenedor de las imágenes */
  }

  .entity-item img {
    width: 90px; /* Reducir el tamaño de las imágenes */
    height: 90px;
  }
}

/* Media query para pantallas menores a 768px */
@media (max-width: 768px) {
  .cifras_biblio_wrapper {
    width: 90%;
    flex-wrap: wrap;
    gap: 30px;
  }
  .cifras_biblio_container {
    width: calc(50% - 40px);
    height: 30vmin;
    font-size: 14px;
  }

  .container_noticias {
    max-width: 60%;
    padding: 0 15px;
  }

  .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .col-md-4 {
    display: none; /* Oculta todas las tarjetas */
  }

  .col-md-4:first-child {
    display: block; /* Muestra solo la primera tarjeta */
    max-width: 100%;
    margin-bottom: 15px; /* Espacio entre las tarjetas */
  }

  .card {
    max-width: 100%;
  }

  .card-body {
    padding: 10px;
  }

  .card-body h5 {
    font-size: 0.9em;
  }

  .card-body p {
    font-size: 0.8em;
  }
}

@media (max-width: 600px) {

  .entity-item img {
    width: 75px; /* Reducir el tamaño de las imágenes */
    height: 75px;
  }

  .container_noticias {
    max-width: 70%;
  }

}

/* Estilos para pantallas muy pequeñas*/
@media (max-width: 501px) {
  .carousel-indicators {
    bottom: 3vh; /* Ajuste de la posición de los indicadores */
  }

  .carousel-indicators li {
    width: 0.6rem;
    height: 0.6rem;
  }

  .video-container iframe {
    width: 70%;
    height: 30vh; /* Mantener más ancho que alto */
  }

  .video-text-container {
    flex-direction: column;
    text-align: center;
  }

  .video-text {
    width: 90%;
    font-size: 13px; /* Reducir tamaño de fuente para pantallas pequeñas */
  }

  .hashtag {
    font-size: 0.9rem; /* Reducir tamaño de fuente para el hashtag */
  }

  .programas-item {
    flex: 0 1 calc(33.33% - 10px); /* Ajustar el ancho para mostrar más columnas */
  }

  .programas-item img {
    width: 80px; /* Reducir el tamaño de las imágenes */
    height: 80px;
  }

  .entity-item {
    flex: 0 1 50px; /* Ajustar el tamaño del contenedor de las imágenes */
  }

  .entity-item img {
    width: 60px; /* Reducir aún más el tamaño de las imágenes */
    height: 60px;
  }

  .container_noticias h2 {
    width: 100%; /* Asegurarse de que el h2 ocupe el ancho completo */
    padding-left: 0;
    text-align: center; /* Centrar el texto dentro del h2 */
  }

  .container_noticias {
    max-width: 80%;
  }

}

/* Media query para pantallas menores a 480px */
@media (max-width: 480px) {
  .cifras_biblio_wrapper {
    gap: 20px; /* Elimina el espacio entre los contenedores */
  }

  .cifras_biblio_container {
    width: 100%;
    height: auto;
    font-size: 8px;
    padding: 0; /* Elimina padding adicional */
  }

  .cifras_biblio_icon {
    margin-bottom: 0.1em; /* Espacio mínimo debajo del ícono */
  }

  .cifras_biblio_num {
    margin-bottom: 0.05em; /* Reduce el espacio entre el número y el texto */
  }

  .cifras_biblio_text {
    font-size: 1.3em;
    margin: 0; /* Elimina cualquier margen extra */
  }

  .container_noticias h2 {
    width: 100%; /* Asegurarse de que el h2 ocupe el ancho completo */
    padding-left: 0;
    text-align: center; /* Centrar el texto dentro del h2 */
  }

  .container_noticias {
    max-width: 80%;
  }

  .cifras_biblio {
    padding: 10px 0;
  }
}


@media (max-width: 398px) {

  .entity-item img {
    width: 55px; /* Reducir el tamaño de las imágenes */
    height: 55px;
  }

  .container_noticias {
    max-width: 80%;
  }

}

