// ---------------------------------------------------------
// Variables
// ---------------------------------------------------------
$font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
$container-max: 1400px;
$space: 1rem;
$space-lg:2rem;

$color-bg: #ffffff;
$color-fg: #111111;
$color-muted: #555;
$color-primary: #0000ff;
$color-section-2: #052d3b;
$color-primary-contrast: #ffffff;
$color-focus: #ffbf47;

// ---------------------------------------------------------
// Mixins
// ---------------------------------------------------------
@mixin container {
  width: min(100% - 3rem, $container-max);
  margin-inline: auto;
}

@mixin focus-ring {
  outline: 3px solid $color-focus;
  outline-offset: 2px;
}

// ---------------------------------------------------------
// Base
// ---------------------------------------------------------
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: $font-base;
  line-height: 1.6;
  color: $color-fg;
  background: $color-bg;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: initial; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { @include focus-ring; }

.container { @include container; padding-block: $space-lg; }

.site-header, .site-footer {
  position: absolute;
  width: 100%;
  z-index: 10;
  color:white;
}
.site-title {
  margin: 0;
  padding-block: $space;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.menu-container{
  .nav {
    margin: 0;
    padding: 0 0 $space;
    display: flex;
    flex-wrap: wrap;
    list-style: none;

  }
  @media(max-width: 1299px){
    position: absolute;
    left: -250px;
    width: 250px;
    top: 70px;
    padding: 10px 0 0 15px;
    .nav {
      flex-direction: column;
      padding: 0;
      gap: 2px;

    }
  }
  transition: all 0.2s ease-in-out;
  &.show-menu{
    transform: translateX(250px);
  }
}

.nav a {
  padding: 5px 10px;
  border-radius: .375rem;
  font-size:15px;
}
.nav a:focus-visible { @include focus-ring; }
.menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
  margin-top: -10px;
  span{
    display: inline-block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  @media(min-width: 1300px){
    display: none;
  }
}
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


// Enlace de salto
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto; height: auto; padding: .5rem .75rem;
  background: $color-primary;
  color: $color-primary-contrast;
  border-radius: .25rem;
}

// Utilidad para ocultar visualmente sin ocultar a lectores
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

// ---------------------------------------------------------
// Secciones
// ---------------------------------------------------------
section {
  height: 100vh;
  min-height: 1000px;
  display: flex;
  align-items: center;
}
.section-title {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(2.15rem, 3.55vw, 5.5rem);
  line-height:normal;
  span{
    font-weight: 400;
  }
}

// Componentes simples
.btn {
  display: inline-block;
  padding: 1.4rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  background: linear-gradient(90deg ,#0000ff , #03ffda);
  color: $color-primary-contrast;
  font-weight: 600;
  font-size: clamp(0.8rem, .9vw, .95rem);
  line-height: normal;
  opacity: 0.9;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}
.btn-2 {
  display: inline-block;
  padding: 1.4rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  background: linear-gradient(90deg ,#2a2a4d, #00c6a9);
  color: $color-primary-contrast;
  font-weight: 600;
  font-size: clamp(0.8rem, .9vw, .95rem);
  line-height: normal;
  opacity: 0.9;
  transition: all 0.3s ease-in-out;
  z-index: 1;
  margin-top: 50px;
  @media(max-width: 680px){
  margin-top: 30px;
  }
}
.btn:hover, .btn-2:hover {
  text-decoration: none;
  opacity: 1;
}
.btn:focus-visible, .btn-2:focus-visible { @include focus-ring; }

.card {
  padding: $space;
  border: 1px solid #e7e7e7;
  border-radius: .5rem;
  max-width: 40rem;
}

.field {
  display: grid;
  gap: .25rem;
  margin-bottom: .75rem;
}
input, textarea {
  padding: .6rem .75rem;
  border: 1px solid #ccc;
  border-radius: .375rem;
  font: inherit;
}
input:focus-visible, textarea:focus-visible { @include focus-ring; }

.form-help { color: $color-muted; margin-top: 0; }

// Footer
.site-footer {
  padding-block: $space;
  background: #042030;
}
.site-footer p { margin: 0; color: white; }

.header-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;

  img{
    max-width: 350px;
  }
  .nav{
    a{
      color:white;
      transition: all 0.2s;
      &:hover{
        text-decoration: none;
        color: #00fffd;
      }
    }
  }
  @media(max-width: 1299px){
    justify-content: left;
    gap: 35px;
    img{
      max-width: 250px;
    }
  }
}


//section 1

#intro{
  background:#042030;
  position: relative;
  overflow: hidden;
  &.terms-of-service{
    .section-1-wrapper h1{
      font-size: 60px;
    }
    .section-1-wrapper h2{
      font-size: 34px;
      margin-top: 10px;
      font-weight: 300;
    }
    @media(max-width: 580px){
      .section-1-wrapper h1{
        font-size: 32px;
      }
      .section-1-wrapper h2{
        font-size: 22px;
      }
    }
    .terms-service-wrapper{
      margin-top: 50px;
      display: flex;
      justify-content: center;
      .terms-container{
        height: 500px;
        max-width:85%;
        background: white;
        padding: 30px;
        border-radius: 5px;
        overflow: scroll;
        ol{
          padding-left: 20px;
          margin:0;
          li{
            font-weight: 600;
            margin-bottom: 15px;
            h3{
              margin: 0;
              margin-bottom: 3px;
              font-size: 15px;
            }
            p{
              color: black;
              font-size: 14px;
              margin: 8px 0;
              line-height: normal;
            }
          }
        }
      }
    }
    .actions-wrapper{
      display: flex;
      gap: 15px;
    }
  }
}
.commerce-bg{
  position: absolute;
  top:15%;
  opacity: 0.09;
  left:50%;
  transform: translateX(-50%);
  max-width: 80%;
  z-index: 1;
  pointer-events: none;
}
.intro-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  h1{
    color:$color-bg;
    span{
      font-weight: 300;
    }
    font-size: clamp(2.25rem, 4.5vw, 6.8rem);
    line-height: normal;
    margin: 0;
  }
  h2{
    span{
      font-weight: 300;
    }
    font-size: clamp(1.4rem, 2.3vw, 3.4rem);
    line-height: normal;
    color: $color-bg;
    margin-top: 20px;
    margin-bottom: 0;
  }
  p{
    color:$color-bg;
    font-size: clamp(1.1rem, 1.3vw, 1.2rem);
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 40px;
  }
  .btn{
    margin-top: 50px;
  }
  .plus-icon{
    position: relative;
    width: 26px;
    height: 26px;
    display: block;
    &:after{
      content: "";
      position: absolute;
      height: 3px;
      left: 0;
      background: white;
      width: 100%;
      top: 50%;
      transform: translateY(-50%);
    }
    &:before{
      content: "";
      position: absolute;
      height: 100%;
      left: 50%;
      background: white;
      width: 3px;
      top: 0;
      transform: translateX(-50%);
    }
  }
  .ns-react-container{
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
  }
  @media(max-width:680px){
    .ns-react-container{
      flex-direction: column;
      gap: 10px;
      max-width: 170px;
    }
    .btn{
      margin-top: 30px;
    }
  }
}

//  section 2
#what-is-awacommerce{
  background:#64ffff;
  position: relative;
  .what-is-awacommerce-wrapper{
    display: flex;
    align-items: center;
    gap: 100px;
    position: relative;
    z-index: 5;
    .left-container{
      h2{
        color: $color-section-2;
        span{
          font-weight: 400;
        }
      }
      h3{
        font-size: 24px;
        font-weight: 300;
      }
    }
    .right-container{
      min-width: 36%;
    }
  }
  .what-is-awacommerce-bg-wrapper{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    img{
      position: absolute;
      bottom: 0;
      right: 0;
      z-index: 2;
      opacity: 0.6;
    }
  }
  @media(max-width: 900px){
    .what-is-awacommerce-wrapper{
      gap: 40px;
      z-index: 5;
      .left-container{
        h3{
          font-size: 18px;
        }
      }
    }
  }
  @media(max-width: 580px){
    .what-is-awacommerce-wrapper{
      flex-direction: column;
      gap: 30px;
      z-index: 5;
      .left-container{
        h3{
          font-size: 16px;
        }
      }
      .right-container{
        min-width: 36%;
        max-width: 300px;
      }
    }
  }
}


//  section 3
#benefits{
  position: relative;
  overflow: hidden;
  .benefits-bg-wrapper{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/section-3-bg-1.png');
    background-repeat: no-repeat;
    background-position: right;
  }
  .benefits-wrapper{
    display: flex;
    align-items: center;
    gap: 70px;
    position: relative;
    z-index: 5;
    justify-content: space-between;
    .left-container{
      h2{
        color: $color-section-2;
        span{
          font-weight: 400;
        }
      }
      ul{
        padding-left: 0;
        margin-top: 30px;
        li{
          padding-left: 50px;
          list-style: none;
          margin-bottom: 20px;
          background-image:url("../img/check-icon.png") ;
          background-repeat: no-repeat;
          background-size: 32px;
          background-position: left 2px;
          h4{
            margin: 0;
            font-size: clamp(1.2rem, 2.3vw, 1.6rem);
            color:#065987;
            line-height:normal;
          }
          p{
            margin: 0;
            margin-top: 5px;
          }
        }
      }
    }
    .right-container{
      min-width: 36%;
    }
  }
  @media(max-width: 1400px){
    .benefits-wrapper{
      gap: 50px;
      .right-container{
        max-width: 50%;
      }
    }
  }
  @media(max-width: 900px){
    .benefits-wrapper{
      gap: 40px;
      .left-container{
        ul{
          li{
            padding-left: 40px;
            background-size: 28px;
            h4{

            }
          }
        }
      }
    }
  }
  @media(max-width: 720px){
    .benefits-bg-wrapper{
      opacity: 0.6;
    }
    .benefits-wrapper{
      gap: 30px;
      flex-direction: column;
      .right-container{
        max-width: 70%;
      }
    }
  }
}


// section 4
#comparison{
  background-image: url("../img/table-bg.jpg");
  background-size: cover;
  h2{
    color:white;
    font-size: clamp(2.15rem, 3.15vw, 4.4rem);
    margin-bottom: 30px;
  }
  .table-container{
    margin-top: 25px;
    @media(max-width: 832px){
      overflow-x:scroll;
    }
    table{
      width: 100%;
      min-width: 800px;
      border-collapse: collapse;
      thead{
        background: rgb(0 0 0 / 25%);
        border-bottom:1px solid rgb(0 0 0 / 15%);
        th{
          padding:20px 20px;
          vertical-align: middle;
          border-right:1px solid rgb(0 0 0 / 15%);
          width: 20%;
          &.thead-col-1{
            width: 14%;
          }
          &.thead-col-5{
            background: rgb(0 0 0 / 30%);
          }
          &:last-of-type{
            border-right:none;
          }
          img{
            float:left;
          }
        }
      }
      tbody{
        background: rgb(0 0 0 / 15%);
        tr{
          border-bottom:1px solid rgb(0 0 0 / 15%);
          td{
            padding:6px 20px;
            vertical-align: middle;
            color:white;
            font-weight: 300;
            border-right:1px solid rgb(0 0 0 / 15%);
            &.first-column{
              color: #b9ffa6;
              font-weight:500;
              font-size: 14px;
              text-transform: uppercase;
              font-style: normal;
            }
            &.highlighted{
              background: rgb(0 0 0 / 13%);
            }
            &:last-of-type{
              border-right:none;
            }
          }
        }
      }
    }
  }
  @media(max-width: 1100px){
    height: initial;
    min-height: initial;
    .comparison-wrapper{
      padding-block: 45px;
    }
  }
}


// section 5
#feature-highlights{
  background:white url("../img/section-5-bg-1.jpg");
  background-repeat: no-repeat;
  .feature-highlights-wrapper{
    display: flex;
    align-items: center;
    gap: 100px;
    position: relative;
    z-index: 5;
    justify-content: space-between;
    .right-container{
      min-width: 36%;
    }
    h2{
      color:white;
      font-size: clamp(2.15rem, 3.15vw, 4.4rem);
    }
    h3{
      color:white;
      font-weight: 400;
      font-size:24px;
      line-height:normal;
      margin-bottom: 30px;
    }
    ul{
      list-style: none;
      padding-left: 0;
      li{
        list-style: none;
        h4{
          font-size:20px;
          color:white;
          font-weight: 200;
          position: relative;
          padding-left: 30px;
          line-height: normal;
          &:before{
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            border: 1px solid #79ffec;
            border-radius: 50px;
            left: 0;
            top: 2px;
          }
          &:after{
            content: "";
            position: absolute;
            width: 10px;
            height: 10px;
            background: #79ffec;
            border-radius: 50px;
            left: 4px;
            top: 6px;
          }
        }
      }
    }
  }
  @media(max-width: 900px){
    .feature-highlights-wrapper{
      h3{
        font-size: 22px;
      }
      ul{
        li{
          h4{
            font-size:16px;
          }
        }
      }
    }
  }
  @media(max-width: 680px){
    .feature-highlights-wrapper{
      flex-direction: column;
      gap: 30px;
      .right-container{
        width: 50%;
      }
    }
  }
  @media(min-width: 1921px){
    background-size:64% ;
  }
}

// section 6
#proof-investment {
  background: linear-gradient(120deg,rgba(0, 0, 0, 1) 0%, rgba(94, 249, 246, 1) 100%);
  position: relative;
  img.proof-investment-bg{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
  }
  .proof-investment-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
    position: relative;
    z-index: 5;
    justify-content: space-between;

    .right-container {
      min-width: 36%;
    }
    h2{
      color:white;
      font-size: clamp(2.15rem, 3.15vw, 4.4rem);
    }
    h3{
      color:white;
      font-weight: 400;
      font-size:24px;
      line-height: normal;
      margin-bottom: 30px;
    }
    ul{
      list-style: none;
      padding-left: 0;
      li{
        list-style: none;
        h4{
          font-size:20px;
          color:white;
          font-weight: 200;
          position: relative;
          padding-left: 30px;
          line-height: normal;
          &:before{
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            border: 1px solid #79ffec;
            border-radius: 50px;
            left: 0;
            top: 2px;
          }
          &:after{
            content: "";
            position: absolute;
            width: 10px;
            height: 10px;
            background: #79ffec;
            border-radius: 50px;
            left: 4px;
            top: 6px;
          }
        }
      }
    }
    .leyend{
      color:#00ffdf;
    }
  }
  @media(max-width: 900px){
    .proof-investment-wrapper{
      h3{
        font-size: 22px;
      }
      ul{
        li{
          h4{
            font-size:16px;
          }
        }
      }
    }
  }
  @media(max-width: 680px){
    .proof-investment-wrapper{
      flex-direction: column;
      gap: 30px;
      .right-container{
        width: 50%;
      }
    }
  }
}

// section 7
#partner-program {
  background: linear-gradient(120deg,#29abe2, #2e3192 100%);
  position: relative;
  overflow: hidden;
  img.partner-program-bg-1{
    position: absolute;
    top: -90px;
    left: 60%;
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
  }
  img.partner-program-bg-2{
    position: absolute;
    bottom: -90px;
    left: 10%;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
  }
  img.partner-program-bg-3{
    position: absolute;
    top: 90px;
    right: -10%;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
  }
  img.partner-program-bg-4{
    position: absolute;
    top: 30%;
    left: 10%;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
  }
  img.partner-program-bg-5{
    position: absolute;
    top: 30%;
    right: 10%;
    opacity: 0.4;
    z-index: 2;
    transform: rotate(90deg);
    pointer-events: none;
  }
  img.partner-program-bg-6{
    position: absolute;
    bottom: 10%;
    left: 50%;
    opacity: 0.3;
    z-index: 2;
    transform: rotate(180deg);
    pointer-events: none;
  }
  img.partner-program-bg-7{
    position: absolute;
    bottom: -30%;
    left: -5%;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
  }
  img.partner-program-bg-8{
    position: absolute;
    bottom: -20%;
    right: -5%;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
  }
  img.partner-program-bg-9{
    position: absolute;
    top: -40%;
    left: -5%;
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
  }
  .partner-program-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15pxpx;
    position: relative;
    z-index: 5;
    justify-content: space-between;
    padding: 0 15px;
    h2{
      color:white;
      font-size: clamp(2.15rem, 3.15vw, 4.4rem);
      margin: 0;
    }
    h3{
      color:white;
      font-weight: 400;
      font-size:24px;
      line-height: normal;
      margin-bottom: 0;
      text-align:center;
    }
    p{
      max-width: 600px;
      text-align: center;
      color:white;
      margin-bottom: 50px;
    }
  }
}

// section 8
#contact-us {
  background: linear-gradient(120deg, #1737ba, #87f2ac 100%);
  position: relative;
  overflow: hidden;
  .decoration-top{
    &:after{
      content: "";
      position: absolute;
      top: -5%;
      left: -5%;
      background: white;
      border-radius: 50%;
      width: 400px;
      height: 400px;
      opacity: 0.08;
    }
    &:before{
      content: "";
      position: absolute;
      top: -8%;
      left: -8%;
      background: white;
      border-radius: 50%;
      width: 600px;
      height: 600px;
      opacity: 0.08;
    }
  }
  .decoration-bottom{
    &:after{
      content: "";
      position: absolute;
      bottom: -5%;
      right: -5%;
      background: white;
      border-radius: 50%;
      width: 400px;
      height: 400px;
      opacity: 0.08;
    }
    &:before{
      content: "";
      position: absolute;
      bottom: -8%;
      right: -8%;
      background: white;
      border-radius: 50%;
      width: 600px;
      height: 600px;
      opacity: 0.08;
    }
  }
  .contact-us-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15pxpx;
    position: relative;
    z-index: 5;
    justify-content: space-between;
    padding: 0 15px;
    h2{
      color:white;
      font-size: clamp(2.15rem, 3.15vw, 4.4rem);
      margin: 0;
      text-align: center;
    }
    h3{
      color:white;
      font-weight: 400;
      font-size:24px;
      line-height: normal;
      margin-bottom: 0;
      text-align: center;
      margin-top: 10px;
    }
    h3.contact-title{
      margin-top: 20px;
      font-weight: 600;
      font-size:28px;
    }
    p{
      text-align: center;
      color:white;
      margin-bottom: 50px;
    }
  }
}

//contact form
#contact-form{
  width: 100%;
  max-width: 400px;
  .form-row{
    margin-bottom: 15px;
    position: relative;
    label{
      visibility: hidden;
      position: absolute;
      pointer-events: none;
    }
    input, textarea{
      width: 100%;
      background: #ffffff24;
      border: 0;
      color: #fff;
      font-weight: 300;
      &::placeholder{
        color: white;
        font-weight: 300;
      }
      &:focus{
        outline: 1px solid #ffffff91;
      }
    }
  }
  .form-actions{
    text-align: center;
    #submit-btn{
      min-width:160px;
      border: none;
      cursor: pointer;
    }
  }
}


//footer
.site-footer{
  .footer-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    ul{
      display: flex;
      list-style: none;
      gap: 20px;
      padding: 0;
      li{
        a{
          color: white;
          font-size: 15px;
          &:hover{
            text-decoration: none;
            color: #00fffd;
          }
        }
      }
    }
    .footer-logo{
      a{
        display: block;
        width: 250px;
        img{
          width: 100%;
        }
      }
    }
  }
  @media(max-width: 1340px){
    .container{
      padding-top: 15px;
      padding-bottom: 15px;
      .footer-wrapper{
        flex-direction: column;
      }
    }
  }
  @media(max-width: 1040px){
    .container{
      padding-top: 15px;
      padding-bottom: 15px;
      .footer-wrapper{
        flex-direction: column;
        ul{
          flex-direction: column;
          align-items: center;
          gap: 10px;
          margin-bottom: 30px;
        }
      }
    }
  }
}
.input-error {
  outline: 2px solid red;
  background: rgba(255, 255, 255, 0.6) !important;
  &::placeholder {
    color: #d93025 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    opacity: 1;
  }
}