.certificates-fade {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.certificates {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;

  scroll-behavior: auto;          /* drag real, sin snap */
  cursor: grab;

  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE / Edge viejo */
}

.certificates::-webkit-scrollbar {
  display: none;                  /* Chrome, Edge, Safari */
}

.certificates.dragging {
  cursor: grabbing;
}

/* desactiva hover mientras arrastrás */
.certificates.dragging .certificate:hover {
  transform: none !important;
  box-shadow: none !important;
}

.certificate {
  min-width: 320px;
  height: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);

  cursor: pointer;
}

.certificate img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  user-select: none;              /* evita selección */
  pointer-events: none;           /* evita drag nativo */
}

.certificate.placeholder {
  color: #94A3B8;
  background: #F1F5F9;
}


.certificate:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.certificate-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  user-select: none;
  -webkit-user-drag: none;
}
.certificates-section h3 {
  color: var(--primary-dark);
}
