/* css/header.css - Estilos comunes para header y footer */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: #000000;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  z-index: 99999;               /* <-- NUEVO: muy alto para estar por encima */
}

.menu-left {
  flex: 1;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: transparent;
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;   /* ← AÑADIDO */
}

.dropbtn:hover {
  opacity: 0.6;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0a0a0a;
  min-width: 160px;
  border: 1px solid #1a1a1a;
  z-index: 100000;               /* <-- NUEVO: aún más alto que el header */
}

.dropdown-content a {
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.dropdown-content a:hover {
  background-color: #1a1a1a;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.logo {
  flex: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #ffffff;
  text-decoration: none;   /* ← AÑADIDO */
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 60px;
}

.nav-right a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav-right a:hover {
  opacity: 0.6;
}

/* Forzar que ningún contenedor recorte el menú desplegable */
body,
.split-layout,
.hero-background,
.contenedor-productos,
main {
  overflow: visible !important;
}

/* Footer */
footer {
  text-align: center;
  padding: 48px;
  background: #000000;
  border-top: 1px solid #1a1a1a;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.7rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

footer p {
  color: #333;
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .menu-left, .logo, .nav-right {
    flex: none;
    width: 100%;
    text-align: center;
  }
  
  .menu-left {
    justify-content: center;
  }
  
  .nav-right {
    justify-content: center;
    gap: 40px;
  }
  
  footer {
    padding: 30px 20px;
  }
  
  .footer-links {
    gap: 20px;
  }
}