/* ==========================
   CURSOS
========================== */

.cursos{
  padding: 100px 0;
  width: 100%;
  text-align: center;
}

.sectionTitle{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.sectionSubtitle{
  font-size: .95rem;
  color: #777;
  margin-bottom: 6px;
}

.cursoContainer{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 20px;
}

.cursoCard{
  width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform .3s ease;
  position: relative;
}

.cursoCard:hover {
  transform: translateY(-6px);
}

.cursoImg img {
  width: 100%;
  display: block;
}

.cursoInfo {
  padding: 16px;
  text-align: left;
}

.cursoPrecio {
  color: #d63384;
  font-weight: 700;
  font-size: 1rem;
}

.cursoTitulo {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.cursoInstructor{
  padding: 14px 16px;
  background: #fafafa;
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
  color: #555;
}

.cursoCategoria {
  color: #4c6ef5;
  font-weight: 500;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 6px;
  color: white;
}

.badge.new { background: #4c6ef5; }
.badge.popular { background: #d63384; }
.badge.sold { background: #845ef7; }
.badge.free { background: #e10a0a; }
.badge.featured { background: #4c6ef5; }

.cursoRating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.cursoRating span {
  font-size: 1rem;
  color: #f59f00;
}