/* --- Estilos generales del header --- */
header {
  background-color: #0f0f0f;
  color: #fff;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1000;
  border-bottom: 2px solid var(--neon-red);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo img.logo-img {
  height: 100px;
  max-width: 180px;
  filter: drop-shadow(0 0 8px var(--neon-red));
}

/* --- Menú principal --- */
nav {
  position: relative;
  flex-grow: 1;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  color: #fff;
  font-family: var(--font-secondary);
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  display: block;
  transition: color 0.3s ease;
}

.menu-item > a:hover {
  color: var(--neon-red);
}

/* --- Mega menú oculto por defecto --- */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  padding: 2rem;
  display: none;
  flex-wrap: wrap;
  width: max-content;
  min-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 100, 0.3);
  z-index: 999;
}

/* --- Mostrar mega menú en hover (desktop) --- */
.menu-item:hover > .mega-menu {
  display: flex;
}

/* Columnas dentro del mega menú */
.mega-column {
  flex: 1 1 200px;
  margin-right: 2rem;
}

.mega-column h3 {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--neon-red);
  margin-bottom: 0.8rem;
}

.mega-column ul {
  list-style: none;
  padding: 0;
}

.mega-column ul li a {
  color: #ccc;
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.mega-column ul li a:hover {
  color: #0ff;
}

/* --- Iconos y acciones del header --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#search-input {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #333;
  background-color: #1a1a1a;
  color: #fff;
}

.header-icon {
  font-size: 1.4rem;
  color: #fff;
  transition: color 0.3s ease;
}

.header-icon:hover {
  color: var(--neon-red);
}

.cart-count {
  font-size: 0.8rem;
  background: var(--neon-red);
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 4px;
}

/* --- Botón hamburguesa (solo visible en móvil) --- */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* --- Responsive para móviles --- */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    background-color: #111;
    width: 100%;
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #222;
  }

  .menu.open {
    display: flex;
  }

  .menu-item {
    width: 100%;
    text-align: left;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  /* Mostrar mega menú en móviles solo si .open está en el item */
  .mega-menu {
    position: static;
    padding: 1rem 1.5rem;
    flex-direction: column;
    box-shadow: none;
    border-radius: 0;
    background-color: #1a1a1a;
  }

  .menu-item:not(.open) > .mega-menu {
    display: none;
  }

  .menu-item.open > .mega-menu {
    display: flex;
  }
}
#cyberParticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* Muy bajo para que quede detrás */
  pointer-events: none; /* Para que no interfiera con clicks */
}





/* --- Carrito Header --- */
.cart-wrapper {
  position: relative;
}

.header-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #111;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  position: relative;
}

.header-cart:hover {
  background: #ff4500;
}

.cart-icon {
  stroke: #ff4500;
  transition: stroke 0.3s ease;
}

.header-cart:hover .cart-icon {
  stroke: #fff;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fff;
  color: #ff4500;
  font-weight: bold;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 69, 0, 0.7);
  transition: transform 0.3s ease;
}

.cart-count.pulse {
  animation: pulseCount 0.4s ease;
}

@keyframes pulseCount {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.mini-cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #ff4500;
  box-shadow: 0 10px 25px rgba(255, 69, 0, 0.4);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.cart-wrapper:hover .mini-cart-dropdown,
.cart-wrapper.active .mini-cart-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Ajustes visuales para el contenido del mini-cart */
.woocommerce-mini-cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.woocommerce-mini-cart-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-mini-cart-item img {
  width: 50px;
  height: auto;
  border-radius: 6px;
}

.woocommerce-mini-cart__total,
.woocommerce-mini-cart__buttons {
  margin-top: 12px;
  text-align: right;
}

.woocommerce-mini-cart__buttons a {
  background: #ff4500;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-left: 8px;
  display: inline-block;
}

@media (max-width: 768px) {
  .mini-cart-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
  }
}

