/* ===== CURSOS CERTIFICADOS ===== */

.btn-informacion-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 123, 255, 0.9); /* Azul semitransparente */
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.btn-informacion-overlay:hover {
  background-color: rgba(0, 90, 190, 1);
  transform: translateX(-50%) scale(1.05);
}

.cursos-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
}

.cursos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cursos-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.cursos-leyenda {
  max-width: 900px;
  margin: 0 auto 28px auto;
  text-align: center;
  line-height: 1.5;
  font-size: 1.05rem;
  opacity: 0.9;
}

.cursos-subtitulo {
  margin: 24px 0 16px 0;
  font-size: 1.3rem;
  text-align: center;
  opacity: 0.95;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.curso-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.curso-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f4f6fb;
}

.curso-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .72rem;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.badge + .badge {
  left: auto;
  right: 10px;
}

.badge-gratis {
  background: #009607; /* verde */
}

.badge-cert {
  background: #512da8; /* púrpura */
}

.curso-body {
  padding: 14px 16px 18px 16px;
}

.curso-body h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.curso-body p {
  margin: 0;
  color: #555;
  line-height: 1.45;
  font-size: .95rem;
}
