.navmenu {
  position: fixed;
  width: 100%;
  height: 24px;
  top: 0;
  z-index: 2;
  background-color: #ffffff;
  // transition: box-shadow 0.450s;
  border-radius: 4px;
  // box-shadow: 1px 5px 7px -7px;
  display: flex;
  align-items: center;

  // border: 1px solid yellow;/***********************************/   

  &__cont {
    display: flex;
    position: relative;
    overflow: hidden;
    height: 24px;
    float: left;
    flex-wrap: nowrap;
    align-items: center;
    cursor: pointer;
    transition: .5s ease;
    // border: 0.1px solid yellow;/***********************************/    

    &:not(:last-child)::after {
      content: "";
      display: inline-block;
      width: 1px; // Ancho de la línea vertical
      height: 12px; // Altura proporcional (centrada en los 24px del contenedor)
      background-color: #d1d1d1; // Color gris suave para que no compita con el texto
      margin-left: 2px;
      margin-right: 2px;
      pointer-events: none;
    }

    & a {
      height: 22px;
      position: relative;
      padding-left: 8px;
      padding-right: 8px;
      display: flex;
      align-items: center;
      justify-content: left;
      text-decoration: none;
      @include selectNo;

      & svg {
        position: relative;
        top: 0px;
        width: 16px;
        height: 16px;
        margin-left: 0px;
        margin-right: 0px;
        opacity: 1;
        fill: gray;

        pointer-events: none;
        user-select: none;
        text-decoration: none;
        // border: 0.1px solid red;/***********************************/ 
      }

      & span {
        display: inline-block;
        width: min-content;
        opacity: 1;
        font-family: Roboto;
        font-weight: 500;
        font-size: 10px;

        color: #000;
        margin-left: 4px;
        margin-right: 4px;

        pointer-events: none;
        user-select: none;
        text-decoration: none;
        white-space: nowrap;

        backface-visibility: hidden;
        transform: translateZ(0) scale(1.0, 1.0);
        //border: 0.1px solid red;/***********************************/ 

        //border: 1px solid red;         
      }

      // border: 1px solid red;/***********************************/ 
    }

    &:hover {
      background-color: hsl(0, 0%, 96%);

      & a {
        border-bottom: 2px solid $cs-blue;

        & svg {
          fill: $cs-blue;
          opacity: .85;
        }
      }
    }

    .navmenu__submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #ffffff;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
      padding: 4px 0;
      z-index: 100;
      flex-direction: column;
      width: 100%;

      .navmenu__submenu-item {
        display: flex;
        align-items: center;
        padding: 6px 8px;
        text-decoration: none;
        color: #333333;
        font-size: 10px;
        font-family: Roboto, sans-serif;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s ease;

        svg {
          width: 12px;
          height: 12px;
          margin-right: 6px;
          fill: $cs-blue;
          @include selectNo;
        }

        span {
          @include selectNo;
        }

        &:hover {
          background-color: hsl(0, 0%, 96%);

          border-bottom: 1px solid $cs-blue;

          & svg {
            fill: $cs-blue;
            opacity: .85;

          }
        }
      }
    }

    &--has-submenu {

      // Icono de flecha descendente (caret/arrow)
      .navmenu__arrow {
        width: 16px;
        height: 16px;
        margin-left: 4px;
        fill: #666666;
        transition: transform 0.3s ease;
      }

      &:hover {
        overflow: visible; // Permite que el submenú flote fuera de los 24px de alto del navmenu

        .navmenu__submenu {
          display: flex;
        }

        .navmenu__arrow {
          transform: rotate(180deg);
        }
      }
    }

  }

}

.fullcont {
  .navmenu {
    position: fixed;
    width: 98%;
    height: 24px;
    top: 0;
    z-index: 2;
    background-color: #ffffff;
    // transition: box-shadow 0.450s;
    border-radius: 4px;
    // box-shadow: 1px 5px 7px -7px;
    display: flex;
    align-items: center;
    margin-left: 7px;

    // border: 1px solid yellow;/***********************************/   

    &__cont {
      display: flex;
      position: relative;
      overflow: hidden;
      height: 24px;
      float: left;
      flex-wrap: nowrap;
      align-items: center;
      cursor: pointer;
      transition: .5s ease;
      // border: 0.1px solid yellow;/***********************************/    

      &:not(:last-child)::after {
        content: "";
        display: inline-block;
        width: 1px; // Ancho de la línea vertical
        height: 12px; // Altura proporcional (centrada en los 24px del contenedor)
        background-color: #d1d1d1; // Color gris suave para que no compita con el texto
        margin-left: 2px;
        margin-right: 2px;
        pointer-events: none;
      }

      & a {
        height: 22px;
        position: relative;
        padding-left: 8px;
        padding-right: 8px;
        display: flex;
        align-items: center;
        justify-content: left;
        text-decoration: none;
        @include selectNo;

        & svg {
          position: relative;
          top: 0px;
          width: 16px;
          height: 16px;
          margin-left: 0px;
          margin-right: 0px;
          opacity: 1;
          fill: gray;

          pointer-events: none;
          user-select: none;
          text-decoration: none;
          // border: 0.1px solid red;/***********************************/ 
        }

        & span {
          display: inline-block;
          width: min-content;
          opacity: 1;
          font-family: Roboto;
          font-weight: 500;
          font-size: 10px;

          color: #000;
          margin-left: 4px;
          margin-right: 4px;

          pointer-events: none;
          user-select: none;
          text-decoration: none;
          white-space: nowrap;

          backface-visibility: hidden;
          transform: translateZ(0) scale(1.0, 1.0);
          //border: 0.1px solid red;/***********************************/ 

          //border: 1px solid red;         
        }

        // border: 1px solid red;/***********************************/ 
      }

      &:hover {
        background-color: hsl(0, 0%, 96%);

        & a {
          border-bottom: 2px solid $cs-blue;

          & svg {
            fill: $cs-blue;
            opacity: .85;
          }
        }
      }

      .navmenu__submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
        padding: 4px 0;
        z-index: 100;
        flex-direction: column;
        width: 100%;

        .navmenu__submenu-item {
          display: flex;
          align-items: center;
          padding: 6px 8px;
          text-decoration: none;
          color: #333333;
          font-size: 10px;
          font-family: Roboto, sans-serif;
          font-weight: 500;
          cursor: pointer;
          transition: background-color 0.2s ease;

          svg {
            width: 12px;
            height: 12px;
            margin-right: 6px;
            fill: $cs-blue;
            @include selectNo;
          }

          span {
            @include selectNo;
          }

          &:hover {
            background-color: hsl(0, 0%, 96%);

            border-bottom: 1px solid $cs-blue;

            & svg {
              fill: $cs-blue;
              opacity: .85;

            }
          }
        }
      }

      &--has-submenu {

        // Icono de flecha descendente (caret/arrow)
        .navmenu__arrow {
          width: 16px;
          height: 16px;
          margin-left: 4px;
          fill: #666666;
          transition: transform 0.3s ease;
        }

        &:hover {
          overflow: visible; // Permite que el submenú flote fuera de los 24px de alto del navmenu

          .navmenu__submenu {
            display: flex;
          }

          .navmenu__arrow {
            transform: rotate(180deg);
          }
        }
      }
    }
  }
}

/*brand*/

/*CONTROL THE RESPONSIVE*/

/*Hide the regulars icons on mobiles*/
.navmenu__cont--normal {

  @include respond (table-land) {
    display: none;
  }

}

/*navmenu__cont--normal*/

/*Show the more on mobiles*/
.navmenu__cont--menu {
  display: none;

  & a {
    border-bottom: none;

    &:hover {
      border-bottom: none;
    }

  }

  & a svg {
    width: 24px;
    height: 24px;
    opacity: 1;
  }

  @include respond (table-land) {
    display: inline-block;
  }


}

/*navmenu__cont--menu*/

.navmenu--selected {
  //border: 5px solid red;/***********************************/ 
  border-bottom: 5px solid rgba(white, 1);

  & a {
    & svg {
      fill: white;
      opacity: 1;
    }

    & span {
      font-weight: 500;
      opacity: 1;
    }
  }

}