.cursos-section {
  margin-top: 3rem;
  text-align: center;
}

.cursos-title {
  font-size: 2.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .7em;
  justify-content: center;
  margin-bottom: 2rem;
}

.cursos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 1400px;
}

.curso-card {
  position: relative;
  width: 390px;
  height: 220px;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow:
    0 2px 40px 0 #d9042944,
    0 8px 32px rgba(0,0,0,0.20),
    0 1.5px 0 #ff4040 inset;
  background: #1a1217;
  transition: 
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.21s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  filter: brightness(1.07) saturate(1.18);
}

.curso-card:hover {
  transform: translateY(-10px) scale(1.045);
  box-shadow:
    0 10px 64px 0 #d9042972,
    0 24px 60px rgba(0,0,0,0.28),
    0 2px 0 #ff4040 inset;
  filter: brightness(1.15) saturate(1.24);
}

.curso-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
  filter: brightness(0.64) blur(0.1px);
  z-index: 1;
  transition: filter 0.13s;
}

.curso-card:hover .curso-bg-img {
  filter: brightness(0.83) blur(0.05px);
}

.curso-badge {
  position: absolute;
  top: 1em;
  left: 1em;
  font-size: 1em;
  background: #ff4040;
  color: #fff;
  padding: 0.16em 1em;
  border-radius: 0.7em;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.267);
  letter-spacing: 0.01em;
}

.curso-content {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 2;
  padding: 2em 2em 1.1em 2em;
  width: 100%;
  color: #fff;
  text-align: left;
  background: linear-gradient(0deg, rgba(39, 38, 38, 0.171) 92%, rgba(39, 38, 38, 0.171) 100%);
  border-radius: 0 0 1.3em 1.3em;
  box-shadow: 0 14px 40px 0 #d9042922;
}

.curso-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f9f9f9;
  text-shadow: 0 4px 18px #d9042933, 0 2px 7px #000c;
  margin-bottom: .7em;
  line-height: 1.2em;
}

.curso-valoracion {
  letter-spacing: 2px;
  font-size: 1.25em;
}

.badge.bg-dark {
  background: #201013 !important;
  color: #fff !important;
  font-size: 1em;
  opacity: 0.93;
  border-radius: 0.7em;
}
