:root {
/* colores institucionales asociaion 

background-color: var(--azul);*/
--azul: #006496;
    --azul-rgb: 0, 100, 150;

    --azul-oscuro: #003B5C;
    --azul-oscuro-rgb: 0, 59, 92;

    --azul-medio: #007FAF;
    --azul-medio-rgb: 0, 127, 175;

    --dorado: #E0A200;
    --dorado-rgb: 224, 162, 0;

    --dorado-claro: #F4C542;
    --dorado-claro-rgb: 244, 197, 66;

    --blanco: #FFFFFF;
    --fondo: #F4F7F9;

    --texto: #263238;
    --borde: #D8E0E5;

    --gris_claro : #F4F7F9;
    --gris_oscuro : #263238;


     --fondo_principal: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #a2daff 35%,
        #E5F1F6 70%,
        #D3E8F0 100%
    );
   --fondo_dos: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #EAF4F8 25%,
        #B9DCE9 55%,
        #6FAEC5 100%
    );

    p tr,
th,
td {
  font-family: var(--f_k_r);
  font-size: 20px;
}
tr,
th,
td {
  font-family: var(--fjs_r);
  font-size: 14px;
}
h1 {
  font-family: var(--f_k_b);
  font-size: 40px;
}

h2 {
  font-family: var(--f_r_b);
  font-size: 36px;
}
h3 {
  font-family: var(--f_k_b);
  font-size: 32px;
}

h4 {
  font-family: var(--f_r_l);
  font-size: 28px;
}
h5 {
  font-family: var(--f_k_b);
  font-size: 24px;
}

h6 {
  font-family: var(--f_k_r);
  font-size: 18px;
}
titsnall{
  font-family: var(--f_k_r);
  font-size: 14px;
  font-weight: bold;
}
p, tr, th, td{
    font-family: var(--f_k_r);

}
  /* FUENTES */

  --f_r_b: "rowdiesbold";
  --f_r_r: "rowdiesregular";
  --f_r_l: "rowdieslight";
  --fk1: "";

  --f_k_b: "kanitbold";
  --f_k_r: "kanitregular";
  --f_k_i: "kanititalic";
  --f_k_bi: "kanitbold_italic";


  --f_m_i: "maliitalic";
  --f_m_b: "malibold";
  --f_m_r: "maliregular";

  --f_js_b: "josefin_sansbold";
  --fjs_r: "josefin_sansregular";
  --f_js_l: "josefin_sanslight";
  --f_js_t: "josefin_sansthin";

  /*COLORES PPALES*/
  --coluno: rgba(17, 128, 27, 50); /*#11801B*/
  --coldos: rgba(33, 255, 52, 100); /*#21FF34*/
  --coltres: rgba(23, 173, 35, 68); /*#17AD23*/

  /* COLORES TRANSPARENCIA */
  --tcoluno1: rgba(17, 128, 26, 0.486);
  --tcol: #564e4e6e;

  --tcolunoa: rgba(0, 68, 255, 0.5);

  /* COLORES BOTONES */
  --bcoluno: rgb(17, 128, 27);
  --bcolunoa: rgb(51, 124, 57);
  --coldosa: rgba(255, 0, 0, 0.5);

  --coltres: rgb(94, 151, 255);
  --coltresa: rgba(94, 150, 255, 0.786);

  --colcuatro: rgb(218, 255, 138);
  --colcuatroa: rgba(218, 255, 138, 0.5);

  --colcinco: rgb(177, 255, 10);

  /* COLORES DEGRADADOS BACKGROUND*/
  --col_deg_uno: linear-gradient(
    to bottom,
    rgba(180, 227, 145, 0.03) 0%,
    rgba(73, 161, 43, 0.94) 12%,
    rgba(46, 145, 18, 0.94) 15%,
    rgba(93, 181, 74, 0.96) 43%,
    rgba(33, 145, 0, 0.98) 68%,
    rgba(33, 145, 0, 1) 100%
  );

  --col_deg_dos: linear-gradient(
    to left,
    rgb(255, 255, 255) 0%,
    rgb(216, 225, 231) 50%,
    rgb(166, 184, 154) 60%,
    rgb(191, 220, 162) 70%,
    rgb(195, 222, 206) 100%
  );
}
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  /* padding: 5px; */
}
.form-container {
  max-width: 90% !important;
  margin: 0 auto;
  background: #ffffff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  margin-bottom: 8px;
  font-weight: bold;
}
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}
.btn-submit {
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-submit:hover {
  background-color: #0b5ed7;
}
.btn-volver {
  display: inline-block;
  margin-bottom: 15px;
  color: #6c757d;
  text-decoration: none;
}
.imgcabecera-preview {
  width: 100%;
  aspect-ratio: 100 / 28;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}
.imgcabecera-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-crop {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
.modal-crop-content {
  background-color: #fff;
  margin: 3% auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  border-radius: 8px;
}
.cropper-container-wrapper {
  max-height: 400px;
  margin-bottom: 15px;
}
.modal-crop-footer {
  text-align: right;
}
.btn-crop {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}
.btn-crop-cancel {
  background: #6c757d;
  color: white;
}
.btn-crop-accept {
  background: #0d6efd;
  color: white;
}
.note-editable {
  height: 900px !important;
}
.cards {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 10px 0 0 0 !important;
  text-align: center;
  width: 100%;
  background: var(--fondo_principal);
  .d-flex {
    width: 100% ;
  }
  p {
    color: black;
    font-family: var(--f_k_r);
  }
 i {
    text-decoration: none;
    font-size: 32px;
    padding-top: 7px ;
  }
}
.titul_men {
  width: 100%;
  display: flex;
  justify-content: space-between;
  p {
    text-align: left;
  }
}
/* Submenú de gestión centrado */
.nav-pills-gestion {
  background-color: var(--azul-oscuro);
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: inline-flex;
}

.nav-pills-gestion .nav-link {
  color: var(--blanco) !important;
  font-family: var(--f_k_r);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-pills-gestion .nav-link:hover {
  background-color: var(--azul-medio);
  color: var(--blanco) !important;
}

/* Estado Activo con Color Dorado Institucional */
.nav-pills-gestion .nav-link.active {
  background-color: var(--dorado) !important;
  color: var(--azul-oscuro) !important;
  font-family: var(--f_k_b);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Customización de Nav Pills Institucionales */
.cards-navbar {
  width: 100% !important;
}
.cards-navbar .nav-pills {
  background-color: var(--azul-oscuro);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--borde);
}

.cards-navbar .nav-link {
  color: var(--blanco);
  font-family: var(--f_k_r);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}

.cards-navbar .nav-link:hover {
  color: var(--dorado-claro);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Estado Activo */
.cards-navbar .nav-link.active,
.cards-navbar .nav-pills .nav-link.active {
  background-color: var(--dorado) !important;
  color: var(--azul-oscuro) !important;
  font-family: var(--f_k_b);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Regla para OCULTAR el ícono cuando el enlace esté activo */
.cards-navbar .nav-link.active i,
.cards-navbar .nav-link.disabled i {
  display: none !important;
}

/* Estado Deshabilitado o Sin Acceso */
.cards-navbar .nav-link.disabled {
  color: rgba(255, 255, 255, 0.4) !important;
  opacity: 0.6;
}

/* Dropdown Personalizado */
.cards-navbar .dropdown-menu {
  background-color: var(--blanco);
  border: 1px solid var(--borde);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cards-navbar .dropdown-item {
  color: var(--texto);
  font-family: var(--f_k_r);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cards-navbar .dropdown-item:hover {
  background-color: var(--gris_claro);
  color: var(--azul);
}

.cards-navbar .dropdown-item.active {
  background-color: var(--azul-medio);
  color: var(--blanco);
}

/* Estilo para los divisores */
.cards-navbar .dropdown-divider {
  border-top: 1px solid var(--borde);
}
/* ==========================================================================
   ESTILOS COMPLEMENTARIOS PARA MÓVIL (HAMBURGUESA A 760px)
   ========================================================================== */
.nav_contenedor .icosize i {
  font-size: 20px;
  color: black;
}

.nav_contenedor {
  position: relative;
  width: calc(100% - 600px);
}

/* Botón Hamburguesa oculto por defecto en escritorio */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Estilo base para los s de lista */
.botones_men li {
  position: relative;
  width: 140px;
  /* Permite posicionar los submenús respecto a este  */
}

/* Botones principales e hijos (enlaces) */
.botones_men a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 15px;
  background-color: #ffffff;
  color: #333333;
  border-radius: 6px;
  border: 3px solid;
  border-color: var(--borde);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-wrap: wrap;
  text-align: center;
  align-content: center;
  justify-content: center;
  height: 62px;
  i {
    width: 100%;
  }
}

.botones_men ul {
  display: none;
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background-color: #ffffff;
  z-index: 999;
}

/* Mostrar submenú inmediatamente inferior al hacer hover */
.botones_men li:hover > ul {
  display: block;
}

/* --- POSICIONAMIENTO POR NIVEL --- */

/* NIVEL 2: Aparece abajo del botón principal */
.botones_men > li > ul {
  top: 88%;
  left: 0;
  margin-top: 5px;
}

/* NIVEL 3: Aparece a la derecha del  del Nivel 2 */
.botones_men ul ul {
  top: 0;
  left: 97%;
  margin-left: 2px;
}

.botones_men > li > a:nth-child(6) {
  background: red !important;
}

/* Ajustes de enlaces específicos dentro de los submenús (Nivel 2 y 3) */
.botones_men ul a {
  border: 0 0 2px solid black;
  border-radius: 0;
  padding: 6x 12px;
  justify-content: flex-start;
  width: 200px;
  /* Ancho fijo para los submenús */
  box-shadow: none;
  font-size: 16px;
}

/* Redondear esquinas del primer y último enlace de los submenús */
.botones_men ul li:first-child > a {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.botones_men ul li:last-child > a {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Indicador visual de que existe un submenú hijo (opcional) */
.botones_men ul li:has(ul) > a::after {
  content: " »";
  margin-left: auto;
  font-weight: bold;
}

/* .botones_men > li:nth-child(1) > a:nth-child(1) {
  background: #ffe311;
}
.botones_men > li:nth-child(2) > a:nth-child(1) {
  background: #edd100;
} */

.botones_men > li > a {
  background-color: var(--dorado-claro);
}

li.logout > a:nth-child(1) {
  background: red;
  border-radius: none;
  width: 60px;
}

li.logout > a:hover:nth-child(1) {
  background: #eb7191;
  border-radius: 50%;
}

/* hover */
.botones_men > li:hover a {
  background: #fcef91;

  i,
  p {
    color: #787547;
  }
}
.botones_men > li:nth-child(2):hover > a:nth-child(1) {
  background: #ede78d;

  i,
  p {
    color: #787547;
  }
}

.botones_men > li:nth-child(3):hover > a:nth-child(1) {
  background: #f2ec8f;

  i,
  p {
    color: rgb(120, 117, 71);
  }
}

.botones_men > li:nth-child(4):hover > a:nth-child(1) {
  background: #ded883;
  

  i,
  p {
    color: rgb(120, 117, 71);
  }
}

.botones_men > li:nth-child(5):hover > a:nth-child(1) {
  background: #c9c477;
  

  i,
  p {
    color: rgb(120, 117, 71);
  }
}

.botones_men > li:nth-child(8) > a:nth-child(1) {
  background: #ff0445;
  text-align: center;
  width: 88px;
}

.botones_men > li:nth-child(8):hover > a:nth-child(1) {
  background: #ff044529;
  border-radius: 59%;
}

/* --- MEDIA QUERY: DISPOSITIVOS MÓVILES (<= 760px) --- */
@media (max-width: 760px) {
  .botones_men {
    background: none;
  }
  /* Hacer visible la hamburguesa */
  nav.nav_contenedor .hamburger {
    display: flex !important;
    margin: 15px 0;
  }

  /* Animación de la hamburguesa a una "X" cuando está activa */
  nav.nav_contenedor .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  nav.nav_contenedor .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  nav.nav_contenedor .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Transformar la barra horizontal en menú vertical desplegable */
  nav.nav_contenedor .botones_men {
    display: none !important; /* Forzar que se oculte por defecto */
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin: 10px 0;
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px 0;
  }

  /* REGLA CRÍTICA: Mostrar el menú con máxima prioridad cuando tenga la clase .active */
  nav.nav_contenedor .botones_men.active {
    display: flex !important;
  }

  nav.nav_contenedor .botones_men li {
    width: 100%;
    position: relative;
    margin: 0;
  }

  /* Ajustar los enlaces principales al formato móvil */
  nav.nav_contenedor .botones_men a {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
  }

  /* submenús móviles (Nivel 2 y 3) de manera vertical */
  nav.nav_contenedor .botones_men ul {
    position: static !important;
    box-shadow: none;
    background-color: #f7f9fa;
    border-radius: 0;
    width: 100%;
    display: none; /* Ocultos por defecto en móvil hasta que se haga hover o clic */
  }

  /* Mostrar submenús en móvil al pasar el cursor o heredar visualización */
  nav.nav_contenedor .botones_men li:hover > ul {
    display: block !important;
  }

  nav.nav_contenedor .botones_men ul a {
    width: 100%;
    padding-left: 40px !important;
    background-color: #f5f7f8;
  }

  nav.nav_contenedor .botones_men ul ul a {
    padding-left: 60px !important;
    background-color: #edf1f3;
  }
}