.header1 {
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #000;
}
.nav-wrap {
  margin-top: 30px;
}
.nav-gvc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.1rem;
}
.nav-gvc ul li {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a2a44;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: 0.1s;
  border-radius: 40px;
  cursor: default;
}
/* separador: pipe (|) después de cada li excepto el último */
.nav-gvc ul li:not(:last-child)::after {
  content: "|";
  color: #b6c8da;
  font-weight: 300;
  margin-left: 0.9rem;
  margin-right: 0.3rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.mm-trigger {
  border: 1px solid #d9d9d9;
  padding: 10px;
  display: none;
  line-height: 21px;
  margin: 30px 10px;
  cursor: pointer;
  color: #333333;
  font-weight: bold;
  user-select: none; /* 禁止文本选择 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.mm-button {
  border: none;
  display: block;
  float: right;
  height: 24px;
  width: 24px;
  background-image: url(../img/mobile-menu.png);
  cursor: pointer;
}
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 1040;
}

.sidebar-overlay.active {
  visibility: visible;
  opacity: 1;
}

.sidebar-panel {
  position: fixed;
  top: 0;
  right: -380px; /* oculto a la derecha */
  width: 340px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1050;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e9edf2;
  overflow-y: auto;
}

.sidebar-panel.open {
  right: 0;
}

/* encabezado del sidebar */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.sidebar-header h5 {
  font-weight: 700;
  color: #0b1a33;
  margin: 0;
  letter-spacing: -0.02em;
}

.sidebar-header h5 i {
  color: #1d5b7a;
  margin-right: 8px;
}
.sidebar-header img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.close-sidebar {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #4a5a72;
  cursor: pointer;
  padding: 0 4px;
  transition: 0.15s;
  line-height: 1;
}

.close-sidebar:hover {
  color: #0b1a33;
  transform: rotate(90deg);
}

/* lista de navegación (ul/li estilo pipe) */
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-nav ul li {
  padding: 0.7rem 1rem;
  border-radius: 40px;
  font-weight: 500;
  color: #1f2a44;
  transition: 0.12s;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.sidebar-nav ul li:hover {
  background: #eef4fa;
  color: #0a4b6e;
}

.sidebar-nav ul li.active {
  background: #e6eef5;
  color: #0a4b6e;
  font-weight: 600;
}

/* separador sutil entre items (no se usa pipe en vertical, pero se respeta el estilo) */
.sidebar-nav ul li:not(:last-child) {
  border-bottom: 1px solid #f0f4f9;
}

@media only screen and (max-width: 959px) {
  .mm-trigger {
    display: block !important;
  }
  .nav-gvc {
    display: none;
  }
}
