@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

:root {
  --primary-color: #ffffff;
  --hover-color: #4b0094c9;
  --accent-color: #c96ce5;
  --weigh-text: #3802b4;
  --transparent: rgba(255, 255, 255, 0.5);
  /*4b0094c9 5c00adb0 946ce5 3802b4*/
  --text-color: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  font-family: Arial, 'Segoe UI', sans-serif;
  color: var(--text-color);
  scroll-behavior: smooth;
  /*For bookmark links*/
}

/**MAIN CSS**/
.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  height: 20rem;
}

.text-container {
  max-width: 30rem;
  margin-right: 20px;
  text-align: center;
}

.logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo {
  width: 15rem;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6));
}

.logo-container:hover .logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.logo-text {
  margin-top: 10px;
  color: white;
  font-family: sans-serif;
}

/***NOSOTROS CSS***/
.nosotros-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  margin: 1em;
}

.nosotros-title {
  font-size: 2.5rem;
  margin: 2rem;
  text-align: center;
  color: var(--hover-color);
}

.nosotros-text {
  max-width: 60rem;
  text-align: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 20px;
}

.nosotros-cards {
  max-width: 60rem;
  text-align: center;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin: 20px; */
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 1em;
}

.tittle-cards {
  color: var(--weigh-text);
}

.icon-card {
  /* width: 8rem; */
  height: 5rem;
  margin: 20px;
  justify-content: center;
  align-items: center;
  /* border-radius: 50%; */
  /* background-color: var(--hover-color); */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-card:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.card-item {
  display: flex;
  justify-content: center !important;
  align-items: center;
  flex-direction: column;
  text-align: center !important;
  font-size: .8rem;
  background-color: rgb(249, 249, 249);
  box-shadow: #3802b4a3 0px 4px 10px;
  text-align: left;
  border-radius: 10px;
  padding: 20px;
  /* margin: 10px; */
  /* flex: 1 1 calc(25% - 20px); */
  transition: transform 0.3s;

  height: 11rem;
  width: 10.5rem !important;
}

.card-item:hover {
  transform: scale(1.05);
  box-shadow: #3802b4a3 0px 4px 20px;
  height: fit-content;
}

.card-item p {
  opacity: 0;
  /* max-height: 0; */
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.card-item:hover p {
  opacity: 1;

}

/***SERVICIOS CSS***/
.servicios-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  margin: 1em;
}

.servicios-title {
  font-size: 2.5rem;
  margin: 2rem;
  text-align: center;
  color: var(--hover-color);
}

.servicios-description {
  max-width: 60rem;
  text-align: center;
  justify-content: center;
  font-weight: bolder;
}

.servicios-content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  margin: 2em;
}

.servicio-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  text-align: center;
  margin: 20px;
  width: 30rem;
}

.text-serv {
  color: var(--text-color);
}

.servicio-item:hover .icon-servicios {
  transform: scale(1.05);
  box-shadow: #3802b4 0px 4px 20px;
  transition: all 0.3s ease;
  color: var(--hover-color);

}

.servicio-item:hover .text-serv {
  transform: scale(1.05);
  filter: #946ce5 0px 4px 20px;
  transition: all 0.3s ease;
  margin-left: 15px;
  color: var(--hover-color);

}

.icon-servicios {
  height: 6rem;
  margin: 10px;
  padding: 15px;
  justify-content: center;
  align-items: center;
  border-radius: 20%;
  background-color: #946ce5;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.servicios-text {
  display: flex;
  justify-content: center;
  /* align-items: start !important; */
  flex-direction: column;
  font-size: 1rem !important;
  text-align: start;
}

/***PROYECTOS CSS***/
.proyectos-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  /* margin: 2em; */
  background-color: #2d1c5e;
  box-shadow: #2d1c5e 0px 4px 20px;
  /* border-radius: 15%; */
}

.image-bg-code {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: url('../img/background-code.webp');
  background-size: cover;
  background-position: center;
}

.proyectos-title {
  font-size: 2.5rem;
  margin: 2rem;
  text-align: center;
  color: var(--primary-color);
}

.proyectos-content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  margin-bottom: 4em;
  height: auto;
  font-family: Arial, Helvetica, sans-serif !important;
}

.card-producto1 {
  width: 25rem;
  height: 25rem;

  /* position: absolute; */
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;

  background: url("../img/payfees.jpeg");
  background-color: black;
  background-size: cover;
  cursor: pointer;

  -webkit-box-shadow: 0 0 5px #000;
  box-shadow: 0 0 5px #000;
}

.card-producto2 {
  width: 25rem;
  height: 25rem;

  /* position: absolute; */
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;

  background: url("../img/qrymedica-1.webp");
  background-color: black;
  background-size: cover;
  cursor: pointer;

  -webkit-box-shadow: 0 0 5px #000;
  box-shadow: 0 0 5px #000;
}

.card-producto3 {
  width: 25rem;
  height: 25rem;

  /* position: absolute; */
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;

  background: url("../img/dms.png");
  background-color: black;
  background-size: cover;
  cursor: pointer;

  -webkit-box-shadow: 0 0 5px #000;
  box-shadow: 0 0 5px #000;
}

.card-producto4 {
  width: 400px;
  height: 400px;

  /* position: absolute; */
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;

  background: url("../img/dms.png");
  background-color: black;
  background-size: cover;
  cursor: pointer;

  -webkit-box-shadow: 0 0 5px #000;
  box-shadow: 0 0 5px #000;
}

.icon-logo {
  width: 3em;
  height: 3em;
  margin-right: .5em;
}

.icon-logo1 {
  width: 2.5em;
  height: 2.5em;
  margin-right: .5em;
}

.overlay {
  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 2fr 2fr 1fr;

  background: rgba(77, 77, 77, .9);
  /* color: $bg; */
  opacity: 0;
  transition: all 0.5s;

}


.items {
  padding-left: 20px;
  color: var(--primary-color);
  /* letter-spacing: 3px; */
}

.head {
  font-size: 30px;
  line-height: 40px;
  color: var(--primary-color);
  transform: translateY(40px);
  transition: all 0.7s;

  hr {
    display: block;
    width: 0;

    border: none;
    border-bottom: solid 2px;

    position: absolute;
    bottom: 0;
    left: 20px;

    transition: all .5s;
  }
}

.price {
  font-size: 22px;
  line-height: 10px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s;

  .old {
    text-decoration: line-through;
    color: lighten(rgb(77, 77, 77), 40%);
  }
}

.cart {
  font-size: 12px;
  opacity: 0;
  /* letter-spacing: 1px; */
  transform: translateY(40px);
  transition: all 0.7s;

  i {
    font-size: 16px;
  }

  span {
    margin-left: 10px;
  }
}

.card-producto1:hover .overlay {
  opacity: 1;

  & .head {
    transform: translateY(0px);
  }

  & hr {
    width: 75px;
    transition-delay: 0.4s;
  }

  & .price {
    transform: translateY(0px);
    transition-delay: 0.3s;
    opacity: 1;
  }

  & .cart {
    transform: translateY(0px);
    transition-delay: 0.6s;
    opacity: 1;
  }
}

.card-producto2:hover .overlay {
  opacity: 1;

  & .head {
    transform: translateY(0px);
  }

  & hr {
    width: 75px;
    transition-delay: 0.4s;
  }

  & .price {
    transform: translateY(0px);
    transition-delay: 0.3s;
    opacity: 1;
  }

  & .cart {
    transform: translateY(0px);
    transition-delay: 0.6s;
    opacity: 1;
  }
}

.card-producto3:hover .overlay {
  opacity: 1;

  & .head {
    transform: translateY(0px);
  }

  & hr {
    width: 75px;
    transition-delay: 0.4s;
  }

  & .price {
    transform: translateY(0px);
    transition-delay: 0.3s;
    opacity: 1;
  }

  & .cart {
    transform: translateY(0px);
    transition-delay: 0.6s;
    opacity: 1;
  }
}

.card-producto4:hover .overlay {
  opacity: 1;

  & .head {
    transform: translateY(0px);
  }

  & hr {
    width: 75px;
    transition-delay: 0.4s;
  }

  & .price {
    transform: translateY(0px);
    transition-delay: 0.3s;
    opacity: 1;
  }

  & .cart {
    transform: translateY(0px);
    transition-delay: 0.6s;
    opacity: 1;
  }
}

.link-text {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

/**RESPONSIVO**/

@media (max-width: 400px) {
  .main-container {
    flex-direction: column;
    margin: 1rem;
    height: 18rem;
  }

  .logo{
    visibility: hidden;
    height: 0rem;
  }

  .text-container {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .logo-container {
    flex-direction: column;
  }

  .nosotros-cards {
    flex-direction: column;
    align-items: center;
  }

  .card-item {
    width: 12rem !important;
  }

  .card-item p {
    opacity: 1 !important;
    height: 0;

  }

  .servicio-item {
    flex-direction: column;
    text-align: center;
    width: auto;
  }

  .servicios-content{
    flex-direction: column;
    text-align: center;
  }

  .servicios-text {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .proyectos-content{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .card-producto1{
    width: 18rem;
    height: 18rem;
  }
  .card-producto2{
    width: 18rem;
    height: 18rem;
  }
  .card-producto3{
    width: 18rem;
    height: 18rem;
  }

  .card-producto1 .overlay {
    opacity: 1 !important;
  
    & .head {
      transform: translateY(0px);
    }
  
    & hr {
      width: 75px;
      transition-delay: 0.4s;
    }
  
    & .price {
      transform: translateY(0px);
      transition-delay: 0.3s;
      opacity: 1;
    }
  
    & .cart {
      transform: translateY(0px);
      transition-delay: 0.6s;
      opacity: 1;
    }
  }
  .card-producto2 .overlay {
    opacity: 1 !important;
  
    & .head {
      transform: translateY(0px);
    }
  
    & hr {
      width: 75px;
      transition-delay: 0.4s;
    }
  
    & .price {
      transform: translateY(0px);
      transition-delay: 0.3s;
      opacity: 1;
    }
  
    & .cart {
      transform: translateY(0px);
      transition-delay: 0.6s;
      opacity: 1;
    }
  }
  .card-producto3 .overlay {
    opacity: 1 !important;
  
    & .head {
      transform: translateY(0px);
    }
  
    & hr {
      width: 75px;
      transition-delay: 0.4s;
    }
  
    & .price {
      transform: translateY(0px);
      transition-delay: 0.3s;
      opacity: 1;
    }
  
    & .cart {
      transform: translateY(0px);
      transition-delay: 0.6s;
      opacity: 1;
    }
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    margin: 1rem;
    height: 18rem;
  }

  .logo{
    width: 5rem;
  }

  .text-container {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .logo-container {
    flex-direction: column;
  }

  .nosotros-cards {
    flex-direction: column;
    align-items: center;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .card-item {
    height: fit-content;
    width: 14rem !important;
  }

  .card-item p {
    opacity: 1 !important;
  }

  .servicio-item {
    flex-direction: column;
    text-align: center;
    width: auto;
  }

  .servicios-content{
    flex-direction: column;
    text-align: center;
  }

  .servicios-text {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .proyectos-content{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }



  .card-producto1 .overlay {
    opacity: 1 !important;
  
    & .head {
      transform: translateY(0px);
    }
  
    & hr {
      width: 75px;
      transition-delay: 0.4s;
    }
  
    & .price {
      transform: translateY(0px);
      transition-delay: 0.3s;
      opacity: 1;
    }
  
    & .cart {
      transform: translateY(0px);
      transition-delay: 0.6s;
      opacity: 1;
    }
  }
  .card-producto2 .overlay {
    opacity: 1 !important;
  
    & .head {
      transform: translateY(0px);
    }
  
    & hr {
      width: 75px;
      transition-delay: 0.4s;
    }
  
    & .price {
      transform: translateY(0px);
      transition-delay: 0.3s;
      opacity: 1;
    }
  
    & .cart {
      transform: translateY(0px);
      transition-delay: 0.6s;
      opacity: 1;
    }
  }
  .card-producto3 .overlay {
    opacity: 1 !important;
  
    & .head {
      transform: translateY(0px);
    }
  
    & hr {
      width: 75px;
      transition-delay: 0.4s;
    }
  
    & .price {
      transform: translateY(0px);
      transition-delay: 0.3s;
      opacity: 1;
    }
  
    & .cart {
      transform: translateY(0px);
      transition-delay: 0.6s;
      opacity: 1;
    }
  }


}