/* =========================================================
 * Archivo: landing-header-carousel.css
 * Descripción: Estilos principales para la landing page de Uniminuto
 * Incluye: Banner, contenedor, instancias, carrusel, botones e indicadores
 * Autor: Luis Castillo
 * Última actualización: 2025-11-19
 * ========================================================= */

/* ----------------------
    Reset y fuente global
----------------------- */
body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* =========================================================
    Header UNIMINUTO: fondo azul de lado a lado
========================================================= */
header.navbar {
    background: #162645 !important;
    left: 0;
    right: 0;
    position: relative;
    box-sizing: border-box;
}

/* =========================================================
    Banner principal superior (si se usa)
========================================================= */
.banner {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

/* =========================================================
    Contenedor central blanco para contenido
========================================================= */
.container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px #ccc;
    text-align: center;
}

/* =========================================================
    Enlaces a instancias de Moodle
========================================================= */
.instancias {
    margin-top: 30px;
}

.instancias a {
    display: block;
    margin: 15px 0;
    padding: 15px;
    background: #005baa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background 0.2s;
}

.instancias a:hover {
    background: #003f7d;
}

/* =========================================================
    Carrusel alternativo (si se usa fuera del header)
========================================================= */
.custom-carousel {
    max-width: 900px;
    margin: 30px auto 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px #bbb;
}

/* =========================================================
    Pie de foto del carrusel Bootstrap
========================================================= */
.carousel-caption {
    bottom: 40px;
}

/* =========================================================
    Indicadores personalizados del carrusel
========================================================= */
.custom-carousel-indicators .custom-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    margin: 0 4px;
    outline: none;
}

.custom-carousel-indicators .custom-indicator.active,
.custom-carousel-indicators .custom-indicator[aria-current="true"] {
    width: 2rem;
    height: 1rem;
    border-radius: 24px;
    background: #FFCC00;
}

.custom-carousel-indicators .custom-indicator:hover {
    background: #FFCC00;
}

/* Indicadores responsivos */
@media (max-width: 768px) {
    .custom-carousel-indicators .custom-indicator {
        width: 0.7rem !important;
        height: 0.7rem !important;
    }

    .custom-carousel-indicators .custom-indicator.active,
    .custom-carousel-indicators .custom-indicator[aria-current="true"] {
        width: 1.2rem !important;
        height: 0.7rem !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    .custom-carousel-indicators .custom-indicator {
        width: 0.5rem !important;
        height: 0.5rem !important;
    }

    .custom-carousel-indicators .custom-indicator.active,
    .custom-carousel-indicators .custom-indicator[aria-current="true"] {
        width: 0.8rem !important;
        height: 0.5rem !important;
        border-radius: 10px !important;
    }
}

.carousel-inner {
    border-radius: 40px;
}

@media (max-width: 768px) {
    .carousel-inner {
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .carousel-inner {
        border-radius: 10px;
    }
}

/* =========================================================
 Indicadores responsivos
========================================================= */
@media (max-width: 768px) {
    .custom-carousel-indicators .custom-indicator {
        width: 0.7rem;
        height: 0.7rem;
    }

    .custom-carousel-indicators .custom-indicator.active,
    .custom-carousel-indicators .custom-indicator[aria-current="true"] {
        width: 1.2rem;
        height: 0.7rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .custom-carousel-indicators .custom-indicator {
        width: 0.5rem;
        height: 0.5rem;
    }

    .custom-carousel-indicators .custom-indicator.active,
    .custom-carousel-indicators .custom-indicator[aria-current="true"] {
        width: 0.8rem;
        height: 0.5rem;
        border-radius: 10px;
    }
}



/* =========================================================
 Aulas Virtuales
 ========================================================= */
.titulo-landing {
    left: 36.67%;
    right: 35.56%;
    top: 26.83%;
    bottom: 42.28%;
    font-family: 'Montserrat', Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 34px;
    line-height: 41px;
    text-align: center;
    color: #FFFFFF;
}

@media (max-width: 800px) {
    .titulo-landing {
        font-size: 22px;
        line-height: 28px;
        left: 10%;
        right: 10%;
        top: 28%;
    }
}

@media (max-width: 480px) {
    .titulo-landing {
        font-size: 16px;
        line-height: 20px;
        left: 5%;
        right: 5%;
        top: 30%;
    }
}

/* =========================================================
 Borde muy redondeado en la esquina inferior izquierda del header
  ========================================================= */
/*     header.navbar {
        transition: border-radius 0.3s;
    }
    @media (max-width: 768px) {
        header.navbar {
            border-bottom-left-radius: 60px;
        }
    }
    @media (max-width: 480px) {
        header.navbar {
            border-bottom-left-radius: 36px;
        }
    } */

.carrousel-container {
    border-bottom-left-radius: 120px;
    transition: border-radius 0.3s;
    background: #162645;
    padding: 20px;
}

@media (max-width: 768px) {
    .carrousel-container {
        border-bottom-left-radius: 60px;
    }
}

@media (max-width: 480px) {
    .carrousel-container {
        border-bottom-left-radius: 36px;
    }
}

/* =============================
   Footer landing
============================== */
.landing-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 60px 80px;
    gap: 10px;
    position: relative;
    width: 100%;
    min-height: 227px;
    background: #FFFFFF;
    margin: 0;
    box-sizing: border-box;
}

.footer-col {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.footer-col-left {
    justify-content: flex-start;
}

.footer-col-center {
    justify-content: center;
}

.footer-col-right {
    justify-content: flex-end;
    gap: 18px;
}

@media (max-width: 1200px) {
    .landing-footer {
        gap: 60px;
        padding: 30px 20px;
    }
}

@media (max-width: 900px) {
    .landing-footer {
        flex-direction: column;
        gap: 24px;
        min-height: unset;
        width: 100vw;
        max-width: 100vw;
        padding: 30px 10px;
    }

    .footer-col {
        justify-content: center !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .footer-col-center>span {
        display: block;
        margin: 3rem !important;
    }
}


/* accessmoocs.css: Estilos para la sección de cuadros SOLO con imágenes */

.accessmoocs-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    margin: 40px 0 0 0;
    background: #244992;
    border-top-right-radius: 120px;
    transition: border-radius 0.3s;
    box-shadow: 0 2px 16px rgba(36, 73, 146, 0.07);
    padding: 40px 20px;
}

.d-flex.justify-content-center.w-100 {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 15rem !important;
}

.cuadros-carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15rem;
    flex-wrap: wrap;
    max-width: 1200px;
}

.cuadros-carousel-slide {
    min-width: 200px;
    max-width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 150px;
    /* Tamaño mínimo */
}

.cuadros-carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Estilos para las imágenes de accesos rápidos */
.access-quick-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.cuadros-carousel-slide:hover .access-quick-img {
    transform: scale(1.05);
}

/* Responsive - MANTENER SIEMPRE VISIBLES */
@media (max-width: 1100px) {
    .accessmoocs-section {
        border-top-right-radius: 80px;
        padding: 30px 15px;
    }

    .cuadros-carousel-track {
        gap: 2rem;
    }

    .cuadros-carousel-slide {
        width: 280px;
        height: 280px;
        min-width: 220px;
        /* Mantener mínimo */
        min-height: 220px;
        /* Mantener mínimo */
    }
}

@media (max-width: 900px) {
    .cuadros-carousel-track {
        gap: 1.5rem;
    }

    .cuadros-carousel-slide {
        width: 160px;
        height: 160px;
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .accessmoocs-section {
        border-top-right-radius: 60px;
        padding: 25px 15px;
        min-height: 300px;
    }

    .cuadros-carousel-track {
        gap: 1.2rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cuadros-carousel-slide {
        width: 150px;
        height: 150px;
        min-width: 180px;
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .accessmoocs-section {
        border-top-right-radius: 50px;
        padding: 20px 15px;
        min-height: auto;
        /* Dejar que crezca según contenido */
    }

    .cuadros-carousel-track {
        gap: 1rem;
        flex-direction: column;
        /* Apilar verticalmente */
        width: 100%;
    }

    .cuadros-carousel-slide {
        width: 100%;
        max-width: 300px;
        /* Máximo ancho */
        height: 160px;
        min-width: 150px;
        /* Mínimo suficiente para verse bien */
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .accessmoocs-section {
        border-top-right-radius: 40px;
        padding: 20px 10px;
    }

    .cuadros-carousel-track {
        gap: 0.8rem;
    }

    .cuadros-carousel-slide {
        max-width: 150px;
        height: 150px;
        min-width: 130px;
        min-height: 130px;
    }
}

@media (max-width: 360px) {
    .accessmoocs-section {
        padding: 15px 5px;
    }

    .cuadros-carousel-track {
        gap: 0.6rem;
    }

    .cuadros-carousel-slide {
        max-width: 140px;
        height: 140px;
        min-width: 120px;
        /* Nunca menos de esto */
        min-height: 120px;
        /* Nunca menos de esto */
    }
}


/* Título Accesos rápidos */
.accessmoocs-title {
    color: #FFFFFF;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32px;
    line-height: 100%;
    text-align: center;
    width: 271px;
    height: 39px;
    opacity: 1;
    margin: 0 auto 40px auto;
    /* Centrado y espacio abajo */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive para el título */
@media (max-width: 768px) {
    .accessmoocs-title {
        font-size: 28px;
        width: auto;
        height: auto;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .accessmoocs-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .cuadros-carousel-track {
        flex-direction: column !important;
        align-items: center !important;
    }

    .cuadros-carousel-slide {
        width: 90vw !important;
        margin-bottom: 18px;
    }
}


/* Estilos para el carrusel de blog */
.blog-carousel-section {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
    position: relative;
}

.blog-carousel-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #244992;
    margin-bottom: 40px;
    text-align: center;
}

.blog-carousel-wrapper {
    max-width: calc(4 * 207px + 3 * 20px + 120px);
    /* 4 cuadros + 3 gaps + espacio para flechas */
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.blog-carousel-container {
    width: 100%;
    overflow: hidden;
}

.blog-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 44px;
    height: 16rem;
    margin-top: 30px;
    margin-left: 20px;
}

.blog-carousel-slide {
    position: relative;
    width: 207px !important;
    min-width: 207px !important;
    max-width: 207px !important;
    height: 207px !important;
    min-height: 207px !important;
    max-height: 207px !important;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(143, 143, 143, 0.15);
}

.blog-carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cuadro-texto {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cuadro-titulo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 23px;
    color: #244992;
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0.7rem;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
}

.cuadro-subtitulo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #3b3b3b;
    border-radius: 6px;
    margin-bottom: 0;
    margin-top: 0.2rem;
    text-align: center;
    letter-spacing: 0.2px;
    padding: 4px 0;
}

@media (max-width: 900px) {
    .cuadro-titulo {
        font-size: 1.1rem;
    }

    .cuadro-subtitulo {
        font-size: 0.9rem;
    }
}

.blog-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #244992;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.blog-carousel-arrow:hover {
    background: #19336a;
    transform: translateY(-50%) scale(1.1);
}

.blog-carousel-arrow.left {
    left: -70px;
    /* Posicionada fuera del carrusel */
}

.blog-carousel-arrow.right {
    right: -70px;
    /* Posicionada fuera del carrusel */
}

/* Responsive */
@media (max-width: 1200px) {
    .blog-carousel-wrapper {
        max-width: calc(4 * 207px + 3 * 20px);
    }

    .blog-carousel-arrow.left {
        left: 10px;
    }

    .blog-carousel-arrow.right {
        right: 10px;
    }
}

@media (max-width: 992px) {
    .blog-carousel-wrapper {
        max-width: calc(2 * 207px + 1 * 20px);
    }
}

@media (max-width: 768px) {
    .blog-carousel-wrapper {
        max-width: 500px;
    }

    .blog-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* Barra de estado de plataforma: cuadritos diarios - SIN SCROLL */
.status-bar-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.status-bar-container>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1px;
    width: 418px;
    height: 32px;
    background: #FFFFFF;
    box-shadow: 0px 0px 11.1px rgba(36, 73, 146, 0.2);
    border-radius: 15px;
    padding: 8px;
    justify-content: flex-start;
    overflow: hidden;
    /* ELIMINADO: overflow-x: auto */
}

.status-bar-day {
    width: 5.72px;
    height: 16px;
    border-radius: 2px;
    background: #e0e0e0;
    border: 1px solid #ccc;
    display: block;
    transition: background 0.2s;
    flex: 0 0 5.72px;
    margin: 0;
    box-sizing: border-box;
    min-width: 5.72px;
    max-width: 5.72px;
}

/* Primer cuadro: borde izquierdo redondeado */
.status-bar-day.first {
    border-radius: 4px 0 0 4px;
    border-left-width: 2px;
}

/* Último cuadro: borde derecho redondeado */
.status-bar-day.current {
    border-radius: 0 4px 4px 0;
    border-right-width: 2px;
}

.status-bar-day.ok {
    background: #24D03D;
    border-color: #24D03D;
}

.status-bar-day.warn {
    background: #FFCC00;
    border-color: #FFCC00;
}

.status-bar-day.fail {
    background: #F41C1C;
    border-color: #F41C1C;
}

.status-bar-day.unknown {
    background: #ebebeb;
    border-color: #ebebeb;
}

/* Estilo para el día actual */
.status-bar-day.current {
    transform: scaleY(1.1);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Estilos para el layout responsive */
.platform-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.platform-card {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 4px;
}

.status-labels {
    display: flex;
    justify-content: space-between;
    width: 418px;
    margin-top: 4px;
    padding: 0 8px;
}

/* Responsive */
@media (max-width: 1100px) {
    .platform-row {
        gap: 24px;
    }

    .platform-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .platform-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .platform-card {
        width: 100%;
        max-width: 418px;
    }

    .status-bar-container>div {
        width: 100%;
        max-width: 418px;
    }

    .status-labels {
        width: 100%;
        max-width: 418px;
    }
}

.fa-solid.fa-arrow-right-long {
    margin-left: 4em !important;
}

/* Barra de progreso personalizada para las tarjetas de curso */
.curso-card .progress {
    height: 18px;
    background: #e9ecef;
    border-radius: 1px;
    margin-left: 1rem;
    margin-right: 1rem;
    overflow: hidden;
}

.curso-card .progress-bar {
    background: #FFCC00 !important;
    color: transparent !important;
    font-size: 0.95em;
    font-weight: 700;
    text-align: left;
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    border-radius: 0 9px 9px 0;
}

.curso-card .progress-porcentaje {
    position: absolute;
    right: 20px;
    left: auto;
    top: -2px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #244992;
    font-size: 0.95em;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
    justify-content: flex-end;
}


.w-100.d-flex.d-md-none.flex-row.align-items-center.justify-content-between {

    min-height: 80px;

}

.fa-solid.fa-user {

    font-size: 1.3em;
    color: #244992;

}

#perfilDropdownMobile {

    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(36, 73, 146, 0.10);

}

.dropdown-menu.dropdown-menu-end {

    min-width: 150px
}

.Users {

    margin: 0;

}

.dropdown-item {
    color: #244992;
    font-weight: 600;
}

.div1 {

    height: 1px;
    background: #FFD600;
    width: 89vw;
    margin: 15px 0 40px 0;
    border-radius: 1px;
    border: 1px solid #FFCC00;


}

.div2 {
    height: 5px;
}

#columna-mis-cursos {

    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;

}

.mb-2.d-flex.align-items-center {

    font-weight: 700;
    color: #244992;

}

.navbar.navbar-expand-lg.shadow-sm.py-1.fixed-top.flex-column.p-0.position-relative {

    z-index: 1040;
    background: #162645;
}

.container-fluid.align-items-center.d-none.d-md-flex {

    min-height: 80px;
}

.col-3.d-flex.align-items-center.justify-content-center {

    min-width: 220px;

}

.img-fluid.d-none.d-md-block {

    max-height: 3.5rem;
}

.col-3.d-flex.align-items-center.justify-content-end {

    min-width: 220px;
    position: relative;

}

.dropdown.d-flex.align-items-center {

    margin-right: 70px;

}

.div3 {
    text-decoration: none;
    color: #244992;
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.fa-solid.fa-arrow-left {

    font-size: 1.1em;
    margin-right: 10px;
}

#misCursosLista {

    max-height: 700px;
    overflow-y: auto;
}

.preloader-img-umd {

    width: 80px;
    height: 80px;
    margin-bottom: 18px;

}

.div5 {

    font-weight: 600;
    color: #244992;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.-d-none.text-center.mt-4 {

    color: #244992;
    font-size: 1.1em;

}

.div6 {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

}

.fa-solid.fa-graduation-cap {

    font-size: 3.5em;
    color: #ffffff;

}

.text1 {

    font-weight: 600;
    color: #999999;
    font-size: 1.1em;

}

.div7 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {

    height: 64px;
    width: auto;
    display: block;
    margin: 0 auto;

}

.footer-col.footer-col-right {

    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;

}

.icon-soci {
    color: #000;
    font-size: 1.7em;
    transition: transform 0.2s, color 0.2s;
}

/* Colores de hover para íconos de redes sociales en el footer */
.footer-col-right a[title="Facebook"]:hover {
    color: #1877f3 !important;
    transform: scale(1.15);
}

.footer-col-right a[title="X (Twitter)"]:hover {
    color: #000000 !important;
    transform: scale(1.15);
}

.footer-col-right a[title="Instagram"]:hover {
    color: #e4405f !important;
    transform: scale(1.15);
}

.footer-col-right a[title="LinkedIn"]:hover {
    color: #0a66c2 !important;
    transform: scale(1.15);
}

.footer-col-right a[title="YouTube"]:hover {
    color: #ff0000 !important;
    transform: scale(1.15);
}

.footer-col-right a {
    transition: transform 0.2s, color 0.2s;
    color: #000000ff;
}

.landing-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 60px 80px;
    gap: 10px;
    position: relative;
    width: 100%;
    min-height: 227px;
    background: #FFFFFF;
    margin: 0;
    box-sizing: border-box;
}

.logo2 {
    height: 64px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.rounded-circle {

    height: 3rem;
    width: 3rem;

}




.btn-ingresar-curso {
    margin-bottom: 1rem !important;
}

@keyframes preloader-zoom {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.18);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.preloader-img-umd {
    animation: preloader-zoom 1.2s ease-in-out infinite;
    display: block;
    margin: 0 auto 18px auto;
    filter: drop-shadow(0 2px 8px #24499233);
}

/* Responsive: mostrar solo el botón móvil en pantallas pequeñas */
@media (max-width: 768px) {
    .curso-card-boton {
        display: none !important;
    }

    .curso-card-boton-movil {
        display: flex !important;
        justify-content: flex-end;
        margin: 0 1rem 1rem 0;
    }
}

.curso-card-boton-movil {
    display: none;
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 0;
    z-index: 3;
}

@media (max-width: 768px) {
    .curso-card {
        position: relative;
        min-height: 180px;
    }

    .curso-card-boton-movil {
        display: flex !important;
    }
}

/* Estilos para los cuadros de cursos */
.curso-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    min-width: 0;
    width: 100%;
    margin: 1rem 0;
    box-sizing: border-box;
    max-width: 100vw;
}

.curso-card {
    position: relative;
    width: calc(33.333% - 1rem);
    /* 3 tarjetas por fila considerando el gap */
    min-width: 210px;
    /* Ancho mínimo razonable */
    max-width: 250px;
    /* Ancho máximo */
    height: 320px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 12px rgba(36, 73, 146, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 auto;
    /* Permite que crezcan y se reduzcan */
}

.curso-card-franja {
    height: 174px;
    background: #162644;
    margin: 1rem 1rem 0rem;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35em;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(36, 73, 146, 0.10);
    overflow: hidden;
    padding: 3.5rem;
}

.curso-card-progreso {
    width: 100%;
    z-index: 2;
}

.curso-card-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 1rem;
}

.curso-card-info .nombre {
    font-size: 1.08em;
    font-weight: 700;
    color: #244992;
    margin-bottom: 0.3em;
    margin-top: 0.2em;
    min-height: 2.5em;
    line-height: 1.2em;
}

.curso-card-info .dato {
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 14px;
    color: #989797;
    margin-bottom: 0.2em;
}

.curso-card-info .dato span {
    color: #989797;
    font-weight: 500;
}

.curso-card-info .dato span.profesor {
    color: #000;
    font-weight: 500;
}

.curso-card-boton {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1.1rem;
}

.curso-card .progress-bar {
    font-size: 0.95em;
    font-weight: 600;
}

.btn-primary {
    border-radius: 50px;
    background: #244992;
    font-weight: 600;
    min-width: 110px;
    border: 2px solid transparent !important;
}

.curso-card-boton .btn-primary:hover,
.curso-card-boton .btn-primary:focus {
    background: #244992 !important;
    color: #fff !important;
    text-decoration: none;
    border: 2px solid #FFD600 !important;
}

/* Botón personalizado para 'Ingresar' en las tarjetas de curso */
.btn-ingresar-curso {
    border-radius: 50px;
    background: #244992 !important;
    font-weight: 200;
    min-width: 110px;
    color: #fff !important;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0.6em 1.2em;
    border: none;
}

/* Efecto hover/focus para el botón personalizado */
.btn-ingresar-curso:hover,
.btn-ingresar-curso:focus {
    background: #162644 !important;
    box-shadow: 0 4px 16px rgba(36, 73, 146, 0.13);
    text-decoration: none;
}

@media (max-width: 900px) {
    .curso-grid {
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        max-width: 100vw;
    }
}

@media (max-width: 1200px) {
    .curso-card {
        width: calc(50% - 1rem);
        /* 2 tarjetas en tablets */
    }
}

@media (max-width: 768px) {
    .curso-card {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-right: 0;
        max-width: 100vw;
        min-width: 0;
        height: auto;
        align-items: stretch;
        padding: 0.5rem 0.2rem;
        box-sizing: border-box;
    }

    .curso-card .progress {
        margin-top: 1rem;
    }

    .curso-card-franja {
        width: 80px;
        min-width: 8rem;
        height: 10rem;
        margin: 1rem 0 1rem 1rem;
        border-radius: 24px 0 0 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        flex-direction: column;
    }

    .curso-card-info {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem 0.7rem 0.5rem 1rem;
        min-width: 0;
    }

    .curso-card-progreso {
        width: 78vw;
        max-width: 78vw;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        margin: 0;
        padding: 0 0 0 0;
        order: 3;
        border-radius: 0 0 30px 30px;
        background: #fff;
        z-index: 2;
    }

    .curso-card {
        position: relative;
        min-height: 180px;
        padding-bottom: 28px;
        /* espacio para la barra de progreso */
    }
}

/* Estilos para la barra de desplazamiento personalizada */
#misCursosLista {
    max-height: 650px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(36, 73, 146, 0.13);
    padding: 1.2rem 0.5rem;
    border: 1.5px solid #e0e0e0;
    scrollbar-width: thin;
}

/* Para navegadores WebKit (Chrome, Safari, Edge) */
#misCursosLista::-webkit-scrollbar {
    width: 14px;
    /* Un poco más gruesa */
    background: #f0f0f0;
    border-radius: 0 24px 24px 0;
    /* Bordes redondeados en el track */
}

#misCursosLista::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0 24px 24px 0;
    /* Bordes redondeados solo en el lado derecho */
    margin: 8px 0;
}

#misCursosLista::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
    /* Bordes completamente redondeados */
    border: 3px solid #f0f0f0;
    /* Espacio alrededor del thumb */
    min-height: 60px;
}

#misCursosLista::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Eliminar completamente las flechas */
#misCursosLista::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

#misCursosLista::-webkit-scrollbar-corner {
    background: transparent;
}

/* Para Firefox */
#misCursosLista {
    scrollbar-width: auto;
}

.footer-legal-text {
    font-weight: 400;
    font-size: 16px;
    color: #000000;
}

.footer-legal-text .razon-social {
    font-weight: 700;
}


/* Actividades pendientes - estilo visual similar a cursos */
.pendientes-section {
    height: 30rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(36, 73, 146, 0.13);
    padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1.5px solid #e0e0e0;
    max-height: 650px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
}

/* Scrollbar estilos igual que misCursosLista */
.pendientes-section::-webkit-scrollbar {
    width: 14px;
    background: #f0f0f0;
    border-radius: 0 24px 24px 0;
}

.pendientes-section::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0 24px 24px 0;
    margin: 8px 0;
}

.pendientes-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
    border: 3px solid #f0f0f0;
    min-height: 60px;
}

.pendientes-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.pendientes-section::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.pendientes-section::-webkit-scrollbar-corner {
    background: transparent;
}

/* Para Firefox */
.pendientes-section {
    scrollbar-width: auto;
}

.pendientes-title {
    font-weight: 700;
    color: #244992;
    font-size: 1.35em;
    margin-bottom: 0.7em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.pendientes-lista {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
}

.pendiente-curso {
    margin-bottom: 0.7em;
}

.pendiente-curso-nombre {
    font-weight: 600;
    color: #244992;
    font-size: 1.08em;
    margin-bottom: 0.2em;
    margin-left: 1rem;
}

.pendiente-actividad {
    background: #F5F5F5;
    border-radius: 40px;
    padding: 0.7em 1em;
    margin-bottom: 0.4em;
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 0.98em;
    color: #244992;
    box-shadow: 0 1px 4px rgba(36, 73, 146, 0.06);
}

.pendiente-actividad i {
    font-size: 1.1em;
}

.pendiente-actividad .fecha {
    color: #888;
    font-size: 0.93em;
    margin-left: auto;
    font-weight: 400;
}

.pendientes-vacio {
    color: #999;
    font-size: 1.05em;
    text-align: center;
    margin: 1.5em 0 0.5em 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pendientes-section {
        padding: 1.1rem 0.5rem 0.8rem 0.5rem;
        margin-top: 1.2rem;
    }

    .pendientes-title {
        font-size: 1.1em;
    }

    .pendiente-curso-nombre {
        font-size: 1em;
    }

    .pendiente-actividad {
        font-size: 0.93em;
        padding: 0.5em 0.7em;
    }

}

.col-3.d-flex.align-items-center.justify-content-center {
    min-width: 220px;
}

@media (max-width: 905px) {
    .col-3.d-flex.align-items-center.justify-content-center {
        min-width: 220px;
        display: none !important;
    }

    .logo2 {
        height: 35px;
    }

    .landing-footer {

        flex-direction: column;

    }

}

.text3 {
    font-weight: 700;
}


/* =========================================================
    Modal de confirmación de logout
========================================================= */
#logoutModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(36, 73, 146, 0.2);
}

#logoutModal .modal-header {
    background: #244992 !important;
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
    border-bottom: none;
}

#logoutModal .modal-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

#logoutModal .modal-body {
    padding: 30px;
    background: #fff;
}

#logoutModal .modal-body p {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #244992;
}

#logoutModal .modal-body .text-muted {
    font-size: 0.9rem;
    color: #6c757d !important;
}

#logoutModal .modal-footer {
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
}

#logoutModal .btn {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
}

#logoutModal .btn-secondary {
    background: #6c757d;
    color: #fff;
}

#logoutModal .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#logoutModal .btn-danger {
    background: #dc3545;
    color: #fff;
}

#logoutModal .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#logoutModal .fa-sign-out-alt {
    color: #ffc107;
}

/* Backdrop del modal */
.modal-backdrop.show {
    background-color: rgba(36, 73, 146, 0.5);

    transform: scale(1.15);
}

/* ==========================================================================
   BOTÓN "ACTIVIDADES" Y GRUPO DE BOTONES EN TARJETA DE CURSO
   ========================================================================== */

/* Grupo de botones unidos */
.btn-group-curso {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(36, 73, 146, 0.10);
}

.btn-group-curso .btn-ingresar-curso {
    border-radius: 50px 0 0 50px !important;
    margin-bottom: 0 !important;
    min-width: 90px;
    padding: 0.5em 1em;
    font-size: 0.95em;
}

.btn-group-curso .btn-actividades-curso {
    border-radius: 0 50px 50px 0 !important;
    min-width: 90px;
    padding: 0.5em 1em;
    font-size: 0.95em;
}

/* Botón Actividades */
.btn-actividades-curso {
    background: #e9ecef !important;
    color: #244992 !important;
    border: none !important;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-actividades-curso:hover,
.btn-actividades-curso:focus {
    background: #e2e2e2 !important;
    color: #1e3666 !important;
}

/* Responsive: botones en móvil */
@media (max-width: 768px) {
    .btn-group-curso {
        flex-direction: row;
        width: auto;
    }

    .btn-group-curso .btn-ingresar-curso,
    .btn-group-curso .btn-actividades-curso {
        min-width: 70px;
        padding: 0.4em 0.7em;
        font-size: 0.85em;
    }
}

/* Modal de actividades */
#actividadesCursoModal .modal-content {
    border: none;
    box-shadow: 0 8px 32px rgba(22, 38, 68, 0.18);
}

#actividadesCursoModal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar {
    width: 10px;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 8px;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#actividadesCursoModal .pendiente-actividad {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    #actividadesCursoModal .actividad-pendiente-container {
        flex-wrap: wrap;
        gap: 0.5em;
    }

    #actividadesCursoModal .actividad-columna,
    #actividadesCursoModal .actividad-columna-fecha {
        font-size: 0.85em;
    }
}

/* ==========================================================================
   ESTILOS DE ACTIVIDADES DENTRO DEL MODAL
   (Mismos estilos que en my.css para consistencia visual)
   ========================================================================== */

/* Container principal de actividad pendiente */
.actividad-pendiente-container {
    display: flex;
    align-items: center;
    gap: 1.2em;
    width: 100%;
    cursor: pointer;
}

/* Contenedor de icono de actividad */
.actividad-icono-container {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Círculo de icono de actividad */
.actividad-icono-circulo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #9747ff;
    color: #fff;
}

/* Icono de archivo dentro del círculo */
.actividad-icono {
    color: #fff;
    font-size: 1.2rem;
}

/* Contenedor de información de actividad */
.actividad-info-container {
    flex: 2;
    min-width: 0;
}

/* Nombre de actividad */
.actividad-nombre {
    font-weight: 600;
    color: #244992;
    font-size: 1em;
}

/* Nombre del curso en actividad */
.actividad-curso-nombre {
    font-size: 0.97em;
    color: #888;
    font-weight: 500;
    margin-top: 2px;
}

/* NRC en actividad */
.actividad-nrc {
    font-size: 0.93em;
    color: #aaa;
    font-weight: 400;
}

/* Columnas de información de actividad */
.actividad-columna {
    flex: 1;
    min-width: 80px;
    text-align: center;
    font-size: 0.98em;
    color: #244992;
    font-weight: 500;
}

.actividad-columna-fecha {
    flex: 1;
    min-width: 90px;
    text-align: center;
    font-size: 0.98em;
    color: #244992;
    font-weight: 500;
}

/* Iconos en columnas de actividad */
.actividad-icono-calendario,
.actividad-icono-reloj {
    color: #244992;
}

/* Nombre del curso dentro del modal */
.pendiente-curso-nombre {
    font-weight: 600;
    color: #244992;
    font-size: 1.08em;
    margin-bottom: 0.2em;
    margin-left: 1rem;
}

.pendiente-curso-plataforma {
    font-weight: 400;
    color: #888;
    font-size: 0.93em;
}

/* ==========================================================================
   MODAL DE ACTIVIDADES
   ========================================================================== */
#actividadesCursoModal .modal-content {
    border: none;
    box-shadow: 0 8px 32px rgba(22, 38, 68, 0.18);
}

#actividadesCursoModal .modal-header {
    background: #162644 !important;
    color: #fff !important;
    border: none !important;
}

#actividadesCursoModal .modal-title {
    color: #fff !important;
}

#actividadesCursoModal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar {
    width: 10px;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 8px;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

#actividadesCursoModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#actividadesCursoModal .pendiente-actividad {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    #actividadesCursoModal .actividad-pendiente-container {
        flex-wrap: wrap;
        gap: 0.5em;
    }

    #actividadesCursoModal .actividad-columna,
    #actividadesCursoModal .actividad-columna-fecha {
        font-size: 0.85em;
    }
}