:root {
  --green: #7fcc00;
  --green-dark: #6ab300;
  --green-text: #2a4500;
  --black: #0a0a0a;
  --surface: #141414;
  --surface-2: #1e1e1e;
  --surface-3: #272727;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.55);
  --text-3: rgba(255, 255, 255, 0.3);
  --danger: #ff5c5c;
  --nav-height: 52px;
  --font-ui: 'DM Sans', sans-serif;
  --font-brand: 'Bebas Neue', sans-serif;
  --t: 0.18s ease;
  --t-drop: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background-color: #1c1c1c;
  width: 98%;
  border-radius: 15px;
  margin: 5px auto 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

header a > .logo-header {
  height: 80px;
}

.menu-options {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.menu-options .language {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

/* ── Selector de idioma ── */
.lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  margin: 0 10px;
  /* height: 30px; */
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.lang-wrap:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
}

.lang-icon {
  color: var(--text-2);
  flex-shrink: 0;
  pointer-events: none;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  padding-right: 14px;
}
.lang-select option {
  background: var(--surface-2);
  color: var(--text-1);
}

.select-chevron {
  position: absolute;
  right: 8px;
  font-size: 22px;
  pointer-events: none;
  color: var(--text-3);
}

.profile {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 7px 20px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: 0.5s all;
}

.profile img {
  height: 20px;
  width: 20px;
  object-fit: cover;
  background-color: gray;
  padding: 5px;
  border-radius: 25px;
}
.profile span {
  margin: 0 5px;
  font-size: 17px;
}

.profile i {
  position: relative;
  top: 3px;
  transition: 0.5s all;
}
.profile:hover {
  cursor: pointer;
  background-color: #1c1c1c;
}

.profile:hover > i {
  top: 5px;
}

/* Usuario */
.user-menu {
  position: relative;
}
.user-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* Dropdown */
.dropdown {
  position: absolute;
  right: 0;
  top: 55px;
  z-index: 20;
  background-color: #1c1c1c;
  color: #000;
  min-width: 150px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: none;
  overflow: hidden;
}
.dropdown .dropdown-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 12px;
}

.dropdown .dropdown-item a,
.dropdown .dropdown-item button {
  display: block;
  text-decoration: none;
  color: #fff;
  margin-left: 5px;
  font-size: 14px;
}
.dropdown .dropdown-item button {
  background: none;
  outline: none;
  border: none;
  padding: 0;
}

.dropdown .dropdown-item:last-child a,
.dropdown .dropdown-item:last-child i,
.dropdown .dropdown-item:last-child button {
  color: red;
}

.dropdown .dropdown-item:hover {
  background-color: #f2f2f2;
}

@media (max-width: 768px) {
  .menu-options .lang-wrap {
    display: none;
  }
  header a > .logo-header {
    height: 50px;
  }
}
@media (max-width: 560px) {
  header {
    width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 10px 15px;
  }
}
@media (max-width: 480px) {
  .profile {
    padding: 6px;
    border-radius: 25px;
  }

  .profile img {
    height: 25px;
    width: 25px;
  }

  .profile .username,
  .profile .user-info > i {
    display: none;
  }
}
