h1 {
  text-align: center;
  color: #333;
}

#filters {
  text-align: center;
  margin-bottom: 20px;
}

button {
  background-color: #000000;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover,
button.active {
  background-color: #ffffff; /* Un poco más claro que el negro para un ligero contraste */
  color: #000000; /* Mantener el texto blanco */
  box-shadow: 0 0 8px #000000,
    /* Brillo blanco interno */ 0 0 15px rgb(255, 255, 255),
    /* Brillo cian externo */ 0 0 20px rgb(255, 255, 255); /* Brillo cian más externo */
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 10px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
}

.item:hover {
  transform: translateY(-5px);
}

.item h3 {
  color: #333;
  margin-top: 0;
}

.item p {
  color: #666;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .item {
    width: 100%;
  }
}

/* Estilo por defecto (escritorio) */
#dropdown-filters {
  display: none;
}

@media screen and (max-width: 768px) {
  #filters {
    display: none;
  }

  #dropdown-filters {
    display: block;
  }

  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropbtn {
    background-color: #000000;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #000000;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .dropdown-content button {
    color: rgb(255, 255, 255);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
  }

  .dropdown-content button:hover {
    background-color: #f1f1f1;
    color: #000000;
  }

  .dropdown-content.show {
    display: block;
  }
}

/* Estilo para cargar CV */
.cv-upload-area {
  border: 2px dashed #ccc;
  border-radius: 20px;
  width: 100%; /* Ancho del 100% para ocupar todo el espacio disponible */
  height: 150px; /* Altura fija según tu preferencia */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cv-upload-area:hover {
  background-color: #f0f0f0;
}

.cv-upload-icon {
  font-size: 40px;
  margin-bottom: 5px;
}

.cv-upload-subtitle {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-top: 10px;
  text-align: center;
  margin-top: 10px;
}
.floating-label {
  position: relative;
  margin-bottom: 10px;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
}

.floating-label textarea {
  min-height: 100px;
  resize: vertical;
}

.floating-label label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  transition: all 0.2s ease-out;
  pointer-events: none;
  padding: 0 5px;
  background-color: white;
  font-size: 16px;
  color: #999;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]):valid + label {
  top: 0;
  font-size: 12px;
  color: #007bff;
}

.floating-label select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Ajuste para el label del textarea */
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 1px;
  font-size: 12px;
  color: #007bff;
}


.vacancy-header {
  text-align: center;
  margin-bottom: 15px;
}

.vacancy-footer {
  text-align: center;
  margin-bottom: 15px;
}

.item h4 {
  margin: 0;
}

.item .button {
  display: inline-block;
}