@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&display=swap");

:root {
  --text-main-color: #333333;
  --main-color: #156ef4;
  /* --main-color: #e00c2c; */
}

html {
  scroll-behavior: smooth;
}

* {
  font-family: "Poppins", serif;
  font-weight: 400;
  padding: 0;
  margin: 0;
}

body {
  background-color: white;
  /* padding: 0 100px; */
}

/* ----------------------------- Header ----------------------------- */

header {
  position: fixed;
  left: 0;
  top: 0;
  padding: 7px 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9;
  animation: blurEffect linear both;
  animation-timeline: scroll();
  animation-range: 0 200px;

  img {
    width: 3%;
    min-width: 55px;
    cursor: pointer;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 18px;
    outline: none;

    a {
      text-decoration: none;
      position: relative;
      color: #5c5c5c;
      padding: 1px 12px;
      font-weight: 500;
      transition: all 0.2s ease;
      overflow: hidden;
    }

    a:hover {
      color: black;
    }
  }

  button {
    padding: 6px 15px;
    background: rgb(21, 110, 244);
    background: linear-gradient(
      0deg,
      rgba(21, 110, 244, 1) 24%,
      rgba(99, 157, 245, 1) 100%
    );
    color: #f5f5f5;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    outline: none;
  }

  #icon-menu-res {
    display: none;
    width: 5%;
    min-width: 50px;
  }

  .menu-responsive {
    display: flex;
    z-index: 10;
    flex-direction: column;
    background-color: #333333;
    padding: 0 0 15px 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0px;
    left: 100%;
    display: none;
    transition: all 0.2s ease;

    span {
      width: 100%;
      text-align: end;
    }

    .nav-responsive {
      padding: 0 0 0 20px;
      display: flex;
      flex-direction: column;
      width: 100%;
      gap: 15px;
      font-size: 28px;
      align-items: start;

      a {
        color: white;
      }
    }
  }

  .active {
    left: 0;
  }
}

/* ----------------------------- seccion principal ----------------------------- */

.principal-section {
  background: rgb(143, 164, 195);
  background: linear-gradient(
    0deg,
    rgba(143, 164, 195, 0.22452731092436973) 0%,
    rgba(248, 254, 255, 0.6755077030812324) 100%
  );
  min-height: 100vh;
}

.texts-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 35px;

  h1 {
    margin-top: 130px;
    text-align: center;
    font-size: 70px;
    font-weight: 600;
    line-height: 1.1;

    span {
      font-weight: 600;
      color: var(--main-color);
    }
  }
  p {
    color: #545454;
    font-size: 17px;
    font-weight: 500;
    width: 35%;
    text-align: center;
  }

  .button-link-blue {
    padding: 8px 20px;
    outline: none;
    border-radius: 8px;
    border: 2px solid var(--main-color);
    background-color: transparent;
    font-size: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    color: var(--main-color);
    font-weight: 500;
    z-index: 2;
    transition: color 0.2s ease;
  }

  .button-link-blue:hover {
    color: white;
  }

  .button-link-blue::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: var(--main-color);
    border-radius: 100%;
    transition: all 0.3s ease;
    z-index: -1;
  }

  .button-link-blue:hover::before {
    transform: translate(-50%, -50%) scale(1);
  }
}

.mockups {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 35px;
  position: relative;

  img {
    height: 430px;
    z-index: 2;
  }

  .bg {
    background-color: var(--main-color);
    opacity: 70%;
    width: 55%;
    height: 35vh;
    border-radius: 20px;
    position: absolute;
    z-index: 1;
  }
}

.caracteristicas {
  padding: 1px 180px;

  .card {
    display: flex;
    margin-top: 200px;
    gap: 100px;
    align-items: center;
    justify-content: center;
    height: 500px;

    .content {
      display: flex;
      flex-direction: column;
      gap: 20px;
      width: 50%;

      h2 {
        font-size: 60px;
        font-weight: 500;
        line-height: 1.2;
      }

      p {
        font-size: 20px;
        color: #333333;
      }

      a {
        text-decoration: none;
        color: var(--main-color);
        font-size: 18px;
        width: fit-content;
      }
      a:hover {
        text-decoration: underline;
      }
    }

    img {
      width: 50%;
      object-fit: contain;
      border-radius: 15px;
    }
  }
}

.card.left {
  flex-direction: row-reverse;
}

/* ----------------------------- animaciones ---------------------------- */

@keyframes blurEffect {
  to {
    background-color: rgba(255, 255, 255, 0.871);
    backdrop-filter: blur(10px);
    color: white;
  }
}

/* ----------------------------- media querys ---------------------------- */

@media (max-width: 1400px) {
  header {
    padding: 0 10px;
  }

  .principal-section {
    .texts-content {
      p {
        width: 65%;
      }
    }
  }

  .mockups {
    .bg {
      width: 90%;
    }
  }

  .caracteristicas {
    padding: 1px 80px;

    .card {
      margin-top: 100px;
      height: 300px;

      .content {
        display: flex;
        flex-direction: column;
        width: 60%;

        h2 {
          font-size: 35px;
        }

        p {
          font-size: 16px;
        }

        a {
          font-size: 14px;
        }
      }

      img {
        width: 40%;
      }
    }
  }
}

@media (max-width: 1000px) {
  header {
    img {
      min-width: 70px;
    }
    nav {
      display: none;
    }
    button {
      display: none;
    }
    #icon-menu-res {
      display: block;
    }
    .menu-responsive {
      display: flex;
    }
  }

  .principal-section {
    .texts-content {
      h1 {
        margin-top: 160px;
        font-size: 40px;
      }
      p {
        width: 95%;
        font-size: 15px;
      }

      a {
        font-size: 18px;
      }
    }
  }

  .mockups {
    img {
      height: 220px;
    }
    .bg {
      height: 18vh;
      width: 95%;
    }
  }

  .caracteristicas {
    padding: 1px 10px;

    .card {
      flex-direction: column;
      margin-top: 40px;
      gap: 20px;
      height: 420px;

      .content {
        width: 90%;
        text-align: center;

        h2 {
          font-size: 35px;
        }

        p {
          font-size: 17px;
        }

        a {
          font-size: 16px;
          width: 100%;
        }
      }

      img {
        width: 50%;
        object-fit: contain;
        border-radius: 15px;
      }
    }
  }
}
