/* Menú móvil */
@media screen and (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
  }

  nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    margin: 0;
  }

  nav.active ul {
    transform: translateY(0);
  }

  nav ul li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
  }

  nav.active ul li {
    opacity: 1;
    transform: translateY(0);
  }

  nav ul li:nth-child(1) { transition-delay: 0.1s; }
  nav ul li:nth-child(2) { transition-delay: 0.2s; }
  nav ul li:nth-child(3) { transition-delay: 0.3s; }
  nav ul li:nth-child(4) { transition-delay: 0.4s; }
  nav ul li:nth-child(5) { transition-delay: 0.5s; }
  nav ul li:nth-child(6) { transition-delay: 0.6s; }

  nav ul li a {
    font-size: 1.2rem;
    padding: 10px 20px;
    display: inline-block;
    width: 100%;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media screen and (max-width: 360px) {
  .nav-toggle {
    top: 15px;
    right: 15px;
    padding: 8px;
  }

  nav ul li a {
    font-size: 1.1rem;
    padding: 8px 16px;
  }
}
