.section {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.seccion--inicio {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: auto;
  gap: 2rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.contenedor {
  box-sizing: border-box;
  width: 100%;
  height: auto;
}
/*contenedor animacion*/
.contenedor--animacion-js {
  position: relative;
  height: 500px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0px 20px 20px 10px rgba(0, 0, 0, 0.088);
}

.contenedor--animacion-js .imagen {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease-in-out;
  z-index: 0;
  border-radius: 0.5rem;
}

.contenedor--animacion-js .imagen.visible {
  opacity: 1;
  z-index: 1;
  border-radius: 0.5rem;
}

/*Contenedor de comites*/
.contenedor--comites {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  flex-grow: 1;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  border-radius: 0.5rem;
}
/*lista de comites*/
.lista__comites {
  display: flex;
  flex-direction: row;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  flex-grow: 1;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 2rem;
}
/*item lista*/
.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--comites ul li {
  transition: filter 0.3s ease-in-out;
}

.contenedor--comites ul:hover li {
  filter: brightness(70%);
}

.contenedor--comites ul li:hover {
  filter: brightness(100%);
}

.contenedor--comite {
  display: flex;
  flex-direction: column-reverse;
  direction: ltr;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 13rem;
  height: 13rem;
  position: relative;
  transition: filter 0.3s ease;
}

.contenedor--actAcademicas {
  background-image: url(../../IMG/comites-portada/COMITE_ACTIVIDADES_ACADEMICAS.PNG);
}

.contenedor--eventoSociales {
  background-image: url(../../IMG/comites-portada/COMITE_EVENTOS_SOCIALES.PNG);
}
.contenedor--deporte {
  background-image: url(../../IMG/comites-portada/COMITE_DEPORTE_SALUD.PNG);
}
.contenedor--actCulturales {
  background-image: url(../../IMG/comites-portada/COMITE_ACTIVIDADES_CULTURALES.PNG);
}
.contenedor--actComunitarias {
  background-image: url(../../IMG/comites-portada/COMITE_ACTIVIDADES_COMUNITARIAS.PNG);
}

.btn-ver-comite {
  padding: 1rem;
  background-color: #113b8a;
  text-align: center;
  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;
  display: block;
}

/* Mostrar botón solo en hover del contenedor */
.contenedor--comite:hover .btn-ver-comite {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

@media screen and (max-width: 680px) {
  .contenedor--animacion-js {
    height: 300px;
  }
}
