/* Estilos básicos */

.portfolio {
  margin: 0 auto;
  max-width: 1000px;
  min-height: 400px;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 110px;
}

.item {
  width: 300px;
  height: 200px;
  margin: 10px;
  position: relative;
  transition: transform 0.3s ease; /* Animación de escala */
}

.item img {
  border-radius: 5px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  border-radius: 5px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 10, 49, 0.9);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overlay:hover {
  opacity: 1;
}

.overlay h3 {
  margin-bottom: 5px;
}

.description {
  margin: 0 0 5px 0;
  height:min-content;
  
  text-align: center;
  padding: 0 20px;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.overlay:hover .description {
  opacity: 1;
}

.buttons {
  margin: 0px;  
  padding: 10px;
  
}

.btn-more,
.btn-preview {
  text-decoration: none;
  border-radius: 15px;
  font-size: 16px;
  margin: 5px;
  padding: 6px 12px;
  background-color: #00a7e1;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.5s;
}

.btn-more:hover,
.btn-preview:hover {
  background-color: #9747ff;
}

/* Estilos para los filtros */
.filters {
  text-align: center;
  margin-bottom: 20px;
  position: relative; /* o absolute o fixed */
  z-index: 1;
}

.filter-btn {
  border-radius: 20px;
  z-index: 2;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  margin: 10px;
  padding: 6px 12px;
  background-color: #fff;
  color: #9747ff;
  border: 1px solid #9747ff;
  cursor: pointer;
  transition: 0.5s;
}

.filter-btn:hover {
  background-color: #00a7e1;
  color: #fff;
  border: 1px solid #00a7e1;
}

.filter-btn.active {
  border: none;
  background-color: #9747ff;
  color: #fff;
}

/* ANimaciones */
.scale-animation {
  transform: scale(0.5); /* Escalar al 110% */
}

/* Estilos para el pop-up */
#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 60%;
  background-color: white;
  border: 2px solid black;
  overflow-y: auto; /* Habilitar desplazamiento vertical */
  padding: 20px;
  z-index: 9999; /* Para asegurarse de que esté delante de otros elementos */
}

/* Estilos para el iframe */

   /* Estilos para las ventanas emergentes */
   .modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition:0.3s ease; /* Transiciones de opacidad y transformación */
}

.modal.show {
    opacity: 1;

}

.modal-content {
    background-color: #fefefe;
    padding: 0;
    border: 1px solid #888;
    width: 60%;
    height: 80%;
    overflow: auto;
    position: relative;
    border-radius: 10px;

}


.close {
    color: #541d83;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    cursor: pointer;
    
}

.close:hover {
    color:  #00A7E1;
}

/* Estilos para los botones */
button {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
}
.info-content {
  width: 100%;
  height: 99%;
}

@media screen and (max-width: 1300px) {
  .modal-content {
    width: 80%;
  }
}

@media screen and (max-width: 950px) {
  .portfolio {
    justify-content: center;
  }

  .modal-content {
    width: 90%;
  }
}
