/* Cursos grabados */
.cg-sin-portada{aspect-ratio:16/9;display:flex;align-items:flex-end;padding:1rem;background:linear-gradient(150deg,#1b294a,#2f4a7f);color:#fff;font:600 1.1rem/1.3 'Source Serif 4',serif}
.cg-tarjeta .img img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.cg-mio{display:inline-block;margin-top:.5rem;font-size:.78rem;font-weight:600;color:#1f7a4d}
.cg-nota-alumno{margin-top:1rem;font-size:.92rem;opacity:.9}
.cg-barra{appearance:none;-webkit-appearance:none;width:100%;height:8px;border:0;border-radius:9px;background:#e6e9f0;overflow:hidden;display:block;margin:.6rem 0 1rem}
.cg-barra::-webkit-progress-bar{background:#e6e9f0;border-radius:9px}.cg-barra::-webkit-progress-value{background:#c9a24d;border-radius:9px}.cg-barra::-moz-progress-bar{background:#c9a24d;border-radius:9px}
.cg-bloque{width:100%;justify-content:center}
.cg-h2{margin-top:2.5rem}
.cg-temario{list-style:none;padding:0;margin:1rem 0;counter-reset:m}
.cg-temario>li{border:1px solid var(--linea,#e3e6ec);border-radius:12px;padding:1rem 1.2rem;margin-bottom:.8rem;background:#fff}
.cg-temario>li>b{display:block;margin-bottom:.4rem;color:var(--marino,#1b294a)}
.cg-temario ul{list-style:none;padding:0;margin:0}.cg-temario ul li{display:flex;gap:.6rem;align-items:center;padding:.35rem 0;border-top:1px solid #f0f2f5;font-size:.95rem}
.cg-temario ul li:first-child{border-top:0}.cg-temario small{margin-left:auto;color:var(--gris,#667085)}
.cg-ico{width:18px;height:18px;flex:none;border-radius:50%;background:#e8ecf4;position:relative}
.cg-ico.cg-video::after{content:'';position:absolute;left:7px;top:5px;border-left:6px solid #1b294a;border-top:4px solid transparent;border-bottom:4px solid transparent}
.cg-ico.cg-lectura{border-radius:3px}.cg-ico.cg-quiz{background:#f4ead2}
.cg-salon{padding:1.5rem 0 4rem;background:#f6f4ef;min-height:70vh}
.cg-cab{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.cg-volver{font-size:.9rem;color:var(--marino,#1b294a)}
.cg-avance{display:flex;align-items:center;gap:.8rem;min-width:260px}.cg-avance .cg-barra{margin:0;width:200px}.cg-avance span{font-size:.85rem;color:var(--gris,#667085)}
.cg-aviso{background:#fff7e0;border:1px solid #ecd9a3;border-radius:10px;padding:.7rem 1rem;margin:0 0 1rem}.cg-aviso.mal{background:#fdecec;border-color:#f3c2c2}
.cg-ok{color:#1f7a4d;font-weight:600}
.cg-rejilla{display:grid;gap:1.2rem}
@media(min-width:960px){.cg-rejilla{grid-template-columns:minmax(0,1fr) 320px}}
.cg-leccion{background:#fff;border:1px solid var(--linea,#e3e6ec);border-radius:16px;padding:1.4rem;min-width:0}
.cg-leccion h1{font-size:clamp(1.4rem,3vw,2rem);margin:.2rem 0 1rem}
.cg-video{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#0f172a;margin-bottom:1.2rem}
.cg-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cg-pendiente{background:#f1f3f7;border-radius:12px;padding:2.5rem 1rem;text-align:center;color:var(--gris,#667085)}
.cg-materiales{margin:1.5rem 0;padding:1rem 1.2rem;border-radius:12px;background:#f6f8fb}.cg-materiales h2{font-size:1.05rem;margin:0 0 .5rem}
.cg-pregunta{border:1px solid var(--linea,#e3e6ec);border-radius:12px;padding:1rem 1.2rem;margin:0 0 1rem}
.cg-pregunta legend{font-weight:600;padding:0 .3rem}.cg-pregunta label{display:flex;gap:.6rem;align-items:flex-start;padding:.35rem 0;cursor:pointer}
.cg-nav{display:flex;justify-content:space-between;gap:.8rem;margin-top:1.5rem;flex-wrap:wrap}
.cg-indice{background:#fff;border:1px solid var(--linea,#e3e6ec);border-radius:16px;padding:1rem 1.1rem;align-self:start;position:sticky;top:90px;max-height:calc(100vh - 110px);overflow:auto}
.cg-indice h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--gris,#667085);margin:1rem 0 .4rem}.cg-indice h3:first-child{margin-top:0}
.cg-indice ul{list-style:none;padding:0;margin:0}.cg-indice li a{display:flex;gap:.6rem;align-items:flex-start;padding:.45rem .5rem;border-radius:8px;text-decoration:none;color:inherit;font-size:.92rem}
.cg-indice li.on a{background:#eef2fa;font-weight:600}
.cg-check{width:16px;height:16px;flex:none;margin-top:2px;border:2px solid #c5cbd6;border-radius:50%}
.cg-indice li.hecha .cg-check{background:#1f7a4d;border-color:#1f7a4d;box-shadow:inset 0 0 0 2px #fff}
.cg-angosto{max-width:820px}
.cg-cert{background:#fff;border:10px double #c9a24d;padding:2.5rem 1.5rem;text-align:center;margin:1.5rem 0;border-radius:6px}
.cg-cert-logo{height:54px;margin-bottom:1rem}.cg-cert-ceja{text-transform:uppercase;letter-spacing:.14em;font-size:.8rem;color:#9a7a2f;font-weight:700}
.cg-cert-nombre{font:600 clamp(1.6rem,4vw,2.4rem)/1.2 'Source Serif 4',serif;color:#1b294a;margin:.4rem 0}
.cg-cert-curso{font:600 1.3rem/1.3 'Source Serif 4',serif;margin:.3rem 0 1rem}.cg-cert-datos,.cg-cert-folio{font-size:.9rem;color:#556}
.cg-compartir{display:flex;gap:.6rem;flex-wrap:wrap}.cg-chico{font-size:.85rem;color:var(--gris,#667085)}
@media print{header,footer,.cg-volver,.cg-compartir,.cg-chico,.wa-flotante{display:none !important}.cg-salon{background:#fff}}
