@import url("//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css");

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #136066;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  padding: 10px 20px;
}

.header-brand {
  font-size: 1.5rem;
  font-weight: bold;
  align-items: center;
  display: flex;
}

.navbar-toggler {
  margin-left: auto;
  display: flex;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.dropdown-menu {
  background-color: #007b7f;
  border: none;
  border-radius: 5px;
}

.dropdown-item {
  color: white;
}

.contenido2{
  margin-left: 60px; 
  width: calc(100% - 90px);
  height: 100%;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Adjustments for larger screens */
@media (min-width: 1200px) {
  header {
      padding: 20px 40px;
  }
  .header-brand {
      font-size: 2rem;
  }
  main {
    margin-left: 4em; /* Ajuste para que el contenido principal quede alineado con el menú lateral */
    width: calc(100% - 4em); /* Ocupa el espacio restante sin causar desbordamiento */
    padding-right: 40em;
    overflow-x: hidden; /* Evita scroll horizontal innecesario */
    height: 100%;
    z-index: 900;
  }

  .contenido{
    margin-left: 80px; 
    width: calc(100% - 90px);
    height: 100%;
  }
}

/* Adjustments for medium screens */
@media (min-width: 577px) and (max-width: 1199px) {
  header {
      padding: 15px 30px;
      overflow: hidden;
  }
  .header-brand {
      font-size: 1.75rem;
  }
  main {
    margin-left: 4em; /* Ajuste para que el contenido principal quede alineado con el menú lateral */
    width: calc(100% - 4em); /* Ocupa el espacio restante sin causar desbordamiento */
    padding-right: 40em;
    overflow-x: hidden; /* Evita scroll horizontal innecesario */
    height: 100%;
  }

  .contenido{
    margin-left: 80px; 
    width: calc(100% - 90px);
  }
}

/* Adjustments for small screens */
@media (max-width: 576px) {
  header {
      overflow: hidden;
  }

  .contenido{
    margin-left: 80px; 
    width: calc(100% - 90px);
  }

  .header-brand {
      font-size: 1.2rem;
      text-align: center;
      justify-content: center;
  }
  .navbar-toggler {
      margin-left: 5px; /* Adjust spacing */
  }
  .navbar-logo {
      max-height: 40px;
      margin-right: 10px;
  }
}


/* Menú lateral */
.menu {
  position:fixed;
  top: 0;
  left: 0;
  height: 100%; /* Resta la altura del encabezado del total de la ventana */
  list-style-type: none;
  margin: 0;
  padding: 0;
  background: #136066;
  width: 4em; /* Reduce el tamaño del menú lateral en pantallas pequeñas */
  z-index: 999; /* Asegura que el menú quede detrás del encabezado */
}

/* Estilo uniforme para cada elemento del menú */
.menu li {
  top: 87px;
  display: flex; /* Asegura que el contenido se centre verticalmente */
  align-items: center;
  justify-content: center;
  height: 4em; /* Reduce la altura de los elementos del menú */
  border-bottom: 1px solid #0d4a4a; /* Separador entre cuadros */
  position: relative;
  
}

/* Enlaces del menú */
.menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Coincide con la altura del contenedor */
  width: 100%; /* Ocupa todo el cuadro */
  text-indent: -500em; /* Oculta el texto */
  background: #136066;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Íconos dentro del enlace */
.menu li a:before {
  font-family: FontAwesome;
  font-size: 1.2em; /* Ajusta el tamaño del icono en pantallas pequeñas */
  text-indent: 0; /* Asegura que el ícono sea visible */
  color: white;
  
}

/* Íconos específicos */
.menu li a.tasks:before {
  content: "\f0ae"; /* Ícono de archivo */
}
.menu li a.archive:before {
  content: "\f090"; /* Ícono de archivo */
}
.menu li a.pencil:before {
  content: "\f08b"; /* Ícono de lápiz */
}
.menu li a.th:before {
  content: "\f00a"; /* Ícono de lápiz */
}
.menu li a.user:before {
  content: "\f0c0"; /* Ícono de personas */
}
.menu li a.acordado:before {
  content: "\f07c"; /* Ícono de personas */
}

/* Hover en los enlaces */
.menu li a:hover {
  background: #0d4a4a; /* Fondo oscuro al pasar el mouse */
  color: white;
}

/* Títulos emergentes */
.menu li:after {
  content: attr(title); /* Muestra el título especificado en el atributo 'title' */
  position: absolute; /* Cambiar a absolute para que se posicione respecto al li */
  left: 5em; /* Ajusta la posición horizontal */
  top: 50%; /* Centra verticalmente respecto al botón */
  transform: translateY(-50%); /* Compensa el desplazamiento vertical */
  height: auto; /* Ajuste compacto */
  padding: 0.5em 1em; /* Espaciado interno */
  background: #0d4a4a;
  color: white;
  font-size: 0.9em;
  text-transform: uppercase;
  white-space: nowrap; /* Evitar que el texto se divida */
  border-radius: 5px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

/* Mostrar el texto al pasar el mouse */
.menu li:hover:after {
  visibility: visible;
  opacity: 1;
}

/* Enlace activo */
.menu li a.active {
  background: #0b3939;
  color: white;
}

/* Flecha para el enlace activo */
.menu li a.active:after {
  position: absolute;
  left: 5em;
  top: 50%;
  transform: translateY(-50%);
  content: none;
  border: 2.5em solid transparent;
  border-left-color: #136066;
  border-width: 2.5em 1em;
}

/* Ajustes responsivos */
@media screen and (max-height: 34em) {
  .menu li {
    font-size: 70%;
  }
}


/* Logo del navbar */
.navbar-logo {
  max-width: 100%;
  height: auto; /* Mantiene la proporción del logo */
  max-height: 70px; /* Altura máxima en pantallas grandes */
  margin-right: 10px;
}

/* Título del navbar */
.navbar-title {
  display: flex;
  font-size: clamp(1rem, 2.5vw, 1.5rem); /* Adaptativo según el tamaño de pantalla */
  font-weight: bold;
  color: white;
  white-space: nowrap; /* Evita que se divida en líneas en pantallas grandes */
}

/* Opcional: Espaciado del navbar */
.navbar {
  padding: 0.5rem 1rem; /* Ajuste de padding para pantallas pequeñas */
}


/* Asegura que la tabla ocupe el ancho completo */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Habilita el scroll horizontal */
  white-space: nowrap; /* Evita que el contenido de las celdas se divida en varias líneas */
  table-layout: auto;
}

table.dataTable th, 
table.dataTable td {
    border: 1px solid #000000; /* Agrega líneas divisorias */
}

table.dataTable {
    border-collapse: collapse; /* Asegura que no haya espacio entre bordes */
    width: 100%; /* Asegura que la tabla ocupe el ancho completo */
}


#documentosTable {
  width: 100%;
  border-radius: 0.75rem !important; /* Bordes redondeados */
  overflow: hidden; /* Para que los bordes se apliquen también a los hijos */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

#documentosTable thead {
  background-color: #343a40; /* Color oscuro Bootstrap */
  color: white;
  border-radius: 0.75rem 0.75rem 0 0;
}

#documentosTableSalida {
  width: 100%;
  border-radius: 0.75rem !important; /* Bordes redondeados */
  overflow: hidden; /* Para que los bordes se apliquen también a los hijos */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

#documentosTableSalida thead {
  background-color: #343a40; /* Color oscuro Bootstrap */
  color: white;
  border-radius: 0.75rem 0.75rem 0 0;
}

.columna-destacada {
  text-align: center; /* Centra el contenido de las celdas */
  word-wrap: break-word; /* Permite dividir palabras largas */
  overflow-wrap: break-word; /* Alternativa para compatibilidad */
  white-space: normal; /* Permite saltos de línea en las celdas */
}

#documentosTable th, #documentosTable td {
  text-align: center; /* Centra el contenido de las celdas */
  word-wrap: break-word;
}



/* Ajustes responsivos */
@media (max-width: 768px) {
  .custom-header {
    font-size: 1rem; /* Reduce el tamaño de la fuente en pantallas pequeñas */
  }


  #documentosTable th, #documentosTable td {
    font-size: 0.9em; /* Reduce el tamaño del texto en las celdas */
  }
}

.superpuesto {
  position: absolute; /* Para superponer */
  top: 90px; /* Ajusta la posición vertical */
  left: 90px; /* Ajusta la posición horizontal */
  z-index: 10; /* Asegura que esté encima de otros elementos */
}

/* Estilo específico para DataTables */
#documentosTable tbody tr.situacion-pendiente  td{
  background-color: rgb(233, 233, 116) !important;
}

#documentosTable tbody tr.situacion-enviado  td{
  background-color: rgb(107, 226, 122) !important;
}

#documentosTable tbody tr.situacion-cancelado  td{
  background-color: rgb(250, 89, 89) !important;
}

#documentosTableSalida tbody tr.situacion-pendiente  td{
  background-color: rgb(233, 233, 116) !important;
}

#documentosTableSalida tbody tr.situacion-enviado  td{
  background-color: rgb(107, 226, 122) !important;
}

#documentosTableSalida tbody tr.situacion-cancelado  td{
  background-color: rgb(250, 89, 89) !important;
}

#documentosTable tbody tr.respuesta-vacia td{
  background-color: rgb(12, 196, 252) !important;
}

#documentosTable tbody tr.respuesta-pendiente-amarillo td{
  background-color: rgb(233, 233, 116) !important;
}

#documentosTable tbody tr.respuesta-pendiente-naranja td{
  background-color: rgb(255, 153, 0)  !important;
}

#documentosTable tbody tr.respuesta-pendiente-rojo td{
  background-color: rgb(250, 89, 89)  !important;
}

#documentosTable tbody tr.respuesta-enviada td{
  background-color: rgb(107, 226, 122) !important;
}

.bg-orange {
  background-color: #fd7e14 !important; /* Color naranja */
}

@media (max-width: 768px) {
  table.dataTable {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  table.dataTable thead {
    display: none;
  }
  table.dataTable tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
  }
  table.dataTable tbody td {
    display: block;
    text-align: left;
    padding: 5px;
    position: relative;
  }
  table.dataTable tbody td:before {
    content: attr(data-label); /* Toma el valor de un atributo */
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
  }
}


/* Fondo del calendario */
#calendar {
  background-color: #f8f9fa;  /* Gris claro */
  border-radius: 10px;
  padding: 10px;
}

/* Cambiar el color del encabezado */
.fc-toolbar {
  background-color: #136066; /* Azul */
  color: white;
  padding: 10px;
  border-radius: 10px;
}

/* Cambiar el color de los días del mes */
.fc-daygrid-day {
  background-color: white;
  border: 1px solid #ddd;
}

/* Cambiar color de los eventos */
.fc-event {
  border-radius: 5px;
  font-weight: bold;
  color: white;
  padding: 5px;
}

/* Cambiar color de los eventos específicos */
.fc-event-red {
  background-color: red !important;
}
.fc-event-green {
  background-color: green !important;
}
.fc-event-blue {
  background-color: blue !important;
}

/* Cambiar estilo de los días pasados */
.fc-day-past {
  background-color: #868686 !important;
  opacity: 0.6;
}

/* Cambiar el color del día actual */
.fc-day-today {
  background-color: #ffd700 !important; /* Amarillo */
}



/* Estilos para las pestañas */
.nav-tabs .nav-link {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
}

.nav-tabs .nav-link.active {
  background-color: #ffffff;
  border-bottom-color: transparent;
}

/* Estilos para las tarjetas */
.card {
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-weight: bold;
  color: #000000;
}

.pendiente {
  background-color: #f5f83b;
}

.bg-custom-pendiente {
  background-color: #ffeb3b; /* Amarillo */
}

.bg-custom-urgente {
  background-color: #f44336; /* Rojo */
}

.bg-custom-finalizado {
  background-color: #9e9e9e; /* Gris */
}

.list-group-item:hover {
  background-color: #e3f2fd; /* Azul claro */
  transition: background-color 0.3s ease;
}

/* Estilo cuando está marcado */
.checked-item {
  background-color: #d4edda !important; /* Verde claro */
  border-color: #28a745 !important; /* Borde verde */
  color: #6c757d !important; /* Texto gris */
  text-decoration: line-through;
}

.popup-alerta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffcccc;
  color: #d8000c;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  font-weight: bold;
  display: none;
  z-index: 1000;
  min-width: 250px;
}
.popup-alerta button {
  background: none;
  border: none;
  color: #d8000c;
  font-weight: bold;
  cursor: pointer;
  float: right;
  font-size: 18px;
}

.bodybanner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 93vh;
  text-align: center;
  font-family: Arial, sans-serif;
  background: linear-gradient(45deg, #0c818a, #0fa4af);
}


.banner {
  width: 90%;
  max-width: 1500px;
  padding: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

.banner:hover {
  transform: scale(1.05);
}

.banner-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Espacio entre el icono y el texto */
  font-size: clamp(3rem, 4vw, 6rem);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.banner h1 {
  font-size: clamp(3rem, 4vw, 6rem);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.banner p {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  line-height: 1.5;
}

.banner strong {
  font-size: 3rem;
  color: #000000;
}

.icono {
  font-size: 4rem;
  margin-bottom: 10px;
  color: #ff0000;
}



.bodybanner2 {
  display: none;
  justify-content: center;
  align-items: center;
  height: 90%;
  text-align: center;
  font-family: Arial, sans-serif;
}

.bodybanner2.active {
  display: block; /* Solo el banner activo se muestra */
}

.banner2 {
  margin-left: 5vh;
  margin-top: 5vh;
  width: 90%;
  max-width: 1500px;
  padding: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

.banner3 {
  height: 90%;
  padding: 50px;
  margin: auto;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

.banner2:hover {
  transform: scale(1.05);
}

.banner3:hover {
  transform: scale(1.05);
}

.banner-title2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Espacio entre el icono y el texto */
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 1.2px;
}

.banner3 h1 {
  font-size: clamp(3rem, 4vw, 6rem);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.banner3 p {
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  line-height: 1.5;
}

.banner3 strong {
  font-size: 4rem;
  color: #000000;
}

.banner2 h1 {
  font-size: clamp(3rem, 4vw, 6rem);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.banner2 p {
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  line-height: 1.5;
}

.banner2 strong {
  font-size: 4rem;
  color: #000000;
}

#tablaAntecedentesGeneral th,
#tablaAntecedentesGeneral td {
    text-align: center;
    vertical-align: middle;
}

.clock2 {
    position: relative;
    margin: auto;
    top: 20px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 550px;
    height: 140px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    color: #fff;
    font-family: 'Quicksand', 'Helvetica', Arial, sans-serif;
    font-weight: lighter;
    border-radius: 15px;
}

.inside2 {
    position: absolute;
    margin: auto;
    top: 35px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 180px;
    background-color: transparent;
}

.content2 {
    margin-top: 5px;
    width: auto;
    height: auto;
    text-align: center;
}

.days2 {
    color: rgba(255, 255, 255, 0.2);
}

.days2 span {
    margin-left: 10px;
    font-size: 1rem;
}

.text2{
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin-top: 10px;
    font-size: 5em;
}

#date2 {
    margin-top: 40px;
    margin-left: -150px;
}

.clock {
    position: relative;
    margin: auto;
    top: 20px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    color: #fff;
    font-family: 'Quicksand', 'Helvetica', Arial, sans-serif;
    font-weight: lighter;
    border-radius: 15px;
}

.inside {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 180px;
    background-color: transparent;
}

.content {
    margin-top: 5px;
    width: auto;
    height: auto;
    text-align: center;
}

.days {
    color: rgba(255, 255, 255, 0.2);
}

.days span {
    margin-left: 10px;
    font-size: 1rem;
}

.text{
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin-top: 40px;
    font-size: 3.5em;
}

#time {
    font-size: 2rem;
}

#date {
    margin-top: 70px;
    margin-left: -150px;
}

#cal img {
    width: 30px;
    height: 30px;
}

span#day {
    position: absolute;
    margin-top: 5px;
    margin-left: 10px;
}

span#month {
    position: absolute;
    margin-top: 5px;
    margin-left: 45px;

}

span#year {
    position: absolute;
    margin-top: 5px;
    margin-left: 100px;

}

.multimedia-media {
    max-height: 95vh;
    max-width: 95vw;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}