.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
/* ----------------------- CARDS SERVICIOS -----------------------------*/    
.service-card {
  background-color: #bdc3d3f5;
  border-radius: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  border: 2px solid #8f8e8e;
  color: #333;
  transition: all 0.5s;
  position : relative;
  height: 330px;
  overflow: hidden;
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente */
  max-width: 310px;
}
.service-card:active {
  transform: scale(0.95) rotateZ(1.7deg);
}

.service-card img{
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  transition: all 0.8s ease;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  color: #ffffff;
  margin: 10px 8px;
  text-align: end;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 100%;
  position: absolute;
  align-self: flex-end;
  color: white;
  padding: 0 3px;
  transition: all 0.5s;
  right: 0;
  top: 225px;
  /* font-size: clamp(16px, 280px, 35px); */
}
.service-card p {
  opacity: 0;
  font-size: 23px;
  margin: 5px 10px;
  background-color: rgba(0, 0, 0, 0.1); 
  height: 48%;
  text-align: center;      
  align-content: center;
  text-shadow: 0 0 6px#333 , 0 0 6px#333;
  border-radius: 6px;
  position: absolute;
  bottom: 0px;
  color: white;
  padding: 0 3px;
}

/* ----------------------- CARDS SERVICIOS HOVERABLE-----------------------------*/
  .service-card:hover {
    background: white;
    background: linear-gradient(50deg, #29297a52, #eaeaeea6);
    box-shadow: -3px 2px 20px rgba(0, 0, 0, 0.7);
    border: none;
    color: #333;
    height: 330px;
    display: flex;
    justify-content: start;
    align-items: flex-start;
  }
  
  .service-card:hover img{
    margin: 5px;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  }

  .service-card:hover h3 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: #d0ddf000 ;
    text-shadow: 2px 2px 2px#ffffff;
    color: #333;
    text-shadow: 0 0 5px #ffffff ,0 0 5px #ffffff;
    top: 10px;
    text-wrap: balance;
    font-size: 20px;
    width: 60%;
  }

  .service-card:hover p{
    animation: show-to-up 1s both;
  } 
  
/* ----------------------- FIN CARDS -----------------------------*/  
@keyframes show-to-up {
  0%{
    opacity: 0;
  }
  30%{
    opacity: 0;
    bottom: -5px;
  }
  100%{
    opacity: 1;
    bottom : 5px;
    position: absolute;
    color: #ffffff;
  }
}