/* Hero del detalle de cursos y programas sumarlo luego a articulos.css. */

/* z-index sobre el hero con margin negativo */
section.topCursos {
    position: relative;
    z-index: 0;
    padding-bottom: 44px;
    background: var(--ruta-bg-soft);
    box-shadow: none;
    border-bottom: 1px solid var(--ruta-border);
}

section.topCursos > .container {
    position: relative;
    z-index: 1;
}

.rutaHero__bg.-detalle::before {
    transform: translate(-50%, -50%) rotate(35deg);
}

.rutaHero__bg.-programa::before {
    transform: translate(-50%, -50%) rotate(-35deg);
}

/*   textos   */

section.topCursos h1 {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ruta-primary);
}

section.topCursos .topInfo {
    margin-top: 0;
}

section.topCursos .topInfo p {
    max-width: 640px;
    margin-bottom: 20px;
    color: var(--ruta-text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

/*   breadcrumb en pills   */

section.topCursos .breadcrumb {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

section.topCursos .breadcrumb a {
    margin-right: 0;
    padding: 5px 12px 5px 8px;
    border: 1px solid var(--ruta-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ruta-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}

section.topCursos .breadcrumb a:hover {
    border-color: var(--ruta-primary);
    color: var(--ruta-primary);
}

/*   fila de datos   */

section.topCursos .topInfo .estudiantes {
    padding: 0;
    color: var(--ruta-text-muted);
}

section.topCursos .topInfo .estudiantes span:first-child {
    margin-left: 0;
}

@media only screen and (max-width: 768px) {
    section.topCursos {
        padding-bottom: 28px;
    }

    section.topCursos h1 {
        font-size: 1.5rem;
    }
}

