.header {
  display: flex;
  justify-content: space-between;
  background-color: #000000;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.scrolled {
  background-color: #000000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body {
  transition: padding-top 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.scrolled .menu-dropdown {
  top: 33px;

}

.header-logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1024 / 245; /* Relación de aspecto real del logo.webp */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}
.header-links > li {
  position: relative;
}

.header-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.header-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #EB690B;
  transition: width 0.3s ease;
}

.header-links a:hover,
.header-links a.active {
  color: #EB690B;
}
.header-links li.active > a {
  color: #EB690B;
}

.header-links a:hover::after,
.header-links a.active::after {
  width: 100%;
}
.header-links li.active > a::after {
  width: 100%;
}

.header-links > li.has-children > a::before {
  content: '';
  display: inline-block;
  margin-right: 8px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.header-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10001;
}

.header-submenu li {
  margin: 0;
}

.header-submenu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  line-height: 1.25;
}

.header-submenu a::after {
  display: none;
}

.header-links > li:hover > .header-submenu,
.header-links > li:focus-within > .header-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: 40px;

  right: 0;
  background-color: #000000;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 25px 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ═══════════════ ESTADO ACTIVO ═══════════════ */
.menu-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-dropdown a {
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-dropdown a:hover,
.menu-dropdown a.active {
  color: #EB690B;
  transform: scale(1.15);
}

