@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;800&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  padding-top: 100px;
  &::-webkit-scrollbar{
    height: 10px; 
    width: 10px;
}
&::-webkit-scrollbar-thumb{
    background-color: #7f7f80
}
}

.slider {
    display: flex;
    position: relative;
    max-width: 1500px;
    width: 100%;
    height: calc(100vh - 90px);
    overflow: hidden;
    & > button {
      position: absolute;
      background-color: #fefefeaa;
      border-radius: 100%;
      height: 55px;
      width: 55px;
      cursor: pointer;
      border: none;
      z-index: 10;
      top: 50%;
      transform: translateY(-50%);
      margin: 0 20px;
      font-size: 30px;
      font-weight: 700;
    }
    & button:last-child {
        right: 0;
    }
  }
  .slides {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    & .active {
      opacity: 1;
    }
    & > div {
      position: absolute;
      opacity: 0;
      transition: opacity 1.5s ease-in-out;
      width: 100%;
      height: 100%;
      object-fit: cover;
      & img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        z-index: 100;
       }

       & button {
        cursor: pointer;
        margin-top: 30px;
        z-index: 1;
        background-color: #438cec;
        font-size: 16px;
        color: #fefefe;
        border-radius: 10px;
        height: 40px;
        width: fit-content;
        padding: 0 10px;
        border: none;
        overflow: hidden;
        position: relative;

        &::before {
          content: '';
          position: absolute;
          width: 100%;
          height: 200%;
          left: 0;
          top:-200%; 
          background-color: #1e471e;
          border-radius: 50%;
          z-index: -1;
          transition: all 0.4s ease;
      }

      &:hover::before{
        top:0;
        border-radius: 0%;
        color: #fefefe
      }
      &:hover{
        color: #fefefe
      }
        
       }
    }
  }
  .info_images {
    display: flex;
    flex-direction: column;
    position: absolute;
    background: #FFF543bb;
    justify-content: center;
    margin: 100px 150px;
    padding: 20px;
    width: auto;
    height: auto;
    border-radius: 20px;
     & .title, .text {
      color: #2e2e2e;
      background: none;
    }
     & .title {
      font-size: 45px;
      margin-bottom: 25px;
     }
     & .text{
      font-size: 25px;
      max-width: 700px;
      width: 100%;
     }
  }


.container_info_nosotros {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-left: 200px;
}

.container_nosotros {
    display: flex;
    flex-direction: row;
    position: relative;
    padding: 30px;
    align-content: center;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 600px;
    height: max-content;
    width: 100%;
    background-color: rgb(255, 255, 65);

    & > img {
        position: absolute;
        left: 0;
        top: 0;
        height: 600px;
    }

    & .info_nosotros {
        display: flex;
        width: 85%;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;

        & > p {
            width: 100%;
            font-size: 16px;
            color: #2e2e2e;
            text-align: left;
            line-height: 2rem;
        }
        & > h2 {
            color: #2e2e2e;
            font-size: 30px;
            margin-bottom: 25px;
        }
    }
}

.info_mision {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 50px;
    & div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 280px;
        height: 100%;
        & img {
            height: 120px;
            width: 120px;
            margin-bottom: 10px;
        }
        & p {
            text-align: left;
            color: #2e2e2e;
            line-height: 1.7rem;
            height: 50px;
            text-wrap: pretty;
        }
    }
}

.clientes_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 15px 0px;
  background-color: #ffffff;
  /* border: 1px black solid; */
   & h1 {
    color: #2e2e2e;
    font-size: 23px;
    text-align: center;
    font-style: italic;
    font-weight:600;
    margin-bottom: 15px;
   }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.container_flex_clientes {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.clients_active {
  display: inline-block;
  animation: 35s slide infinite linear;
}
.clients_active img {
  max-width: 150px;
  max-height: 200px;
  margin: auto 40px;
}


/* Media query */

@media(max-width: 768px) {
    .info_images {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .slider button {
        bottom: 0;
        top: 90%;
    }
    .slides {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;

        & > div {
            width: 100%;
            justify-content: center;
        }
    }

    .container_nosotros > img {
        display: none
    }
    .container_info_nosotros {
          margin: 0;

          & p {
            text-align: center;
          }
    }
    .info_mision {
      flex-direction: column;

      & > div {
        flex-direction: row;
        width: 100%;
        margin: 20px 0;
        align-items: center;
        justify-content: center;

        & img {
          width: 80px;
          height: 80px;
          margin-right: 10px;
        }
      }
    }
}