/* ================================
   CERTIFICACIONES – ESTILOS
   ================================ */

/* HERO */
.cert-hero {
  background-color: #f1f5f9;
}

.cert-hero .section-title {
  margin-bottom: 1rem;
}

.cert-hero .section-text,
.cert-hero .cert-hero-note {
  max-width: 38rem;
  line-height: 1.55;
}


/* LISTADO */
.cert-list {
  background-color: #ffffff;
}

.cert-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.cert-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-body {
  padding: 1.2rem 1.1rem;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.cert-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.8rem;
}

.cert-text {
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 1rem;
}

/* Botón */
.btn-cert-view {
  background-color: #4f46e5;
  border: none;
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  transition: background-color 0.15s ease;
}

.btn-cert-view:hover {
  background-color: #3730a3;
}


/* PAGINACIÓN */
.cert-pagination-wrapper .page-link {
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #334155;
}

.cert-pagination-wrapper .page-item.active .page-link {
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.cert-pagination-wrapper .page-link:hover {
  background-color: #e2e8f0;
}

.cert-pagination-wrapper {
  margin-top: 2rem;
}

/* MODAL DE CERTIFICADO */
.cert-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cert-modal {
  background: #ffffff;
  padding: 1rem;
  border-radius: 1rem;
  max-width: 900px;
  width: 96%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}

.cert-modal img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.cert-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
}

.cert-modal-close:hover {
  background: #dc2626;
}


/* RESPONSIVE */
@media (max-width: 767px) {
  .cert-thumbnail {
    height: 150px;
  }
}
