/* =========================
   HERO
========================= */

.cursos-hero {
    text-align: center;
    padding: 90px 20px;
    background: linear-gradient(135deg, #0D0D0D, #64278C);
    color: #fff;
}

.cursos-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.cursos-hero p {
    font-size: 18px;
    color: #BF7EB4;
}

/* =========================
   CONTENEDOR
========================= */

.cursos-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* =========================
   TARJETAS
========================= */

.curso-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.curso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Imagen */
.curso-img {
    width: 100%;
    height: 230px; /* TODAS MISMO TAMAÑO */
    overflow: hidden;
}

.curso-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene proporción */
    transition: transform 0.5s ease;
}

.curso-card:hover img {
    transform: scale(1.08);
}

/* Contenido */
.curso-card h3 {
    font-size: 22px;
    margin: 25px 20px 10px;
    color: #64278C;
}

.curso-card p {
    font-size: 15px;
    color: #555;
    margin: 0 20px 25px;
    flex-grow: 1;
}

/* Botón */
.btn-curso {
    display: block;
    margin: 0 20px 30px;
    padding: 12px;
    text-align: center;
    background: linear-gradient(135deg, #A62490, #64278C);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-curso:hover {
    background: linear-gradient(135deg, #BF7EB4, #A62490);
    transform: scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .cursos-hero h1 {
        font-size: 30px;
    }

    .curso-img {
        height: 200px;
    }

}
