.info-congreso {
  width: 60%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}

.info-congreso > div {
  flex: 1 1 50%;
  min-width: 190px;
  max-width: 50%;
  box-sizing: border-box;
  padding: 2rem;
  padding-top: 0rem;
  text-align: center;
  font-size: clamp(1rem, 1.3vw, 2rem);
}

.info-congreso h2 {
  font-size: clamp(1.1rem, 2vw, 4rem);
}

.info-congreso img {
  width: 25vw;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1rem auto;
}

.video-congreso {
  position: relative;
  width: 100%;
  max-width: 12vw;    /* ajustar según diseño */
  margin: 0 auto;
  aspect-ratio: 9 / 16; /* portrait */
  background: #000;
  overflow: hidden;
  display: block;
}

.video-congreso video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain; /* evita recortar; usa 'cover' si quieres rellenar */
  background: #000;
}

.buttonInfo {
  background-color: #ffde59;
  border-radius: 50px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  padding: 10px 15px;
  display: flex;
  align-items: center;    /* centra verticalmente */
  justify-content: center;
  text-align: center;
  transition: 200ms;
  box-sizing: border-box;
  border: 0;
  font-size: 25px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  text-decoration: none;
  margin: 1vh;
  width: 15vw;
  height: 9vh;
}

.buttonInfo:hover {
    background-color: #afafaf; /* Elige el color que prefieras */
    color: #000; /* Opcional: cambia el color del texto si lo necesitas */
}

@media (max-width: 900px) {
  .info-congreso > div {
  padding: 0rem;
  text-align: center;
}
.info-congreso > div > h2{
  margin-bottom: 0px;
}
.video-congreso {
    max-width: 40vw;       /* ajusta para que quepa en pantalla */
    aspect-ratio: 9 / 16;
  }
.info-congreso img {
  width: 20vw;
  max-width: 100%;
  height: auto;
  margin-top: 2vh;
}
.buttonInfo {
    font-size: clamp(0.7rem, 2vw, 2rem);
    margin: 5vh auto;
  }
}