/* =========================
   SECTION
========================= */
.certificaciones {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff, #f7f7f7);
}

.certificaciones-container {
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.certificaciones-header {
  text-align: center;
  margin-bottom: 60px;
}

.certificaciones-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 15px;
}

.certificaciones-header h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #cc0000, #990000);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.certificaciones-subtitle {
  color: #666;
}

/* GRID */
.certificaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* CARD */
.cert-card {
  background: white;
  padding: 35px 25px;
  border-radius: 14px;
  text-align: center;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;

  position: relative;
  overflow: hidden;

  /* ANIMACIÓN AL CARGAR */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

/* DELAY EN CASCADA */
.cert-card:nth-child(1) {
  animation-delay: 0.1s;
}
.cert-card:nth-child(2) {
  animation-delay: 0.2s;
}
.cert-card:nth-child(3) {
  animation-delay: 0.3s;
}
.cert-card:nth-child(4) {
  animation-delay: 0.4s;
}
.cert-card:nth-child(5) {
  animation-delay: 0.5s;
}
.cert-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* LINEA TOP */
.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #cc0000, #990000);
  transition: width 0.4s ease;
}

.cert-card:hover::before {
  width: 100%;
}

/* HOVER */
.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(204, 0, 0, 0.15);
}

/* ICONO */
.cert-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #fff5f5, #ffeaea);
  border-radius: 16px;

  transition: all 0.3s ease;
}

.cert-icon img {
  width: 35px;
  transition: all 0.3s ease;
}

/* HOVER ICON */
.cert-card:hover .cert-icon {
  background: linear-gradient(135deg, #cc0000, #990000);
}

.cert-card:hover img {
  transform: scale(1.15);
  filter: brightness(0) invert(1);
}

/* TEXTO */
.cert-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cert-card p {
  color: #666;
  font-size: 0.9rem;
}

/* ANIMACIÓN */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .certificaciones-header h2 {
    font-size: 1.1rem;
  }
  .certificaciones {
    padding: 60px 15px;
  }

  .certificaciones-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cert-card {
    padding: 28px 20px;
  }
}
