/* =========================================
   RB Certifications Cards
========================================= */

.rb-cert-grid-section{
  background: #1f1d1f;
  padding: clamp(44px, 6vw, 84px) 0;
}

.rb-cert-grid{
  width: min(1720px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.rb-cert-card{
  min-height: 600px;
  padding: 42px 34px 40px;
  background: linear-gradient(90deg, #2c2c2c 0%, #343434 100%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.rb-cert-card__logo{
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 26px;
}

.rb-cert-card__logo-img{
  display: block;
  max-width: 220px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rb-cert-card__body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.rb-cert-card__title{
  margin: 0;
  color: #fff;
  /* font-family: "Cormorant Garamond", serif; */
  font-size: clamp(28px, 1.9vw, 44px);
  line-height: 1.08;
  font-weight: 600;
}

.rb-cert-card__line{
  display: block;
  width: 132px;
  height: 2px;
  margin: 18px auto 24px;
  background: #a75c39;
}

.rb-cert-card__text{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.9);
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.75;
  font-weight: 300;
}

.rb-cert-card__text:last-child{
  margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1100px){
  .rb-cert-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rb-cert-card{
    min-height: 700px;
  }
}

/* Mobile */
@media (max-width: 767px){
  .rb-cert-grid-section{
    padding: 28px 0 48px;
  }

  .rb-cert-grid{
    width: min(100%, calc(100% - 24px));
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rb-cert-card{
    min-height: auto;
    padding: 28px 20px 26px;
  }

  .rb-cert-card__logo{
    min-height: 110px;
    margin-bottom: 20px;
  }

  .rb-cert-card__logo-img{
    max-width: 180px;
    max-height: 90px;
  }

  .rb-cert-card__title{
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .rb-cert-card__line{
    width: 110px;
    margin: 16px auto 20px;
  }

  .rb-cert-card__text{
    font-size: 15px;
    line-height: 1.7;
  }
}




.rb-sostenibilidad-btn-wrap{
  display: flex;
  justify-content: center;
}

.rb-sostenibilidad-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 30px;
  padding: 14px 28px;
  background: #ab603d;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease;
}

.rb-sostenibilidad-btn span{
  position: relative;
  z-index: 2;
}

.rb-sostenibilidad-btn::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s ease;
  z-index: 1;
}

.rb-sostenibilidad-btn:hover::before,
.rb-sostenibilidad-btn:focus-visible::before{
  transform: scaleX(1);
}

.rb-sostenibilidad-btn:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 4px;
}