/* ==============================
   HEADER Y NAVEGACIÓN
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --bit-black: #0a0a0a;
  --bonus-blue: #2d7ff9;
  --power-up-pink: #ff2d95;
  --glitch-green: #00ff88;
  --yummy-yellow: #ffd300;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --neutral-light: #f5f5f5;
  --neutral-medium: #e9ecef;
  --neutral-dark: #dee2e6;
}

body {
  background-color: var(--neutral-light);
  color: var(--bit-black);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* GIFs laterales */
.side-gifs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.gif-left,
.gif-right {
  position: absolute;
  width: 120px;
  height: 120px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gif-left {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gif-right {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gif-left img,
.gif-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Header principal */
header {
  padding: 20px 0;
  background-color: var(--bit-black);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(45deg, var(--power-up-pink), var(--bonus-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 0 10px rgba(255, 45, 149, 0.3);
  cursor: pointer;
}

.nav-left,
.nav-right {
  display: flex;
  list-style: none;
}

.nav-left li,
.nav-right li {
  margin: 0 15px;
}

.nav-left a,
.nav-right a {
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-left a::before,
.nav-right a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-left a:hover::before,
.nav-right a:hover::before {
  left: 100%;
}

.nav-left a:hover {
  background-color: var(--glitch-green);
  box-shadow: 0 0 15px var(--glitch-green);
}

.nav-right a:hover {
  background-color: var(--yummy-yellow);
  box-shadow: 0 0 15px var(--yummy-yellow);
}
/* Estado activo del enlace */
.nav-link.active {
  background-color: var(--glitch-green);
  color: var(--bit-black);
  box-shadow: 0 0 15px var(--glitch-green);
  transition: all 0.3s ease;
}

/* Media queries para header y nav en móviles */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  nav {
    flex-wrap: wrap; /* Apila elementos si no caben */
    justify-content: center;
  }

  .nav-left,
  .nav-right {
    width: 100%;
    justify-content: center;
    margin: 5px 0;
  }

  .nav-left li,
  .nav-right li {
    margin: 0 8px;
  }

  .nav-left a,
  .nav-right a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .logo {
    position: relative;
    left: 0;
    transform: none;
    text-align: center;
    width: 100%;
    font-size: 24px;
    margin: 10px 0;
  }

  /* Opcional: ocultar gifs laterales en móvil para optimizar espacio */
  .side-gifs {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-left a,
  .nav-right a {
    font-size: 13px;
    padding: 5px 10px;
  }

  .logo {
    font-size: 20px;
  }
}
