/* Metadatos de cursos compartidos: 
   nivel (barritas + pill) y duración (reloj).
   buscador (views/layout/list-cursos.pug), 
   cards de cursos (js/cursosProgramasSelect.js, js/resultados.js)
   detalle del curso (views/curso.pug).
   */

.levelBars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    flex: none;
}

.levelBars i {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.25;
}

.levelBars i:nth-child(1) { height: 6px; }
.levelBars i:nth-child(2) { height: 10px; }
.levelBars i:nth-child(3) { height: 14px; }

.levelBars.-n1 i:nth-child(-n + 1),
.levelBars.-n2 i:nth-child(-n + 2),
.levelBars.-n3 i:nth-child(-n + 3) {
    opacity: 1;
    background: #00a3e3;
}

.levelPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f3f7;
    color: #0d2054;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/*  cards: pill centrada con el texto */
.dato.new .expand-content .info-precio-duracion {
    align-items: center;
}

/*  cards (fondo blanco o gris) */
.dato .levelPill {
    background: #fff;
    box-shadow: inset 0 0 0 1px #e4e7ef;
}

/* en /resultados (articulos.css)  */
html body.resultados .dato.new .expand-content .info-precio-duracion {
    opacity: 1;
}

html body.resultados .dato.new .expand-content .info-precio-duracion .duracion {
    opacity: 0.5;
    transition: opacity 0.33s;
}

html body.resultados .dato.new:hover .expand-content .info-precio-duracion .duracion {
    opacity: 1;
}

 

.metaClock {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    background: url(/images/icos/ico-clock.svg) center / contain no-repeat;
    filter: grayscale(1);
}

.dato.new .expand-content .info-precio-duracion .duracion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/*    (section.topCursos)   */

/* .topInfo */
section.topCursos .topInfo .estudiantes .levelPill {
    margin: 0 6px;
    height: 34px;
    padding: 0 14px;
    font-size: 0.9rem;
}

section.topCursos .topInfo .estudiantes .levelBars {
    margin: 0;
}

section.topCursos .topInfo .levelBars i {
    min-width: 0;
    max-width: none;
    min-height: 0;
    max-height: none;
    width: 4px;
    margin: 0;
}

section.topCursos .topInfo .levelBars i:nth-child(1) { height: 6px; }
section.topCursos .topInfo .levelBars i:nth-child(2) { height: 10px; }
section.topCursos .topInfo .levelBars i:nth-child(3) { height: 14px; }

/* articulos.css en <=960px pone en columna y a ancho completo todos los
   span de .estudiantes: la pill y las barritas siempre en fila y a su ancho */
section.topCursos .topInfo .estudiantes .levelPill,
section.topCursos .topInfo .estudiantes .levelBars {
    flex-direction: row;
    min-width: 0;
    max-width: none;
}

section.topCursos .topInfo .estudiantes .levelPill {
    align-self: center;
}

section.topCursos .topInfo .estudiantes .levelBars {
    margin-bottom: 0;
}

@media only screen and (max-width: 960px) {
    section.topCursos .topInfo .estudiantes .levelPill {
        margin: 0 auto;
    }
}

/* ---------- edición de cursos sincrónicos ---------- */

/* chip arriba a la derecha de la imagen; mismo contenedor que .stick
   (el tag "Programa" ocupa ese lugar en programas: ahí va debajo) */
.dato.new .expand-content .editionChip {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(13, 32, 84, 0.18);
    color: #0d2054;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.dato.new .expand-content .editionChip svg {
    flex: none;
    color: #00a3e3;
}

.dato.new.programas .expand-content .editionChip {
    top: 52px;
}

/* card-banner de arteba  */
.dato.new.promoCard {
    align-self: stretch;
    display: flex;
    background: none;
    text-decoration: none;
}

.dato.new.promoCard .expand-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    /* en desktop toma el alto de la fila; el mínimo es para cuando queda sola (mobile) */
    min-height: 360px;
    padding: 32px 28px 28px;
    border: none;
    /* mismo radio que las cards de cursos/programas (.dato .expand-content) */
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 110% -10%, rgba(225, 253, 80, 0.22) 0%, rgba(225, 253, 80, 0) 45%),
        linear-gradient(150deg, #180038 0%, #2c0a63 100%);
    color: #fff;
}

.dato.new.promoCard .expand-content:hover {
    border: none;
    box-shadow: 0 8px 16px rgba(24, 0, 56, 0.15), 0 24px 48px rgba(24, 0, 56, 0.25);
}

.promoCard__kicker {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(225, 253, 80, 0.12);
    color: #e1fd50;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.promoCard__logo {
    width: 72%;
    max-width: 240px;
    height: auto;
    margin: auto 0 8px;
}

.dato.new.promoCard .promoCard__title {
    min-height: auto;
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.dato.new.promoCard .promoCard__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 300;
}

.promoCard__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 22px;
    border-radius: 24px;
    background: #e1fd50;
    color: #180038;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.dato.new.promoCard:hover .promoCard__cta {
    gap: 14px;
}
