/* Layout general */
.cl-layout {
    display: flex;
    gap: 30px;
}

/* Intro del curso (extracto + comenzar) */
.cl-course-intro,
.cl-course-excerpt {
    margin: 0 0 18px;
}

.cl-course-excerpt {
    padding: 14px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
}

.cl-course-excerpt p {
    margin: 0 0 10px;
}
.cl-course-excerpt p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.cl-sidebar {
    width: 250px;
    border-right: 1px solid #ddd;
    background-color: #12141a;
}

.cl-sidebar-lecciones {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-sidebar-lecciones li {
    padding:16px;
    cursor: default;
    color:lightgray;
}

/* Estados */
.cl-sidebar-lecciones li.actual {
    background: #2f3341;
    color: white;
    font-weight: bold;
}

.cl-sidebar-lecciones li.actual::before{
    background-color: white;
}

.cl-sidebar-lecciones li.completada::before{
    background-color: #36e69f;
}
.cl-sidebar-lecciones li.completada{
    color:#36e69f;
    font-weight: bolder
}


/* Contenido */
.cl-contenido {
    flex: 1;
}

.cl-video {
    margin-bottom: 20px;
}

.cl-video iframe {
    max-width: 100%;
}

.cl-video-seek-msg {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 4px solid #ffb900;
    background: #fffbea;
    border-radius: 6px;
    font-size: 14px;
}

.cl-texto {
    margin-bottom: 30px;
}

/* Botón */
#cl-btn-siguiente {
    padding: 10px 25px;
    font-size: 16px;
}

#cl-btn-siguiente:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cl-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    background: #ca1111;
    color: #fff;
    font-size: 16px;
    line-height: 1.1;
    cursor: pointer;
}
a.cl-btn:hover {
    color: #ffffff !important;
}
.cl-btn:hover {
    filter: brightness(0.7);
}

.cl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cl-start-msg {
    font-size: 14px;
}

.cl-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e6e6e6;
    background: #f3f4f6;
    color: #111827;
    white-space: nowrap;
}
.cl-tag-ok {
    border-color: #46b450;
    background: #f1fff3;
    color: #1e7e34;
}
.cl-tag-warn {
    border-color: #ffb900;
    background: #fffbea;
    color: #7a5d00;
}

.cl-course-header {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 6px;
}

.cl-course-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 22px;
    line-height: 0.2;
}
.cl-course-close:hover {
    background: #f3f4f6;
}

.cl-sidebar-lecciones li.primera { font-weight: bold; }
.cl-sidebar-lecciones li.ultima { font-style: italic; }


.cl-barra-tiempo {
    width:100%;
    height:8px;
    background:#ddd;
    border-radius:4px;
    margin:10px 0;
    overflow:hidden;
    display: none; /* ocultar barra sin eliminarla */
}

.cl-barra-llenado {
    height:100%;
    width:0%;
    background:#0073aa;
    transition: width 0.5s linear;
}

/* =========================
   EXAMEN
========================= */
.cl-exam-wrap {
    margin: 25px 0;
    padding: 18px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
}

.cl-no-access {
    margin: 15px 0;
    padding: 12px 14px;
    border-left: 4px solid #cc1818;
    background: #fff5f5;
    border-radius: 6px;
}

.cl-exam-timer {
    margin: 10px 0 14px;
    padding: 12px;
    border: 1px dashed #d0d0d0;
    background: #fff;
    border-radius: 6px;
}

.cl-exam-time-note {
    margin: 10px 0 0;
}

.cl-exam-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-left: 4px solid #0073aa;
    background: #f0f6fc;
    color: #0c5280;
    border-radius: 6px;
}

.cl-exam-state {
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e6e6e6;
}
.cl-exam-pending { border-left: 4px solid #ffb900; }
.cl-exam-approved { border-left: 4px solid #46b450; }
.cl-exam-locked { border-left: 4px solid #cc1818; }

.cl-exam-form {
    margin-top: 14px;
}

.cl-exam-progress {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    background: #fff;
    border-radius: 6px;
}

.cl-exam-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.cl-exam-review {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e6e6e6;
    background: #fff;
    border-radius: 6px;
}

.cl-exam-review-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 10px;
    border: 1px solid #efefef;
    border-radius: 6px;
    margin: 8px 0;
}

.cl-exam-review-item.unanswered {
    border-left: 4px solid #cc1818;
}

.cl-exam-review-item.answered {
    border-left: 4px solid #46b450;
}

.cl-exam-review-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.cl-exam-review-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffbfbf;
}

.cl-exam-review-item.unanswered .cl-exam-review-badge {
    background: #fff5f5;
}

.cl-exam-review-item.answered .cl-exam-review-badge {
    background: #f1fff3;
}

.cl-exam-q {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #e6e6e6;
    background: #fff;
    border-radius: 6px;
}

.cl-exam-q legend {
    padding: 0 6px;
    font-weight: 600;
}

.cl-exam-qimg img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}

/* (mantenido arriba) */

.cl-exam-msg {
    margin-top: 10px;
    color: #cc1818;
}

.cl-exam-results {
    margin-top: 14px;
}
.cl-exam-res-opts {
    margin: 8px 0 0;
}

.cl-exam-res-opts,
.cl-exam-review-list {
    list-style: none;
    padding-left: 0;
}

.cl-exam-res-opt {
    list-style: none;
    position: relative;
    margin: 8px 0;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
}

.cl-exam-res-opt::before {
    content: "•";
    position: absolute;
    left: 14px;
    top: 10px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    color: #6b7280;
    background: #f3f4f6;
    font-weight: 700;
    font-size: 12px;
}

.cl-exam-res-opt.is-selected {
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.15);
}

.cl-exam-res-opt.is-correct {
    border-color: #46b450;
    background: #f1fff3;
    color: #1e7e34;
}
.cl-exam-res-opt.is-selected {
    font-weight: 600;
}

.cl-exam-res-opt.is-wrong {
    border-color: #cc1818;
    background: #fff5f5;
    color: #cc1818;
}

.cl-exam-res-opt.is-missed {
    border-style: dashed;
    text-decoration: none;
}

.cl-exam-res-opt.is-correct::before {
    content: "✓";
    background: #e6f4ea;
    color: #1e7e34;
}

.cl-exam-res-opt.is-wrong::before {
    content: "✕";
    background: #ffe5e5;
    color: #cc1818;
}

.cl-exam-res-opt.is-missed::before {
    opacity: 0.65;
}

/* Opciones durante el examen */
.cl-exam-opt {
    display: block;
    margin: 8px 0;
    position: relative;
}

.cl-exam-opt input[type="radio"],
.cl-exam-opt input[type="checkbox"] {
    position: absolute;
    left: 14px;
    top: 14px;
    margin: 0;
}

.cl-exam-opt span {
    display: block;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.cl-exam-opt:hover span {
    border-color: #9ca3af;
}

.cl-exam-opt input:checked + span {
    border-color: #007cba;
    background: #f5fbff;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.15);
}

.cl-exam-qpoints,
.cl-exam-points-total {
    margin: 8px 0;
    font-size: 14px;
}

.cl-exam-grade-total {
    margin: 8px 0;
    font-size: 14px;
}

.cl-exam-text-answer {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
}

.cl-exam-text-answer-body {
    margin-top: 6px;
    white-space: normal;
    line-height: 1.4;
}

#cl-progress-data {
    display: none;
}
/*buttons exam*/
.cl-exam-jump, .cl-exam-next, .cl-exam-prev, .cl-exam-back-to-questions {
    background:white !important;
    color:black !important;
    border:1px solid lightgray !important;
}
.cl-exam-jump:hover, .cl-exam-next:hover, .cl-exam-back:hover, .cl-exam-back-to-questions:hover  {
    background:#dcdcdc !important;
}

/*MEJORAR LAYOUT CURSOS*/
.cl-layout {
    display: flex;
    gap: 0px;
    position: fixed;
    top: 0px;
    left:0px;
    background: white;
    width: 100%;
    height: 100%;
    max-height:100vh;
    z-index: 10;
}
.cl-sidebar {
	width: 250px;
    border-right: 1px solid #ddd;
	max-height: 100vh;
    overflow: auto;
    background-color: #12141a;
}
.cl-contenido {
	padding:16px;
	max-height: 100vh;
    overflow: auto;
    padding-bottom:120px;
}
.cl-navegacion {
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 16px;
    background: white;
    width: calc(100% - 250px);
    border-top: 1px solid lightgrey;
    text-align: right;
}
.cl-no-access {
    padding: 16px;
    font-size: 14px;
    border-radius: 4px;
    border-left: solid 4px;
    margin-bottom: 32px;
}
.cl-insc-list label {
	background: #f9f9f9;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid lightgray;
}

.cl-sidebar-lecciones li::before{
    content: '';
    display: inline-block;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 100%;
    background-color: #5e667e;
    position: relative;
}


.cl-stat-label {
    font-size: 14px;
}

.cl-stat-value {
    font-size: 18px;
    font-weight: 700;
}
