/* ===================================================
   INTRO CONTAINER - Course, route, schol.
=================================================== */
@media (min-width: 769px) {
    .intro-container {
        display: grid;
        grid-template-columns: 0.60fr 0.40fr;
        gap: 100px;
    }
}


/* ===================================================
   INTRO CONTAINER / left-column: Course, route, schol.
=================================================== */
/* --- left-column --- */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
}

/* --- Badge --- */
.index-badge {
    max-width: 50px;
}

/* --- title --- */
.index-title {
    font-size: 2.3rem;
    line-height: 2.2rem;
    font-weight: 600;
}

/* --- description --- */
.index-description {
    font-size: 0.9rem;
    line-height: 1.2rem;
}


/* --- last-update --- */
.last-update {
    color: var(--color-text-7);
    font-size: 0.8rem;
}

/* ===================================================
   INDEX SIDEBAR
=================================================== */
/* --- intro-sidebar --- */
.intro-sidebar {
    background: var(--do3);
    padding: 0px;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* ----- Posici贸n fija solo en pantallas grandes ----- */
@media (min-width: 768px) {
    .intro-sidebar {
        position: sticky;
        top: 10px;
    }
}

/* --- Contenedor responsivo del video --- */
.intro-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporci贸n 16:9 para videos de YouTube */
    height: 0;
    overflow: hidden;
}

.intro-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 7px 7px 0 0;
    width: 100%;
    height: 100%;
}

.intro-itmes-container {
    display: grid;
    gap: 10px;
    padding: 0px 10px 10px 10px;
}



/* ===================================================
   INTRO - PRECIOS, 
=================================================== */

/* --- Contenedor principal de los precios --- */
.pricing-card {
    display: flex;
    gap: 7px;
    flex-direction: row;
    align-items: center;
    background: var(--do2);
    border-radius: 5px;
    text-align: center;
    padding: 5px 9px;
    justify-content: center;
}

/* --- Precio original (tachado) --- */
.original-price {
    font-size: 1.2rem;
    color: var(--tx7);
    text-decoration: line-through;
}

/* --- Precio con descuento --- */
.discount-price {
    font-size: 1.5rem;
    font-weight: bold;
            color: var(--progress-color);
}

/* --- Precio actual sin descuento --- */
.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--tx3);
}

/* --- Precio gratis --- */
.free-price {
    font-size: 1.5rem;
    font-weight: bold;
            color: var(--progress-color);
}


/* ===================================================
   NAVAGACION DEL CURSO EN CURSOS Y TEMAS 
=================================================== */
/*
************************************
CONTENIDO DEL CURSO
*/
.module-item {
    background: var(--do2);
    border-radius: 5px;
    padding: 6px;
    margin-top: 6px;
    border-left: 5px solid var(--primary-color);
}
.lesson-item {
    background: var(--do1);
    border-radius: 5px;
    padding: 6px;
    margin-top: 6px;
}
.topic-item {
    font-size: .8rem;
    border-radius: 4px;
    padding: 3px 10px;
    line-height: 1rem;
    background: var(--do0);
}
.topic-item:hover {
    filter: brightness(120%);
}


/* CONTENEDOR DE VIDEO */

.VideoPlayer {
    position: relative;
    width: 100%; /* Ocupa todo el ancho del contenedor */
    padding-top: 56.25%; /* Relaci贸n de aspecto 16:9 */
    border-radius: 0.5rem;
    overflow: hidden;
}

.VideoPlayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Hace que el iframe ocupe todo el ancho */
    height: 100%; /* Hace que el iframe ocupe toda la altura */
    border: none; /* Elimina bordes del iframe */
}

.topic-title, .lesson-title, .module-title {
    font-size: 1rem;
}

.lesson-title, .module-title {
    padding: 6px 0px;
}



.topic-title strong {
    color: #0ae98a;
}




.course-nav {
    padding-left: 16px;
}


.item-indicador {
    padding-left: 12px;
    position: relative;
}

.item-indicador:before {
    content: "";
    position: absolute;
    display: block;
    width: 2px;
    height: 100%;
    background-color: var(--do5);
    top: -55%;
    left: -7px;
}

a.item-clases {
    display: flex
;
    padding: .3rem 7px;
    align-items: center;
    gap: .5rem;
    align-self: stretch;
    border-radius: .3rem;
    position: relative;
    background: var(--color-background-1);
}

a.item-clases:hover {
    filter: brightness(120%);
}


span.indicador {
    color: #080b13;
    background-color: #0ae98a;
    padding: 3px;
    border-radius: 50px;
    width: 17px;
    height: 17px;
    display: flex
;
    justify-content: center;
        align-items: center;
    font-size: .6rem;
    z-index: 999;
    left: -1.7rem;
    position: absolute;
}


i.fas.fa-video.fa-3x {
    font-size: 13px;
}

.completed i {
    color: #0ae98a; /* Tema completado */
}

.not-completed i {
    color: var(--color-background-10);
}


.topic-icon {
    width: 20px;
    height: 20px;
    display: flex
;
    align-items: center;
    justify-content: center;
}


.topics, .lessons, .modules {
    display: flex
;
    flex-direction: column;
    gap: 7px;
}

/* PARA LECCIONES Y MODULOS*/
.item-indicador-lesson {
    padding-left:13px;
    position: relative;
    display: flex;
    align-items: center;
}

span.indicador-lesson {
    color: #080b13;
    background-color: var(--do5);
    padding: 3px;
    border-radius: 50px;
    width: 7px;
    height: 7px;
    display: flex
;
    justify-content: center;
    font-size: .6rem;
    z-index: 999;
    left: -9.2px;
    position: absolute;
}

.item-indicador-module {
    padding-left:13px;
    position: relative;
    display: flex;
    align-items: center;
}


span.indicador-module {
    color: #080b13;
    background-color: var(--do5);
    padding: 3px;
    border-radius: 50px;
    width: 7px;
    height: 7px;
    display: flex
;
    justify-content: center;
    font-size: .6rem;
    z-index: 999;
    left: -9.2px;
    position: absolute;
}


.indicador.completed {
    background-color: #0ae98a; /* Tema completado */
}

.indicador.not-completed {
    background-color: var(--do7);
    color: var(--tx3);
    font-weight: 700;
}


/* ===================================================
   INDEX CAJAS GRID
=================================================== */
.grid {
  display: grid;
  gap: .7rem;
}

.gr1 {
  grid-template-columns: 1fr;
}

.gr2 {
  grid-template-columns: 1fr 1fr;
}

.gr3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gr-auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 1023px) {
  .gr3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .gr2, .gr3 { grid-template-columns: 1fr; }
}


/* grid personalizdo */
.grid-item {
    background: var(--color-background-2);
    padding: .5rem;
    border-radius: 8px;
    border: 0px solid var(--color-background-7);
    display: flex;
    align-items: center;
    
}

.grid-badge {
    max-width: 35px;
    margin-right: .7rem;
}

.grid-info {
    width: 100%;
    display: grid;
    gap: .3rem;
}


.grid-info-count {
    color: var(--progress-color);
    font-size: .8rem;
}
.grid-info-title {
    font-size: 1rem;
}

.grid-info-status {
    color: var(--progress-color);
}

.grid-info-metas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
}










/* ===================================================
   HOVER
=================================================== */
.hover:hover {
    filter: brightness(120%);
}





/* ===================================================
   BARRA DE PORGRESO
=================================================== */

.progress-bar-container {
    width: 100%;
    background: var(--color-background-7);
    height: 3px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--progress-color);
    transition: width 0.3s ease;
}






