/* Diseño general */
.intro-oferta {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
}

.container-hospital .banner-bibliotecas {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limita la altura máxima a 500px */
  object-fit: cover; /* Mantiene el estilo de ajuste */
  max-width: 100%; /* Asegura que la imagen no exceda el ancho del contenedor */
  filter: brightness(60%); /* Hacer la imagen más oscura */
  display: block; /* Asegura que la imagen sea un bloque que ocupa todo el ancho */
}

/* SEPARACION */

.container-hospital .imagen-separacion-bibliotecas-container {
  position: relative;
  width: 100%;
  height: auto;
}

.container-hospital .imagen-separacion {
  width: 100%;
  display: block;
  margin: 0 auto;
  margin-top: 0.5vw;
  margin-bottom: 2vw;
  filter: brightness(40%); /* Hacer la imagen más oscura */
}

.container-hospital .titulo-separacion-bibliotecas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  border-bottom: 5px solid #f07d06; /* Línea debajo del título */
  display: inline-block;
  width: fit-content; /* Ajusta el ancho de la línea al contenido del texto */
  padding-left: 10px; /* Opcional: Agrega espacio a la izquierda de la línea */
  padding-right: 10px; /* Opcional: Agrega espacio a la derecha de la línea */
  white-space: nowrap; /* Evita que el texto haga salto de línea */
}

/* *************** */

.intro-oferta .texto-reseña {
  width: 60%;
  margin: 0 auto;
  text-align: justify;
  font-size: 1em;
  margin-bottom: 30px;
  margin-top: 50px;
}

.intro-oferta .texto-reseña p {
  margin-bottom: 20px;
  margin-top: 30px;
}

/* LINK */

.imagen-link {
  display: block;
  margin: 20px auto; /* Centra la imagen y añade espacio arriba y abajo */
  max-width: 50%; /* Asegura que no se salga de su contenedor */
  width: 30%;
  height: auto; /* Mantiene la proporción de la imagen */
  margin-bottom: 40px;
}

/* NUEVO */

.row {
  margin: 0 auto;
  text-align: center; /* Centrar contenido */
}

.card {
  box-shadow: rgba(0, 0, 0, 0.8) 0px 1px 2px 0px;
  margin: 0 auto 20px auto;
  width: 100%;
  margin-bottom: 4vw;
}

.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;
}

/* PARA QUE TODAS LAS IMG TENGAN EL MISMO TAMAÑO */
.card-img-top {
  width: 237px; /* Establecer el ancho */
  height: 158px; /* Establecer el alto */
  object-fit: cover; /* Mantener la proporción de la imagen */
}

.video-container {
  margin-top: 50px;
}

/* FORMULARIO */

.container_formulario h2 {
  color: #32398e;
  font-weight: bold;
  padding: 30px;
  text-align: center;
  margin-bottom: 0;
}

.container_formulario .descripcion_formulario{
  width: 60%;
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 30px;
  margin-top: 10px;
}

.contact-form-section {
  margin: 0 auto;
  width: 25%; /* Reduce el ancho de la sección */
  height: max-content;
  padding: 15px; /* Reduce el padding interno */
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); /* Reduce la sombra */
  margin-bottom: 60px;
}

.contact-form {
  
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 8px; /* Reduce el margen superior */
  font-weight: bold;
  font-size: 0.9em; /* Reduce el tamaño de la fuente */
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-top: 4px; /* Reduce el margen superior */
  padding: 8px; /* Reduce el padding interno */
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9em; /* Reduce el tamaño de la fuente */
}

.contact-form .form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px; /* Reduce el margen superior */
}

.contact-form button {
  padding: 8px 15px; /* Reduce el padding de los botones */
  border: none;
  border-radius: 15px; /* Reduce el borde redondeado */
  cursor: pointer;
  font-size: 0.9em; /* Reduce el tamaño de la fuente */
}

.contact-form button[type="submit"] {
  background-color: #32398e;
  color: white;
}

.contact-form button[type="submit"]:hover {
  background-color: #f07d06;
}

.contact-form button[type="reset"] {
  background-color: #32398e;
  color: white;
}

.contact-form button[type="reset"]:hover {
  background-color: #f07d06;
}

.campo-obligatorio {
  font-size: 0.8em;
  color: #32398e;
  margin-top: 5px; /* Espaciado entre el textarea y el texto */
}



/* PESTAÑAS CLASIFICACIÓN */
#filter-buttons button {
  border-radius: 3px;
  background: #fff;
  border: transparent;
  box-shadow: rgba(0, 0, 0, 0.8) 0px 1px 2px 0px;
}
#filter-buttons button:hover {
  background: #ddd;
}
#filter-buttons button.active {
  color: #fff;
  background: #32398e;
}
#filterable-cards .card {
  width: 15rem;
  border: 2px solid transparent;
}
#filterable-cards .card.hide {
  display: none;
}



@media (max-width: 1270px) {
  .video-container iframe {
    width: 50%;
    height: 50vh; /* Mantener más ancho que alto */
  }

  .contact-form-section {
    width: 40%;
    margin-top: 30px;
    margin-bottom: 60px;
  }
}

@media screen and (max-width: 1080px) {
  .container-hospital .titulo-separacion-bibliotecas {
    font-size: 2rem;
  }
}

@media screen and (max-width: 840px) {
  .container-hospital .titulo-separacion-bibliotecas {
    font-size: 1.8rem;
  }

  .container_formulario .descripcion_formulario{
    width: 80%;
    font-size: 0.9em;
  }
}

@media screen and (max-width: 780px) {
  .container-hospital .titulo-separacion-bibliotecas {
    font-size: 1.5rem;
  }

  .intro-oferta .texto-reseña {
    width: 80%;
    font-size: 0.9em;
  }

  .imagen-link {
    width: 40%;
  }

  .video-container iframe {
    width: 50%;
    height: 35vh; /* Mantener más ancho que alto */
  }

  .contact-form-section {
    width: 60%;
  }
}

@media screen and (max-width: 650px) {
  .container-hospital .titulo-separacion-bibliotecas {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  #filterable-cards {
    justify-content: center;
  }
  #filterable-cards .card {
    width: calc(80% / 1 - 10px);
  }
}

@media (max-width: 501px) {
  .intro-oferta h2 {
    font-size: 1.5em;
    width: 80%;
    margin: 0 auto;
    margin-top: 20px;
  }

  .container-hospital .titulo-separacion-bibliotecas {
    font-size: 1rem;
  }

  .intro-oferta .texto-reseña {
    width: 80%;
    font-size: 0.8em;
  }

  .imagen-link {
    width: 60%;
  }

  .video-container iframe {
    width: 70%;
    height: 30vh; /* Mantener más ancho que alto */
  }

  .container_formulario h2 {
    width: 100%;
    padding-left: 0;
    text-align: center;
  }

  .contact-form-section {
    width: 80%;
  }
}

@media screen and (max-width: 420px) {
  .container-hospital .titulo-separacion-bibliotecas {
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  #filter-buttons .btn {
    font-size: 0.8em; /* Ajusta este valor según el tamaño relativo que prefieras */
  }
}
