.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

footer img {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer img:hover {
  opacity: 1;
}

/* Estilos para imágenes en página principal */
.img-fluid.rounded {
  border: 1px solid #eaeaea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-fluid.rounded:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Estilos para tarjetas de servicios */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-title {
  color: #006d77;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

th a.text-dark:hover {
  color: #0d6efd !important;
  text-decoration: underline !important;
}

.sort-icon {
  display: inline-block;
  margin-left: 5px;
  font-weight: bold;
  transition: transform 0.2s;
}

th a:hover .sort-icon {
  opacity: 0.7;
}

/* Estilo para el encabezado actualmente ordenado */
th a.active-sort {
  font-weight: bold;
  color: #0d6efd !important;
}

/* Animación sutil al ordenar */
.table-hover tbody tr {
  transition: background-color 0.2s;
}

/* Mejora de la apariencia de la tabla en dispositivos móviles */
@media (max-width: 767.98px) {
  .table-responsive {
    border: 0;
  }

  .table-responsive .table {
    margin-bottom: 0;
  }

  .table-responsive th,
  .table-responsive td {
    white-space: nowrap;
  }
}