@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");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  /*COLORES*/

  /*PRIMARIOS*/

  --Violet: hsl(257, 40%, 49%);
  --Soft-Magenta: hsl(300, 69%, 71%);

  /*SECUNDARIOS*/

  --White: #fff;

  /*FUENTES*/

  --Poppins: "Poppins", sans-serif;
  --Open-Sans: "Open Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--Poppins);
  background-image: url(../../images/bg-mobile.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  background-color: var(--Violet);
}

header {
  display: flex;
  justify-content: flex-start;
  align-items: start;
  padding: 2rem;

  .header__image {
    max-width: 50%;
    display: flex;
    justify-content: flex-start;

    img {
      width: 70%;
    }
  }
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 3rem;
  padding: 2rem;

  .container__image {
    max-width: 100%;
    height: auto;
    img {
      width: 100%;
    }
  }

  .container__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    .container__title {
      color: var(--White);
      font-size: 2.3rem;
      font-weight: 600;
    }
    .container__paragraph {
      color: var(--White);
      font-size: 1.2rem;
      font-weight: 400;
      margin-top: 1rem;
      font-family: var(--Open-Sans);
    }
    .container__button {
      width: 60%;
      height: 3rem;
      border-radius: 2rem;
      border: none;
      background-color: var(--White);
      color: var(--Violet);
      font-size: 1rem;
      font-weight: 400;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.3s ease-in-out;
      margin-top: 1rem;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);

      &:hover {
        background-color: var(--Soft-Magenta);
        color: var(--White);
      }
    }
  }
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;

  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    a {
      i {
        border: 1px solid white;
        color: white;
        border-radius: 50%;
        padding: 10px;
        font-size: 1.2em;
        transition: all 0.5s ease;

        &:hover {
          color: var(--Soft-Magenta);
          border-color: var(--Soft-Magenta);
        }
      }
    }
  }
}

@media (min-width: 950px) {
  body {
    background-image: url(../../images/bg-desktop.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-color: var(--Violet);
  }
  header {
    padding: 2rem 5rem;

    .header__image {
      max-width: 100%;
      display: flex;
      justify-content: flex-start;

      img {
        width: 90%;
      }
    }
  }
  main {
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    text-align: start;
    gap: 5rem;
    padding: 2rem 5rem;

    .container__image {
      width: 100%;

      img {
        width: 100%;
      }
    }

    .container__content {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 1rem;
      margin-top: 2rem;

      .container__title {
        color: var(--White);
        font-size: 2.5rem;
        font-weight: 600;
        width: 20ch;
      }
      .container__paragraph {
        color: var(--White);
        font-size: 1.2rem;
        font-weight: 400;
        margin-top: 1rem;
        font-family: var(--Open-Sans);
        width: 50ch;
      }

      .container__button {
        width: 30%;
        height: 3rem;
        font-size: 1rem;
        font-weight: 400;
      }
    }
  }

  footer {
    justify-content: end;
    padding: 2rem 5rem;
  }
}
