
/* Mobile menu - hidden by default */
@media (max-width: 767.98px) {
  .navbar-collapse {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .navbar-collapse.show {
    display: block !important;
  }
  
  .navbar-nav {
    flex-direction: column;
    padding: 15px 0;
  }
  
  .navbar-nav .nav-item {
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 20px !important;
    display: block;
  }
  
  /* Mobile submenu */
  .dropdown-hover .main-sub-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .dropdown-hover:hover .main-sub-menu,
  .dropdown-hover .main-sub-menu {
    display: block;
  }
  
  .main-sub-menu::before,
  .main-sub-menu::after {
    display: none;
  }
  
  .title-with-icon-link {
    padding: 10px 30px;
  }
  
  /* Mobile toggle button */
  .navbar-toggler {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
  }
  
  .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(3, 93, 237, 0.25);
  }
  
  /* Header nav position relative for absolute menu */
  .header-nav {
    position: relative;
  }
}

/* Desktop menu - always visible */
@media (min-width: 768px) {
  #navBar {
    display: flex !important;
  }
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-nav {
    flex-direction: row;
  }
  .main-navbar-nav .nav-item {
    padding: 0 10px;
  }
}

/* Fix selectedMenu style - text only, no background */
.selectedMenu {
  background-color: transparent !important;
  color: #035ded !important;
}

.selectedMenu * {
  color: #035ded !important;
}

/* Nav link alignment */
.nav-link.selectedMenu {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  color: #035ded !important;
  background-color: transparent !important;
}

.custom-nav-link {
  font-size: 14px;
  color: #333 !important;
  font-weight: 500;
}

.custom-nav-link:hover {
  color: #035ded !important;
}

.custom-nav-link.selectedMenu {
  color: #035ded !important;
  background-color: transparent !important;
  font-weight: 600;
}

/* Submenu dropdown styles */
.hs-has-mega-menu {
  position: relative;
}

.main-sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 15px 0;
  min-width: 280px;
  margin-top: 15px;
}

/* Flecha del submenu */
.main-sub-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #035ded;
}

.main-sub-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

/* Items del submenu */
.title-with-icon-item {
  padding: 0;
}

.title-with-icon-link {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.title-with-icon-link:hover {
  background: #f8f9fa;
  text-decoration: none;
}

.title-with-icon-link .media {
  display: flex;
  align-items: center;
}

.menu-item-icon {
  width: 40px;
  height: 40px;
  background: #e8f0fe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #035ded;
  font-size: 16px;
}

.menu-titile-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}

.u-header__promo-title {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 2px;
}

.u-header__promo-text {
  display: block;
  color: #777;
  font-size: 12px;
}

/* Dropdown toggle arrow */
.main-link-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

/* CSS-only dropdown hover */
.dropdown-hover {
  position: relative;
}

.dropdown-hover .main-sub-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  padding-top: 15px;
  margin-top: 0;
}

.dropdown-hover:hover .main-sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Crear área invisible para mantener el hover */
.dropdown-hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}

/* Badge styles */
.badge-success {
  background-color: #28a745;
  color: white;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 3px;
}

/* S3 page styles */
.usa-currency {
  position: absolute;
  margin-top: 50px !important;
  margin-left: -20px !important;
}

/* Price spacing fixes */
.offer-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.offer-price .currency {
  font-size: 2rem;
  margin-right: 2px;
  vertical-align: super;
}

.offer-price .amount {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.offer-price .decimal {
  font-size: 2rem;
  vertical-align: super;
}

.offer-price small {
  margin-left: 8px;
  font-size: 1.2rem;
  font-weight: 400;
}

.price {
  letter-spacing: 1px;
}

.price span {
  margin-left: 4px;
}
