/* ======================================================
   CABECERA NATIVA MINIMALISTA - PERSONALIZACION.NET
   ====================================================== */

.site-header-custom {
  width: 100%;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* --- Topbar Franja Superior --- */
.header-topbar {
  background-color: #1A3C74;
  color: #FFFFFF;
  padding: 6px 20px !important;
  font-size: 0.78rem;
  font-weight: 600;
}

.topbar-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Header Main --- */
.header-main {
  position: relative;
  background: #FFFFFF;
}

.header-main-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 10px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.header-logo a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.header-logo img {
  display: block;
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Menú Desktop --- */
.header-nav-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 20px;
}

.main-menu-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  max-width: 800px;
}

.main-menu-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.main-menu-list a {
  text-decoration: none;
  color: #1A3C74;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-menu-list a:hover,
.main-menu-list .current-menu-item > a,
.main-menu-list .current_page_item > a {
  color: #FF5C00 !important;
}

/* --- Acciones e Iconos con Ajuste Óptico Impecable --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px !important;
  margin-left: auto;
}

.header-user-btn,
.b2b-custom-cart-btn,
.mobile-menu-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  padding: 2px !important;
  color: #1A3C74 !important;
  text-decoration: none !important;
  position: relative !important;
  transition: color 0.2s ease !important;
  outline: none !important;
  cursor: pointer;
}

.header-user-btn:hover,
.b2b-custom-cart-btn:hover,
.mobile-menu-toggle:hover {
  color: #FF5C00 !important;
}

/* 1. Carrito */
.b2b-custom-cart-btn svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
}

/* 2. Usuario: Escala y trazo equilibrados (1.7px) para igualar el peso visual */
.header-user-btn svg {
  width: 25px !important;
  height: 25px !important;
  stroke-width: 1.7px !important;
  display: block !important;
}

/* 3. Hamburguesa */
.mobile-menu-toggle {
  display: none !important;
}

.mobile-menu-toggle svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

/* Globo Naranja Integrado */
.b2b-cart-badge {
  position: absolute !important;
  top: -2px !important;
  right: -5px !important;
  background-color: #FF5C00 !important;
  color: #ffffff !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  min-width: 13px !important;
  height: 13px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 1px !important;
}

/* --- Desplegable Móvil Optimizado --- */
.header-nav-mobile {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: #FFFFFF;
  border-top: 1px solid transparent;
  padding: 0 20px;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.2s ease-in-out, 
              visibility 0.2s ease-in-out,
              padding 0.3s ease-in-out;
}

.header-nav-mobile.is-active {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  padding: 14px 20px 18px 20px;
  border-color: #F1F5F9;
}

.mobile-menu-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-list a {
  text-decoration: none;
  color: #1A3C74;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.mobile-menu-list a:hover {
  color: #FF5C00;
}

/* --- Adaptación Móvil/Tablet (<1024px) --- */
@media (max-width: 1024px) {
  .header-nav-desktop {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .topbar-inner {
    justify-content: center;
    text-align: center;
    gap: 4px 12px;
  }
}

/* --- Botón Flotante WhatsApp --- */
.b2b-whatsapp-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 54px !important;
  height: 54px !important;
  background-color: #25D366 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  z-index: 99999 !important;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
  text-decoration: none !important;
}

.b2b-whatsapp-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5) !important;
}

.b2b-whatsapp-btn svg {
  width: 28px !important;
  height: 28px !important;
  fill: #FFFFFF !important;
}

@media (max-width: 768px) {
  .b2b-whatsapp-btn {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
  
  .b2b-whatsapp-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
}