.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1em;
  height: 4.5rem;
  padding: var(--container-size);
  background-color: var(--black-bg-color);

  .logo {
    width: auto;

    .nav-logo {
      img {
        object-fit: contain;
        width: 8rem;
      }
    }
  }

  .menu {
    height: 2.8rem;

    .menu-web {
      display: flex;
      flex-direction: row;
      height: 100%;
      align-items: end;
      gap: 1em;

      li {
        list-style: none;

        a {
          font-weight: 100;
          color: white;
          text-decoration: none;

          &.special {
            color: var(--primary-color);
          }

          &:hover {
            opacity: 0.8;
          }
        }
      }
    }
  }
}

/* Seccion de Inicio */
.home {
  background-color: var(--black-bg-color);
  padding: var(--container-size);
  display: flex;
  flex-direction: row;
  height: auto;
  padding-bottom: 5em;
  padding-top: 4em;
  gap: 1em;

  .home-multimedia {
    flex: 3;
  }

  .text {
    flex: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;

    .slogan {
      span {
        font-family: "Orbitron", sans-serif;
      }

      img {
        width: 25rem;
      }
    }

    h1 {
      font-size: 2rem;
    }

    p {
      font-size: 1.4rem;
      font-weight: 100;
      margin-top: 0.5em;
    }
  }
}

.divider-home {
  height: 100px;
  width: 100%;
  background-color: transparent;
  display: block;
  flex-direction: row;

  &::before {
    content: "";
    height: 70px;
    display: inline-block;
    position: relative;
    top: -1px;
    flex: 1;
    width: 100%;
    right: 50%;
    background-color: var(--black-bg-color);
    border-radius: 0 0 30px 0;
  }

  &::after {
    content: "";
    height: 70px;
    z-index: 1;
    display: inline-block;
    position: relative;
    bottom: 100px;
    flex: 1;
    width: 50%;
    left: 50%;
    background-color: var(--background-color);
    border-radius: 30px 0 0 0;
  }
}

/* Quienes Somos */
.who-are {
  display: flex;
  flex-direction: column;
  padding: var(--container-size);
  padding-bottom: 3em;
  gap: 1em;
  justify-content: center;
  color: var(--text-color);
  align-items: center;

  .info {
    .logo {
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        object-fit: contain;
        width: 15rem;
        filter: var(--filter-logo);
      }
    }

    h1 {
      flex: 1;
      text-align: center;
    }

    p {
      margin-top: 1em;
      text-align: center;
      font-size: 1.2rem;
    }

    .link {
      color: var(--tertiary-color);
      font-weight: 600;
      cursor: pointer;
      width: 100%;
      text-align: center;
      display: flex;
      font-size: 1.1rem;
      justify-content: center;
      align-items: center;
      background-color: transparent;
      border: none;
      margin: 1em 0;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  .guarantees {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    flex-direction: row;

    li {
      flex: 49%;
      display: flex;
      flex-direction: column;
      gap: 1em;
      padding: 1em 5em;
      border: 1px solid #c9c9c9;
      border-radius: 10px;
      align-items: center;
      text-align: center;

      img {
        object-fit: contain;
        width: 7rem;
        min-height: 10rem;
      }

      &.full {
        flex: 100%;
      }
    }
  }
}

.clients {

  padding: var(--container-size);
  padding-bottom: 4em;;
  background-image: linear-gradient(to right top, #0bc9cd, #00c4bb, #00bea6, #00b791, #25b07a);

  h1 {
    z-index: 1;
    margin-top: 3em;
  }

  .clients-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 3em;
    justify-content: center;
    position: relative;
    list-style: none;

    .flip-card {
      width: 250px;
      height: 250px;
      perspective: 1000px;
      border-radius: 100%;
      .flip-card-inner {
        width: 100%;
        height: 100%;
        transition: transform 0.6s ease;
        transform-style: preserve-3d;

        .flip-card-front,
        .flip-card-back {
          position: absolute;
          width: 100%;
          height: 100%;
          backface-visibility: hidden;

          border-radius: 100%;
          overflow: hidden;
        }

        .flip-card-front {
          box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
          border: 1px solid rgb(0, 0, 0, 0.2);
          img {
            width: 100%;
            height: 100%;
            border-radius: 100%;
            object-fit: cover;
          }
        }

        .flip-card-back {
          color: white;
          background-color: var(--secondary-color);
          text-align: center;
          transform: rotateY(180deg);
          box-shadow: rgba(99, 99, 99, 0.49) 0px 2px 8px 0px;
          border: 1px solid rgb(0, 0, 0, 0.2);
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 5px;
          h3{
            font-size: 1rem;
          }
          p{
            font-size: 0.8rem;
          }
          button{
            background-color: var(--tertiary-color);
            padding: 0.4em 0.8em;
            margin-top: 1em;
            color: white;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            outline: none;
            border: none;
            &:hover{
              opacity: 0.9;
            }
          }
          padding: 16px;
        }
      }

      &:hover {
        .flip-card-inner {
          transform: rotateY(180deg);
        }
      }
    }
  }
}

/* Equipo */
.teams {
  padding: var(--container-size);
  margin-top: 0;
  background-image: url("../assets/images/team-bg.webp");
  background-size: cover;
  /* Ajusta la imagen para cubrir todo el header */
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2em;
  padding-bottom: 3em;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
  }

  h1 {
    z-index: 1;
    margin-top: 3em;
  }

  .team-members {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 1em;
    justify-content: center;
    position: relative;
    list-style: none;

    li {
      background-color: white;
      min-height: 300px;
      border-radius: 10px;
      max-width: 250px;
      box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
      min-width: 250px;
      justify-content: space-between;
      display: flex;
      flex-direction: column;

      &::before {
        content: "";
        width: 100%;
        display: block;
        position: relative;
        height: 20px;
        border-radius: 10px 10px 0 0;
        background-color: var(--primary-color);
      }

      &.tertiary::before {
        background-color: var(--tertiary-color);
      }

      .avatar {
        flex: 1.5;
        object-fit: contain;
        padding: 1em;
        width: auto;
      }

      .text {
        min-height: 100px;
        display: flex;
        flex-direction: column;
        gap: 0.5em;

        h2 {
          padding: 0 1em;
          font-size: 1.2rem;
        }

        h3 {
          font-weight: 100;
          color: #4f4f4f;
          font-size: 1rem;
          margin-bottom: 1em;
        }
      }
    }
  }
}

/* Servicios */
.services {
  display: flex;
  flex-direction: column;
  padding: var(--container-size);
  padding-top: 4em;
  font-size: 1.2rem;
  height: auto;
  color: var(--text-color);
  gap: 1em;
  padding-bottom: 4em;
  text-align: center;

  .list-services {
    width: auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;

    li {
      flex: 25%;
      min-height: 400px;
      display: flex;
      flex-direction: column;
      gap: 0.5em;

      .content {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 1.5em 1.5em;
        justify-content: space-between;

        &.landing {
          background-image: url("../assets/images/service-landing.jpg");
        }

        &.webapp {
          background-image: url("../assets/images/service-webapp.jpg");
          background-size: 500px;
          background-position: top;
        }

        &.onepage {
          background-image: url("../assets/images/service-onepage.jpg");
          background-size: 300px;
          background-position: top;
        }

        &.ecommerce {
          background-image: url("../assets/images/service-ecommerce.jpg");
          background-position: top;
        }

        &.mobileapp {
          background-image: url("../assets/images/service-mobileapp.jpg");
          background-position: top;
        }

        &.advice {
          background-image: url("../assets/images/service-advice.jpg");
          background-position: top;
          background-size: auto;
        }

        &.marketing {
          background-image: url("../assets/images/service-marketing-digital.jpg");
          background-position: top;
          background-size: auto;
        }

        &.mockups {
          background-image: url("../assets/images/service-mockups.jpg");
          background-position: top;
          background-size: 800px;
        }

        &.diseno {
          background-image: url("../assets/images/service-diseno.png");
          background-position: top;
          background-size: auto;
        }

        background-size: cover;
        background-position: 0 0;
        background-repeat: no-repeat;
        transition: background-position 0.5s ease;
        border-radius: 10px;
        position: relative;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

        &::before {
          content: "";
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          border-radius: 10px;
          background-color: rgba(0, 0, 0, 0.7);
        }

        &:hover {
          animation: scrollBackground 2s linear infinite alternate;
        }

        .info-content {
          z-index: 1;
          display: flex;
          flex-direction: column;
          gap: 1em;
          height: 100%;

          h2 {
            font-size: 1.3rem;
          }

          p {
            color: white;
          }
        }

        .link {
          z-index: 1;
          color: var(--primary-color);
          font-weight: 600;
          font-size: 0.9rem;
          background-color: transparent;
          text-decoration: underline;
          cursor: pointer;

          &:hover {
            opacity: 0.7;
          }
        }
      }
    }
  }

  button {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.5em 1em;
    border-radius: 50px;

    &:hover {
      opacity: 0.8;
      background-color: var(--primary-color);
    }
  }
}

.process {
  padding: var(--container-size);
  text-align: center;
  padding-top: 4em;
  color: var(--text-color);
  padding-bottom: 4em;

  h1 {
    margin-bottom: 1em;
  }

  p {
    font-size: 1.2rem;
  }
}

.timeline-web {
  background-color: #e9f0f6;
  box-shadow: inset 2px 2px 44.5px #e9f0f6;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  width: 100%;
  padding: var(--container-size);
  padding-top: 8em;
  padding-bottom: 8em;
  white-space: nowrap;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #bababa;
    z-index: 1;
  }

  .pointer {
    position: relative;
    display: block;
    height: 15px;
    width: 15px;
    cursor: pointer;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 2;

    &.tertiary {
      background-color: var(--tertiary-color);
    }

    &.secondary {
      background-color: #f3a60a;
    }

    &.green {
      background-color: #24d083;
    }

    &:nth-child(odd) {
      transform: translateY(4.2rem);
    }
  }

  .events {
    position: relative;
    flex: auto;
    z-index: 3;
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
    left: -2.6em;
    list-style: none;
    justify-content: space-around;

    &.top {
      top: -6em;
    }

    &.bottom {
      bottom: -6em;
      flex-direction: column;
      left: -2.4em;
    }

    .process {
      min-width: 150px;
      width: auto;
      padding: 0.5em 1em;
      color: white;
      border-radius: 50px;
      box-shadow: 0px 4px 4px #aec2d3;
      margin: 0.5em 0;
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      gap: 1em;
      align-items: center;
      text-align: left;
      position: relative;
      padding-left: 3px;
      transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
      cursor: pointer;

      &:hover {
        transform: translateY(5px);
        /* Se mueve hacia arriba 5px */
      }

      &::before {
        content: "";
        position: absolute;
        background-color: white;
        width: 26px;
        border-radius: 50%;
        height: 70%;
      }

      &.second {
        margin-left: 3em;
      }

      &.third {
        margin-left: 6em;
      }

      i {
        z-index: 4;
        color: black;
        min-width: 26px;
        text-align: center;
        font-weight: bold;
        font-style: normal;
      }

      h2 {
        font-size: 0.9rem;
      }

      &.tertiary {
        background-color: var(--tertiary-color);

        i {
          color: var(--tertiary-color);
        }
      }

      &.primary {
        background-color: var(--primary-color);

        i {
          color: var(--primary-color);
        }
      }

      &.secondary {
        background-color: #f3a60a;

        i {
          color: #f3a60a;
        }
      }

      &.green {
        background-color: #24d083;

        i {
          color: #24d083;
        }
      }
    }
  }
}

.timeline-mobile {
  display: none;
}


/* Sección contacto */
.contact {
  background-color: var(--black-bg-color);
  padding: var(--container-size);
  display: flex;
  flex-direction: row;
  padding-top: 4em;
  padding-bottom: 4em;
  gap: 2em;
  width: auto;

  .form {
    flex: 1;

    form {
      background-color: var(--background-color);
      border-radius: 15px;
      color: var(--text-color);
      box-shadow: -15px 10px 0px var(--primary-color);
      padding: 2em 1em;
      height: 100%;
      justify-content: flex-start;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5em;

      h2 {
        font-size: 1.8rem;
      }

      sub {
        font-size: 1.1rem;
      }

      .field {
        display: flex;
        margin-top: 0.5em;
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
        gap: 0.2em;

        label {
          font-size: 0.9rem;
          font-weight: 600;

          &.required {
            &::after {
              content: "*";
              color: #ff2727;
              /* Cambia el color del asterisco */
              font-weight: bold;
            }
          }
        }

        input,
        select,
        textarea {
          padding: 1em 1em;
          border: 1px solid #000000;
          border-radius: 3px;

          &:active {
            border-color: var(--primary-color);
          }

          &:focus-visible {
            border: 1px solid var(--secondary-color);
            outline: none;
          }
        }
      }

      button {
        background-color: var(--primary-color);
        color: white;
        font-weight: 600;
        width: 100%;
        border: none;
        padding: 0.7em 1em;
        border-radius: 50px;
        margin-top: auto;

        &:hover {
          opacity: 0.8;
        }
      }
    }
  }

  .media {
    flex: 1.4;
    text-align: end;

    h1 {
      font-size: 2.5rem;
    }

    sub {
      font-size: 1.2rem;
    }

    img {
      margin-top: 2.5em;
      width: 100%;
      object-fit: contain;

      &:hover {
        filter: hue-rotate(-10deg);
        cursor: pointer;
      }
    }
  }
}

.btn-contact-mobile {
  display: none;
}

.notification {
  position: fixed;
  top: 90px;
  right: 30px;
  background-color: var(--background-color);
  color: var(--black-bg-color);
  padding: 16px 24px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  font-size: 14px;
  display: none;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.benefits {
  padding: var(--container-size);
  display: flex;
  flex-direction: row;
  padding-top: 4em;
  flex-wrap: wrap;
  padding-bottom: 4em;
  color: var(--text-color);
  gap: 2em;
  width: auto;

  .multimedia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1.5;

    h1 {
      color: var(--text-color);
      display: flex;
      flex-direction: row;
      align-items: center;
      width: 100%;
      gap: 5px;

      &::before,
      &::after {
        content: "";
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        position: relative;
        display: block;
      }
    }

    .benefits-pics {
      object-fit: contain;
      height: auto;
      background-image: var(--benefit-src);
      background-size: contain;
      background-repeat: no-repeat;
      flex: 1;
      width: 100%;
      border-radius: 10px;
    }
  }

  .info {
    flex: 3;
    padding: 1em 4em;
    border-radius: 15px;
    border: 1px solid var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    justify-content: space-between;

    img {
      object-fit: contain;
      width: 100px;
    }

    h2 {
      font-size: 1.9rem;
      text-align: center;
      width: 640px;
      font-weight: 100;
    }

    h3 {
      font-weight: 100;
      width: 100%;
      text-align: end;
      font-size: 1.2rem;
    }

    .link {
      z-index: 1;
      color: var(--tertiary-color);
      font-weight: 300;
      font-size: 1rem;
      border: 1px solid var(--tertiary-color);
      padding: 0.5em 2em;
      background-color: transparent;
      border-radius: 30px;
      cursor: pointer;

      &:hover {
        background-color: var(--tertiary-color);
        color: white;
      }
    }
  }
}

footer {
  background-color: #060a16;
  padding: var(--container-size);
  padding-top: 4em;
  padding-bottom: 4em;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  flex-direction: column;
  gap: 1em;

  .social-medias {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 10px;
    justify-content: center;
    padding-top: 1em;
    border-top: 1px solid white;
    top: 88px;
    position: relative;

    li {
      cursor: pointer;

      img {
        width: 32px;
        object-fit: contain;
      }
    }
  }

  .company-medals {
    width: 100%;

    li {
      display: flex;
      width: 100%;
      justify-content: space-between;
      align-items: baseline;

      img {
        object-fit: contain;
        width: 90px;

        &.public-market-chile {
          width: 200px;
        }
      }
    }
  }

  p {
    display: flex;
    flex-wrap: wrap;
    font-family: "Orbitron", sans-serif;
    text-align: center;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    position: relative;
    top: 4.5em;
  }
}