﻿/**
 * Estilos del Módulo de Navegación.
 * Controla la barra superior fija, enlaces de escritorio y el menú desplegable móvil.
 */
/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 70px;
  background: rgba(20,20,22,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.nav-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--gold); background: rgba(216,197,184,0.07); }

.btn-nav {
  background: var(--accent-gradient) !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.btn-nav:hover { opacity: 0.88; background: unset; }

/* ─── PÍLDORA DUAL RESALTADA (SPLIT PILL) ─── */
.nav-split-pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent-gradient);
  border-radius: 9999px;
  padding: 2px 4px;
  box-shadow: 0 2px 12px rgba(205, 167, 141, 0.28);
  margin-left: 0.5rem;
}

.split-pill-item {
  padding: 0.45rem 1.05rem !important;
  border-radius: 9999px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  transition: background 0.2s ease, opacity 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.split-pill-item:hover {
  background: rgba(0, 0, 0, 0.09) !important;
}

.split-pill-divider {
  width: 1px;
  height: 18px;
  background: rgba(17, 17, 17, 0.22);
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(20,20,22,0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a,
.mobile-menu .mobile-menu-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border2);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); }
