/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(100,65,165,0.10); }

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

/* Playfair Display: serif elegante que contrasta con el cuerpo sans-serif */
.logo-wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  line-height: 1;
  background: linear-gradient(90deg, #0D0B1A 0%, var(--violet) 45%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Links de navegación ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--violet); background: rgba(100,65,165,0.07); }

.nav-cta {
  background: linear-gradient(90deg, var(--violet), var(--blue)) !important;
  color: white !important;
  border-radius: 30px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s, transform 0.2s !important;
  box-shadow: 0 4px 14px rgba(100,65,165,0.28) !important;
}
.nav-cta:hover { opacity: 0.88 !important; transform: translateY(-1px) !important; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 7px;
  background: none;
  border: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--off); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 99px;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menú móvil ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: white;
  z-index: 199;
  padding: 16px 24px 28px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(100,65,165,0.13);
}
.mobile-nav.open { display: block; }

.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.mobile-nav a {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover { background: var(--off); color: var(--violet); }

.mobile-nav .mob-cta {
  margin-top: 10px;
  display: block;
  text-align: center;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  color: white !important;
  border-radius: 30px;
  padding: 13px 20px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(100,65,165,0.28);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
}
