@font-face {
    font-family: "poppins";
    font-style: normal;
    font-display: block;
    src: url(/fuentes/Poppins-Regular.ttf); 
}

@font-face {
    font-family: "medieval";
    font-style: normal;
    font-display: block;
    src: url(/fuentes/medieval.ttf);
}

body {
    color: #5D5F63;
    background: #676767;
    font-family: 'poppins', sans-serif;
    padding: 0;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.sidebar {
    display: none;
    left: -1200px;
    flex-direction: column;
    width: 25%;
    max-height: 95%;
    box-sizing: content-box;
    background: #454545d1;
    position: fixed;
    top: 10px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    transition: left 1s ease-in-out;
    overflow: hidden;
    box-shadow: 4px 4px 20px #141313;
    border-radius: 20px;
}

.titulo_menu {

    color: #ffffff;
    font-family: 'medieval', serif;
    font-size: 50px;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #4f4f4f;
    font-weight: normal;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    flex: 1;
}

.titulo_menu img {
    width: 42px;
    height: auto;
    vertical-align: middle;
}

.titulo_menu span {
    margin: 0px 20px 0px 20px;
}

#leftside-navigation {
    /* Permite que el contenido ocupe el espacio disponible */
    overflow-y: hidden;
    /* Habilita el scroll solo para el contenido */
    border-radius: 20px;
    width: 100%;
    height: 0px;
    transition: height 2s ease-in-out;
    display: none;

}

.sidebar #leftside-navigation ul,
.sidebar #leftside-navigation ul ul,
.menu_contextual ul {
    margin: -2px 0 0;
    padding: 0;
}

.sidebar #leftside-navigation ul li,
.menu_contextual ul li {
    list-style-type: none;
    border-bottom: 1px solid rgb(145 144 144 / 56%);
    background: #0a1080;
    background: linear-gradient(90deg, rgba(10, 16, 128, 1) 0%, rgba(87, 87, 87, 1) 19%, rgba(112, 107, 107, 1) 57%, rgba(79, 79, 79, 1) 100%);

}

.sidebar #leftside-navigation ul li.active>a,
.menu_contextual ul li.active>a {
    color: #ffffff;
    background: linear-gradient(90deg, rgb(0, 0, 0) 0%, rgba(87, 87, 87, 1) 89%, rgba(79, 79, 79, 1) 100%);
}

.sidebar #leftside-navigation ul li a,
.menu_contextual ul li a {
    align-items: center;
    color: #d9e3ef;
    text-shadow: 2px 2px #000000;
    text-decoration: none;
    display: block;
    font-size: 20px;
    outline: 0;
    -webkit-transition: color 200ms ease-in;
    -moz-transition: color 200ms ease-in;
    -o-transition: color 200ms ease-in;
    -ms-transition: color 200ms ease-in;
    transition: color 200ms ease-in;
    transition: background-color 3s ease;
    position: relative;
    /* Necesario para posicionar el ícono de flecha dentro del contenedor */
    padding-right: 30px;
    /* Espacio para la flecha a la derecha */
}

.sidebar #leftside-navigation ul li a .menu-icon,
.menu_contextual ul li a .menu-icon {
    display: inline-block;
    width: 32px;
    /* Ancho reservado para la imagen */
    height: 32px;
    /* Alto reservado para la imagen */
    margin-right: 10px;
    /* Espaciado entre la imagen y el texto */
    flex-shrink: 0;
}

.sidebar #leftside-navigation ul li a .menu-icon img,
.menu_contextual ul li a .menu-icon img {
    width: 100%;
    /* Asegura que la imagen ocupe el espacio reservado */
    height: auto;
    display: block;
}

.sidebar #leftside-navigation ul li a:hover,
.menu_contextual ul li a:hover {
    color: #f19d58;
    background: linear-gradient(90deg, rgba(10, 16, 128, 1) 0%, rgba(87, 87, 87, 1) 89%, rgba(79, 79, 79, 1) 100%);
}

.sidebar #leftside-navigation ul li a span,
.menu_contextual ul li a span {
    display: inline-block;
    margin-left: 10px;
    line-height: 1.2;
}

.sidebar #leftside-navigation ul li a span.tipo_unidad {
    margin-left: 0px;
}

.fa {
    text-align: right;
    margin-left: 10px;
}

.fa-angle-right:before {
    content: "\25b6";
    font-family: Times, serif;
    font-weight: 900;
    font-size: 12px;
}

.sidebar #leftside-navigation ul li a span.arrow {
    position: absolute;
    right: 10px;
    /* Alinea la flecha a la derecha del contenedor */
    top: 50%;
    /* Centra verticalmente la flecha */
    transform: translateY(-50%);
    /* Ajusta el centrado vertical */
    transition: transform 0.3s ease;
    /* Animación suave para la rotación */
}

.sidebar #leftside-navigation ul li.open>a span.arrow {
    transform: translateY(-50%) rotate(90deg);
    /* Rotar la flecha hacia abajo */
}

.sidebar #leftside-navigation ul li a span .fa-angle-left,
.sidebar #leftside-navigation ul li a span .fa-angle-right {
    padding-top: 3px;
}

.sidebar #leftside-navigation ul ul {
    display: none;
}

.sidebar #leftside-navigation ul ul li {
    background-color: #05076b;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 0.5px solid #615b5b;
}

.sidebar #leftside-navigation ul ul li a {
    font-size: 18px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 40px;
    color: #d9e3ef;
    text-shadow: 2px 2px #000000;
}

/* Indentación para los ítems de nivel 3 */
.sidebar #leftside-navigation ul ul ul li a {
    padding-left: 60px;
    /* Indentación para nivel 3 */
}

.item-close {
    display: none;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    color: white;
    background: #4f4f4f;
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.footer-sesion {
    display: flex;
    flex: 1;
    bottom: 0;
    align-items: center;
    justify-content: space-between;
}

.footer-correo {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.footer-correo .intermitente {
    color: red;
}

.footer-correo img.intermitente {
    animation: parpadeo2 1.5s infinite;
}

@keyframes parpadeo2 {
    0% {
        opacity: 1;
    }


    50% {
        opacity: 0.2;
    }


    100% {
        opacity: 1;
    }
}

.footer-correo .active {
    color: red
}

.footer-correo:hover,
#mensaje_correo:hover {
    color: #ed7505;
}

.sidebar-footer .user-info,
.sidebar-footer .footer-correo {
    display: flex;
    align-items: center;
}

.sidebar-footer .user-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    cursor: pointer;
}

.sidebar-footer .user-icon img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    /* Icono circular */
}

.sidebar-footer .user-name {
    font-size: 15px;
    font-weight: bold;
}

.sidebar-footer .logout img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 50%;
}

.sidebar-footer .logout img:hover,
.footer-correo img:hover,
.user-icon img:hover {
    box-shadow: 0 0 10px #f19d58;
}

.sidebar #leftside-navigation #menuitem_anotaciones_rapidas {
    background: linear-gradient(90deg, rgba(105, 6, 34, 1) 0%, rgba(87, 87, 87, 1) 19%, rgba(112, 107, 107, 1) 57%, rgba(79, 79, 79, 1) 100%);
}

.sidebar #leftside-navigation #menuitem_frecuentes {
    background: linear-gradient(90deg, rgb(91, 113, 34) 0%, rgba(87, 87, 87, 1) 19%, rgba(112, 107, 107, 1) 57%, rgba(79, 79, 79, 1) 100%);
}
.sidebar #leftside-navigation #menuitem_frecuentes li{
    background: linear-gradient(90deg, rgb(91, 113, 34) 0%, rgba(87, 87, 87, 1) 19%, rgba(112, 107, 107, 1) 57%, rgba(79, 79, 79, 1) 100%);
}

/*bordes de cada li*/
.sidebar #leftside-navigation ul>li {
    border-color: #363636;
    border-width: 1px;
    border-bottom-style: dashed;
}

.sidebar #leftside-navigation ul ul>li {
    border-width: 0.1px;
    border-color: #4E4E4E;
}

/* Contenedor principal */
.contenedor_derecho {
    position: absolute;
    left: 100%;
    width: 75%;
    height: 95%;
    max-height: 95%;
    display: none;
    grid-template-columns: 5fr 5fr;
    grid-template-rows: 5fr 5fr;
    gap: 20px;
    box-sizing: border-box;
    padding: 10px 40px 0px 40px;
    transition: left 2s ease;
}

/* Subdivs */
.caja {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 2px solid #555454;
    background-clip: content-box;
    overflow: hidden;
    position: relative;
    box-shadow: 4px 4px 20px #141313
}

.titulo_caja {
    font-family: "poppins", Arial, sans-serif;
    position: relative;
    background: #4e4e4e;
    color: white;
    box-sizing: border-box;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border: 3px solid #474646;

}

.texto_caja {
    flex: 10;
    font-family: "poppins", Arial, sans-serif;
    box-sizing: border-box;
    font-size: 18px;
    color: #010101;
    padding: 10px;
    overflow-y: auto;
    background: #ffffff90;
    box-shadow: inset -2px -2px 17px black;
}

.caja.activado,
.titulo_caja.activado {
    background: linear-gradient(315deg, rgb(158, 158, 158) 0%, rgba(140, 143, 141, 1) 50%, rgb(239 22 22) 100%);
}

#reloj_logo_pral {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#reloj_pral {
    display: flex;
    flex: 1;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

#logo_pral {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

/* Estilo del menú contextual */
.menu_contextual {
    position: fixed;
    visibility: hidden;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 4px 4px 20px #141313;
    border-radius: 5px;
    overflow: hidden;
    height: 500px;
    max-height: max-content;
    /* Altura inicial para la animación */
    opacity: 0;
    /* Opacidad inicial */
    transition: max-height 1s ease, opacity 1s ease;
    /* Transición suave */
}

/* Cuando el menú está visible */
.menu_contextual.show {
    visibility: visible;
    height: auto;
    max-height: max-content;
    /* Altura máxima del menú */
    opacity: 1;
    /* Totalmente visible */
}



.nombre-fecha {
    cursor: pointer;
    text-decoration: underline;
}

.nombre-fecha:hover {
    color: #810505;
}

.icon-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    border-radius: 50%;
    height: 32px;
}

.icon-refresh img {
    width: 32px;
    height: 32px;
    margin: auto
}

.icon-refresh:hover {
    box-shadow: 0 0 10px #f19d58;
}

/* Estilo para la flecha en los ítems desplegables */
.flecha-item_desplegable {
    float: right;
    font-size: 25px;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
}

.item-desplegable.open .flecha-item_desplegable {
    transform: rotate(0deg);
}

.item-desplegable {
    cursor: pointer;
}

.item-desplegable p {
    background: rgb(8 8 8 / 30%);
    border: solid #c7c7c9 1px;
    border-radius: 10px;
    padding: 5px 0 5px 0;
    color: white;
    text-align: center;
}

.item-desplegable p:hover {
    color: #f19d58;
}

.item-hijo-desplegable {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease, transform .3s ease;

}

.item-desplegable.open .item-hijo-desplegable {
    max-height: 200px;
    /* Ajusta este valor según el contenido */
    opacity: 1;

}

/*Estilos para la caja de tareas inicial*/
.tipo_tareas {

    font-weight: bold;
    cursor: pointer;
    padding-top: 15px;
    padding-bottom: 5px;
}

.tipo_tareas u {
    margin-left: 20px;
}

.tipo_tareas p {
    margin-block: 0;
}

.titulo_resp,
.titulo_img,
.titulo_info {
    font-weight: bold;
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
}

.titulo_resp:hover,
.titulo_img:hover,
.titulo_info:hover,
.tipo_tareas:hover {
    color: #ff7373;
}

.titulo_resp {
    color: #ff0000;
}

.titulo_img {
    color: #001464;
}

.titulo_info {
    color: #004a00;
}

#tareas_resp,
#tareas_img,
#tareas_info {
    margin-left: 5px;
    font-weight: normal;
}

#tareas_pral_texto {
    text-align: center;
    font-size: 1.3vw;
    text-shadow: 1px 1px rgb(91 91 91);
}

#tareas_pral_texto.activa {
    animation: flash-shadow 2s infinite;
}

#tareas_pral_texto p {
    margin-block: 0px;
}

@keyframes flash-shadow {

    0%,
    100% {
        box-shadow: inset -2px -2px 17px black;
    }

    50% {
        box-shadow: inset -4px -4px 17px rgba(255, 0, 0, 0.8);
    }
}

/* --- SECCIÓN FAVORITOS / MÁS UTILIZADOS --- */

#menuitem_frecuentes>a,
#menuitem_anotaciones_rapidas>a {
    color: #ffca28 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#menuitem_frecuentes:hover>a,
#menuitem_anotaciones_rapidas:hover>a {
    color: #ffffff !important;
}

