/* Nuevos estilos para librotk, con w3 y esta como complemento */
.menushadow {
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
}

.nodecoration {
  text-decoration: none;
  color: inherit;
  margin: 1vw;
}

.alignder {
  right: 0px;
}

.alignizq {
  left: 0px;
}

.imglgwc {
  height: 2.5rem;
  width: auto;
  vertical-align: middle;
}

.toshowmovil {
  display: none;
}

.toshowpc {
  display: block;
}

@media (max-width: 700px) {
  .toshowmovil {
    display: block;
  }

  .toshowpc {
    display: none;
  }

  .w3-xlarge {
    font-size: 18px !important;
  }
}

.w3-dropdown-content.w3-show {
  display: block !important;
  z-index: 1000;
}

.text-center {
  text-align: center;
}

.topmargin {
  margin-top: -10px;
}

#mainNav {
  position: sticky;
  top: 0;
  z-index: 100 !important;
  overflow: visible !important;
}

#mnrPublic {
  min-width: 280px;
  right: 0;
  top: 52px;
  z-index: 110 !important;
  position: absolute;
  border-radius: 0 0 0 10px;
  display: none;
}

/* Menú Vertical Forzado */
#mnrPublic a {
  display: block !important;
  width: 100% !important;
  padding: 14px 20px !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header {
  position: relative;
  z-index: 1;
}

.cookies-cont {
  position: fixed;
  bottom: 0px;
  width: 100%;
  height: auto;
  z-index: 999999;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
}

.w3-margin-lg {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
  margin-left: 3rem !important;
  margin-right: 3rem !important;
}

.img_share {
  width: 35px;
  height: 35px;
  margin: 10px;
}

/* New css para workarea */
:root {
  --ws: 250px;
  --wm: 70px;
}

#mySidebar {
  width: var(--ws);
  height: 100vh;
  position: fixed;
  transition: 0.3s;
  z-index: 999;
  overflow: visible !important;
  left: 0;
  top: 0;
}

#mainContent {
  margin-left: var(--ws);
  transition: 0.3s;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Clases para 'Menu Arriba' */
#mySidebar.hidden {
  display: none !important;
}

#mainContent.hidden {
  margin-left: 0 !important;
  display: block !important;
}

/* ESCRITORIO: Manejo de mini y submenús al frente (siempre) */
@media (min-width: 701px) {
  #mySidebar.mini {
    width: var(--wm) !important;
  }

  #mainContent.mini {
    margin-left: var(--wm) !important;
  }

  #mySidebar .w3-dropdown-hover {
    position: relative;
  }

  #mySidebar .w3-dropdown-content {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    min-width: 220px !important;
    z-index: 1005 !important;
  }

  #mySidebar.mini span {
    display: none;
  }

  #mySidebar.mini .fa-caret-down {
    display: none;
  }
}

/* MÓVIL: Overlay y comportamientos */
@media (max-width: 700px) {
  #mySidebar {
    width: 250px !important;
    display: none;
  }

  #mySidebar.w3-show {
    display: block !important;
  }

  #mainContent {
    margin-left: 0 !important;
  }

  #mainContent.mini {
    margin-left: 0 !important;
  }

  /* En móvil EXPANDIDO: menús hacia abajo */
  #mySidebar .w3-dropdown-content {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border-left: 2px solid var(--w3-theme);
    padding-left: 10px;
  }

  /* En móvil COLAPSADO (.mini): barra de 70px y menús al frente */
  #mySidebar.mini {
    width: var(--wm) !important;
    display: block !important;
  }

  #mySidebar.mini span {
    display: none;
  }

  #mySidebar.mini .fa-caret-down {
    display: none;
  }

  #mySidebar.mini .w3-dropdown-hover {
    position: relative;
  }

  #mySidebar.mini .w3-dropdown-content {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: 220px !important;
    min-width: 220px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    padding-left: 0 !important;
    z-index: 1005 !important;
    display: none !important;
  }

  #mySidebar.mini .w3-dropdown-hover:hover .w3-dropdown-content {
    display: block !important;
  }
}

#profileDropdown {
  right: 0;
  min-width: 200px;
  z-index: 1001 !important;
  top: 100%;
  position: absolute;
  display: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.w3-show-profile {
  display: block !important;
}

header.w3-bar {
  overflow: visible !important;
  position: sticky;
  top: 0;
  /*z-index: 1000 !important;*/
}

.hidden {
  display: none !important;
}

.x-small {
  font-size: 0.7rem;
}

.fw-600 {
  font-weight: 600;
}

.transition-hover {
  transition: all 0.3s ease;
}

.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.coltm2 {
  display: contents;
}

.rowtm2 {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.inrowtm2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.w3-txtlithteme {
  color: #fff !important;
}

.btnhmbrgrwithtxt {
  display: flex;
  align-items: center;
  font-size: 3vh;
}
.noshow{
  display: none;
}
#mySidebar .w3-dropdown-hover i.fa-caret-down {
  transform: rotate(-90deg);
  transition: 0.3s;
}

#mySidebar.mini .w3-dropdown-hover span {
  display: none;
}

@media (max-width: 700px) {
  #mySidebar {
    width: 100%;
    transform: translateY(-101%);
  }

  #mySidebar.w3-show {
    transform: translateY(0);
    width: 100% !important;
  }

  #mainContent {
    margin-left: 0 !important;
  }

  #mySidebar.mini-mobile {
    transform: translateY(0);
    width: var(--wm) !important;
  }

  #mainContent.mini-mobile {
    margin-left: var(--wm) !important;
  }

  /* On mobile, dropdowns can stay normal or also fly out if screen allows */
  #mySidebar .w3-dropdown-hover:hover>.w3-dropdown-content {
    left: 0 !important;
    position: relative !important;
    width: 100%;
  }
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
}