@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Karla:ital,wght@0,200..800;1,200..800&family=Kumbh+Sans:wght@100..900&family=League+Spartan:wght@100..900&family=Lexend+Deca:wght@100..900&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Overpass:ital,wght@0,100..900;1,100..900&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=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap");

:root {
  /*COLORES*/

  --White: hsl(0, 100%, 100%);
  --Purple-100: hsl(275, 100%, 97%);
  --Purple-600: hsl(292, 16%, 49%);
  --Purple-950: hsl(292, 42%, 14%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Work Sans", sans-serif;
  background-color: var(--Purple-100);
  background: url(../../images/background-pattern-mobile.svg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
  background-attachment: fixed;
}

main {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  .container {
    width: 425px;
    background-color: var(--White);
    border-radius: 10px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    .container__header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 2rem;
      .img-container {
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      h1 {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--Purple-950);
      }
    }
    .container__body {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      margin-bottom: 1rem;
      .accordion {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        .accordion__header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 1rem;
          cursor: pointer;
          h2 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--Purple-950);
            transition: color 0.3s ease;
            &:hover {
              color: rgb(172, 34, 241);
              font-weight: bold;
            }
          }
          img {
            width: 2rem;
            height: 2rem;
            object-fit: cover;
          }
          .minus {
            display: none;
          }
        }
        .panel {
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease-out;
          p {
            font-size: 1rem;
            line-height: 1.5;
            font-weight: 400;
            color: var(--Purple-600);
          }
        }
      }
      .hr {
        border: 0;
        height: 1px;
        width: 94%;
        background-color: #575757e4;
        opacity: 20%;
        margin-top: -0.4rem;
      }
    }
    .container__footer {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 3rem;
      .social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        a {
          width: 45px;
          height: 45px;
          border: 1px solid var(--Purple-600);
          border-radius: 50%;
          display: flex;
          justify-content: center;
          align-items: center;
          color: var(--Purple-950);
          text-decoration: none;
          transition: all 0.3s ease;
          &:hover {
            background-color: var(--Purple-950);
            color: #fff;
          }
          span {
            font-size: 22px;
          }
        }
      }
    }
  }
}

@media (min-width: 868px) {
  body {
    background: url(../../images/background-pattern-desktop.svg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    background-attachment: fixed;
    overflow: hidden;
  }
  main {
    .container {
      width: 600px;
      padding: 2rem;
      .container__header {
        h1 {
          font-size: 2.7rem;
        }
      }
      .container__body {
        .accordion {
          .accordion__header {
            h2 {
              font-size: 1.1rem;
            }
          }
        }
      }
    }
  }
}
