/* Estilos base del nav */
nav {
  transition: all 0.3s ease-out;
  will-change: transform, box-shadow;
}

/* Estilo sticky */
.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100vw;
  animation: navSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Contenedor flex */
nav .flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Estilos para los iconos SVG */
nav .flex a svg {
  transition: all 0.2s ease;
  vertical-align: middle;
}

nav .flex a:hover svg {
  transform: translateY(-2px);
}

/* Estilo específico para GitHub */
nav .flex a[aria-label="GitHub"]:hover svg {
  fill: #1a1a00;
}

/* Estilo específico para X */
nav .flex a[aria-label="X (Twitter)"] svg {
  fill: #000;
}

nav .flex a[aria-label="X (Twitter)"]:hover svg {
  fill: #333;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav ul {
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .sticky-nav {
    padding: 0.5rem 1rem;
  }
  
  nav .flex {
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
  }
}