h1 {
  display: none;
}

.seccion__congresos {
  width: 100%;
  height: auto;
  min-height: clamp(60dvh, 80vh, 100dvh); /* Altura legible y adaptable */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: clamp(2dvh, 4dvh, 6dvh); /* Espaciado vertical adaptable */
  box-sizing: border-box;
  margin-bottom: clamp(2rem, 6dvh, 5rem); /* Espaciado inferior adaptable */
  background: linear-gradient(transparent, #113b8a99, #021840);
}

main {
  position: relative;
}

/* Fondo base desenfocado */
.fondo-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #ffffff88, #113b8a99);
  backdrop-filter: blur(20px);
  z-index: 0;
}

.contenedor__congresos {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 90vw;
  height: 100%;
  max-height: 80dvh;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  /**/
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lista__congresos {
  display: flex;
  flex-direction: row;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  flex-grow: 1;
}

.item__congreso {
  display: block;
  align-items: center;
  justify-content: center;
  position: relative;
  width: clamp(100px, 10dvw, 160px); /* Adaptable al tamaño de pantalla */
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  float: left;
  flex-grow: 1;
}

.contenedor__congresos ul:hover li {
  width: 60px;
  filter: brightness(50%);
}

.contenedor__congresos ul li:hover {
  width: 100%;
  filter: brightness(100%);
}

.contenedor__img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 100%; /* Que ocupe todo el ancho disponible */
  height: 100%; /* Que se ajuste al alto del contenedor padre */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/*Imagenes de fondo*/
.contenedor__img--congreso-1 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/1er-congreso.png);
}

.contenedor__img--congreso-3 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/3er-congreso.png);
}
.contenedor__img--congreso-4 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/4TOCONGRESO.png);
}
.contenedor__img--congreso-5 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/5TOCONGRESO.png);
}
.contenedor__img--congreso-6 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/6-congreso.jpg);
}
.contenedor__img--congreso-7 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/7-congreso.jpg);
}
.contenedor__img--congreso-8 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/8VOCONGRESO.png);
}
.contenedor__img--congreso-9 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/9-congreso.jpg);
}
.contenedor__img--congreso-10 {
  background-image: url(../../IMG/congresos/CONGRESOS-PORTADA/10-congreso.jpg);
}

/* Botón base */
.btn-ver-galeria {
  padding: clamp(0.8rem, 2dvh, 1.5rem) clamp(2rem, 5dvw, 5rem);
  margin: clamp(0.5rem, 2dvh, 1rem);
  background-color: #113b8a;
  color: white;
  border-radius: 0.75rem;
  text-decoration: none;
  font-size: clamp(1rem, 2dvw, 1.2rem);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  scroll-behavior: smooth;
}

.contenedor__img:hover .btn-ver-galeria {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-ver-galeria:hover {
  background-color: #2959b2;
}
