/* MercadilloGeek 3.9.8 · marca y acceso rápido al perfil en móvil */

@media (max-width: 760px) {
  .mg-site-header .mg-header-main {
    column-gap: 6px;
    grid-template-columns: max-content minmax(0, 1fr) 42px;
  }

  .mg-site-header .mg-header-main > .mg-brand {
    gap: 6px;
    min-width: 0;
  }

  .mg-site-header .mg-header-main > .mg-brand > .mg-brand-chip {
    flex-basis: 40px !important;
    height: 40px !important;
    width: 40px !important;
  }

  .mg-site-header .mg-header-main > .mg-brand > b {
    align-items: baseline;
    animation: mg-mobile-brand-pop 3.4s ease-in-out infinite;
    color: #111827 !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    letter-spacing: -.65px;
    line-height: 1;
    max-width: 98px;
    overflow: visible;
    text-shadow: 0 1px 0 #fff;
    white-space: nowrap;
  }

  .mg-site-header .mg-header-main > .mg-brand > b > span {
    animation: mg-mobile-geek-glow 2.8s linear infinite;
    background: linear-gradient(90deg, #6b38e6, #d52fbf, #0caed0, #6b38e6);
    background-clip: text;
    background-size: 220% 100%;
    -webkit-background-clip: text;
    color: transparent !important;
  }

  .mg-site-header .mg-header-actions {
    gap: 4px;
    justify-content: flex-end;
    overflow: visible;
  }

  .mg-site-header .mg-header-actions .mg-message-nav {
    flex: 0 0 38px;
    height: 40px;
    min-width: 38px;
    width: 38px;
  }

  .mg-site-header .mg-header-actions .mg-account {
    background: linear-gradient(135deg, #eef0ff 0%, #f9efff 52%, #ebfbff 100%) !important;
    border: 1px solid #b9b7ee !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 14px #5746c326 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    gap: 5px !important;
    height: 40px !important;
    justify-content: flex-start !important;
    min-width: 68px !important;
    overflow: hidden;
    padding: 3px 7px 3px 3px !important;
    position: relative;
    width: auto !important;
  }

  .mg-site-header .mg-header-actions .mg-account::after {
    background: linear-gradient(100deg, transparent, #fff9, transparent);
    content: "";
    height: 80px;
    left: -35px;
    pointer-events: none;
    position: absolute;
    top: -22px;
    transform: rotate(16deg);
    width: 18px;
    animation: mg-mobile-profile-shine 4.8s ease-in-out infinite;
  }

  .mg-site-header .mg-header-actions .mg-account > .mg-avatar {
    --mg-avatar-size: 30px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 1px #766bd0 !important;
    flex-basis: 30px !important;
    height: 30px !important;
    width: 30px !important;
  }

  .mg-site-header .mg-header-actions .mg-account > .mg-account-label {
    color: #302467 !important;
    display: inline !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: -.15px;
    line-height: 1;
    position: relative;
    z-index: 1;
  }

  .mg-site-header .mg-header-actions .mg-account:active {
    transform: translateY(1px) scale(.98);
  }
}

@media (max-width: 500px) {
  .mg-site-header .mg-header-actions .mg-support-nav,
  .mg-site-header .mg-header-actions .mg-signup {
    display: none !important;
  }

  .mg-site-header .mg-header-actions .mg-publish-button {
    align-items: center;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 0 !important;
    height: 40px;
    justify-content: center;
    min-width: 38px !important;
    padding: 0 !important;
    width: 38px;
  }

  .mg-site-header .mg-header-actions .mg-publish-button::before {
    content: "＋";
    font-size: 21px;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .mg-site-header .mg-header-main {
    column-gap: 4px;
    grid-template-columns: max-content minmax(0, 1fr) 38px;
  }

  .mg-site-header .mg-header-main > .mg-brand {
    gap: 4px;
  }

  .mg-site-header .mg-header-main > .mg-brand > .mg-brand-chip {
    flex-basis: 37px !important;
    height: 37px !important;
    width: 37px !important;
  }

  .mg-site-header .mg-header-main > .mg-brand > b {
    font-size: 11.5px !important;
    letter-spacing: -.55px;
    max-width: 84px;
  }

  .mg-site-header .mg-header-actions .mg-message-nav,
  .mg-site-header .mg-header-actions .mg-publish-button {
    flex-basis: 35px;
    height: 38px;
    min-width: 35px !important;
    width: 35px;
  }

  .mg-site-header .mg-header-actions .mg-account {
    height: 38px !important;
    min-width: 63px !important;
    padding-right: 5px !important;
  }

  .mg-site-header .mg-header-actions .mg-account > .mg-avatar {
    --mg-avatar-size: 28px !important;
    flex-basis: 28px !important;
    height: 28px !important;
    width: 28px !important;
  }

  .mg-site-header .mg-header-actions .mg-account > .mg-account-label {
    font-size: 10.5px !important;
  }

  .mg-site-header .mg-menu-toggle {
    height: 40px;
    width: 38px;
  }
}

@keyframes mg-mobile-brand-pop {
  0%, 100% { transform: translateY(0) rotate(0); }
  48% { transform: translateY(-1px) rotate(-.35deg); }
  55% { transform: translateY(-2px) rotate(.35deg); }
}

@keyframes mg-mobile-geek-glow {
  0% { background-position: 0 50%; filter: saturate(1); }
  50% { background-position: 100% 50%; filter: saturate(1.25); }
  100% { background-position: 0 50%; filter: saturate(1); }
}

@keyframes mg-mobile-profile-shine {
  0%, 66% { left: -35px; opacity: 0; }
  74% { opacity: .85; }
  88%, 100% { left: 105%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-site-header .mg-header-main > .mg-brand > b,
  .mg-site-header .mg-header-main > .mg-brand > b > span,
  .mg-site-header .mg-header-actions .mg-account::after {
    animation: none !important;
  }
}
