img{
    object-fit: cover;
}

img, iframe{
    max-width: 100%;
}

.btn {
    font-size: 1em;
}

.form-control {
    width: 100% !important;
}

table{
    border: 1px solid #bbb;
    width: 100%;
}

table tr{
    border-bottom: 1px solid #bbb;
}

table td{
    border: none;
}

.list-group-item-action:focus,
.list-group-item-action:hover {
    background-color: var(--primary);
    color: #fff;
}

header section{
    display: flex;
    align-items: center;
}

header h1 {
    margin: 10px;
}

header h1 img {
    height: 70px;
}

header h2.title {
    margin-left: auto;
    text-align: right;
}

header .dropdown {
    margin-left: auto;
    text-align: right;
}

header .dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

header h2.title a {
    font-size: 1rem;
    display: block;
}

.form-signin {
    width: 100%;
    max-width: 420px;
    padding: 15px;
    margin: auto;
}

.form-label-group {
    position: relative;
    margin-bottom: 1rem;
}

.thumb {
    width: 3em;
    height: 3em;
    object-fit: cover;
    border: 1px solid #fff;
}

#training {
    display: flex;
    flex-wrap: wrap;
    padding: 0 2em;
}

#training aside {
    border-right: 1px solid #eee;
    width: 30%;
    padding: 0 2em 0 0;
}

#training aside h5 {
    font-weight: 900;
    font-size: 1em;
}

#training aside .progress_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1em 0 0;
}

#training aside .progress_title h6 {
    font-size: 0.7em;
    font-weight: 700;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

#training aside .progress_title i {
    font-size: 1.5em;
    color: #ccc;
}

#training aside .progress {
    height: 4px;
    position: relative;
}

#training aside .break {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #fff;
}

#training #content {
    padding: 0 0 0 2em;
    width: 70%;
}

#content strong{
    color: inherit;
}

#content article{
    margin-bottom: 2em;
}

#content article a{
    display: initial;
}

#content article h4{
    background-color: var(--primary);
    color: #fff;
    font-size: 1em;
    margin: 2em 0 1em;
    padding: 0.5em;
}

#content article h5{
    font-family: "AvantGarde Bold";
    font-size: 1em;
    text-transform: initial;
    opacity: 1;
    margin: 2em 0 1em;
    display: flex;
}

#content article ol, #content article ul{
    margin: 1.2em;
}

#content article li{
    padding: 0 0 1em 1em;
    list-style: initial;
}

#content article ul li{
    list-style: decimal;
}

#content article img{
    border: 1px solid var(--primary);
    border-radius: 5px;
    width: 100%;
}

#content .card-header{
    background-color: var(--primary);
    color: #fff;
}

#content .card-header h5{
    margin: 0;
}

.breadcrumb {
    padding: 0;
    background: none;
    margin-bottom: 2em;
}

#training .exam.loading button{
    background: transparent url(/assets/img/loading2.gif) center/cover no-repeat;
    text-indent: -9999px;
    border: none;
    box-shadow: none;
}

#training .exam:has(label){
    background: #E9ECEF;
    padding: 2em;
}

#training .exam h4 {
    margin-bottom: 2em;
}

#training .badge{
    font-size: 0.9em;
}

#training .puntuacion{
    margin: 2em 0 1em;
}

#training .puntuacion ul{
    position: relative;
    display: flex;
    height: 4em;
    margin: 0.5em 0;
}

#training .puntuacion li{
    background-color: #A7ADAB;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8em;
    padding: 0;
    position: absolute;
    top: 0;
}

#training .pobre{background-color: #DED7C5 !important}
#training .mediocre{background-color: #C8B99D !important}
#training .bueno{background-color: #B8AA8C !important}
#training .genial{background-color: #A99B78 !important}
#training .sobresaliente{background-color: #9D8B5A !important}

.stepper {
    margin: 2em 0;
}

.step {
    position: relative;
    min-height: 1em;
    color: #585858;
    margin-bottom: 1.5em;
    display: block;
}

.step>div:first-child {
    position: static;
    height: 0;
}

.step>div:not(:first-child) {
    margin-left: 1.5em;
    padding-left: 1em;
}

.step.step-active,
.step:hover {
    color: var(--primary);
    text-decoration: none;
}

.step.step-active .circle {
    background-color: var(--primary);
}

.step.step-active:after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.circle {
    background: gray;
    position: relative;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    border-radius: 100%;
    color: #fff;
    text-align: center;
    box-shadow: 0 0 0 3px #fff;
}

.circle:after {
    content: ' ';
    position: absolute;
    display: block;
    top: 1px;
    right: 50%;
    bottom: 1px;
    left: 50%;
    height: 100%;
    width: 1px;
    transform: scale(1, 2);
    transform-origin: 50% -100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.stepper li:last-child .circle:after {
    display: none
}

.title {
    line-height: 1.5em;
    font-weight: bold;
}

.caption {
    font-size: 0.8em;
}

.nav{
    display: flex;
    flex-wrap: wrap;
    gap: 2em
}

.nav-item{
    padding: 0 !important;
    list-style: none !important;
}

.nav-link {
    margin: 0 !important;
    cursor: pointer;
    color: #585858;
    padding: 0.5em 0;
    border-bottom: 2px solid transparent;
}

.nav-link.active, .nav .show>.nav-link {
    color: var(--primary);
    border-color: currentcolor;
}

.accordion-item{
    background: #f1f1f1;
    margin:1em 0;
    padding: 1em;
    border-radius: 5px;
    color: #000;
    transition: 0.3s ease all;
}

.accordion-item:has(.accordion-collapse.show){
    background-color: #DED7C5;
}

.accordion-item h5{
    margin: 0 !important
}

.accordion-collapse{
    margin-top: 1em;
}

.accordion-button{
    cursor: pointer;
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    display: inline-block;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform .2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

#avatar img{
    width: 12em;
    height: 12em;
    border-radius: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    padding: 1em;
    cursor: pointer;
}

#avatar input{
    opacity: 0;
}

.export-hidden{
    position: absolute;
    left: -9999px;
    top: -9999px;
}

#diploma{
    background: #000 url(../img/bg-diploma.png) center/cover no-repeat;
    width: 297mm;
    height: 210mm;
    position: relative;
    color: #fff;
}

#diploma .text{
    position: absolute;
    top: 30%;
    width: 100%;
    font-size: 25px;
    text-align: center;
}

#diploma .text h3{
    font-size: 2em;
    color: #7F5A0E;
    text-transform: uppercase;
    font-family: "AvantGarde Bold";
}

#placa{
    background: #000 url(../img/bg-placa.png) center/cover no-repeat;
    width: 1080px;
    height: 1350px;
    position: relative;
}

#placa .imagen{
    background: transparent center/cover no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80%;
    aspect-ratio: 1;
    border-radius: 100%;
    border: none;
}

#placa .text{
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    width: 100%;
    font-size: 40px;
    text-align: right;
    text-transform: uppercase;
}

#placa .text h2{
    font-family: "AvantGarde Bold";
    font-size: 1em;
    color: #fff;
}

#placa .text h3{
    font-size: 1em;
    color: #fff;
}

@media (max-width:991px){
    #training aside{
        margin: 2em 0 0;
    }

    #training .puntuacion li{
        text-indent: 9999px;
    }

    .step.step-active::after{
        display: none;
    }
}