* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: #0a0a0f;
  font-family: 'Rajdhani', sans-serif;
  color: #c0c8d8;
  overflow-x: hidden;
  max-width: 100%;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.08), transparent);
  animation: headerScan 7s linear infinite;
  pointer-events: none;
}

@keyframes headerScan {
  0%   { left: -30%; }
  100% { left: 130%; }
}

#header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  opacity: 0.5;
}

#header.scrolled {
  background: rgba(10, 10, 15, 0.96);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (prefers-reduced-motion: reduce) {
  #header::before { animation: none; }
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 76px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.header-logo:hover img {
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.85));
  transform: scale(1.05);
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.header-nav ul li a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0c8d8;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.header-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #00d4ff;
  box-shadow: 0 0 6px #00d4ff;
  transition: width 0.3s ease;
}

.header-nav ul li a:hover {
  color: #00d4ff;
}

.header-nav ul li a:hover::after {
  width: 100%;
}

.header-nav ul li a[aria-current="page"] {
  color: #00d4ff;
}

.header-nav ul li a[aria-current="page"]::after {
  width: 100%;
}

.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #00d4ff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}

.header-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.header-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-mobile-nav {
  display: none;
  background: rgba(10, 10, 15, 0.98);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.header-mobile-nav.open { max-height: 400px; }

.header-mobile-nav ul {
  list-style: none;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-mobile-nav ul li a {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c0c8d8;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.header-mobile-nav ul li a:hover {
  color: #00d4ff;
  padding-left: 8px;
}

.header-mobile-nav ul li a[aria-current="page"] {
  color: #00d4ff;
  padding-left: 8px;
}

/* 1440px+ — centra contenido, bordes vacíos */
@media (min-width: 1440px) {
  .header-inner {
    max-width: 1320px;
    padding: 0 64px;
  }
}

/* Laptop */
@media (max-width: 1280px) {
  .header-inner {
    padding: 0 40px;
    height: 84px;
  }
  .header-logo img { height: 68px; }
  .header-nav ul {
    gap: 28px;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 32px;
    height: 78px;
  }
  .header-logo img { height: 60px; }
  .header-nav ul {
    gap: 20px;
  }
  .header-nav ul li a {
    font-size: 14px;
  }
}

/* Tablet portrait — colapsa a hamburguesa */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 24px;
    height: 72px;
  }
  .header-logo img { height: 54px; }
  .header-nav { display: none; }
  .header-hamburger { display: flex; }
  .header-mobile-nav { display: block; }
}

/* Móvil */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
    height: 64px;
  }
  .header-logo img { height: 46px; }
}