/* Cabecera del home — solo nav/logo (sin estilos globales del sitio) */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(4,7,13,.1);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1.5px solid #00d4ff;
  box-shadow: 0 0 22px rgba(0,212,255,.4), 0 2px 0 rgba(0,212,255,.6);
  transition: background .5s ease, backdrop-filter .5s ease;
}
#nav.scrolled {
  background: rgba(4,7,13,.97);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.logo-fixed {
  position: fixed;
  top: 0;
  left: 30px;
  z-index: 60;
  height: 100px;
  width: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-fixed img {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 0 22px rgba(0,212,255,.45));
  transition: filter .25s ease;
}
.logo-fixed:hover img {
  filter: drop-shadow(0 0 32px rgba(0,212,255,.7));
}
@media (max-width: 1023px) {
  .logo-fixed { display: none; }
}

.logo-mobile {
  position: fixed;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  height: 80px;
  width: auto;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.logo-mobile img {
  height: 66px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(0,212,255,.6));
  transition: filter .25s ease;
}
.logo-mobile:hover img {
  filter: drop-shadow(0 0 22px rgba(0,212,255,.85));
}
@media (max-width: 1023px) {
  .logo-mobile { display: flex; }
}

.nav-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
}
@media (min-width: 1024px) {
  .nav-mobile-bar { display: none; }
}

#menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
#menu-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
#menu-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(4,7,13,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
#mobile-menu.open { display: flex; }
@media (min-width: 1024px) {
  #mobile-menu { display: none !important; }
}

.mobile-nav-item {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.mobile-nav-item:last-child { border-bottom: none; }
.mobile-nav-item:hover { color: #fff; padding-left: 28px; }

.nav-desktop-bar {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 16px 40px 16px 160px;
}
@media (min-width: 1024px) {
  .nav-desktop-bar { display: flex; }
}

.nav-desktop-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}
.nav-desktop-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.nav-desktop-links a:hover,
.nav-desktop-links a[aria-current="page"] {
  color: #fff;
}

.nav-sobre-mi {
  color: #00d4ff !important;
  position: relative;
}
.nav-sobre-mi::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #00d4ff;
  opacity: 0.5;
}

/* CTA WhatsApp de la cabecera (cyan del home) */
#nav .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #04070d;
  background: linear-gradient(180deg, #7ce6ff, #00d4ff);
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.2) inset,
    0 8px 30px -8px rgba(0,212,255,.7),
    0 2px 0 rgba(0,0,0,.2);
  transition: all .25s ease;
}
#nav .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 14px 38px -6px rgba(0,212,255,.85);
  filter: brightness(1.05);
}
#nav .btn-primary.icon-only {
  padding: 10px;
  flex-shrink: 0;
}
#nav .btn-primary.with-label {
  font-size: 13px;
  padding: 8px 16px;
}
#nav .btn-primary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
#nav .btn-primary.with-label svg {
  width: 14px;
  height: 14px;
}
