.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .gallery-item {
    position: relative;
    width: 300px;
    height: 450px;
    margin: 20px;
    text-align: center;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
  }

  .gallery-item img:hover {
    filter: blur(5px);
  }
  
  .gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1em;
    color: white;
    transition: all 0.3s ease;
  }
  
  .gallery-item-overlay > * {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-item-title {
    opacity: 1 !important;
  }
  
  /* HOVER: Mostrar todos los elementos */
  .gallery-item:hover .gallery-item-overlay > * {
    opacity: 1;
  }  
  
  .gallery-item-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .gallery-item-desc {
    color: #fff;
  }
  
  .gallery-item-estado-retirado {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
    padding: 5px 10px;
    margin-top: 10px;
    background-color: #7a0c00;
    border-radius: 20px;
  }

  .gallery-item-estado-destruido {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
    padding: 5px 10px;
    margin-top: 10px;
    background-color: red;
    border-radius: 20px;
  }
  
  .gallery-item-estado-activo {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
    padding: 5px 10px;
    margin-top: 10px;
    background-color: green;
    border-radius: 20px;
  }
  
  .gallery-item-button {
    border-radius: 15px;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .gallery-item-button:hover {
      color: #fff;
    background-color: #555;
  }

  .oculto {
    display: none;
    transition: all 0.5s ease-in-out;
  }
  

  .searchInput{
    background-color: rgba(0, 0, 0, 0.6);
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 15px;
    display: block;
    margin-bottom: 5px;
    color: white;
    transition: all 0.3s ease-in-out;
  }

  .searchInput:hover, .searchInput:focus{
    border-radius: 25px;
    border: 1px solid #fff;
  }

  .searchInput::placeholder{
    color: white;
  }

  .filtros {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Para que se acomode bien en pantallas pequeñas */
  }
  
  .filtro-estado {
    display: flex;
    flex-direction: column;
    color: white;
    font-family: inherit;
  }
  
  .filtro-estado label {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .filtro-estado select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 150px;
    transition: all 0.3s ease-in-out;
  }
  
  .filtro-estado select:hover,
  .filtro-estado select:focus {
    border-color: white;
    border-radius: 15px;
  }
  

    /* Modal por defecto oculto */
.modal.oculto {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
/* Estilos del modal */
.modal-content {
  background-color: #f5f5f5;
  padding: 2rem;
  max-width: 700px;
  width: 85%;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transition: transform 0.3s ease-out;
  text-align: center;
}

/* Título del modal */
.modal-content h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1.2rem;
  text-align: center;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}

/* Lista de vuelos */
#modal-vuelos {
  list-style-type: none;
  padding: 0;
  margin-top: 1rem;
}

#modal-vuelos li {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

#modal-vuelos li:hover {
  transform: translateY(-4px);
}

#modal-vuelos li a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

#modal-vuelos li a:hover {
  color: #0056b3;
}

/* Botón de cerrar */
.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #d9534f;
}

#modal-vuelos li {
  color: #333;
}

/* Estilo cuando no hay vuelos */
#modal-vuelos li.empty-message {
  text-align: center;
  color: #888;
  font-style: italic;
  font-size: 1.1rem;
}

/* Estilo de los enlaces dentro de cada vuelo */
#modal-vuelos li strong {
  color: #333;
  font-weight: 600;
}


/* Diseño responsive */
@media (max-width: 768px) {

  .searchInput {
    width: 75%;
  }

  .gallery-item-overlay > *{
    opacity: 1;
  }

  .modal-content {
    width: 75%;
    padding: 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }

  #modal-vuelos li {
    font-size: 1rem;
    padding: 0.8rem;
  }
}
