/* Header Oscuro y Transparente */
.main-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.2); /* Oscuro con transparencia */
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
  /* Logo */
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10%;
  }
  
  .logo img {
    width: 50%;
    height: auto;
  }
  
  .logo-text {
    font-size: clamp(1rem, 5vw, 3rem);
    font-weight: bold;
    color: #ffffff;
  }
  
  /* Menú desplegable */
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav-list {
    list-style: none;
    padding: 0;
    margin-right: 60%;
    width: 100%;
    text-align: center;
}

  
  .nav-list li {
    margin: 20px 0;
  }
  
  .nav-list li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  .nav-list li a:hover {
    color: #58c2ff;
  }
  
  /* Botón Hamburguesa */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  
  .menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 5px;
  }
  
  /* Responsive */
  @media (min-width: 768px) {
    .menu-toggle {
      display: none;
    }
    .logo img {
      width: 30%;
    }
    .nav {
      position: static;
      width: auto;
      height: auto;
      flex-direction: row;
      background: none;
      backdrop-filter: none;
      left: 0;
      display: flex;
      margin-left: auto;
    }
    .nav-list {
      flex-direction: row;
      display: flex;
      gap: 30px;
    }
  }
  