/* ============================================================
   VARIABLES LOCALES DEL MENÚ
   (autónomas: no dependen de home.css ni intro.css)
   ============================================================ */
:root{
  --bg: #1A182A;
  --ink: #FFFFFF;
  --violet: #8B5CF6;
  --magenta: #EC4899;
  --accent: #FB923C;
  --gradient: linear-gradient(100deg, #8B5CF6 0%, #EC4899 50%, #FB923C 100%);
  --line: rgba(251, 146, 60, 0.35);
  --line-strong: rgba(251, 146, 60, 0.55);
  --font-main: 'Space Grotesk', sans-serif;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.menu-overlay{
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 26px 40px 40px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-overlay.open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-frame{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  z-index: 5;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.menu-topbar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 14px;
  flex-shrink: 0;
}
.menu-copyright{
  color: var(--ink);
  opacity: 0.6;
  margin: 0;
}
.menu-close{
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.menu-close:hover{
  color: var(--magenta);
  border-color: var(--magenta);
}

/* ============================================================
   TÍTULO
   ============================================================ */
.menu-title-wrap{
  text-align: center;
  margin-top: 30px;
  margin-bottom: 60px;
  flex-shrink: 0;
}
.menu-title{
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  background: var(--gradient);
  background-attachment: fixed;
  background-size: 100vw 100vh;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* ============================================================
   CONTENIDO
   ============================================================ */
.menu-content{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 0 4vw;
  flex: 1 0 auto;
  min-height: 0;
}

.menu-col-logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}
.menu-logo{
  width: min(90%, 520px);
  aspect-ratio: 821 / 270.87;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-logo img{
  width: 100%;
  height: auto;
  display: block;
}

.menu-col-right{
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  min-height: 100%;
}
.menu-right-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.menu-right-list li a{
  color: var(--ink);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
  cursor: pointer;
}
.menu-right-list li a:hover{
  color: var(--accent);
  padding-left: 8px;
}

.menu-say-hello-wrap{
  margin-top: auto;
  padding-top: 3rem;
}
.menu-say-hello{
  color: var(--ink);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.3s;
  display: inline-block;
  cursor: pointer;
}
.menu-say-hello:hover{
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.menu-footer{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 60px;
  padding-top: 20px;
  flex-shrink: 0;
  width: 100%;
}
.menu-footer a{
  color: var(--ink);
  text-decoration: none;
  opacity: 0.6;
  transition: color 0.3s, opacity 0.3s;
}
.menu-footer a:hover{
  color: var(--accent);
  opacity: 1;
}
.menu-footer span{
  color: var(--ink);
  opacity: 0.6;
}

.menu-mobile-close{ display: none; }

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 900px){
  .menu-content{
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 4vw;
  }
  .menu-col-logo{ padding-top: 0; }
  .menu-logo{ width: min(70%, 340px); }
  .menu-title-wrap{ margin-top: 20px; margin-bottom: 30px; }
  .menu-right-list li a{ font-size: 1.15rem; }
  .menu-say-hello{ font-size: 1.15rem; }
}

/* ============================================================
   MÓVIL
   ============================================================ */
@media (max-width: 525px){
  .menu-overlay{
    padding: 40px 24px 30px 24px;
    text-align: center;
  }
  .menu-topbar{
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 0.7rem;
  }
  .menu-topbar .menu-close{ display: none; }
  .menu-title-wrap{ display: none; }
  .menu-content{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
    flex: 1 0 auto;
  }
  .menu-col-logo{
    padding-top: 0;
    margin-bottom: 50px;
    align-items: center;
    width: 100%;
  }
  .menu-logo{
    width: 100%;
    max-width: 240px;
  }
  .menu-col-right{
    width: 100%;
    padding-top: 0;
    align-items: flex-start;
    text-align: left;
    min-height: 0;
  }
  .menu-right-list{
    width: 100%;
    gap: 1.1rem;
  }
  .menu-right-list li a{
    font-size: 1.05rem;
    font-weight: 500;
  }
  .menu-say-hello-wrap{
    display: block;
    margin-top: 1.5rem;
    padding-top: 0;
  }
  .menu-say-hello{ font-size: 1.05rem; font-weight: 600; }
  .menu-footer{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px 16px;
    width: 100%;
    margin-top: 60px;
    padding-top: 0;
    padding-bottom: 20px;
    font-size: 0.65rem;
  }
  .menu-mobile-close{
    display: block;
    flex-basis: 100%;
    order: 1;
    align-self: center;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    padding: 0 0 4px 0;
    border-bottom: 2px solid var(--accent);
    margin: 0 auto;
    width: fit-content;
  }
  .menu-footer > a{
    order: 2;
    margin: 0;
    font-size: 0.65rem;
    opacity: 0.6;
  }
  .menu-footer > span{
    order: 3;
    margin: 0;
    font-size: 0.65rem;
    opacity: 0.6;
    display: block;
    text-align: right;
  }
}