/* principal */
html, body {
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: black;
    color: white;
}

/* Imagen de fondo borrosa en toda la pantalla */
body::before {
    content: "";
    position: fixed; /* Se queda fijo aunque hagas scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/static/img/fondo-blue.png") no-repeat center center fixed;
    background-size: cover;
    filter: blur(25px); /* Nivel de blur */
    z-index: -1; /* Lo manda al fondo */
}

header {       
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999;
    padding: 10px 20px;
    display: flex;
    align-self: center;
    justify-content: center;
    background: transparent;
}
nav.header-nav {  
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(10, 10, 25, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-img-logo{
    width: 80px;
}
.offcanvas{
    height: 95vh;
    border-radius: 10px;
}
.offcanvas-header {
    border-bottom: 2px solid white;
}
.offcanvas-body {
    padding: 10px;
}
.offcanvas-backdrop {
    top: -11px !important;
    left: -16px !important;
}

button.navbar-toggler {
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
}
main {
    flex: 1; /* Ocupa el espacio restante entre el header y el footer */
}

footer{        
    background: rgba(10, 10, 25, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    text-align: center;
}
a.a-normal {
    color: rgb(255 255 255);
    text-decoration: none;
    text-shadow: 1px 2px 10px #ffffff;
    font-weight:bold;
}

a.a-blue {
    color: rgb(0 59 255);
    text-decoration: underline;
    text-shadow: 1px 2px 10px #1451bf;
}

/* botones  */
.btn-black{
    color: white;
    border: 2px solid #ffffff;
    background-image: linear-gradient(45deg, #545454, #000000);
}
.btn-black:hover{
    border: 3px solid #ffffff;
    color: white !important;
    background-image: linear-gradient(45deg, #000000, #545454);
}
.btn-primary {
    border: 2px solid #2c00ff;
    background-image: linear-gradient(45deg, #00b5ff, #2c00ff);
}
.btn-primary:hover {
    border: 3px solid #00b5ff;
    background-image: linear-gradient(45deg, #2c00ff, #00b5ff);
}
.btn-primary:active {
    background: #2c00ff;
}

.btn-danger {
    border: 1px solid #ff0000;
    background-image: linear-gradient(45deg, #ff00d9, #ff0000);
}
.btn-danger:hover {
    border: 3px solid #ff00d9;
    background-image: linear-gradient(45deg, #ff0000, #ff00d9);
}
.btn-danger:active {
    background: #ff0000;
}

.btn-success {
    border: 1px solid #00a362;
    background-image: linear-gradient(45deg, #00ff8c, #00a362);
}
.btn-success:hover {
    border: 3px solid #00ff8c;
    background-image: linear-gradient(45deg, #00a362, #00ff8c);
}
.btn-success:active {
    background: #00ff8c;
}

.btn-purple {
    border: 1px solid #ff00ff84;
    background-image: linear-gradient(45deg, #ff00fb, #ff00ff84);
}
.btn-purple:hover {
    border: 3px solid #ff00fb;
    background-image: linear-gradient(45deg, #ff00ff84, #ff00fb);
}
.btn-purple:active {
    background: #ff00fb;
}

.btn-warning {
    border: 1px solid #f0ff00;
    background-image: linear-gradient(45deg, #ffb300, #f0ff00);
}
.btn-warning:hover {
    border: 3px solid #ffb300;
    background-image: linear-gradient(45deg, #f0ff00, #ffb300);
}
.btn-warning:active {
    background: #ffb300;
}

.dropdown-divider, .dropdown-divider-white {
    height: 0;
    /* margin: 2px 5px 10px 5px; */
    overflow: hidden;
    border-top: 1px solid #8d8d8d;
    opacity: 1;
}
.dropdown-divider {
    border-top: 1px solid #1f1f1f;
}
.nav-item {
    margin-bottom: 5px;
}
.nav-link.active {
    background: #474747;
    border-radius: 7px;
    padding: 5px 15px;
}
.nav-link {    
    padding: 5px 15px;
}
.nav-link:hover {
    background: #474747;
    border-radius: 7px;
}
.img-profile{
    width: 350px;
    height: 350px;
    object-fit: cover;
}
.foto-perfil-mini{
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%; 

}
.item-menu > a {
    font-size: 20px;
    color: #f5f5f5;
    text-decoration: none;
}
.item-menu > a:hover {
    color: rgb(255 255 255);
    text-decoration: none;
    text-shadow: 1px 2px 10px #ffffff;
    font-weight: bold;
}   
/* tablas */
.table {
    --bs-table-hover-color: #000000;
    --bs-table-hover-bg: #4e92f76b;
}
table > thead > tr > th,
table > thead > tr > th > a {    
    font-size: 12px !important; 
    align-content: center;
    text-align: center;
}

table > tbody > tr > td,
table > tbody > tr > th,
table > tbody > tr > td > button,
table > tbody > tr > th > button,
table > tbody > tr > td > a,
table > tbody > tr > th > a {
    font-size: 12px !important; 
    align-content: center;
    text-align: center;
}

table > tbody > tr > td,
table > tbody > tr > th{
    padding: 2px !important;
}
.fa-telegram, .fa-whatsapp{
    font-size: 17px !important;
}
.text-a-index {
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
}
/* botones  */
.btn-sm-sm{
    padding: 0px 2px !important;
}

/* paginacion */
.page-link {
    padding: 2px 3px;
    color: #1f1f1f;
}
.pagination {
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #000000;
    --bs-pagination-active-border-color: #000000;
    --bs-pagination-hover-color: #ffffff;
    --bs-pagination-hover-bg: #000000;
    --bs-pagination-hover-border-color: #000000;
    --bs-pagination-focus-color: #000000;
}
.texto-enriquesido > figure {
    justify-self: center !important;
}
.texto-enriquesido > figure > img,
.texto-enriquesido > p > img{
    border-radius: 10px;
    height: auto !important;
    width: 100% !important;
}
/* alertas */
.alert{
    padding: 0px 5px;
    font-size: 10px;
    text-align: center;
    margin: 0;
}
.alert-medio {
    padding: 5px 10px;
    font-size: 15px;
    text-align: center;
}
.text-normal{
    font-size: 13px;
    padding: 10px;
    margin-bottom: 10px;
}

/* celdas  */
.cel-100{
    min-width: 100px;
}
.cel-110{
    min-width: 110px;
}
.cel-120{
    min-width: 120px;
}
.cel-150{
    min-width: 150px;
}

/*  Formularios  */
.errorlist {
    color: red;
    font-size: 13px;
    list-style-type: none;
}

.hr-movil{
    display: none
}
.btn-movil{
    margin-right: 10px;
}

.espaciado, .menu-top {
    margin-top: 100px;
}  

.img-fluid{
    border-radius: 30px;
}
p,
.texto-enriquesido > p, ul, ol {
    font-size: 20px !important;
}
.texto-enriquesido > h2,  
.texto-enriquesido > h3,
.texto-enriquesido > h4 {
    padding-bottom: 20px !important;
}
.texto-enriquesido > ul > li > p,
.texto-enriquesido > ol > li > p{
    padding-bottom: 0px !important;
}
iframe {
    border-radius: 10px;
}
.seccion-detail {
    height: 96vh;
    overflow: hidden;
}
.scroll-body {
    height: calc(100vh - 136px);
    overflow-y: auto;
    padding-left: 10px;
}
.scroll-detail {
    height: calc(100vh - 105px);
    overflow-y: auto;
    padding-right: 10px;
}
/* ===== Scroll global para TODO el sitio ===== */

/* Grosor del scroll */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
}

/* Fondo del track */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

/* Barra */
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #00b5ff;
    border-radius: 10px;
    border: 1px solid #ffffff33;
}
/* Hover */
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #00b5ff;
}

/* Quitar flechas */
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
    display: none;
}

/* Firefox */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #00b5ff rgba(255,255,255,0.1);
}
.progress {
    height: 6px !important; /* delgadita */
    background-color: #e6e6e6 !important; /* gris suave */
    border-radius: 50px;
}

.progress-bar {
    background-color: #00b5ff !important; /* azul Droxbit */
    border-radius: 50px;
}
.text-lesson{
    background: #00b5ff;
    border-radius: 10px;
    padding: 0px 10px;

}
.web{
    display: none !important;
}    
/* Responsive  Movile */
@media (max-width: 768px) {
    .d-flex-movil {
        display: inline !important;
    }
    .menu-img-logo{
        width: 80px;
    }
    .texto-enriquesido > figure {
        height: auto !important;
        width: 100% !important;
    }
    .texto-enriquesido > p ul ol,
    p, ul, ol{
        font-size: 18px;
    }
    .crazy-header-inner {
        gap: 12px;
    }    
    .crazy-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .hr-movil{
        display: block
    }
    .menu-top {
        margin-top: 90px;
    }      
    .espaciado {
        margin-top: 20px;
    }   
    header {        
        padding: 10px !important;
        
    }
    nav.header-nav {  
        width: 100%;
        padding: 5px 10px;
        background: rgba(10, 10, 25, 0.65);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .web{
        display: block !important;
    }    
    .movil{
        display: none !important;
    }
    .img-profile{
        width: 200px;
        height: 200px;
    }
    .container {
        padding-left: 0px;
        padding-right: 0px;
    }
    .offcanvas-backdrop {
        left: -11px !important;
        top: -11px !important;
    }
    .btn-movil{
        width: 100%;
        margin-top: 10px;
    }
    .text-center-movil {
        text-align: start !important;
    }
    .px-4-editable{
        padding-right: 11px !important;
        padding-left: 11px !important;
    }
    .pb-4-movil{
        padding-bottom: 1.5rem;
    }
    .mb-4-movil{
        margin-bottom: 40px;
    }
    .mx-5-movil{
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    .scroll-detail {
        height: calc(100vh - 411px);
        overflow-y: auto;
    }   

    nav .menu-navegacion{
        width: auto !important;
    }
    nav .menu-navegacion .navbar-collapse {
        position: absolute;
        top: 50px !important;
        background: #2f2f2f !important;
        width: 100% !important;
        border-radius: 10px !important;
        min-width: 200px !important;
        z-index: 9999;
    }
    /* Ocultar cuando está cerrado */
    nav .menu-navegacion .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
}

/* Tablet (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {        
    nav .menu-navegacion .navbar-collapse {
        position: absolute;
        top: 50px !important;
        background: #2f2f2f !important;
        width: 100% !important;
        border-radius: 10px !important;
        min-width: 200px !important;
        z-index: 9999;
    }
    /* Ocultar cuando está cerrado */
    nav .menu-navegacion .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
}   