body {
  background-color: #050424;
  color: white;
  font-family: 'Josefin Sans', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.grid-servicios {
  margin-top: 110px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  gap: 30px;
  flex: 1;
}

.tarjeta {
  width: 600px;
  height: 320px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}

.tarjeta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.tarjeta>* {
  position: relative;
  z-index: 1;
}

.contenido {
  bottom: 0;
  width: 100%;
  transition: transform 0.7s ease;
  z-index: 1;
}

.contenido i {
  font-size: 2em;
  margin-bottom: 10px;
  margin-top: 130px;
  color: #00aeff;
  display: block;
  text-align: center;
  padding-top: 5px;
}

.contenido h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6em;
  text-align: center;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.contenido ul {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 20px;
  transition: opacity 0.4s ease, max-height 0.4s ease;

  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;

}

.tarjeta:hover .contenido {
  transform: translateY(-90px);
}

.tarjeta:hover .contenido ul {
  opacity: 1;
  max-height: 400px;
}

.contenido li {
  font-size: 1.2em !important;
  margin-bottom: 6px;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.2);
}

.fondo-monitoreo {
  background-image: url('../images/63.jpg');
}

.fondo-telefonia {
  background-image: url('../images/17.jpg');
}

.fondo-acceso {
  background-image: url('../images/84.jpg');
}

.fondo-infraestructura {
  background-image: url('../images/79.jpg');
}

.fondo-enlaces {
  background-image: url('../images/58.jpg');
}

@media (max-width: 1656px) {
  .grid-servicios {
    height: auto;
    padding-bottom: 50px;
  }

  .tarjeta {
    width: 48%;
  }
}

@media (max-width: 1024px) {
  .tarjeta {
    width: 90%;
  }

  .contenido i {
    margin-top: 120px;
  }

  .contenido li{
    font-size: 1em !important;
  }

  .contenido h3{
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .grid-servicios {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .tarjeta {
    width: 95%;
    height: auto;
  }

  .contenido {
    transform: translateY(0) !important; /* Evita que suba en hover */
  }

  .contenido ul {
    opacity: 1;
    max-height: 1000px; 
    padding: 10px;
  }

  .tarjeta:hover .contenido {
    transform: none;
  }

  .tarjeta:hover .contenido ul {
    opacity: 1;
    max-height: 1000px;
  }

  .contenido li{
    font-size: 1em !important;
  }
}

