@media (max-width: 768px) {
    #carouselExampleIndicators {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    #carouselExampleIndicators {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
    }
}

/* =========================================================
 * 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;
        max-width: 80vw;
        margin: 0 auto;
    }

    #carouselExampleIndicators {
        margin: 0 7.5%;
        max-width: 85%;
    }

}

@media (max-width: 480px) {
    .carousel-inner {
        border-radius: 10px;
        max-width: 75vw;
        margin: 0 auto;
    }

    #carouselExampleIndicators {
        margin: 0 10%;
        max-width: 80%;
    }

}

/* =========================================================
 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 {
        border-bottom-left-radius: 120px;
        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;
        padding: 0.5px 0px 0.5px 0px;
    }
}

/* =============================
   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;
}


/* Recorte y posición para el iframe de status */
.platform-status-iframe {
    width: 100%;
    height: 1400px;
    border: none;
    position: relative;
    top: -440px;
    /* mueve para mostrar solo las barras */
    display: block;
    border-radius: 18px;
}

@media (max-width: 1000px) {
    .platform-status-iframe {
        height: 1600px;
        top: -600px;
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .platform-status-iframe {
        height: 1200px;
        top: -505px;
        border-radius: 8px;
    }
}

@media (max-width: 1308px) {
    .platform-status-inner {
        min-width: 28rem;
        margin: 1rem 1rem !important;
    }
}

@media (max-width: 1000px) {
    .platform-status-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        min-height: unset !important;
        width: 100vw !important;
        border-top-right-radius: 40px !important;
    }

    .platform-status-img-col,
    .platform-status-text-col {
        padding: 1.2rem 8rem !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .platform-status-inner {
        min-width: 28rem;
        min-width: 0;
        max-width: 100vw;
        margin: 1rem 1rem;
        padding: 1rem;
    }
}

/* platform-status.css: Estilos para la sección de estado de plataformas, independientes pero con layout tipo flex y visual igual a accessmoocs */
.platform-status-section {
    margin: 0;
    background: #F4F4F4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0 24px 0;
    box-shadow: none;
    border-radius: 0;
}

.platform-status-img-col {
    text-align: left;
    width: 100%;
    padding-left: 200px;
    padding-right: 0;
}

.platform-status-title {
    margin: 1rem 0 10px 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    color: #fff;
}

.platform-status-version {
    font-weight: 400;
    color: #FFD600;
    font-size: 3rem;
}

.platform-status-bar-divider {
    height: 3px;
    background: #FFD600;
    width: 100%;
    border-radius: 2px;
    margin-bottom: 18px;
}

.platform-status-text-col {
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.platform-status-inner {
    width: 100%;
    max-width: 420px;
    min-width: 34rem;
    min-height: 260px;
    text-align: center;
    border-radius: 50px;
    background: white;
    padding: 1.5rem;
    margin: 4rem 8rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Nombre de la plataforma encima de la barra */
.platform-status-platform-name {
    font-size: 0.93rem;
    color: #244992;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    margin-bottom: 2px;
    margin-top: 18px;
    text-align: left;
}

@media (max-width: 1100px) {
    .platform-status-section {
        gap: 0rem;
        width: 100vw;
        margin: 24px 0 0 0;
        flex-direction: column;
        min-height: unset;
        border-top-right-radius: 80px;
    }

    .platform-status-text-col {
        padding-right: 0;
        align-items: center;
    }

    .platform-status-inner {
        min-width: 30rem;
        margin: 1rem 1rem;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .platform-status-section {
        border-top-right-radius: 60px;
    }

    .platform-status-title {
        font-size: 20px;
    }

    .platform-status-version {
        font-size: 18px;
    }

    .platform-status-inner {
        min-width: 28rem;
        margin: 1rem 1rem;
    }
}


/* 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: 8px;
    left: auto;
    top: 0;
    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;
}

/* ========================================================= 
 Panel de notificaciones deslizante
 ========================================================= */



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

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

.img-fluid.d-none.d-md-block {
    max-height: 3.5rem;
}

.col-3.d-none.d-md-flex.align-items-center.justify-content-end {
    min-width: 220px;
    position: relative;
}

.dropdown.d-flex.align-items-center {
    margin-right: 70px;
}

#perfilDropdown {
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(36, 73, 146, 0.1);
}

.fa-solid.fa-user {
    font-size: 1.3em;
    color: #244992;
}

.dropdown-menu.dropdown-menu-end {
    min-width: 150px;
}

.form-perfil {
    margin: 0;
}

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

.w-100.d-flex.d-md-none.flex-row.align-items-center.justify-content-between {
    min-height: 80px;
}

#perfilDropdownMobile {
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(36, 73, 146, 0.1);
}

.fa-solid-fa-user {
    font-size: 1.3em;
    color: #244992;
}

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

.div1 {
    height: 1px;
    background: #ffd600;
    width: 89vw;
    margin: 15px 0 40px 0;
    border-radius: 1px;
    border: 1px solid #ffcc00;
}

#carouselExampleIndicators {
    width: 89.3vw;
    margin: 0 auto;
}

.div2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
}

.texticon {
    color: #244992;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

#saludoUsuario {
    width: 89vw;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 10px;
}

#saludoUsuarioTexto {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 52px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    background: transparent;
    display: inline-block;
    margin: 20px;
}

.div3 {
    height: 5px;
}

.div4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mb-2 {
    font-weight: 700;
    color: #244992;
}

#verTodosCursosBtn {
    background: none;
    border: none;
    color: #989797;
    font-weight: 400;
    font-size: 0.98em;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.fa-solid.fa-arrow-right-long {
    margin-left: 0.5em;
    color: #989797;
}

.div5 {
    width: 100%;
    height: 1.5px;
    background: #ffcc00;
    border-radius: 2px;
    margin-bottom: 1.2rem;
}

#misCursosLista {
    max-height: 700px;
    overflow-y: auto;
}

.preloader-img-umd {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
}

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

#sinCursos {
    color: #244992;
    font-size: 1.1em;
}

.div7 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fa-solid.fa-graduation-cap {
    font-size: 3.5em;
    color: #ffffff;
}

.nocourse {
    font-weight: 600;
    color: #999999;
    font-size: 1.1em;
}

.div8 {
    width: 100%;
    height: 1.5px;
    background: #ffcc00;
    border-radius: 2px;
    margin-bottom: 1.2rem;
}

#pendientesSection {
    display: none;
}

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

#pendientesVacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nopendientes {
    font-weight: 400;
    color: #999999;
    font-size: 1.1em;
    margin-top: 10px;
}

.fa-solid .a-file-circle-xmark {
    font-size: 3.5em;
    color: #999999;
}

.div10 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.textm {
    margin-bottom: 0;
}

#limpiarMensajesBtn {
    background: none;
    border: none;
    color: #989797;
    font-weight: 400;
    font-size: 0.98em;
    cursor: pointer;
    padding: 0;
}

#mensajesLoader {
    flex-shrink: 0;
}


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

#mensajesLista {
    margin-top: 2rem;
    flex: 1 1 auto;
    overflow-y: auto;
    position: relative;
}

#mensajesVacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    flex-shrink: 0;
}

.fa-solid.fa-comment-slash {
    font-size: 2.5em;
    color: #ccc;
    margin-bottom: 0.2em;
}

.div12 {
    text-align: center;
    margin-top: 1.2em;
    flex-shrink: 0;
}

#verTodosMensajesBtn {
    background: none;
    border: none;
    color: #244992;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
}

#mensajes {
    margin-left: 4em !important;
}

#panelTodosMensajes {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(36, 73, 146, 0.13);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.div13 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 0 18px;
}

.textms {

    margin: 0;
    color: #244992;
    font-weight: 700;

}

#cerrarPanelMensajesBtn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
}

#todosMensajesLista {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.notificaciones-section {
    margin-top: 2.2em;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(36, 73, 146, 0.07);
    padding: 28px 22px 18px 22px;
    border: 1.5px solid #e6e6e6;
    margin-left: 1rem;
    margin-right: 1rem;
}

.div14 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.textnot {
    margin-bottom: 0;
    color: #244992;
    font-weight: 700;
    font-family: 'Segoe UI', Arial, sans-serif;
}

#limpiarNotificacionesBtn {

    background: none;
    border: none;
    color: #989797;
    font-weight: 400;
    font-size: 0.98em;
    cursor: pointer;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;

}

#notificacionesLoader {

    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 90px;

}

.div15 {

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

}

#notificacionesLista {
    position: relative;

}

#notificacionesVacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
}

.fa-regular.fa-bell-slash {

    font-size: 2.5em;
    color: #aaa;
    margin-bottom: 0.2em;

}

.nonoti {

    color: #aaa;
    font-size: 1.1em;
    text-align: center;

}

.div16 {
    text-align: center;
    margin-top: 1.2em;
}

#verTodasNotificacionesBtn {
    background: none;
    border: none;
    color: #244992;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
}

#panelTodasNotificaciones {

    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(36, 73, 146, 0.13);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;

}

.textno {
    margin: 0;
    color: #244992;
    font-weight: 700;
}


.div17 {


    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 0 18px;

}

#cerrarPanelNotificacionesBtn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
}

#todasNotificacionesLista {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

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


.div18 {

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

}


.div19 {

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;


}

.platform-status-title {
    margin-bottom: 0;
    color: #244992;
    display: inline-block;
}

.platform-status-version {

    font-size: 1.3rem;
    margin-left: 10px;
    color: #FFD600;

}

.platform-status-bar-divider {

    margin: 0 auto 28px auto;
    width: 100%;
    max-width: 420px;

}

#status-bars2 {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 2px 16px rgba(36, 73, 146, 0.07);
    width: 100%;
}

.div-platform-status-section {

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;

}

.platform-status-title {

    margin-bottom: 0;
    color: #244992;
    display: inline-block;

}

.platform-status-version {
    font-size: 1.3rem;
    margin-left: 10px;
    color: #FFD600;

}

.platform-status-bar-divider {
    margin: 0 auto 28px auto;
    width: 100%;
    max-width: 420px;
}















.container-fluid.align-items-center.d-flex {
    min-height: 80px;
}

.navbar.navbar-expand-lg.shadow-sm.py-1.fixed-top.flex-column.p-0.position-relative {
    z-index: 1040;
    background: #162645;
    /* min-height: 260px; */
}

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

.col-3 {
    min-width: 220px;
}

/* Línea divisora amarilla - FUNCIONA! */
.div-carr,
div.div-carr,
header .div-carr,
.navbar .div-carr {
    height: 1px !important;
    background: #ffd600 !important;
    background-color: #ffd600 !important;
    width: 89vw !important;
    margin: 15px 0 40px 0 !important;
    border-radius: 1px !important;
    border: 1px solid #ffcc00 !important;
    display: block !important;
    clear: both !important;
    position: relative !important;
    z-index: 9999 !important;
}

#carouselExampleIndicators {
    width: 89.3vw;
    max-width: 2300px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
}

.d-block.w-100 {
    max-height: 1150px;
    object-fit: cover;
}

.carousel-control-prev-icon {
    width: 48px !important;
    height: 48px !important;
    filter: drop-shadow(0 2px 8px #222) !important;
}

.carousel-control-next-icon {
    width: 48px !important;
    height: 48px !important;
    filter: drop-shadow(0 2px 8px #222) !important;
}

.custom-carousel-indicators {
    gap: 8px;
    margin: 2rem;
}

.flot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flot-at {
    color: #244992;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

.bienvenida {
    height: 20px;
}

.btn-ingresar.d-flex.align-items-center.justify-content-center.position-relative {
    text-decoration: none;
}

.btn-logo-umd1.me-2 {
    height: 28px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.textbtn1 {
    display: inline-block;
}

.bienvenida-img1 {
    height: 20px;
}

.me-2 {
    display: inline-block;
    vertical-align: middle;
    height: 28px;
    width: 28px;
}

.platfo {
    text-decoration: none;
}

#status-bars {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 2px 16px rgba(36, 73, 146, 0.07);
    width: 100%;
}

.status-bars-div1 {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 18px;
}

.status-bars-div {

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 32px 0;
}

.fa-solid.fa-right-to-bracket {
    font-size: 28px;
}

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

.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;
}

/* =========================================================
    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;
    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);
}

.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);
}

.text2 {
    font-weight: 50;
    font-size: 16px;
    color: #000000;
}

.footer-col.footer-col-right {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.text3 {
    font-weight: 700;
}




/*
Estilos para iconos flotantes laterales
*/
.floating-icon-img.open {

    color: #244992;

}


/* Estilos para iconos flotantes laterales con imágenes y fondo amarillo */




.floating-icons-container {
    position: fixed;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-end;
}

.floating-icon-img {
    margin-left: 1rem;
    width: 64px;
    height: 64px;
    background: #FFD600;
    border-radius: 32px 0 0 32px;
    box-shadow: 0 2px 12px rgba(36, 73, 146, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
    padding: 0;
}

.floating-icon-img img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.floating-icon-img:hover {
    background: #FFCC00;
    box-shadow: 0 4px 18px rgba(36, 73, 146, 0.18);
}

.floating-subicons {
    display: none;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    left: -110px !important;
    z-index: 10000;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(36, 73, 146, 0.13);
    padding: 18px 16px;
    min-width: 80px;
    align-items: center;
    margin-right: 5rem;
}

.floating-icon-img.open+.floating-subicons {
    display: flex;
}

/* Subiconos: círculos azules dentro del rectángulo blanco */
.floating-subicon-img {
    width: 48px;
    height: 48px;
    background: #244992;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(36, 73, 146, 0.10);
    transition: background 0.2s;
    padding: 0;
}

.floating-subicon-img img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.floating-subicon-img:hover {
    background: #19336a;
}

@media (max-width: 768px) {
    .floating-icons-container {
        position: fixed;
        left: unset;
        bottom: unset;
        transform: none;
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
        width: auto;
        max-width: 100vw;
        z-index: 9999;
        padding-right: 2px;
    }

    .floating-icon-img {
        width: 44px;
        height: 44px;
        border-radius: 22px 0 0 22px;
        margin-left: 0;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(36, 73, 146, 0.10);
    }

    .floating-icon-img img {
        width: 22px;
        height: 22px;
    }

    .floating-subicons {
        margin-top: 0;
        position: absolute;
        left: -140px !important;
        top: 0;
        min-width: 110px;
        z-index: 10001;
        box-shadow: 0 2px 12px rgba(36, 73, 146, 0.13);
        flex-direction: column;
        gap: 10px;
        padding: 12px 10px;
        align-items: center;
        background: #fff;
    }

    .floating-subicon-img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        margin: 4px 0;
    }

    .floating-subicon-img img {
        width: 18px;
        height: 18px;
    }

    .floating-subicons span {
        font-size: 0.85em;
        display: block;
        text-align: center;
        margin-top: 2px;
    }
}


.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 {
    height: 18px;
    background: #e9ecef;
    border-radius: 1px;
    margin-left: 1rem;
    margin-right: 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 {
    min-height: 650px;
    max-height: 1500px;
    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;
    }
}

/* Estilo para el contenedor de cada mensaje, similar a .pendiente-actividad */
.mensaje-actividad {
    background: #F5F5F5;
    border-radius: 40px;
    margin-bottom: 0.4em;
    align-items: center;
    font-size: 0.98em;
    color: #244992;
    box-shadow: 0 1px 4px rgba(36, 73, 146, 0.06);
}

/* Círculo amarillo con ícono de mensaje */
.mensaje-circulo {
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFCC00;
    color: #fff;
    font-size: 1.7em;
    flex-shrink: 0;
}

/* Círculo específico para notificaciones - color azul */
.mensaje-circulo-notificacion {
    background: #162644 !important;
}

/* Contenedor de texto del mensaje (nombre y preview) */
.mensaje-contenido {
    flex: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* mensajes.css: estilos para el recuadro de mensajes en la columna derecha */
.mensajes-section {
    margin-left: 1rem;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    max-height: 650px;
    padding: 24px 18px 18px 18px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(36, 73, 146, 0.07);
    margin-bottom: 2rem;
}

.mensajes-section h3 {
    font-weight: 700;
    color: #244992;
    margin-bottom: 0.7em;
}

.mensaje-card {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 12px 12px 12px;
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.mensaje-card:last-child {
    border-bottom: none;
}

.mensaje-remitente {
    font-weight: 600;
    color: #244992;
    font-size: 1em;
    margin-bottom: 2px;
}

.mensaje-preview {
    color: #666;
    font-size: 0.97em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mensajes-vacio {
    color: #aaa;
    text-align: center;
    margin-top: 1.5em;
    font-size: 1.05em;
}


#notificacionesLista {
    background: #fff !important;
    border-radius: 18px;
    padding: 24px 18px 18px 18px;
    margin-bottom: 2rem;
    max-height: 510px;
    overflow-y: auto;
    margin-top: 1rem;
}


/* cursos y activiades */

/* =========================================================
 * CLASES CSS PARA ELEMENTOS DINÁMICOS DE JAVASCRIPT
 * Reemplazan estilos inline para cumplir con CSP
 * ========================================================= */

/* Etiqueta de curso oculto */
.curso-oculto-etiqueta {
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 8px;
}

/* Icono de graduación en tarjeta de curso */
.curso-card-icon {
    color: #ffffff;
    font-size: 2.2em;
}

/* Progress bar relativo */
.curso-progress-container {
    position: relative;
}

/* Barra de progreso con animación */
.curso-progress-bar {
    width: 0%;
    background-color: #FFD600;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

/* Botón móvil oculto por defecto */
.curso-card-boton-movil {
    display: none;
}

/* Nombre de curso pendiente con plataforma */
.pendiente-curso-plataforma {
    color: #888;
    font-size: 0.98em;
    font-weight: 400;
}

/* 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;
}

/* Icono de campana en notificación */
.mensaje-icono-campana {
    color: #fff;
    font-size: 0.8em;
}

/* Información de plataforma en mensaje */
.mensaje-plataforma-info {
    font-size: 0.93em;
    color: #244992;
    margin-top: 2px;
}

/* Fecha en mensaje */
.mensaje-fecha-info {
    font-size: 0.92em;
    color: #aaa;
    margin-top: 2px;
}

/* Container para notificaciones vacías */
.notificaciones-vacio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
    gap: 0.7em;
    color: #aaa;
}

/* Icono de campana tachada para vacío */
.notificaciones-vacio-icono {
    font-size: 2.5em;
    color: #ccc;
    margin-bottom: 0.2em;
}

/* Icono de comentario en mensaje */
.mensaje-icono-comentario {
    color: #fff;
    font-size: 0.8em;
}

/* Container para mensajes vacíos */
.mensajes-vacio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
    gap: 0.7em;
    color: #aaa;
}

/* Icono de comentario tachado para vacío */
.mensajes-vacio-icono {
    font-size: 2.5em;
    color: #ccc;
    margin-bottom: 0.2em;
}



/* Controles del carrusel responsive */
@media (max-width: 768px) {

    .div-carr,
    div.div-carr,
    header .div-carr,
    .navbar .div-carr {
        margin: 2px 0 10px 0 !important;
    }

    .carousel-control-next,
    .carousel-control-prev {
        width: 35%;
    }

    .carousel-control-next-icon {
        width: 30px !important;
        height: 30px !important;
        filter: drop-shadow(0 2px 8px #222) !important;
    }

    .carousel-control-prev-icon {
        width: 30px !important;
        height: 30px !important;
        filter: drop-shadow(0 2px 8px #222) !important;
    }

    .div1 {
        margin: 5px 0 10px 0;
    }

    .custom-carousel-indicators {
        margin: 1rem;
    }

    #saludoUsuarioTexto {
        font-size: 20px;
    }

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

        display: none !important;

    }

    .col-3 {

        min-width: 160px !important;

    }

}

/* ==========================================================================
   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 - color amarillo #FFCC00 */
.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;
    }
}

/* Botón "Todos mis cursos" dentro del recuadro */
.ver-todos-cursos-container {
    display: flex;
    justify-content: center;
    padding: 1.2rem 0;
}

.btn-ver-todos-cursos {
    background: none;
    border: 2px solid #244992;
    color: #244992;
    font-weight: 600;
    font-size: 1em;
    border-radius: 50px;
    padding: 0.6em 1.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.btn-ver-todos-cursos:hover {
    background: #244992;
    color: #fff;
}

/* 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;
    }
}