body {
  font-family: Arial, sans-serif;
  font-size: 1em;
  background-image: url('../images/fondos/fondo_02.jpg');
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
#contenido{
    margin-top: 70px;
    margin-bottom: 60px;
    /* display: flex;
    flex-wrap: wrap;
    gap: 15px;
    */
}
#footer{
    position: relative;
    text-align: center;
    font-size: 0.7em;
    color: #818181;
    padding-bottom: 50px;
}
#footer a{
    color: #818181;
}

#btn-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none; /* Ocultar por defecto */
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#btn-top:hover {
  background-color: #34495e;
  transform: scale(1.1); /* Pequeño efecto de zoom */
}

.card-header{
    position: relative;
    background: #2c3e50;
    color: white;
    padding: 5px 15px 5px 15px;
}
.card-header a{
  color: rgb(185, 185, 0);
}
.card-header a:hover{
  color: rgb(255, 255, 0);
}
.card-footer{
    position: relative;
    background: #2c3e50;
    color: white;
}
.card-footer a{
  color: rgb(185, 185, 0);
}
.card-footer a:hover{
  color: rgb(255, 255, 0);
}
.subMenuCard{
    position: relative;
    background: #F1E2D3;
    color: white;
    margin: -12px -12px 15px -12px;
    padding: 8px 13px 8px 13px;
}

.modal-header{
  position: relative;
  background: #2c3e50;
  font-size: 0.8em;
  color: white;
  padding: 5px 15px 5px 15px;
}
.modal-header a{
color: rgb(185, 185, 0);
}
.modal-header a:hover{
color: rgb(255, 255, 0);
}
.modal-footer{
  position: relative;
  background: #2c3e50;
  color: white;
  padding: 5px 15px 5px 15px;
}
.modal-footer a{
color: rgb(185, 185, 0);
}
.modal-footer a:hover{
color: rgb(255, 255, 0);
}

.modal-footer .btn{
  position: relative;
  color: white;
  padding: 5px 5px 5px 10px; 
}


.nav-card{
  display: flex;
  gap: 15px;
  z-index: 999;
}
.nav-card a {
  color: #000;
  text-decoration: none;
  font-size: 0.8em;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s ease;
  /*
  -webkit-transition:;
  -moz-transition:;
  -ms-transition:;
  -o-transition:;
   */
}

.nav-card a:hover {
  background-color: #34495e;
  color: white;
}

/* Estilos para dispositivos pequeños */
.nav-card-menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-card {
    display: none; /* Ocultar el menú por defecto */
    flex-direction: column; /* Colocar enlaces en columna */
    background-color: #2c3e50;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 10px;
  }

  .nav-card a {
    padding: 10px;
    font-size: 1.1em;
    color:white;
    text-align: left;
  }

  .nav-card.show {
    display: flex; /* Mostrar el menú al hacer clic */
  }

  .nav-card-menu-toggle {
    display: block; /* Mostrar el botón de menú */
  }

  .footer{
    position: relative;
  }

  .ia_copyright{
    position: relative;
    text-align: center;
    padding: 10px 5px 5px 5px;
  }
  .copyright{
    position: relative;
    text-align: center;
  }
}

.alert{
    position: relative;
    text-align: left;
    font-size: 0.8em;
    padding: 10px;
}
.btn-close{
    padding: 12px !important;  
}
.btn-salir{
  padding: 12px !important;  
  color: white !important;
  text-decoration: none;
}
#espass{
    position: relative;
}
#espass .icon{
    position: absolute;
    top: 15px;
    right: 15px;
    color: #7F7F7F;
}
/* Forms */
#forms { padding: 10px; border: 1px solid #D5D5D5; border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px; }
#forms h5{ font-weight: bold; color: #013864;}
#forms label{ font-size: 0.9em;color: #0189BE; margin-bottom: 0px; }
#espass .icon{
    position: absolute;
    top: 35px;
    right: 15px;
    color: #7F7F7F;
}


#lista-tabla{
    position: relative;
    padding: 0px;
    border: 1px solid silver;
    max-height: 400px;
    background: #f4f4f9;
    overflow-y: auto;
}
.rowTabla{
    font-size: 0.8em;
    background: white;
    border: 1px solid black;
    margin: 0px;
    padding: 0px;
}
.txt-c{
    text-align: center;   
}
.txt-l{
    text-align: left;   
}
.txt-r{
    text-align: right;   
}
.b-Silver{
    border: 1px solid silver;
}

#widget_escritorio a{
  text-decoration: none;
}
#widget_escritorio a:hover{
  background:#003355;
  color:white;
}
#widget_escritorio a:active{
  background:#004a7a;
  color:white;
}
#widget_escritorio .icon{
    text-align: center;
    font-size: 2em;
}
#widget_escritorio .card-body{
    text-align: center;
}

#img-error-404{
    text-align: center;
}
#img-error-404 p{
    font-size: 1.5em;
    color: red;
}
#img-error-404 img{
    max-width: 450px;
}
#error_msg{
  margin-top: -70px;
}

#footer-login{
    font-size: 0.7em;
    color: black;
}
#footer-login a{
    color: blue;
}
#footer-login a:hover{
    font-weight: bold;
}
#footer-login .cas{
    font-size: 1.2em;
    font-weight: bold;
}
.close {
  text-decoration: none;
}

#alertaModal .modal-header{
  background: #fc4c4c;
  color: black;
}
#alertaModal .modal-footer{
  background: #f49f9f;
  color: black;
}

.note {
    width: 100%;
    max-width: 1168px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    resize: horizontal; /* Permite redimensionar */
    overflow: hidden;
    margin: 0px auto 0px auto;    
    transition: box-shadow 0.3s, z-index 0.3s;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    -webkit-transition: box-shadow 0.3s, z-index 0.3s;
    -moz-transition: box-shadow 0.3s, z-index 0.3s;
    -ms-transition: box-shadow 0.3s, z-index 0.3s;
    -o-transition: box-shadow 0.3s, z-index 0.3s;
}
.note:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.note-header {
    cursor: move;
    color: white;
    padding: 8px 12px;
}
.note-content {
    padding: 12px;
    min-height: 350px;
}
.note-footer{
  padding: 10px;
  font-size: 0.8em;
}
.note-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 5px;
}
.note-controls a {
    text-decoration: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 5px;
}
#add-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 900;
}
.dark-mode {
    background-color: #333;
    color: #fff;
}
.dark-mode a{
  /* color: #bb86fc; */
}
.dark-mode .note {
    background-color: #444;
    color: #fff;
}
.mover{
  position: absolute;
}

#IA_Alerta{
  position: relative;

}

.logo-preview{
  max-width: 150px;
  min-height: 150px;
}

.point{
  cursor: pointer;
}

/* CHAT */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.chat-toggle {
    background: #007bff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    border: 1px solid #ddd;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    /* display: flex; */
    justify-content: between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    flex: 1;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.mensaje {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.mensaje.propio {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.mensaje.otro {
    background: white;
    border: 1px solid #ddd;
}

.mensaje-info {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
    background: white;
    border-radius: 0 0 10px 10px;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-send {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send:hover {
    background: #0056b3;
}

/* Estilos anteriores se mantienen y agregamos estos nuevos */

.chat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-tabs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-tab {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.chat-tab.active {
    background: white;
    color: #007bff;
}

.user-selector select {
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 12px;
    outline: none;
}

.chat-conversations {
    flex: 1;
    overflow-y: auto;
    background: white;
    border-bottom: 1px solid #eee;
}

.conversacion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversacion-item:hover {
    background: #f8f9fa;
}

.conversacion-info {
    flex: 1;
}

.conversacion-nombre {
    font-weight: bold;
    margin-bottom: 3px;
}

.conversacion-ultimo {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.conversacion-estado {
    text-align: right;
}

.conversacion-fecha {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}

.conversacion-no-leidos {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.mensaje.privado {
    border-left: 3px solid #28a745;
}

.mensaje.global {
    border-left: 3px solid #007bff;
}

.mensaje-contexto {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.mensaje.no-leido {
    background: #fff3cd !important;
    border-left: 3px solid #ffc107 !important;
}

.mensaje .mensaje-info {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mensaje.propio .mensaje-info {
    justify-content: flex-end;
}
/* END CHAT */