/* ----------  BLOQUE BASE  ---------- */
.mw-1600 {
  max-width: 1600px !important;
}

.hero.custom .parallax .text-content h1 {
  font-size: 64px;
  margin-bottom: 0;
}
.arrow-container {
  margin: 0 auto;
  max-width: 1730px;
  width: 100%;
}

.benefit-item {
  align-items: center;
  background: #d0e8d6;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 25px;
  width: 100%;
  max-width: 558px;
}

.benefit-item.blue {
  background-color: #badff3;
}

.benefit-item.blue svg g path:first-child {
  fill: #2d9cdb;
}

.benefit-item img,
.benefit-item svg {
  height: 123px;
  width: 123px;
  margin-bottom: 8px;
}

.benefit-subtitle {
  font-family: var(--gotham-bold);
  font-size: 50px;
  line-height: 100%;
  margin-bottom: 5px;
  text-align: center;
}

.benefit-title {
  font-family: var(--alklaline);
  font-size: 64px;
  line-height: 100%;
  margin-bottom: 0;
}

.benefits-grid {
 display: flex;
 flex-wrap: wrap;
   gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 558px));
  /* centrar cada fila según el nº de items */
  justify-content: center;
  /* empujar items sobrantes para rellenar huecos antes de crear nueva fila */
  grid-auto-flow: row dense;
  /* opcional: centra el contenido dentro de cada tarjeta */
  /* justify-items: center; */

  /* conserva tu padding y margin si lo necesitas */
  margin: 0 auto;
  padding: 67px 16px 32px;
}


.benefits-grid.fix {
  padding: 45px 16px;
}

.certified-section {
  padding: 45px 16px;
}

.certified-section__container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 95px;
  margin: 0 auto;
  max-width: 1730px;
  padding: 0 100px 0 200px;
}

.certified-section__content {
  flex: 1 1 300px;
}

.certified-section__highlight {
  color: #2d9cdb;
  font-family: var(--gotham-bold);
  font-weight: 600;
}
.certified-section__highlight.green {
  color: #288337;
}

.certified-section__image {
  flex: 0 0 auto;
  max-width: 100%;
  width: 300px;
}
.certified-section__image img {
  display: block;
  height: auto;
  width: 100%;
}

.certified-section__text {
  color: #000;
  font-family: var(--gotham-light);
  font-size: 31px;
  line-height: 1.6;
  margin: 0;
}

.hero.custom .parallax.cert {
  background-attachment: local;
  background-color: #000;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 700px;
  overflow: hidden;
  position: relative;
}
.hero.custom .parallax.cert::before {
  background: rgba(0, 0, 0, 0.35);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.hero.custom.cert {
  min-height: 700px;
}

.hero-custom-space {
  align-items: center;
  display: flex;
  gap: 20px;
}

.margin-section {
  margin-bottom: 40px !important;
  margin-top: 40px !important;
}

.mega-card.float-green,
.mega-card.green {
  background-color: #288337;
}
.mega-card.green {
  border-radius: 0;
}

.padding-big {
  padding: 85px 16px;
}

.parallax .text-content {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 60px;
  position: relative;
}
.parallax .text-content p {
  line-height: 120%;
  font-size: 64px;
}

.parallax.img-cow {
  background-position: 80% 84px !important;
  background-size: auto;
}
.parallax.img-cow.cert {
  background-position: center 0 !important;
  background-size: cover !important;
}

.svg-custom {
  width: 280px;
  max-width: 280px;
  position: static;
  height: 280px;
}

.slider-container {
  max-width: 1730px;
  margin: 0 auto;
  padding: 85px 0;
  position: relative;
  width: 100%;
}

.tns-item img {
  border-radius: 33px;
}

.text-container.custom {
  margin: 0 auto;
  max-width: 1730px;
}

.text-content img {
  max-width: 363px;
  width: 100%;
}

.text-green {
  color: #288337;
}

.video-section {
  margin: 85px auto;
  max-width: 1730px;
  min-height: 1150px;
  position: relative;
}

.video-section__background {
  background-color: #288337;
  min-height: 360px;
  padding-top: 52px;
  position: relative;
  text-align: center;
  border-radius: 20px;
}

.video-section__text {
  color: #fff;
  font-family: var(--gotham-light);
  font-size: 38px;
  font-weight: 400;
  line-height: 120%;
}
.video-section__text strong {
  font-weight: 700;
}

.video-section__video-container {
  left: 50%;
  max-width: 1400px;
  position: absolute;
  top: 180px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
}

.video-section__iframe {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: block;
  min-height: 790px;
  pointer-events: auto;
  position: relative;
  width: 100%;
  z-index: 99;
  border-radius: 20px;
}

.benefit-item .title {
  color: #212529;
}

.benefit-item .text {
  color: #212529;
}

.benefit-title {
  color: #212529;
}
.certified-section__text{
  color: #212529;
}


/* ----------  MEDIA-QUERIES  ---------- */

/* max-width 1440 */
@media (max-width: 1440px) {
  .certified-section__container {
    padding: 0 20px;
  }
  .video-section__background {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 360px;
  }
  .video-section__video-container {
    margin-bottom: 30px;
    max-width: 100%;
    position: static;
    transform: none;
    width: 100%;
  }
}

/* max-width 1200 */
@media (max-width: 1200px) {
  .flex-column-change {
    align-items: center !important;
    flex-direction: column-reverse !important;
  }
}

/* max-width 1199 */
@media (max-width: 1199px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certified-section__container {
    gap: 32px;
    padding: 40px 0;
  }
}

/* max-width 1024 */
@media (max-width: 1024px) {
  .video-section__iframe {
    height: 360px;
  }
  .video-section__video-container {
    max-width: 100%;
    top: 160px;
  }
}

/* max-width 768 */
@media (max-width: 768px) {
  .benefit-item.white {
      background-color: white;
    }
  .hero.custom .parallax .text-content h1 {
    font-size: 40px;
    margin-bottom: 0;
  }
  .hero.custom .parallax.cert::before {
    display: none;
  }
  .parallax .text-content {
    gap: 40px;
  }
  .svg-custom {
    width: auto;
    height: auto;
  }
  .benefit-subtitle {
    font-size: 36px;
    line-height: 120%;
  }
  .benefit-title {
    font-size: 40px;
    line-height: 120%;
  }
  .hero-custom-space {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 540px;
  }
  .hero-custom-space img {
    width: 125px;
    max-width: 125px;
  }
  .hero-custom-space .img2 {
    width: 180px;
    max-width: 180px;
  }
  .hero-custom-space svg {
    max-width: 211px;
  }
  .padding-big {
    padding: 48px 108px;
  }
  .parallax .text-content p {
    font-size: 40px;
  }
  .slider-container {
    padding: 40px 0;
  }
  .text-container .inner-content {
    padding: 48px 108px;
  }
  .main-text {
    font-size: 21px;
    line-height: 120%;
  }
  .col-md-8,
  .col-md-10 {
    padding: 0;
  }
  .certified-section {
    padding: 0 48px;
  }
  .certified-section__container {
    padding: 0;
  }
  .certified-section__text {
    font-size: 21px;
  }
  .benefits-grid.fix {
    padding: 40px 0;
  }
  .video-section__background {
    min-height: auto;
    padding: 40px 16px;
    border-radius: 0;
  }
  .video-section__iframe {
    max-height: 400px;
    min-height: 400px;
    border-radius: 0;
  }
  .video-section__video-container {
    top: 140px;
  }
  .video-section {
    height: auto;
    min-height: auto;
  }
  .certified-section__image img {
    max-width: 200px;
    margin: 0 auto;
  }
  .benefits-grid {
    gap: 0;
  }
}

/* max-width 767 */
@media (max-width: 767px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .certified-section__image {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .text-container .inner-content {
    padding: 48px;
  }
  .padding-big {
    padding: 48px;
  }
  .benefit-subtitle {
    font-size: 28px;
  }
  .certified-section__container {
    gap: 10px;
  }
  .video-section__text {
    font-size: 22px;
  }
  .video-section {
    margin-top: 0;
    margin-bottom: 0;
  }
  .video-section__iframe {
    max-height: 200px;
    min-height: 200px;
  }
  .benefit-item {
    border-radius: 0 !important;
  }
}
