/* Sección de introducción */
.intro-servicios {
  text-align: center;
  margin-bottom: 40px;
}

.intro-servicios h2 {
  position: relative;
  display: inline-block;
}

.intro-servicios h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 3px;
  background-color: #333;
  border-radius: 5px;
}

.intro-servicios p {
  font-size: 1.2rem;
  color: #555;
}

/* Títulos */
.servicios-titulo {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.servicios-titulo::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 20px;
  background-color: #333;
  border-radius: 3px;
}

.servicio-item .icon {
  color: black;
  font-size: 3rem;
  margin-bottom: 15px;
}
/* Lista de servicios */
.servicios-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.servicio-item {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  flex: 1 1 250px; /* Ancho fijo mínimo */
  max-width: 250px; /* Ancho fijo máximo */
  height: 350px; /* Altura fija */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-item:hover .icon {
  color: #007bff; /* Cambia a un azul corporativo o un color llamativo */
}
.servicio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border-color: #333; /* Cambia el color del borde */
  background-color: #ffffff; /* Fondo más claro al pasar el cursor */
}

.servicio-item h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2px;
  text-transform: uppercase;
}

/* Descripción de los servicios */
.servicio-item p {
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}
/* Ajustes responsivos */
@media (max-width: 768px) {
  .servicio-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .servicio-item {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* Imagen de los servicios */
.servicio-item .servicio-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fondo para las secciones */
.servicios-legales {
  background-color: #f7f7f7;
  padding: 40px 20px;
  border-radius: 15px;
}

.servicios-contables {
  background-color: #ffffff;
  padding: 40px 20px;
  border-radius: 15px;
}

.servicio-item:hover .servicio-img {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

hr {
  border: none;
  height: 2px;
  background-color: black;
  margin: 10px 0;
}
