/* RTM Header General Polish v0.1.0 */
:root{
  --rtm-header-max: 1360px;
  --rtm-header-bg: #2f3b4a;
  --rtm-header-bg-2: #314154;
  --rtm-panel-radius: 22px;
  --rtm-panel-shadow: 0 18px 44px rgba(15,23,42,.16);
}

.rtmhp-header-wrap{
  background: linear-gradient(180deg, var(--rtm-header-bg) 0%, var(--rtm-header-bg-2) 100%);
  box-shadow: 0 8px 24px rgba(15,23,42,.10);
}

.rtmhp-utility-inner,
.rtmhp-header-bar,
.rtmhp-nav{
  max-width: var(--rtm-header-max);
}

.rtmhp-utility-inner{
  padding: 9px 24px;
}

.rtmhp-header-bar{
  gap: 18px;
  padding: 20px 24px 18px;
}

.rtmhp-brand{
  row-gap: 4px;
}

.rtmhp-logo{
  letter-spacing: -.02em;
  text-wrap: balance;
}

.rtmhp-tagline{
  max-width: 30ch;
  opacity: .93;
}

.rtmhp-search-form{
  filter: drop-shadow(0 6px 18px rgba(15,23,42,.08));
}

.rtmhp-search-scope,
.rtmhp-search-input,
.rtmhp-search-btn{
  transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease, color .18s ease;
}

.rtmhp-search-scope,
.rtmhp-search-input{
  background: #fff;
}

.rtmhp-search-form:focus-within .rtmhp-search-scope,
.rtmhp-search-form:focus-within .rtmhp-search-input,
.rtmhp-search-form:focus-within .rtmhp-search-btn{
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}

.rtmhp-search-input::placeholder{
  color: #64748b;
}

.rtmhp-search-btn{
  min-width: 112px;
}

.rtmhp-actions{
  gap: 10px;
}

.rtmhp-cart,
.rtmhp-donate{
  min-height: 42px;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.rtmhp-cart{
  background: rgba(255,255,255,.10);
}

.rtmhp-cart:hover{
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

.rtmhp-donate{
  background: #f59d2a;
}

.rtmhp-donate:hover,
.rtmhp-search-btn:hover{
  transform: translateY(-1px);
}

.rtmhp-nav-row{
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.rtmhp-top-level{
  gap: 10px;
  padding: 10px 24px;
}

.rtmhp-link{
  padding: 11px 16px;
  line-height: 1.15;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.rtmhp-link:hover,
.rtmhp-item:hover > .rtmhp-link,
.rtmhp-item:focus-within > .rtmhp-link{
  transform: translateY(-1px);
}

.rtmhp-mega{
  top: calc(100% + 2px);
}

.rtmhp-mega-inner{
  border-radius: var(--rtm-panel-radius);
  box-shadow: var(--rtm-panel-shadow);
  border: 1px solid rgba(226,232,240,.9);
  padding: 24px 26px;
}

.rtmhp-mega-head{
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.rtmhp-mega-columns,
.rtmhp-mega-cards{
  gap: 22px;
}

.rtmhp-mega-col-title{
  margin-bottom: 12px;
}

.rtmhp-mega-sublist{
  gap: 10px;
}

.rtmhp-mega-sublist a{
  line-height: 1.35;
}

.rtmhp-mega-card{
  border-radius: 16px;
}

/* Mejor acabado para paneles generados por los fixes del mega menú */
.rtmhp-item.rtm-mega-target > .rtmhp-mega .rtmhp-mega-inner,
.rtmhp-item.rtm-community-mega > .rtmhp-mega .rtmhp-mega-inner,
.rtmhp-item.rtm-marketplace-mega > .rtmhp-mega .rtmhp-mega-inner{
  padding-top: 26px;
  padding-bottom: 24px;
}

.rtmhp-item.rtm-mega-target > .rtmhp-mega .rtmhp-mega-head,
.rtmhp-item.rtm-community-mega > .rtmhp-mega .rtmhp-mega-head,
.rtmhp-item.rtm-marketplace-mega > .rtmhp-mega .rtmhp-mega-head{
  font-size: clamp(1.15rem, 1.2vw, 1.45rem);
}

/* Si el fix visual transforma listas en grids, afinamos separación */
.rtmhp-mega-inner ul,
.rtmhp-mega-inner ol{
  margin-top: 0;
}

/* Cabecera un poco más sólida sobre sliders y héroes */
body.admin-bar .rtmhp-header-wrap{
  backdrop-filter: saturate(1.04);
}

@media (max-width: 1360px){
  .rtmhp-header-bar,
  .rtmhp-utility-inner,
  .rtmhp-top-level{
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1200px){
  .rtmhp-header-bar{
    gap: 14px;
  }
  .rtmhp-tagline{
    max-width: 26ch;
  }
  .rtmhp-top-level{
    gap: 8px;
  }
  .rtmhp-link{
    padding: 10px 14px;
  }
}

@media (max-width: 1024px){
  .rtmhp-header-bar{
    padding-top: 18px;
  }
  .rtmhp-search-form{
    filter: none;
  }
  .rtmhp-mega-inner{
    padding: 22px 20px;
  }
}

@media (max-width: 768px){
  .rtmhp-header-bar{
    padding: 16px 16px 14px;
  }
  .rtmhp-logo{
    font-size: 1.52rem;
  }
  .rtmhp-tagline{
    max-width: none;
  }
}
