@import url('https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css');

.contenedor_cards {
  width: 100%;
  margin: 1rem auto;
  padding: 0;
  font-size: 0;
  text-align: center;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tarjeta_iconos_posgrados {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: 180px;
  font-size: 1rem;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s;

  /*overflow: hidden;
  box-shadow: 0 0 3rem -1rem rgba(0, 0, 0, 0.5);
  */
}

.imagen_tarjeta {
  background: #fff;
  width: 250px;
  height: 250px;
}

.imagen_tarjeta>img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.contenedor_cards_elegirnos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: .5rem auto;
  padding: 0;
  font-size: 0;
  text-align: center;
  flex-wrap: wrap;
}


.tarjeta {
  display: inline-block;
  width: 100%;
  max-width: 30rem;
  margin: 1rem;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 3rem -1rem rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease-in-out, box-shadow 0.1s;
}

.tarjeta:hover {
  transform: translateY(-0.5rem) scale(1.0125);
  box-shadow: 0 0.5em 3rem -1rem rgba(0, 0, 0, 0.5);
}


.tarjeta_iconos_posgrados:hover {
  transform: translateY(-0.5rem) scale(1.0125);
  /*box-shadow: 0 0.5em 3rem -1rem rgba(0, 0, 0, 0.5);*/
}


.imagen_tarjeta_elegirnos {
  display: block;
  background: #fff;
  width: 100px;
  text-decoration: none;
  color: black;
}

.imagen_tarjeta_elegirnos>img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  padding-top: 20px;
}


.descripcion_tarjeta {
  display: block;
  padding: 1em 0.5em;
  color: #515151;
  text-decoration: none;
}

.descripcion_tarjeta>h2 {
  margin: 0 0 0.5em;
}

.descripcion_tarjeta>p {
  margin: 0;
}

/* ESTILOS MODAL */
.ventana_modal {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  overflow-y: auto;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.ventana_modal:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.ventana_modal>div {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 90%;
  width: 100%;
  max-height: 90%;

  /* 	overflow-y: auto; */

  background: #f5f5f5;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}

.encabezado_modal {
  width: 100%;
  height: 20%;
  overflow: hidden;
  margin: 20px 0;
}

/*
.encabezado_modal img {
  width: 100%;
  height: 300px;
  overflow: hidden;
  object-fit: cover;
  object-position: center bottom;
  aspect-ratio: 16/9;
}*/

h2 {
  font-size: 150%;
  margin: 0 0 15px;
}

.btn_cerrar {
  color: #fff;
  background-color: #f03636;
  padding: 0 20px;
  line-height: 50px;
  font-size: 80%;
  position: absolute;
  right: 0;
  top: 0;
  text-align: center;

  text-decoration: none;
}

.informacion {
  color: #fff;
  background-color: #f03636;
  border-radius: 10px;
  text-decoration: none;
  padding: 10px 20px;
}



/*ESTILOS MODAL PEQUEÑO*/

.ventana_modal_small {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  overflow-y: auto;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.ventana_modal_small:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}


.ventana_modal_small>div {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 90%;
  width: 50%;
  max-height: 90%;

  /* 	overflow-y: auto; */

  background: #f5f5f5;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}