.card-img-top {
    height: 200px;
    object-fit: fill;
    width: 280px;
}

.center-container {
    display: flex;
    justify-content: center;
}

.card {
    margin-top: 20px;
}

#whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#whatsapp-icon img {
    width: 60px;
    height: 60px;
    border-radius: 20%;
    cursor: pointer;
}

@media only screen and (max-width: 767px) {
    #whatsapp-icon {
        bottom: 40px;
    }
}

.certificate-card {
  border: none;
  background: transparent;
}

.certificate-image-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.certificate-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.certificate-overlay-text {
  position: absolute;
  top: 50%; /* posición vertical (ajusta si lo quieres más arriba o abajo) */
  left: 50%;
  transform: translate(-50%, -50%);
  color: #002b5b; /* azul institucional */
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  width: 80%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.6); /* fondo translúcido para mejorar lectura */
  border-radius: 4px;

  /* 👇 Esto permite saltos de línea naturales */
  white-space: normal;
  word-wrap: break-word;
  overflow: visible;
  text-overflow: clip;
}

.certificate-alert {
  background-color: #FFC107 !important;
  color: black;
}