 :root {
      --morado: #8c52ff;
      --fondo: #f4f4f8;
      --texto: rgb(43, 30, 79);
    }

nav {
      position: fixed;
      width: 100%;
      top: -100px;
      left: 0;
      background: var(--fondo);
      color: var(--texto);
      padding: 1rem 2rem;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      transition: top 0.5s ease, opacity 0.5s ease;
    }

    nav.show {
      top: 0;
      opacity: 1;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 1.5rem;
    }

    nav ul li a {
      text-decoration: none;
      color: var(--texto);
      font-weight: 500;
      transition: color 0.3s ease;
    }

    nav ul li a:hover {
      color: var(--morado);
    }

    .menu-toggle {
      display: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--texto);
    }

    @media screen and (max-width: 768px) {
      nav ul {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--fondo);
        flex-direction: column;
        align-items: center;
        display: none;
      }

      nav ul.active {
        display: flex;
      }

      .menu-toggle {
        display: block;
      }
    }
