/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");
/*=============== VARIABLES CSS ===============*/ 
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(210, 32%, 99%);
  --text-color: hsl(205.4, 74.9%, 39%);
  --dark-color-light: hsla(210, 4%, 4%, .1);
  --white-color-light: hsla(210, 4%, 99%, .1);
  --gradient-x: linear-gradient(90deg,
              hsla(0, 0%, 0%, 0),
              hsl(210, 4%, 64%),
              hsla(0, 0%, 0%, 0));
  --gradient-y: linear-gradient(0,
              hsla(0, 0%, 0%, 0),
              hsl(210, 4%, 64%),
              hsla(0, 0%, 0%, 0));
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}
/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}
/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);

  width: 100%;
  height: 100%;
  background: #0b131e;
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/*=============== LAYOUT ===============*/
.container {
  margin-inline: 1.5rem;
}
.main {
  padding-top: 5rem;
}
.bg-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}
/*=============== SIDEBAR ===============*/
.sidebar {
  position: fixed;
  left: -100%;
  top: var(--header-height);
  width: 280px;
  height: 100%;
  padding: 2rem 1.5rem;
  background-color: var(--dark-color-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: var(--z-fixed);
  transition: left .4s;
}
.sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--gradient-y);
}
.sidebar__container {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  padding-bottom: 3rem;
  height: 100%;
}
.sidebar__logo {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  /* column-gap: .5rem; */
}
.sidebar__logo-img {
  width: 55px;
  margin-left: 7px;
}
.sidebar__logo-text {
  width: 200px;
}
.sidebar__content {
  position: relative;
  overflow: auto;
  overflow-x: hidden !important;
  padding-top: 2rem;
  scrollbar-width: none !important;
  height: 100vh; /* nuevo */
}
.sidebar__content::-webkit-scrollbar {
  display: none;
}
.sidebar__content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-x);
}
.sidebar__list {
  display: flex;
  flex-direction: column;
  row-gap: .25rem;
}
.sidebar .nav-links{
  height: 100%;
  /* padding: 30px 0 150px 0; */
  /* overflow: auto; */
}
.sidebar.close .nav-links{
  overflow: visible;
}
.sidebar .nav-links::-webkit-scrollbar{
  display: none;
}
.sidebar .nav-links .li{
  position: relative;
  list-style: none;
  transition: all 0.4s ease;
}
.sidebar .nav-links .li:hover{
  background: hsla(210, 4%, 99%, .1);
  border-radius: .25rem;
}
.sidebar .nav-links li .iocn-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar.close .nav-links li .iocn-link{
  display: block
}
.sidebar .nav-links li i{
  height: 50px;
  min-width: 65px;
  text-align: center;
  line-height: 50px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  /* transition: all 0.3s ease; */
}
.sidebar .nav-links li.showMenu i.arrow{
  transform: rotate(-180deg);
}
.sidebar.close .nav-links i.arrow{
  display: none;
}
.sidebar .nav-links li a{
  display: flex;
  align-items: center;
  text-decoration: none;
  /* column-gap: 0.8rem; */
}
.sidebar .nav-links li a .link_name{
  font-size: 17px;
  /* font-weight: 400; */
  /* color: #fff; */
  transition: all 0.3s ease;
}
.sidebar.close .nav-links li a .link_name{
  opacity: 0;
  pointer-events: none;
}
.sidebar .nav-links li .sub-menu{
  /* padding: 15px 0 0 50px; */
  margin-top: -10px;
  /* background: #1d1b31; */
  display: none;
}
.sidebar .nav-links li.showMenu .sub-menu{
  display: block;
}
.sidebar .nav-links li .sub-menu a{
  color: #fff;
  font-size: 13px;
  padding: 15px 0 0 60px;
  /* padding: 15px 0 0; */
  white-space: nowrap;
  opacity: 0.6;
  transition: all 0.4s ease;
}
.sidebar .nav-links li .sub-menu a:hover{
  opacity: 1;
}
.sidebar.close .nav-links li .sub-menu{
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
}
.sidebar.close .nav-links li:hover .sub-menu{
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar .nav-links li .sub-menu .link_name{
  display: none;
}
.sidebar.close .nav-links li .sub-menu .link_name{
  font-size: 18px;
  opacity: 1;
  display: block;
}
.sidebar__link {
  color: var(--text-color);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1.5rem;
  padding: 1rem;
  border-radius: .25rem;
  transition: background .3s;
}
.sidebar__link-floating {
  display: none;
}
.sidebar__link i {
  color: var(--white-color);
  font-size: 1.25rem;
}
.sidebar__link-name {
  /* color: #fff; */
  font-weight: var(--font-medium);
  transition: color .4s;
}
.sidebar__link:hover {
  background-color: var(--white-color-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--white-color);
}
.sidebar__link-submenu {
  /* color: #fff; */
  font-weight: var(--font-medium);
  transition: color .4s;
}
.sidebar__link-submenu:hover{
  color: var(--white-color);
}
.name-submenu{
  margin-left: 5px;
}
.sidebar__title span {
  display: block;
  position: relative;
  margin-block: 2rem 1.5rem;
  text-align: center;
  color: var(--white-color);
  font-size: var(--normal-font-size);
}
.sidebar__title span::before, 
.sidebar__title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
}
.sidebar__title span::before {
  background: linear-gradient(90deg, 
            hsla(0, 0%, 0%, 0), 
            hsl(210, 4%, 64%));
  left: 0;
}
.sidebar__title span::after {
  background: linear-gradient(90deg, 
            hsl(210, 4%, 64%), 
            hsla(0, 0%, 0%, 0));
  right: 0;
}
.sidebar__perfil {
  width: 45px;
  border-radius: 50%;
  /* border: 2px solid var(--white-color); */
}
.sidebar__config-profile {
  width: 100px;
  border-radius: 50%;
  /* border: 2px solid var(--white-color); */
}
.sidebar__account {
  display: flex;
  align-items: center;
  column-gap: .5rem;
}
.sidebar__name {
  font-size: 11px;
  color: var(--white-color);
  margin-bottom: .1rem;
  margin-right: 2rem;
  width: 80%;
}
.sidebar__email {
  font-size: 10px;
  color: #028eb2;
  font-weight: var(--font-medium);
}
.sidebar__account i {
  color: var(--white-color);
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
}
/* Show sidebar */
.show-sidebar {
  left: 0;
}
/* Active link */
.active-link {
  background-color: var(--white-color-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.active-link span {
  color: var(--white-color);
}
.sidebar__dropdown.hide {
  display: none;
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 300px) {
  .sidebar {
    width: 232px;
    padding-inline: 1rem;
  }
  .sidebar__account {
    flex-direction: column;
    row-gap: .5rem;
    text-align: center;
  }
  .sidebar__account i {
    margin: 0;
  }
}
/* For large devices */
@media screen and (min-width: 1024px) {
  .header__container {
    height: calc(var(--header-height) + 1.5rem);
  }
  .header__toggle {
    font-size: 1.5rem;
  }
  /* .sidebar .nav-links li i{
    
    min-width: 50px;
    
  } */
  .sidebar {
    left: 0;
    top: calc(var(--header-height) + 0rem);
    width: 300px;
    transition: width .4s;
  }
  .sidebar__container {
    padding-bottom: 4rem;
    overflow: hidden;
  }
  .sidebar__logo {
    transition: padding .4s;
  }
  .sidebar__link {
    position: relative;
    padding-inline: 1.5rem;
    column-gap: 2rem;
  }
  .sidebar__link i {
    font-size: 1.3rem;
  }
  .sidebar__link-name {
    transition: color .4s, opacity .4s;
  }
  .sidebar__title {
    position: relative;
  }
  .sidebar__title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-x);
    opacity: 0;
  }
  .sidebar__account {
    column-gap: 0.3rem;
    padding-left: .5rem;
    margin-top: auto;
  }
  .sidebar__logo-text, 
  .sidebar__title, 
  .sidebar__title::after, 
  .sidebar__title span {
    transition: opacity .4s;
  }
  .sidebar__link-floating {
    display: block;
    font-size: 10px;
    width: max-content;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    transition: color .4s, opacity .4s;
    opacity: 0;
  }
  .main {
    padding-left: 300px;
    padding-top: 6rem;
    transition: padding .4s;
  }
  /* Reduce sidebar */
  .show-sidebar {
    width: 0px;
  }
  .show-sidebar .sidebar__logo {
    padding-left: 1rem;
  }
  .show-sidebar .sidebar__logo-text,
  .show-sidebar .sidebar__link-name  {
    opacity: 0;
  }
  .show-sidebar .sidebar__title span {
    opacity: 0;
    pointer-events: none;
  }
  .show-sidebar .sidebar__title::after {
    opacity: 1;
  }
  .show-sidebar .sidebar__link:hover .sidebar__link-floating {
    opacity: 1;
    color: var(--white-color);
  }
  .show-sidebar .main {
    padding-left: 300px;
  }
  /* Add padding main */
  .main-pd {
    padding-left: 120px;
  }
}