/* ── TOQ.AR Header — anula todo lo que venga del style.css viejo ─────────── */

/* 1. Matar el .nav-links visible del style.css viejo */
.site-header .nav-links,
header .nav-links          { display: none !important; }

/* 2. Matar el .nav-toggle oculto del style.css viejo */
.site-header .nav-toggle,
header .nav-toggle          { display: none; } /* lo reactivamos abajo segun breakpoint */

/* 3. El desktop-nav tiene sus propias reglas — no heredar del site-header */
.desktop-nav .nav-links     { display: flex !important; }

/* ── Header base ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  height: 64px;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

/* En el homepage el header arranca transparente sobre el hero */
.site-header--hero {
  position: fixed !important;
  width: 100%;
  background: transparent !important;
  border-bottom-color: transparent !important;
}
.site-header--hero .brand-toq    { color: #fff !important; }
.site-header--hero .nav-toggle span { background: #fff !important; }
.site-header--hero .cart-btn     { color: #fff !important; }

/* Se vuelve oscuro con blur al scrollear (nunca blanco) */
.site-header--solid {
  background: rgba(10,7,4,.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom-color: rgba(117,170,219,.15) !important;
  box-shadow: none !important;
}
.site-header--solid .brand-toq       { color: #ffffff !important; }
.site-header--solid .nav-toggle span { background: #ffffff !important; }
.site-header--solid .cart-btn        { color: #ffffff !important; }

/* ── Layout navbar: hamburguesa | LOGO centrado | carrito ─────────────────── */
.navbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo absolutamente centrado */
.navbar-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-toq  { color: #111827; }
.brand-dot  { color: #FCE570; }
.brand-ar   { color: #75AADB; }

/* Carrito lado derecho */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Hamburguesa */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: background 200ms ease;
}

/* ── Desktop nav bar (barra secundaria debajo del header) ─────────────────── */
.desktop-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.desktop-nav__inner {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}
.nav-link:hover, .nav-link.active {
  color: #0066FF;
  background: rgba(0,102,255,.06);
}
.nav-admin { color: #D4AF37 !important; }
.nav-sep   { width: 1px; height: 20px; background: #e5e7eb; margin: 0 4px; }

/* ── Menu mobile — panel oscuro desde la izquierda tipo Holsom ────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80vw;
  max-width: 320px;
  background: #111111;
  z-index: 500;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  z-index: 499;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.mobile-menu__overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__head {
  display: flex;
  justify-content: flex-end;
  padding: 16px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu__close {
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  opacity: .7;
  transition: opacity 150ms ease;
  line-height: 0;
}
.mobile-menu__close:hover { opacity: 1; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}
.mobile-menu__link {
  display: block;
  padding: 18px 28px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color 150ms ease, padding-left 150ms ease;
}
.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: #D4AF37;
  padding-left: 36px;
}

.mobile-menu__foot {
  padding: 24px 28px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu__auth {
  color: rgba(255,255,255,.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}
.mobile-menu__auth:hover { color: #ffffff; }

/* ── Responsive: mobile oculta la desktop-nav, desktop oculta el menu ──────── */
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .nav-toggle  { display: flex !important; }
}
@media (min-width: 769px) {
  .nav-toggle           { display: none !important; }
  .mobile-menu          { display: none !important; }
  .mobile-menu__overlay { display: none !important; }
  .desktop-nav          { display: block !important; }
}

/* En homepage el header es fixed — el desktop-nav queda en el flujo normal
   y actua como la segunda barra pegada al header (queda debajo del fixed) */
.site-header--hero + .mobile-menu + .mobile-menu__overlay + .desktop-nav {
  position: sticky;
  top: 64px;
  z-index: 199;
}
