
/*Bootstrap añadidos responsives*/
@media (min-width: 768px) {
    .w-md-100 {
        width: 100%;
    }

    .w-md-75 {
        width: 75%;
    }

    .w-md-50 {
        width: 50%;
    }

    .w-md-25 {
        width: 25%;
    }
}

@media (min-width: 992px) {
    .w-xl-100 {
        width: 100%;
    }

    .w-lg-75 {
        width: 75%;
    }

    .w-lg-50 {
        width: 50%;
    }

    .w-lg-25 {
        width: 25%;
    }
}

@media (min-width: 1200px) {
    .w-xl-100 {
        width: 100%;
    }

    .w-xl-75 {
        width: 75%;
    }

    .w-xl-50 {
        width: 50%;
    }

    .w-xl-25 {
        width: 25%;
    }
}




/*Resets*/

.a-reset {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}


.btn-reset {
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    padding: 0;
    cursor: pointer;
    outline: inherit;
}


/***********ESPECIALES***********/

/*Sweet Alert*/
.swal-footer {
    display: flex;
    justify-content: space-around;
}




/***********ANIMACIONES***********/

/*Buttons*/
.btn {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .btn:hover,
    .btn:focus {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        outline: none;
    }

    .btn:active {
        transform: scale(0.95);
    }

/*Reset*/
.btn-reset-animacion {
    cursor: default;
    transition: none;
    transform: none;
    box-shadow: none;
    outline: none;
}

    .btn-reset-animacion:hover,
    .btn-reset-animacion:focus,
    .btn-reset-animacion:active {
        transform: none;
        box-shadow: none;
    }



/*Table*/
.table-hover td {
    transition: border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.table-hover tr:hover td {
    border-bottom: 2px solid var(--bs-primary);
}

table.text-center td {
    vertical-align: middle;
}


/*Toasts*/
@keyframes spinFadeIn {
    0% {
        opacity: 0;
        transform: rotateY(90deg) scale(1);
    }

    60% {
        opacity: 1;
        transform: rotateY(0) scale(1);
    }

    70% {
        transform: rotateY(0) scale(1.01);
    }

    75% {
        transform: rotateY(0) scale(0.995);
    }

    80% {
        transform: rotateY(0) scale(1.01);
    }

    85% {
        transform: rotateY(0) scale(0.995);
    }

    90% {
        transform: rotateY(0) scale(1.01);
    }

    95% {
        transform: rotateY(0) scale(0.995);
    }

    100% {
        transform: rotateY(0) scale(1);
    }
}

.toast-custom {
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform-origin: right center;
    animation: spinFadeIn 1.2s forwards;
}

    .toast-custom .toast-body {
        padding: 10px 20px;
    }




/***********UTILIDADES***********/

/*Loader*/
#loader {
    position: absolute;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-content: center;
    color: var(--bs-primary);
    background-color: rgba(0, 0, 0, 0.5);
}

    #loader > div {
        width: 5rem;
        height: 5rem;
    }





/***********VALIDACIONES FIELDS***********/

/*Input a rojo*/
.input-invalid {
    border-color: #ff7070 !important;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25) !important;
    transition: all 0.3s ease-in-out !important;
}

    .input-invalid:hover {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    }

div.validation-summary-errors {
    margin-bottom: 3%;
}

    div.validation-summary-errors ul {
        list-style-type: none;
        padding-left: 0;
        margin-bottom: 0;
    }

.has-error {
    border-color: #dc3545 !important;
    outline: 0;
    box-shadow: 0 0 0 0.05rem rgba(255, 180, 180, 0.5) !important;
    transition: all 0.3s ease-in-out !important;
}

    .has-error:hover {
        box-shadow: 0 0 6px rgba(255, 150, 150, 0.5);
    }


/*Asterisco en label*/
.required-field::after {
    content: '\F151';
    font-family: bootstrap-icons;
    font-size: .7rem;
    margin: .3rem;
    vertical-align: text-top;
    color: var(--bs-azul-banner);
}

/*Animacion Inputs*/
.input-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

    .input-custom:hover,
    .input-custom:focus {
        transform: scale(1.02) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
        outline: none !important;
    }



/*Alerta Customizada*/
.alert-custom {
    border: 2px solid #f8d7da;
    background-color: #f8d7da30;
    color: #842029;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alert-success-custom {
    border: 2px solid #009fdf;
    background-color: #ebf2f7;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alert-login-custom {
    background-color: transparent; /* Elimina el color de fondo */
    border: none; /* Elimina el borde */
    color: #df5083; /* Cambia el color del texto a amarillo */
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
}


html[data-bs-theme="dark"] .alert-custom {
    border: 2px solid #7a0000;
    background-color: #450000;
    color: #f1f1f1;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

/*Badge Customizado*/
.badge-custom {
    display: inline-block;
    background-color: #f8d7da;
    color: #842029;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-left: 5px;
    vertical-align: middle;
}




/***********VISTAS***********/

/*Layout*/
/*aside*/
/*.icon-aside-box {
    border: 1.5px solid var(--bs-primary);
    margin: 15px;
    border-radius: 0.5rem;
}*/

.icon-aside-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0; /* Margen inicial grande */
}
.icon-img, .profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

    .icon-aside-container:hover {
        opacity: 1; /* Opacidad completa durante el hover */
    }


.no-opacity {
    opacity: 100% !important;
}

.icon-aside-box {
    cursor: pointer;
    border: 1.5px solid var(--bs-primary);
    border-radius: 0.5rem;
    /*transition: transform 1s ease-in-out;*/
}

    .icon-aside-box .icon-img {
        transition: transform 1s ease-in-out;
    }

    .icon-aside-box:hover .icon-img {
        transform: scale(1.2);
    }

.aside-width {
    width: 100px;
}

@media (max-height: 900px) {
/*    .icon-aside-container {
        margin: 15px 0;
    }*/

    .icon-img {
        width: 35px;
        height: 35px;
    }
    .profile-image {
        margin-top: 100px;
    }
    .clock {
        font-size: 0.9rem; /* Reducir ligeramente el tamaño del texto */
    }
}

/* Para pantallas más pequeñas */
@media (max-height: 768px) {
    .icon-aside-container {
        margin: 10px 0;
    }

    .icon-img {
        width: 30px;
        height: 30px;
    }
    .profile-image {
        margin-top: 70px;
    }
    .clock {
        font-size: 0.8rem; /* Texto más pequeño para pantallas pequeñas */
    }
}

/* Para pantallas pequeñas (portátiles más pequeños o tablets) */
@media (max-height: 600px) {
    .icon-aside-container {
        margin: 5px 0;
    }

    .icon-img {
        width: 25px;
        height: 25px;
    }
    .profile-image {
        margin-top: 50px;
    }

    .clock {
        font-size: 0.7rem; /* Aún más pequeño para pantallas más pequeñas */
    }
}

/* Para pantallas muy pequeñas (móviles) */
@media (max-height: 500px) {
    .icon-aside-container {
        margin: 3px 0; 
    }

    .icon-img {
        width: 20px;
        height: 20px;
    }
    .profile-image {
        margin-top: 10px;
    }

    .clock {
        font-size: 0.6rem; /* Texto mínimo para pantallas muy pequeñas */
    }
}
/*Media Querys para el tamaño iconos*/
@media (max-height: 765px) {
    .aside-width {
        width: 85px;
    }
}

@media (max-height: 620px) {
    .aside-width {
        width: 75px;
    }
}

@media (max-height: 538px) {
    .aside-width {
        width: 70px;
    }
}

@media (max-height: 500px) {
    .aside-width {
        width: 60px;
    }
}

.icon-text {
    display: block;
    position: absolute;
    left: 100%;
    white-space: nowrap;
    margin-left: 15px;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.48s ease-out, opacity 0.3s ease-out;
    background-color: var(--bs-fondo-morado);
    /*border: 1px solid var(--bs-primary);*/
    /*box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);*/
    padding: 5px;
    border-radius: 5px;
}

.icon-aside-container:hover .icon-text {
    transform: translateX(0%);
    opacity: 1;
}

.icon-aside-container:hover .icon-text {
    display: inline;
}



/*Login*/
.bg-image-login {
    background-image: url('/img/fondos/LOGIN.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-card {
    margin: 3vh;
    max-width: 100%;
}

    .login-card .form-group {
        margin-bottom: 1rem; /* Margen debajo de cada grupo de formulario */
    }

    .login-card .btn-block {
        width: 50%; /* Ancho del botón */
        margin: 0 auto; /* Centrado del botón */
        display: block; /* Hace que el botón sea un bloque para permitir el centrado automático */
    }



/*Home*/

/*Colores Tarjetas*/
.rosa {
    background-color: #F5D2DD;
}

.verde {
    background-color: #c7fceb;
}

.verde-oliva {
    background-color: #f0f6e2;
}

.morado {
    background-color: #E3CFE3;
}

.morado-claro {
    background-color: #E9EDF7;
}

.amarillo {
    background-color: #f6da74;
}

.naranja {
    background-color: #FEEED7;
}

.azul {
    background-color: #C1E6F4;
}

.tarjeta-contador {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    /*height: 80px;
    color: white;
    position: relative;*/
    min-height: 130px;
    font-weight: bold;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* Sombra hacia abajo y la derecha */
    border-radius: 0.5rem; /* Añade bordes redondeados si deseas */
    transition: transform 1s; /* Añade una transición suave en todos los cambios */
}

    .tarjeta-contador:hover {
        transform: scale(1.05);
    }

.texto-contador {
    /*font-size: 1rem;
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;*/
}

.linea-separadora {
    width: 2px;
    height: 80%;
    background-color: white;
    opacity: 0.5;
}

.auto-width-input {
    width: auto;
    min-width: 50px;
    max-width: 500px;
    padding: .375rem .75rem;
    box-sizing: content-box;
}

.numero-contador {
    font-size: 3em;
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    color: rgba(0, 0, 0, 0.7); /* Color oscuro para el número */
}

.tarjeta-contador > div {
    flex: 1;
    min-width: 0;
}

    .tarjeta-contador > div:nth-child(1) {
        flex-basis: max-content;
    }

.linea-separadora-n {
    width: 2px;
    height: 2.5rem;
    background-color: white;
    opacity: 0.5;
}

/*APRENDICES*/

/*Documentacion*/

/*Imagen Carpeta*/
.imagen-fija {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

a.imagen-link {
    text-decoration: none;
    color: black;
}

    a.imagen-link:hover,
    a.imagen-link:focus,
    a.imagen-link:active {
        text-decoration: none;
        color: black;
    }



/*Estilos Tablas Muestra datos*/
.compensada {
    color: green;
    font-weight: bold;
}

.no-compensada {
    color: red;
    font-weight: bold;
}

.justificada, .no-justificada {
    display: inline-block;
    height: 10px; /* Tamaño del círculo */
    width: 10px; /* Tamaño del círculo */
    border-radius: 50%; /* Hace el círculo redondo */
    margin-right: 5px; /* Espacio entre el círculo y el texto */
}

.justificada {
    background-color: green; /* Color del círculo para Justificada */
}

.no-justificada {
    background-color: red; /* Color del círculo para No Justificada */
}



/*Estilos SELECT 2*/
/*.select2-results__option--highlighted {
    background-color: #3498db;*/ /* Color de fondo */
/*color: white;*/ /* Color de texto */
/*}*/
/*.select2-selection__choice {
    background-color: #3498db !important;*/ /* Nuevo color de fondo */
/*color: white !important;*/ /* Nuevo color de texto */
/*}*/
/*  */

/*Seleccionado del Dropdown*/
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background-color: dimgray !important;
    color: #ffffff !important;
}


.foto-contenedor {
    width: 60%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border: 5px solid var(--bs-secondary);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 20px;
    margin: auto;
    background-color: var(--bs-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}


.img-cover {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra bien el área */
    border-radius: 15px; /* Bordes redondeados para la imagen, ligeramente menos que el contenedor */
}

/* ESTILOS DEL ICONO DE USUARIO IZQUIERDA Y RELOJ ABAJO*/
/* Estilo del perfil del usuario */
.profile-container .profile-image {
    width: 40px;
    height: auto;
    margin-top: 150px; 
    border-radius: 50%;
    object-fit: cover; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px darkblue outset; 
}

.clock {
    font-size: 1rem;
    text-align: center;
    color: darkblue;
/*    margin-top: 20px;
*/    margin-bottom: 10px;
    position: relative;
}
/* Pantallas medianas */
@media (max-width: 992px) {
    .icon-aside-container {
        margin: 15px 0; /* Reducir margen en pantallas medianas */
    }

    .profile-container .profile-image {
        width: 35px;
        height: auto;
    }

    .clock {
        font-size: 0.9rem; /* Tamaño del reloj más pequeño */
    }
}

/* Pantallas pequeñas */
@media (max-width: 768px) {
    .icon-aside-container {
        margin: 10px 0; /* Reducir más el margen para pantallas pequeñas */
    }

    .profile-container .profile-image {
        width: 30px;
        height: auto;
    }

    .clock {
        font-size: 0.8rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 576px) {
    .icon-aside-container {
        margin: 5px 0; /* Mínimo margen para pantallas muy pequeñas */
    }

    .profile-container .profile-image {
        width: 25px;
        height: auto;
    }

    .clock {
        font-size: 0.7rem; /* Reducir el tamaño del reloj */
    }
}