:root {
  /* Cores */
  --color-primary: #1868db;
  --color-accent: #1abc9c;
  --color-accent-hover: #ff2c3e;
  --color-white: #ffffff;
  --color-dark: #333333;
  --color-black: #000000;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.2rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-section: var(--space-xl);
  --space-gap: var(--space-lg);

  /* Tamanhos */
  --icon-size: 45px;
  --max-content-width: 1200px;

  /* Radius e Sombra */
  --radius-lg: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.banner-rastreabilidade {
  background: url("/assets/img/pagina-rastreabilidade/top-banner/img-top-banner-rastreabilidade.png")
    center center / cover no-repeat;
}

.banner-rastreabilidade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    1deg,
    rgba(0, 0, 0, 0.541) 0%,
    rgba(34, 66, 48, 0.397) 43%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.banner-rastreabilidade span {
  color: #bdf31c;
}


.rastreabilidade .hero .hero-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
}


.rastreabilidade-overview {
  padding-top: 80px;
  padding-bottom: 20px;
  color: white !important;
  background: linear-gradient(#0e333b 85%, #ffffff 5%);
  position: relative;
  z-index: 0;
}

.rastreabilidade-overview-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.rastreabilidade-overview-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.rastreabilidade-overview-image img {
  width: 100%;
  max-width: none;
}

.rastreabilidade-overview-text {
  flex: 1;
  min-width: 650px;
}

.rastreabilidade-overview-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.rastreabilidade-highlight {
  color: #01c65c;
}

.rastreabilidade-overview-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-right: 30px;
}

.rastreabilidade-overview-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rastreabilidade-overview-features li h3 {
  font-size: 15px;
  color: #01c65c;
  margin: 0 0 4px 0;
}

.rastreabilidade-overview-features li {
  background-color: #154c58;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.rastreabilidade-overview-features li p {
  margin: 0;
  font-size: 15px;
}

.rastreabilidade-overview-features li img {
  width: 66px;
  height: 65px;
  flex-shrink: 0;
}

.rastreabilidade-feature-text {
  display: flex;
  flex-direction: column;
}

.rastreabilidade-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px 40px;
  margin-top: 20px; 
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.rastreabilidade-card {
  background: #f3f3f3;
  border-radius: 12px;
  padding: 24px 20px;
  width: 300px;
  text-align: center;
}

.rastreabilidade-card h4 {
  font-size: 20px;
  color: #0e333b;
  font-weight: 700;
  margin-bottom: 10px;
}

.rastreabilidade-card p {
  font-size: 15px;
  color: #017b3f;
  font-weight: 600;
  margin: 0;
}

.qr-section {
  margin: 0 auto;
  background: #fff;
  width: 100%;
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.qr-container {
  max-width: 1200px;
  position: relative;
  width: 100%;
  align-items: center;
}


.background-green {
  background-color: #3cb09e;
  position: absolute;
  top: clamp(30px, 6vw, 60px);
  left: clamp(20px, 10vw, 160px);
  width: min(90%, 900px); 
  aspect-ratio: 3 / 1; 
  border-radius: 20px;
  z-index: 0;
}


.qr-content {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
}


.phone-wrapper {
  position: relative;
  width: 280px;
  margin-left: 150px;
  flex-shrink: 0;
}

.phone-frame {
  width: 100%;
  display: block;
  z-index: 2;
  position: relative;
}

.text-box {
  padding: 40px;
  color: #fff;
  max-width: 600px;
  text-align: left;
}

.text-box h2 {
  color: #0e2d3d;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.text-box p {
  font-size: 1rem;
  line-height: 1.5;
}

  .features-rastreabilidade {
    background-color: #0c2e33; 
    padding: 80px 20px;
    color: #ffffff;
  }
  
  .features-rastreabilidade .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .features-title h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 60px;
  }
  
  .features-title strong {
    color: #4ade80; 
  }
  
  .features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #1a202c;
    font-weight: 600;
    font-size: 20px;
  }
  
  .feature-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }



.app-banner-rastreabilidade {
  background-color: #02c06d;
  padding-top: 40px;
  color: #fefefe !important;
}

.app-banner-rastreabilidade .container-rastreabilidade {
  max-width: 1200px;
  margin: 0 auto;
}

.app-banner-content-rastreabilidade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.app-text-rastreabilidade {
  flex: 1 1 40%;
}

.app-text-rastreabilidade h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 3.5rem;
  color: #046062;
}

.app-text-rastreabilidade p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #f1f1f1 !important;
}

.app-image-rastreabilidade {
  flex: 1 1 40%;
  text-align: center;
}

.app-image-rastreabilidade img {
  max-width: 100%;
  height: auto;
  display: block;
}

.traceability-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
  padding: 60px 20px;
}

.traceability-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.traceability-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.tab-buttons {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #00b56e;
  color: #fff;
}

.tab-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(200px, 60vw, 650px);
  height: auto;
  padding: 1rem;
  box-sizing: border-box;
}

.tab-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.tab-image.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

@keyframes fill-line {
  from {
    height: 0;
  }

  to {
    height: 100%;
  }
}

.feature-block.reverse .side-line {
  order: -1;
}


@media (max-width: 1200px) {
  .app-banner-rastreabilidade {
    padding: 2rem 2rem 0;
  }
}


@media (max-width: 1080px) {
  .rastreabilidade-overview-image img {
    width: 80%;
    transform: none;
  }

  .rastreabilidade-overview-container {
    flex-direction: column;
    padding: 2rem;
    gap: 40px;
  }

  .rastreabilidade-overview-image,
  .rastreabilidade-overview-text {
    text-align: center;
  }
  .rastreabilidade-overview-text {
    text-align: center;
    min-width: auto;
  }

  .rastreabilidade-overview-features li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .qr-content {
    flex-direction: column;
    align-items: center;
  }

  .phone-wrapper {
    margin: 0 auto;
    align-items: center;
  }

  .background-green {
    display: none;
  }

  .text-box {
    background-color: #3cb09e;
    margin-bottom: 20px;
    padding: 45px;
    border-radius: 20px;
    text-align: center;
  }

  .text-box h2 {
    color: #0e2d3d;
    font-size: 1.4rem;
  }

  .text-box p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
}


@media (max-width: 992px) {
  .background-green {
    left: 5%;
    width: 85%;
  }
}

@media (max-width: 768px) {
  .background-green {
    display: none; 
  }
  .text-box {
    background-color: #3cb09e;
    margin-bottom: 20px;
    padding: clamp(20px, 5vw, 45px);
    border-radius: 20px;
    text-align: center;
  }

  .tab-content {
    width: 100%;
    min-height: 500px;
  }

  .feature-block,
  .feature-block.reverse {
    flex-direction: column;
  }

  .feature-block.reverse .option {
    flex-direction: row;
  }

  .rastreabilidade-feature-text {
    align-items: center;
  }

  .rastreabilidade-overview-features li img {
    margin-bottom: 10px;
  }

  .app-banner-rastreabilidade {
    padding: 2rem 2rem 0;
  }

  .app-banner-content-rastreabilidade {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

}


@media (max-width: 480px) {
  .tab-content {
    min-height: clamp(150px, 40vw, 300px);
  }
}

@media (max-width: 350px) {
  .tab-content {
    min-height: clamp(120px, 35vw, 180px);
  }
}

