﻿/* Custom page CSS
        -------------------------------------------------- */
/* Not required for template or sticky footer method. */

main > .container {
    padding: 60px 15px 0;
}

.footer {
    background-color: #f5f5f5;
}

    .footer > .container {
        padding-right: 15px;
        padding-left: 15px;
    }

code {
    font-size: 80%;
}

.form-check {
    width: 20px !important;
    height: 20px !important;
}

.downdiploma {
    display: inline-block;
    padding: 4px 8px;
    background-color: #0e0e0e;
    color: #ffe52e;
    text-decoration: none;
    border-radius: 8px;
    position: fixed; 
    top: 7px;
    left: 10px;
    font-size: 14px;
}

.cerrar-div {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.cerrar_boton {
    all: unset;
    position: fixed;
    top: 5px;
    right: 10px;
    font-size: 26px;
    z-index: 9999;
}

.cerrar-div.cerrado {
    opacity: 0;
    pointer-events: none;
}

.floating-div {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Color de fondo semitransparente */
    z-index: 9999; /* Asegura que el div flotante esté por encima de otros elementos */
    overflow-y: hidden;
    overflow-x: hidden;
}

#diploma_container{
     width: 99%;
     align-items: center;
     justify-content: center;
     height: 100%;
     margin:auto;
     background-color: white; 
     color: rebeccapurple;
     border-radius: 15px;
     display:flex
}


@media only screen and (min-width: 200px) {

    .swal2-popup {
        width: 99% !important;
    }
}

@media only screen and (min-width: 300px) {

    .swal2-popup {
        width: 99% !important;
    }
}

@media only screen and (min-width: 600px) {
    .swal2-popup {
        width: 99% !important;
    }

    .buttons_containers {
        grid-template-columns: repeat(2,1fr) !important;
    }
}

@media only screen and (max-width: 899px) {
    /*#main_nav {
        display: none
    }*/

    /*#main_nav_separation {
        display: none
    }*/

    #alumno_informacion {
        margin: auto !important;
    }

    #sections_container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        /*align-items: center;*/
        justify-content: space-evenly;
        margin-bottom: 2rem;
    }

    .button_section {
        width: 100%;
    }

    .buttons_containers {
        /*flex-wrap: wrap;*/
    }

    #qr_button {
        display: block;
        visibility: visible
    }

    #btn-alumnos-act {
        width: 100%;
        cursor: pointer;
    }
}


@media only screen and (min-width: 900px) {
    #main_nav {
        display: block
    }

    #main_nav_separation {
        display: block
    }

    #alumno_informacion {
        margin: 0 !important;
    }

    #sections_container {
        display: flex;
        /*flex-direction: row-reverse;*/
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-evenly;
    }

    /*.button_section {
        width: 24%;
    }*/

    .buttons_containers {
        flex-wrap: nowrap
    }

    #qr_button {
        display: none;
        visibility: hidden
    }

    /*#btn-alumnos-act {
        width: 24% !important;
    }*/
}


@keyframes moving_texture {
    0% {
        object-position: 23px -490px;
    }


    100% {
        object-position: 23px 50px;
    }
}



@media only screen and (min-width: 1400px) {

    .swal2-popup {
        width: 30% !important;
    }
}


* {
    transition: 300ms;
}

#btn-alumnos-act {
    all: unset;
    border: 5px solid #c3c3c3;
    background-color: white;
    border-radius: 8px;
    animation-name: example;
    animation-duration: 1s;
    animation-iteration-count: 3;
}

@keyframes example {
    0% {
        transform: scale(1.0) rotate(0deg);
    }

    25% {
        transform: scale(0.8) rotate(5deg);
    }

    50% {
        transform: scale(1.2) rotate(-5deg);
    }

    100% {
        transform: scale(1.0) rotate(0deg);
    }
}

@keyframes label_color {
    0% {
        color: white;
    }

    25% {
        color: yellow;
    }

    50% {
        color: white;
    }

    100% {
        color: yellow;
    }
}

.beta-sticker {
    position: absolute;
    top: 0;
    border-bottom-right-radius: 33px;
    left: 0px;
    width: 70px;
    background: lightblue;
    text-align: left;
    color: white;
    font-weight: bold;
    animation-name: label_color;
    animation-duration: 0.2s;
    animation-iteration-count: 10;
}

.sticker {
    position: absolute;
    top: 10%;
    left: 35%;
    font-weight: 900;
    color: cornflowerblue;
}

html, body {
    height: 100%
}

.star_cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 17%;
    height: 30%;
    position: relative;
}


/*.star_img {*/
    /*filter: invert(90%) sepia(48%) saturate(5591%) hue-rotate(322deg) brightness(108%) contrast(114%);*/
    /*width: 100%;
    height: 100%;
    background-size: contain !important;
    background: no-repeat;
    background-position: center;
    background-image: url(/img/star.svg);
    opacity: 1;
    position: absolute;
}

.star_img_fill {
    filter: invert(90%) sepia(48%) saturate(5591%) hue-rotate(322deg) brightness(108%) contrast(114%);
    width: 100%;
    height: 100%;
    background-size: contain !important;
    background: no-repeat;
    background-position: center;
    background-image: url("/img/star-fill.svg");
    opacity: 0;
    position: absolute;
}

@keyframes jump {
    0% {
        transform: translate3d(0,0,0) scale3d(1,1,1);
    }

    40% {
        transform: translate3d(0,-30%,0) scale3d(.7,1.5,1);
    }

    100% {
        transform: translate3d(0,0,0) scale3d(1.5,.7,1);
    }
}

@keyframes fill_progress {
    0% {
        width: 0%;
        opacity: 0;
    }

    50% {
        width: 0%;
        opacity: 0;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

.charging {
    animation-name: fill_progress;
    animation-duration: 3s;
}



.star_cont:active {
    transform-origin: 50% 50%;
    animation: jump .1s linear alternate;
}*/

.star_label {
    width: max(80%,100px);
    background-color: #001f5b;
    padding: 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.teacher_img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
    -webkit-box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
    -moz-box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
    border-radius: 15px;
}

.click_section {
    width: 80%;
    margin-left: 10%;
    display: flex;
    gap: 5%;
    justify-content: start;
    align-items: center;
}

.teacher_cont {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: stretch;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }

    .teacher_img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        object-position: center;
        box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
        -webkit-box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
        -moz-box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }

    .teacher_img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        object-position: center;
        box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
        -webkit-box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
        -moz-box-shadow: 7px 8px 11px -1px rgba(0,0,0,0.8);
        border-radius: 15px;
    }
}

.menu {
    padding: 0px !important;
    cursor: pointer;
    min-height: 10px;
}

.input-text {
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 4px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/* HIDE RADIO */
[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

    /* IMAGE STYLES */
    [type=radio] + img {
        cursor: pointer;
    }

    /* CHECKED STYLES */
    [type=radio]:checked + img {
        outline: 2px solid #f00;
    }

.principal_buttons {
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative
}

#horario_semanal {
    /*border: thin solid lightgrey;*/
    margin-bottom: 12px;
    /*display: flex;*/
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr) );
    /*background-color: white;*/
    border-radius: 10px;
    justify-content: space-evenly;
    /*flex-wrap: wrap;*/
    gap: 10px;
}

.info_button {
    width: 42px;
    font-size: 24px;
    color: #fff;
    position: absolute;
    right: 4px;
    z-index: 999;
}

#horario_semanal section {
    /*border: thin solid lightgrey;*/
    background-color: white;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    /*font-family: 'Century Gothic';*/
    flex: 1 0 33%;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

@media only screen and (min-width: 600px) {
    #horario_semanal section {
        flex: 1 0 15.5%;
    }
}

#horario_semanal section header {
    height: 30px;
    background-color: #4895EF;
    text-align: center;
    color: white;
    font-weight: bold;
    display: flex;
    gap: 7%;
    align-items: center;
    justify-content: center;
}

#horario_semanal section main {
    background-color: white;
    text-align: center;
    height: auto;
    font-size: 22px;
    font-weight: 900;
}

    #horario_semanal section main i {
        position: absolute;
        right: 45%;
        font-size: 29px;
    }

#horario_semanal section footer {
    background-color: white;
    text-align: center;
    font-size: 12px;
}

#progreso_container {
    max-width: 700px;
    margin: auto;
    /*height: 19px;*/
    margin-bottom: 30px;
    border-radius: 55px;
    /*background-color: white;
    border: 2px solid #919191;*/
}

.membresia-progreso-bar {
    border: 2px solid #919191;
    height: 29px;
}

#progreso_max {
    height: 25px;
    width: 0%;
}

#progreso_nivel_max {
    height: 25px;
    width: 0%;
}

#progreso {
    height: 25px;
    background-color: #5DD39E;
    border-radius: 55px;
}

#progreso_nivel {
    height: 25px;
    /*                background-color: #7bff7b;*/
    border-radius: 55px;
}

#progreso_label {
    line-height: 14px;
    font-weight: 700;
    font-size: clamp(8px,12px,16px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
    position: absolute;
    height: 15px;
    gap: 5px;
}

.progreso_label_nivel {
    height: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.progreso_label_nivel__item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #D9D9D9;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .progreso_label_nivel__item.activo--cursando {
        background-color: #7AE582;
        color: #FFF;
    }
    .progreso_label_nivel__item.activo--completado {
        background-color: #5DD39E;
        color: #FFF;
    }


h5 {
    margin: auto;
    text-align: center;
    margin-bottom: 8px;
    margin-top: 4px;
}

#alumno_informacion {
    padding: 5px;
    border-radius: 0px 0px 113px 111px;
    -webkit-border-radius: 0px 0px 20px 20px;
    -moz-border-radius: 0px 0px 20px 20px;
    background: white;
    max-width: 300px;
    margin: auto;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px !important;
}

.alumno_name {
    width: 82%;
    font-size: 12px;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    padding-left: 7px;
    padding-right: 7px;
}

.alumno_data {
    padding: 2px;
    align-items: center;
    overflow: hidden;
    font-size: 10px;
    overflow: hidden;
    font-weight: 400;
    border: thin solid lightgrey;
    width: 33.333333%;
    text-align: center;
    margin-top: 15px;
    height: 35px;
    -moz-border-radius: 0px 0px 20px 20px;
    display: flex;
    justify-content: center;
}

.alumno-menu {
    position: absolute;
    top: 0;
    width: 200px;
    height: auto;
    padding: 1rem;
    background-color: #FFF;
}

.horario_resumen {
    width: 100%;
    max-width: 390px;
    padding: 4px;
    margin-bottom: 10px;
}
.horario_resumen__content {
    display: flex;
    flex-direction: column;
    align-items: start;
    color:#6C757D;
}

.horario_resumen__content div {
    width:100%;
    display: flex;
    justify-content:space-between;
    align-items:center;
}
    .horario_resumen td {
        border: thin solid lightgray;
        background-color: white;
        text-align: center;
        font-family: 'Century Gothic';
    }


.contenedor_perfil {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    margin: auto;
    height: 65px;
}

/*=========================== BOTONES ===================================*/

.main-button-blue {
    background-color: #4361EE;
    color: #FFF;
}

.main-button-session {
    background-color: #5DD39E;
    color: #FFF;
}

.main-button-revisar {
    display: none;
    border-radius: 5px;
    background-color: #d32727;
    width: 30px;
    height: 30px;
    color: white;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .main-button-revisar i {
        transform: rotate(-180deg);
    }
/*=========================== BOTONES ===================================*/
/*=========================== MENU MÓVIL ===================================*/
header {
    position: relative;
}

.main-nav {
    background-color: #FFF;
}

.nav-item {
    padding: 0 !important;
}

.main-nav-content {
    max-width: 1200px;
    padding: .3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.main-nav .main-nav__link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

    .main-nav .main-nav__link svg {
        width: 24px;
        height: 24px;
    }

    .main-nav .main-nav__link:hover {
        color: #4361EE;
    }

.main-nav .main-profile img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.main-nav .main-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
}

.main-nav .main-profile__nombre {
    font-weight: 600;
}

.main-nav .main-profile__centro,
.main-nav .main-profile__nivel {
    color: #6C757D;
}

.main-nav .main-menu {
    display: flex;
    align-items: center;
}

    .main-nav .main-menu .nav-item {
        padding: 1rem;
    }

    .main-nav .main-menu ul {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 5px;
        border-radius: 5px;
        background-color: #4361EE;
    }


.membresias-dias {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #6C757D;
    font-size: 40px;
}

.membresia-informacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 2rem;
}

.membresia-progreso {
    position: relative;
    background: conic-gradient(#5DD39E 3.6deg, #ededed 0deg);
}

    .membresia-progreso span {
        position: relative;
    }

    .membresia-progreso::before {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background-color: #FFF;
    }

.membresias-dias-descripcion {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
}

    .membresias-dias-descripcion span {
        font-size: 15px;
        font-weight: 500;
        color: #6C757D;
    }

.principal-card {
    background: #FFF;
    border-radius: 5px;
    padding: 1rem;
}

.buttons_containers {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {

    .horario_resumen {
        margin: auto;
        margin-bottom:2rem;
    }

    .membresias-dias {
        width: 80px;
        height: 80px;
    }

        .membresias-dias::before {
            width: 60px;
            height: 60px;
        }


    

    .main-button-revisar {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav .main-menu {
        display: none;
    }

    .main-nav .main-menu ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 3rem;
    }

    .main-nav .main-nav-form {
        display: flex;
        flex-direction: column;
    }

    .main-nav .main-menu.active {
        display: block;
        position: fixed;
        top: 4rem;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: #FFF;
        padding: 2rem;
    }
}
