/* RESPONSIVE
   ========================================================================== */

.open #main-nav {
    display: inline-block;
    position: fixed;
    right: 0;
    z-index: 200;
}

/* OVERLAY */

.theme-grey-blue .nav-icon, 
.theme-dark .nav-icon
{background-color: rgba(255, 255, 255, 0.6);}

/* Hamburguer Menu Button */
.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  /* Liquid Glass */
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 0.5px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    inset 1px 0 0 rgba(255,255,255,0.14),
    inset -1px 0 0 rgba(255,255,255,0.07),
    0 4px 16px rgba(0,0,0,0.12);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* Specular highlight */
.nav-icon::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 18%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.50) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.nav-icon:hover {
  background: rgba(255,255,255,0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    inset 0 -1px 0 rgba(0,0,0,0.07),
    inset 1px 0 0 rgba(255,255,255,0.18),
    inset -1px 0 0 rgba(255,255,255,0.09),
    0 6px 22px rgba(0,0,0,0.18);
}

.nav-icon.open { mix-blend-mode: normal; }

.nav-icon span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  height: 2px;
  width: 20px;
  background: var(--pure-black);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease-in-out, top 0.25s ease-in-out, width 0.25s ease-in-out;
}

/* Centramos todo el bloque con offset relativo */
.nav-icon span:nth-child(1) { top: calc(50% - 6px); }
.nav-icon span:nth-child(2),
.nav-icon span:nth-child(3) { top: 50%; }
.nav-icon span:nth-child(4) { top: calc(50% + 6px); }

/* Open state */
.nav-icon.open span:nth-child(1),
.nav-icon.open span:nth-child(4) {
  top: 50%;
  width: 0;
}
.nav-icon.open span:nth-child(2) {
  transform: translateX(-50%) rotate(45deg);
}
.nav-icon.open span:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
}




.menu-overlay {display: none;}



/* Overlay closing cross */
.overlay .overlay-close {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 19px;
    top: 18px;
    overflow: hidden;
    border: none;
    background: transparent;
    text-indent: 200%;
    color: transparent;
    outline: none;
    z-index: 100;
    padding: 0;
}

.overlay .overlay-close .icon {
    position: relative;
    width: 100%;
    height: 100%;
    float: left;
}

.overlay .overlay-close .icon:after {
    content: '';
    width: 100%;
    height: 2px;
    background: #fff;
    display: block;
    transform: rotate(-45deg);
    border-radius: 5px;
    position: relative;
    top: 14px;
    left: 0;
}
.overlay .overlay-close .icon:before {
    content: '';
    width: 100%;
    height: 2px;
    background: #fff;
    display: block;
    transform: rotate(45deg);
    border-radius: 5px;
    position: relative;
    top: 16px;
    left: 0;
}

/* Menu style */


.overlay nav {
    text-align: center;
    position: relative;
    top: 49%;
    float: none;
    margin: 0 10%;
    width: auto;
    font-size: 54px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* Effects */
.overlay-hugeinc {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0s, visibility 0s 0s;
    transition: opacity 0s, visibility 0s 0s;
    z-index: 150; /* Above chatbot trigger (100) and project nav (99) */
}

.overlay-hugeinc.open {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0s;
    transition: opacity 0s;
    
}

.overlay-hugeinc ul {
    -webkit-perspective: 1200px;
    perspective: 1200px;
}

.overlay-hugeinc  ul {
    opacity: 0.4;
    -webkit-transform: translateY(-25%) rotateX(35deg);
    transform: translateY(-25%) rotateX(35deg);
    -webkit-transition: -webkit-transform 1.5s, opacity 1s;
    transition: transform 1.5s, opacity 1s;
}

.overlay-hugeinc.open  ul {
    opacity: 1;
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

.overlay-hugeinc.close  ul {
    -webkit-transform: translateY(25%) rotateX(-35deg);
    transform: translateY(25%) rotateX(-35deg);
}