header {
  display: flex;
  padding: 20px 80px;
  position: relative;
  background: white;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ebebeb;
  z-index: 100;

  .menu-toggle { display: none; }

  .burger-icon {
    top: 20px;
    z-index: 3;
    right: 20px;
    width: 30px;
    height: 20px;
    display: none;
    cursor: pointer;
    position: absolute;


    span {
      width: 100%;
      height: 3px;
      margin: 5px 0;
      display: block;
      background: #222;
      transition: all 0.3s ease;
    }
  }

  .menu-toggle:checked + .burger-icon {
    span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }

    span:nth-child(2) { opacity: 0; }

    span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
  }

  .profile-section {
    gap: 10px;
    display: flex;
    align-items: center;

    :where(a, button) {
      border: none;
      color: white;
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
      padding: 10px 20px;
      border-radius: 25px;
      text-decoration: none;
      background: var(--kuida-main-color);
    }

    /* Alquilar Espacio button - light brown/off-white background */
    a.btn-rent-space,
    .btn-rent-space {
      background: #F5E6D3 !important;
      color: #8B6F47 !important;
    }

    a.btn-rent-space:hover,
    .btn-rent-space:hover {
      background: #E8D5B7 !important;
    }

    a:last-child { background: none; color: inherit; }

    .profile-icon { width: 40px; border-radius: 50%; }
  }
}

@media(max-width: 768px) {
  header { padding: 20px; flex-wrap: wrap; }

  .logo { margin: auto; }

  .burger-icon { display: block !important; }

  .profile-section {
    top: 60px;
    z-index: 1000;
    right: 20px;
    display: none !important;
    padding: 20px;
    background: white;
    border-radius: 8px;
    position: absolute;
    flex-direction: column;
    border: 1px solid #ebebeb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    :where(a, button) { width: 100%; text-align: center; text-decoration: none; }
  }

  .menu-toggle:checked ~ .profile-section { display: flex !important; }
}
