/* =========================
   HERO
========================= */

.heroIntro {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIntro 900ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.heroIntro--1 { animation-delay: 120ms; }
.heroIntro--2 { animation-delay: 260ms; }
.heroIntro--3 { animation-delay: 400ms; }
.heroIntro--4 { animation-delay: 540ms; }

@keyframes heroIntro {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero{
  --hero-text: rgba(255,255,255,.92);
  --hero-muted: rgba(255,255,255,.72);
  padding-top: 62px;
  position: relative;
  min-height: 78vh;
  background: var(--brand-900);
  overflow: hidden;
  isolation: isolate;
}

.hero__inner{
  position: relative;
  z-index: 5;
  min-height: inherit;
  display: grid;
  align-items: center;
  padding-left: clamp(32px, 11vw, 170px);
  padding-right: clamp(280px, 38vw, 680px);
  pointer-events: none;
}

.hero__content{
  max-width: 600px;
  padding: clamp(56px, 8vh, 88px) 0;
  color: var(--hero-text);
}

.hero__actions a,
.hero__actions button{
  pointer-events: auto;
}

.hero__kicker{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .48rem .82rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__title{
  margin: 18px 0 16px;
  max-width: 660px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-size: clamp(2.45rem, 4vw, 4.35rem);
}

.hero__lead{
  margin: 0 0 26px;
  max-width: 58ch;
  color: rgba(255,255,255,.80);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.68;
}

.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__trust{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-weight: 650;
  font-size: .95rem;
}

.hero__trust li{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__trust span{
  color: var(--accent);
  font-weight: 800;
}
/* =========================
   HERO MEDIA / CAROUSEL
========================= */
.hero__media{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40%;
  z-index: 4;
  overflow: hidden;
}

.heroCarousel__slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.heroCarousel__slide.is-active{ opacity: 1; }

.heroCarousel__slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03);
  pointer-events: none;
}

.hero__media::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(15,47,31,1) 0%,
    rgba(15,47,31,.92) 18%,
    rgba(15,47,31,.55) 38%,
    rgba(15,47,31,.18) 55%,
    rgba(15,47,31,0) 75%
  );
}

.hero__media::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    70% 80% at 78% 35%,
    rgba(0,0,0,.20) 0%,
    rgba(0,0,0,0) 55%
  );
}

.heroCarousel__dots{
  position: absolute;
  left: 72%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  pointer-events: auto;

}

.heroCarousel__dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.26);
  cursor: pointer;
  padding: 0;
  transition:
    width .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    transform .22s ease;
}

.heroCarousel__dot:hover{
  background: rgba(255,255,255,.62);
  border-color: rgba(255,255,255,.88);
  transform: scale(1.08);
}

.heroCarousel__dot.is-active{
  width: 34px;
  background: var(--accent);
  border-color: var(--accent);
}



@media (max-width: 920px){
  .hero{ min-height: 72vh; }
  .hero__media{ left: 0; }

  .hero__inner{
    padding-right: 0;
    padding-left: 32px;
  }

  .hero__media::before{
    background: linear-gradient(
      180deg,
      rgba(15,47,31,.92) 0%,
      rgba(15,47,31,.85) 35%,
      rgba(15,47,31,.55) 60%,
      rgba(15,47,31,0) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce){
  .heroCarousel__slide{ transition: none; }
}

@media (max-width: 920px){
  .heroCarousel__dots{
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
  }
}

/* =========================
   PRODUCTS 
========================= */
.products__sectionHead{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}

.products__sectionHead--spaced{ margin-top: 26px; }

.products__sectionTitle{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--brand-900);
}

.products__sectionHint{
  font-size: 14px;
  color: rgba(15,47,31,.65);
}

.productsGrid{
  display: grid;
  gap: 16px;
}

.productsGrid--featured{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pCard{
  background: var(--surface);
  border: 1px solid rgba(15,47,31,.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15,47,31,.02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pCard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(15,47,31,.14);
}

.pCard__media{
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
}


.productsGrid--featured .pCard--featured .pCard__media{
  aspect-ratio: 16 / 8.2;
  min-height: 240px;
}


.pCard__media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pCard__body{ padding: 16px; }

.pCard__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pCard__name{
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--brand-900);
}

.pCard__desc{
  margin: 0 0 12px;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}



.pCard__actions{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2px;
}

@media (min-width: 1100px){
  .productsGrid--featured{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1099px){
  .productsGrid--featured{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.productsGrid--featured .pCard--featured{
  display: flex;
  flex-direction: column;
}

.productsGrid--featured .pCard--featured .pCard__media{
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.productsGrid--featured .pCard--featured .pCard__body{
  flex: 1;
  display: flex;
  flex-direction: column;
}
.productsGrid--featured .pCard--featured .pCard__actions{
  margin-top: auto;
  padding-top: 8px;
}

@media (min-width: 1200px){
  .productsGrid--featured .pCard__media{ max-height: 300px; }
}

@media (max-width: 900px){
  .productsGrid--featured{
    grid-template-columns: 1fr;
  }
  .products__sectionHead{
    flex-direction: column;
    align-items: flex-start;
  }
}

.pCard--link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.pCard--link:focus-visible{
  outline: 3px solid rgba(118,193,74,.35);
  outline-offset: 3px;
}

.pCard__actions .linkCta{
  transition: color .18s ease, opacity .18s ease;
}

.pCard--link:hover .linkCta,
.pCard--link:focus-visible .linkCta{
  color: var(--accent);
}

.pCard__actions .linkCta span{
  display: inline-block;
  transition: transform .18s ease;
}

/* =========================
   PRODUCTS DECOR
========================= */

.section--productsDecor{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.section--productsDecor::before{
  content: "";
  position: absolute;
  top: -36px;
  left: -34px;
  width: clamp(180px, 19vw, 300px);
  height: clamp(180px, 19vw, 300px);

  background-image: var(--products-ginger);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top left;

  opacity: .09;
  pointer-events: none;
  z-index: 0;
}

.section--productsDecor::after{
  content: "";
  position: absolute;
  right: -42px;
  bottom: -18px;
  width: clamp(190px, 28vw, 360px);
  height: clamp(150px, 17vw, 230px);

  background-image: var(--products-cacao);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;

  opacity: .075;
  pointer-events: none;
  z-index: 0;
}

.section--productsDecor > .container{
  position: relative;
  z-index: 1;
}


@media (max-width: 768px){
  .section--productsDecor::before{
    width: 160px;
    height: 160px;
    top: -22px;
    left: -32px;
    opacity: .045;
  }

  .section--productsDecor::after{
    width: 150px;
    height: 140px;
    right: -36px;
    bottom: -24px;
    opacity: .04;
  }
}

/* =========================
   WHY 
========================= */

.section--whyDecor{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section--whyDecor > .container{
  position: relative;
  z-index: 1;
}

.section--whyDecor > .container::before,
.section--whyDecor > .container::after{
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;

  width: clamp(170px, 18vw, 270px);
  height: clamp(260px, 30vw, 380px);

  background-image: var(--why-leaf);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  opacity: 0.6;
}

/* Hoja izquierda */
.section--whyDecor > .container::before{
  left: -172px;
  bottom: -115px;
  transform-origin: bottom left;
}

/* Hoja derecha en espejo */
.section--whyDecor > .container::after{
  right: 100px;
  bottom: -95px;
  transform: scaleX(-1);
  transform-origin: bottom right;
}

/* Aseguramos que el contenido quede por encima */
.section--whyDecor .sectionHead,
.section--whyDecor .cardsGrid{
  position: relative;
  z-index: 1;
}

@media (max-width: 980px){
  .section--whyDecor > .container::before,
  .section--whyDecor > .container::after{
    width: 190px;
    height: 280px;
    opacity: .06;
    bottom: 8px;
  }

  .section--whyDecor > .container::before{
    left: -56px;
  }

  .section--whyDecor > .container::after{
    right: -56px;
  }
}

@media (max-width: 640px){
  .section--whyDecor > .container::before,
  .section--whyDecor > .container::after{
    width: 150px;
    height: 220px;
    opacity: .05;
  }

  .section--whyDecor > .container::after{
    display: none;
  }
}

.whyHome{
  position: relative;
  overflow: hidden;
}

.whyHome__layout{
  grid-template-columns: minmax(270px, .78fr) minmax(0, 1.42fr);
}

.whyHome__head{
  max-width: 430px;
  margin-bottom: 0;
}

.whyHome__head .sectionTitle{
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.whyHome__head .sectionLead{
  max-width: 44ch;
}

.whyHome__note{
  position: relative;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(118,193,74,.10);
  border: 1px solid rgba(118,193,74,.22);
  color: rgba(255,255,255,.80);
  line-height: 1.58;
  font-size: .96rem;
  overflow: hidden;
}

.whyHome__note::after{
  content: "";
  position: absolute;
  left: -42px;
  bottom: -42px;
  width: 106px;
  height: 106px;
  border-radius: 999px;
  background: rgba(118,193,74,.10);
  pointer-events: none;
}

.whyHome__grid{
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.whyHome__grid .premiumCard{
  min-height: 178px;
  padding: 14px 16px 16px;
  text-align: left;
}

.whyHome__grid .premiumCard__icon{
  margin: 0 0 16px;
  width: 54px;
  height: 54px;
}

.whyHome__grid .premiumCard__icon svg{
  width: 26px;
  height: 26px;
}

.whyHome__grid .premiumCard__title{
  font-size: 1.06rem;
}

.whyHome__grid .premiumCard__text{
  margin-left: 0;
  margin-right: 0;
  max-width: 32ch;
  font-size: .94rem;
}

@media (max-width: 980px){
  .whyHome__layout{
    grid-template-columns: 1fr;
  }

  .whyHome__head{
    max-width: 760px;
    margin: 0 auto 4px;
    text-align: center;
  }

  .whyHome__head .sectionLead{
    margin-left: auto;
    margin-right: auto;
    max-width: 68ch;
  }

  .whyHome__note{
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .whyHome__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px){
  .whyHome__grid{
    grid-template-columns: 1fr;
  }

  .whyHome__grid .premiumCard{
    text-align: center;
  }

  .whyHome__grid .premiumCard__icon{
    margin-left: auto;
    margin-right: auto;
  }

  .whyHome__grid .premiumCard__text{
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   PRESENCE / GLOBAL MAP
========================================================= */

.presence{
  position: relative;
  overflow: hidden;
}

.presence__bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(118,193,74,.10), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(15,47,31,.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  opacity: .95;
}

.presence__inner{
  position: relative;
  z-index: 1;
}

.presence__layout{
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.35fr);
}

.presence__content{
  max-width: 440px;
}

.presence__head{
  margin-bottom: 0;
}

.presence__head .sectionTitle{
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.presence__head .sectionLead{
  max-width: 46ch;
}

.presenceStats{
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.presenceStat{
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,47,31,.08);
  box-shadow: 0 10px 26px rgba(15,47,31,.05);
}

.presenceStat::after{
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: rgba(118,193,74,.10);
  pointer-events: none;
  z-index: -1;
}

.presenceStat__label{
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}

.presenceStat__value{
  color: var(--brand-900);
  font-size: .94rem;
  font-weight: 850;
  text-align: right;
}

/* Map panel */
.presence__panel{
  position: relative;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,47,31,.10);
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: 0 24px 64px rgba(15,47,31,.10);
  overflow: hidden;
  isolation: isolate;
}


.presence__map{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
}

.presence__mapImage{
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

/* Labels over map */
.presence__map--labeled{
  position: relative;
}

.mapLabel{
  position: absolute;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;

  padding: 7px 11px;
  width: max-content;
  min-width: auto;
  max-width: 190px;

  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,47,31,.14);
  border-radius: 999px;
  color: var(--brand-900);
  box-shadow: 0 12px 26px rgba(15,47,31,.10);
  backdrop-filter: blur(8px);

  user-select: none;
  pointer-events: none;
}

.mapLabel__flag{
  display: block;
  width: 22px;
  height: 15px;
  max-width: 22px;
  min-width: 22px;
  object-fit: cover;
  flex: 0 0 22px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15,47,31,.10);
}

.mapLabel__content{
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.mapLabel strong{
  display: block;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.01em;
  color: var(--brand-900);
  white-space: nowrap;
}

.mapLabel small{
  display: block;
  font-size: 9.5px;
  line-height: 1.05;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
}

.mapLabel--rotterdam{
  border-color: rgba(118,193,74,.28);
  box-shadow: 0 14px 30px rgba(15,47,31,.12);
}

/* Posiciones */
.mapLabel--canada{
  left: 25%;
  top: 22%;
  transform: translate(-50%, -50%);
}

.mapLabel--usa{
  left: 33%;
  top: 38%;
  transform: translate(-46%, -50%);
}

.mapLabel--peru{
  left: 31%;
  top: 69%;
  transform: translate(-50%, -50%);
}

.mapLabel--rotterdam{
  left: 67%;
  top: 34%;
  transform: translate(-50%, -50%);
}

/* =========================
   CERTIFICATIONS 
========================= */
.section--certs{
  padding: 40px 0px;
    position: relative;
  overflow: hidden;
}

.section--certs::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  height: 1px;
  top: 0;
}

.section--certs::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 100%;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(118,193,74,.07);
  filter: blur(32px);
  pointer-events: none;
}

.certs__carousel{
  position: relative;
  margin-top: 26px;
}

.certs__viewport{
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.certs__track{
  display: flex;
  gap: 14px;
  padding: 10px;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.certs__item{
  flex: 0 0 auto;
  height: 100px;
  width: calc((100% - (14px * 5)) / 10);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}


.certs__item img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.certs__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.20);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform .18s ease, background .18s ease;
}

.certs__nav:hover{
  background: rgba(0,0,0,.30);
  transform: translateY(-50%) scale(1.03);
}

.certs__nav--prev{ left: -8px; }
.certs__nav--next{ right: -8px; }

.certs__cta{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

@media (max-width: 980px){
  .certs__item{ 
    width: calc((100% - (14px * 3)) / 4); 
  }
}

@media (max-width: 640px){
  .certs__item{ 
    width: calc((100% - (14px * 1)) / 4); 
    height: 92px;
    padding: 10px;
  }

  .certs__nav--prev{ left: 6px; }
  .certs__nav--next{ right: 6px; }
}