/* Ocultar contenido mientras carga */
body.loading {
    overflow: hidden;
}

    body.loading > *:not(#page-loader, #medalsAlert) {
        visibility: hidden;
    }


#page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

    #page-loader.hidden {
        opacity: 0;
        pointer-events: none;
    }


#medalsAlert {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

    #medalsAlert.hidden {
        opacity: 0;
        pointer-events: none;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #C90000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ************************ */

 .table-custom thead {
      background-color: #C90000;
      color: white;
    }
    .table-custom tbody tr:nth-child(odd) {
      background-color: #f8f9fa;
    }
    .table-custom tbody tr:nth-child(even) {
      background-color: #f3e9d7;
    }
    .medal-icon {
      font-size: 14px;
    }

/**************************************/

.text-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.5;
    max-height: 4.5em;
}

/* Temario lateral - ajustar altura al contenedor del video/pdf */
.topic-layout {
    position: relative;
    padding-left: 2rem;
    padding-right: 2rem;
}
.topic-layout > .col-md-3,
.topic-layout > .col-md-4:last-child {
    position: absolute;   
    top: 0;
    right: 2rem;
    bottom: 0;
    width: 30%;
    /* display: flex; */
    flex-direction: column;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-left: 1rem;
}

.verification-info {
    overflow: hidden;
    text-overflow: ellipsis;
}