/* ======================================
   CERTIFICACIONES
====================================== */

.certifications {
  background: #faf9f7;
}

.certifications .section-heading {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 28px 20px;
  border: 1px solid #ebe5df;
  border-radius: 16px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(71, 37, 33, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-7px);
  border-color: var(--primary);
  box-shadow: 0 18px 38px rgba(112, 42, 38, 0.14);
}

.cert-card img {
  display: block;
  width: 100%;
  max-width: 130px;
  height: 95px;
  margin-bottom: 20px;
  object-fit: contain;
}

.cert-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Tablets */

@media (max-width: 1050px) {
  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Celulares */

@media (max-width: 650px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cert-card {
    min-height: 180px;
    padding: 22px 14px;
  }

  .cert-card img {
    max-width: 105px;
    height: 80px;
  }
}

/* Celulares pequeños */

@media (max-width: 420px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}