@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;700&display=swap');

:root {
  --neon-cyan: #00f3ff;
  --neon-pink: #bc13fe;
  --neon-purple: #8a2be2;
  --dark-bg: #050505;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
  --font-orbitron: 'Orbitron', sans-serif;
  --font-heebo: 'Heebo', sans-serif;
  --font-size: 16px;
}

html {
  box-sizing: border-box;
  font-family: var(--font-heebo);
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  z-index: 2;
  background-color: var(--dark-bg);
  color: var(--text-color);
}

/* Custom Neon Scrollbar */
body::-webkit-scrollbar {
  appearance: none;
  width: 10px;
}

body::-webkit-scrollbar:vertical {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--neon-purple);
  border-radius: 20px;
  border: 1px solid var(--dark-bg);
}

body::-webkit-scrollbar-track {
  background-color: #111;
  border-radius: 10px;
}

/* Header Styles */
.header {
  width: 100%;
  height: 4rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background: var(--color-red);
  border-bottom: 2px solid var(--color-red-dark);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  z-index: 1000;
  padding: 0 1rem;
}

.logoHeader {
  display: flex;
  /* Show by default now, or control via JS */
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.header-logo {
  height: 3.6rem;
  /* 90% of header height (4rem) to ensure it doesn't exceed */
  max-height: 3.6rem;
  width: auto;
  object-fit: contain;
}

.logoHeader a {
  font-family: 'Oswald', sans-serif;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navegador {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

/* Hamburger Button */
.hamburger {
  display: none;
  cursor: pointer;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.hamburger i {
  font-size: 2rem;
}

.hamburger:hover {
  opacity: 0.8;
}

.menu-mobile-header {
  display: none;
}

@media screen and (max-width: 1024px) {
  .hamburger {
    display: flex;
    align-items: center;
  }

  .navegador {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2000;
    padding: 2rem;
  }

  .navegador.active {
    left: 0;
  }

  .navegador a {
    font-size: 1.8rem;
    width: 100%;
    text-align: center;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .menu-mobile-header {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    color: var(--neon-cyan);
  }

  .menu-mobile-header i {
    font-size: 2.5rem;
  }
}

.navegador a {
  text-decoration: none;
  color: var(--color-white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.navegador a:hover {
  background: var(--color-red-dark);
  border-color: var(--color-white);
}

.subNavegador {
  display: none;
  /* Hide old subnav for now or style it if needed */
}

/* Principal Container */
.principal {
  width: 100%;
  min-height: 90vh;
  margin-top: 4rem;
  /* Account for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Preloader */
.preloader {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--neon-cyan);
  border-radius: 50%;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Footer / Pie */
.pie {
  width: 100%;
  background-color: #000;
  color: #fff;
  z-index: 100;
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
}

.contenidoPie {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contenidoPie a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: color 0.3s;
}

.contenidoPie a:hover {
  color: var(--neon-cyan);
}

/* Responsive */
@media screen and (min-width: 1024px) {
  .header {
    padding: 0 3rem;
  }

  .navegador a {
    font-size: 1rem;
  }
}