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

/* ----------------------------- estilos generales----------------------------- */

.subtitle {
  text-align: center;
  font-size: 60px;
  font-weight: 500;
  margin-bottom: 15px;
}

.info-text {
  text-align: center;
  width: 70%;
  color: #505050;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 45px;
}

/* ----------------------------- seccion sobre mi----------------------------- */

.sobremi {
  margin-top: 60px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  .container {
    height: 70%;
    width: 80%;
    border-radius: 50px;
    background-color: #212121;
    display: flex;
    align-items: center;
    overflow: hidden;

    .content {
      padding: 0 70px;
      width: 50%;
      color: #e3e3e3;

      .subtitle.about {
        font-size: 75px;
        line-height: 1.1;
        user-select: none;
        font-weight: 500;
        text-align: start;
        color: #fdfdfd;
      }

      p {
        margin: 45px 0;
        font-size: 19px;
      }

      button {
        border-radius: 12px;
        background-color: transparent;
        cursor: pointer;
        border: 2px solid #e3e3e3;
        color: #e3e3e3;
        padding: 15px;
        font-size: 22px;
        width: 100%;
        font-weight: 500;
        transition: all 0.2s ease;
      }

      button:hover {
        background-color: #e3e3e3;
        color: #212121;
      }
    }

    .imagen {
      position: relative;
      width: 55%;
      height: 100%;

      .up {
        position: absolute;
        top: 20rem;
      }

      .down {
        position: absolute;
        top: -20rem;
        right: 0;
      }
    }
  }
}

/* ----------------------------- seccion sobre como funciona ----------------------------- */

.comofunciona {
  padding: 80px 180px 20px 180px;
  display: flex;
  align-items: center;
  flex-direction: column;

  .tecnologias-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 36px;
    justify-content: center;
    padding: 80px 0;
    flex-wrap: wrap;

    .tecnologia-card {
      max-width: 400px;
      background-color: #156ef402;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;

      .icon-circle {
        width: 70px;
        height: 70px;
        background-color: #f1f8fc;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;

        img {
          width: 50px;
          height: 50px;
        }
      }

      .tecnologia-title {
        font-weight: 600;
        font-size: 20px;
        color: #333;
        margin-bottom: 10px;
      }

      .tecnologia-description {
        font-size: 15px;
        line-height: 1.5;
        color: #666;
        font-weight: 400;
      }
    }
  }
}

/* ----------------------------- seccion sobre opiniones ----------------------------- */

.opiniones {
  padding: 80px 180px 180px 180px;
  display: flex;
  align-items: center;
  flex-direction: column;

  .testimonials-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 36px;
    justify-content: center;
    padding: 80px 0;

    .testimonial-card {
      max-width: 400px;
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 20px;
      display: flex;
      flex-direction: column;

      .user-info {
        display: flex;
        align-items: center;
        margin-bottom: 15px;

        .user-avatar {
          width: 70px;
          height: 70px;
          border-radius: 50%;
          overflow: hidden;
          margin-right: 12px;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }

        .user-details {
          display: flex;
          flex-direction: column;

          .user-name {
            font-weight: 600;
            font-size: 20px;
            color: #333;
          }

          .user-date {
            font-size: 15px;
            color: #777;
          }
        }
      }

      .testimonial-content {
        font-size: 16px;
        line-height: 1.5;
        color: #323232;
        font-weight: 500;
      }
    }
  }
}

/* ----------------------------- Footer ----------------------------- */

.footer {
  background: #212121;

  .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3.5rem;
    padding: 60px;

    .footer-col {
      position: relative;

      img {
        width: 170px;
      }

      h4 {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 400;
      }

      .links {
        margin-top: 20px;

        li {
          list-style: none;
          margin-bottom: 10px;

          a {
            text-decoration: none;
            color: #bfbfbf;
          }
          a:hover {
            color: #fff;
          }
        }
      }

      p {
        margin: 20px 0;
        color: #bfbfbf;
        max-width: 300px;
      }

      .icons {
        display: flex;
        margin-top: 30px;
        gap: 30px;
        cursor: pointer;

        i {
          color: #afb6c7;
        }

        i:hover {
          color: #fff;
        }
      }
    }
  }
}

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

@media (max-width: 1400px) {
  .sobremi {
    .container {
      width: 97%;

      .content {
        width: 40%;

        .subtitle.about {
          font-size: 55px;
        }

        p {
          font-size: 16px;
        }

        button {
          padding: 14px 42px;
          font-size: 18px;
        }
      }
    }
  }

  .comofunciona {
    .tecnologias-container {
      flex-direction: column;
      align-items: center;
      gap: 30px;

      .tecnologia-card {
        max-width: 100%;
      }
    }
  }

  .opiniones {
    padding: 80px 120px;

    .testimonials-container {
      flex-direction: column;
      align-items: center;
      gap: 30px;

      .testimonial-card {
        max-width: 100%;
      }
    }
  }
}

@media (max-width: 1000px) {
  .sobremi {
    .container {
      height: 60%;

      .content {
        width: 100%;

        .subtitle.about {
          text-align: center;
        }
      }

      .imagen {
        display: none;
      }
    }
  }

  .comofunciona {
    padding: 60px 40px;
    height: auto;

    h2 {
      font-size: 35px;
    }

    p {
      width: 100%;
      font-size: 16px;
      text-align: start;
      margin-bottom: 40px;
    }

    .tecnologias-container {
      padding: 40px 0;
    }
  }

  .opiniones {
    padding: 60px 40px;
    height: auto;

    h2 {
      font-size: 35px;
    }

    p {
      width: 100%;
      font-size: 16px;
      text-align: start;
      font-size: 16px;
      margin-bottom: 40px;
    }

    .testimonials-container {
      padding: 40px 0;
    }
  }
}
