/* Header styles extraídos de style.css */
.main-header {
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid #111;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none !important;
}

.header-logo {
  height: 120px;
  width: auto;
  display: block;
}

.site-title-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1000;
  width: 30px;
  height: 30px;
  margin-left: auto;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color 0.3s;
  margin: 14px auto;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.category-nav {
  background: none;
  padding: 0;
}

.category-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
}

.category-nav li {
  margin: 0;
}

.category-nav a {
  color: #111;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: .3em .8em;
  border-radius: 2em;
  transition: background .2s, color .2s, box-shadow .2s;
  text-transform: uppercase;
}

.category-nav a:hover,
.category-nav a:focus {
  background: #111;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
.language-selector ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.language-selector li {
    display: inline;
}
.language-selector a {
    text-decoration: none;
    color: #555; /* Adjusted text color */
    font-weight: normal;
    font-size: 0.9rem;
}
.language-selector a.selected {
    font-weight: bold;
    text-decoration: none; /* Removed underline */
    color: #121212; /* Updated selected text color */
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
  }
  .site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .menu-toggle {
    display: block;
  }
  .category-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg);
    padding: 80px 20px 20px;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
  }
  .category-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .category-nav a {
    display: block;
    padding: 0.8em 1em;
    font-size: 1.1rem;
  }
  body.menu-open .menu-toggle .menu-icon {
    background-color: transparent;
  }
  body.menu-open .menu-toggle .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  body.menu-open .menu-toggle .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
  body.menu-open .category-nav {
    right: 0;
    visibility: visible;
    opacity: 1;
  }
  body.menu-open .menu-overlay {
    display: block;
    opacity: 1;
  }
}