/* === Estilos generales del directorio === */
.card-img-top {
  max-height: 120px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 10px;
  border-bottom: 1px solid #dee2e6;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 10px rgba(0, 0, 0, 0.1);
}
.card-title {
  font-weight: 700;
  color: #ffffff;
}
.directorio-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}
.text-a {
  color: #fff;
  background-color: #23295a;
}

/* === Contenedor de filtros === */
.filtros {
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #000000;
  margin-bottom: 2rem;
  border-color: 2px solid #23295a;
}

.filtros-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: flex-end;
}

.col-filtro {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.boton-col {
  max-width: 150px;
}

/* Estilo general de inputs y selects */
.filtros label,
.form-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #23295a;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Input de búsqueda */
#busqueda-afiliados:focus,
#filtro-puesto:focus {
  border-color: #23295a;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

/* Select */
#filtro-puesto {
  background-color: #fff;
}

/* Botón */
#boton-limpiar {
  border-radius: 8px;
  border: 1px solid #23295a;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #fff;
}

#boton-limpiar:hover {
  background-color: #23295a;
  color: #fff;
  border-color: #23295a;
}

/* === Tarjetas === */
.card-a {
  background-color: #23295a;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: none;
  color: #fff;
  overflow: hidden;
}
.card-a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}
.card-img-top-a {
  width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    border: 2px solid #23295a;
    border-radius: 20px;
}
.card-body-a {
  padding: 1rem;
  text-align: center;
}
.card-title-a {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}
.card-text-a {
  font-size: 0.95rem;
  color: #ddd;
}
.card-text-a strong {
  color: #f0f0f5;
}

/* === Sin resultados === */
#mensaje-sin-resultados {
  font-size: 1.1rem;
  color: #741010;
  text-align: center;
  margin: 2rem 0;
}

/* === Animaciones === */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animacion-grid > div:nth-child(1) .animate-fade-up { animation-delay: 0s; }
.animacion-grid > div:nth-child(2) .animate-fade-up { animation-delay: 0.1s; }
.animacion-grid > div:nth-child(3) .animate-fade-up { animation-delay: 0.2s; }

/* === Responsive === */
@media (max-width: 768px) {
  .card-img-top-a {
    height: 150px;
  }
  .filtros-row {
    flex-direction: column;
  }
  .boton-col {
    max-width: 100%;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-title {
  animation: fadeInUp 1s ease-out;
}

