/* ─── HEADER TEMA OSCURO ─────────────────────────────── */
.header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 84, 0.3), transparent);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  height: 70px;
}

/* ─── LOGO ───────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-shape {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af54, #f4d07d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(212, 175, 84, 0.2);
  border: 2px solid rgba(212, 175, 84, 0.3);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-family: var(--font-disp);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.logo-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── NAVEGACIÓN ─────────────────────────────────────── */
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--light-text);
  transition: all 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: var(--white);
  background: rgba(212, 175, 84, 0.1);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--gold);
  background: rgba(212, 175, 84, 0.1);
}

/* ─── HEADER ACTIONS ─────────────────────────────────── */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-btn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wa-green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.wa-btn-header:hover {
  background: #1f9b4f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.cart-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.cart-toggle strong {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  background: var(--gold);
  color: var(--black);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ─── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.82rem;
  color: var(--soft-text);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--divider);
}

.breadcrumb a {
  color: var(--light-text);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: var(--gold);
  font-weight: 600;
}

/* ─── PROMO BAR (MEJORADA) ───────────────────────────── */
.promo-bar {
  position: relative;
  width: 100%;
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(212, 175, 84, 0.08) 0%,
    rgba(212, 175, 84, 0.15) 50%,
    rgba(212, 175, 84, 0.08) 100%
  );
  border-top: 1px solid rgba(212, 175, 84, 0.2);
  border-bottom: 1px solid rgba(212, 175, 84, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.top-promo__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  white-space: nowrap;
  animation: promoMove 25s linear infinite;
  position: relative;
  z-index: 2;
}

.top-promo__track span {
  flex-shrink: 0;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.top-promo__track span.separator {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 900;
}

.promo-bar:hover .top-promo__track {
  animation-play-state: paused;
}

@keyframes promoMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1000px) {
  .header-inner {
    gap: 20px;
    height: 64px;
  }

  .nav {
    display: none;
  }

  .logo-shape {
    width: 42px;
    height: 42px;
  }

  .logo-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    gap: 10px;
    padding: 0 16px;
  }

  .logo-shape {
    width: 38px;
    height: 38px;
  }

  .logo-name {
    font-size: 0.8rem;
  }

  .logo-tag {
    display: none;
  }

  .wa-btn-header span {
    display: none;
  }

  .wa-btn-header {
    padding: 8px 10px;
    gap: 6px;
  }

  .cart-toggle {
    padding: 8px 12px;
    gap: 6px;
    font-size: 0.75rem;
  }

  .breadcrumb {
    padding: 12px 16px;
    font-size: 0.75rem;
  }

  .promo-bar {
    height: 40px;
  }

  .top-promo__track span {
    font-size: 0.75rem;
  }
}

/* ─── EFECTOS DE BRILLO SUTIL ────────────────────────── */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: headerShine 8s infinite;
  pointer-events: none;
}

@keyframes headerShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}
