/* =======================
   NAVBAR
======================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: rgba(10,10,15,0.0);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
nav .logo a {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
nav .menu {
  display: flex;
  gap: 25px;
  align-items: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  padding: 8px 12px;
  border-radius: 5px;
}
nav a:hover {
  color: #ccc;
  background: rgba(255,255,255,0.1);
}


/* HAMBURGUESA MÓVIL */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 20;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Efecto animación (X al abrir) */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =======================
   RESPONSIVE
======================= */
@media(max-width: 768px) {
  nav { padding: 15px 20px; }
  .hamburger { display: flex; }

  nav .menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 220px;
    height: calc(100% - 60px);
    background: #111;
    flex-direction: column;
    gap: 15px;
    padding: 30px 20px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 15px rgba(0,0,0,0.4);
  }
  nav .menu.active {
    right: 0;
  }

  .service-card, .portfolio img {
    width: 90%;
  }
  footer .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}
/* =======================
   ANIMACIONES CON AOS
======================= */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}