/* GANK · Menu de escritorio (propuesta G) · 2026-09-30 · dm1 (vuelto a publicar como dm3 el 30-sep 22:20: Diego prefirio el amarillo claro)
   Barra del menu blanca con subrayado amarillo en la opcion abierta; panel propio (gank-desk-menu.js).
   Los desplegables del tema solo se ocultan cuando el JS termino de armar el panel (html.gank-dm):
   si el JS falla, el menu del tema sigue funcionando igual que antes. Movil (<992 px) sin cambios. */
@media (min-width: 992px) {
  #header .tvcms-header-menu-offer-wrapper { background: #fff; border-top: 1px solid #ececee; border-bottom: 1px solid #ececee; }
  #tvdesktop-megamenu .menu-content > li.level-1.gdm-on > a { font-weight: 700; color: #1a1a1a; box-shadow: inset 0 -3px 0 #ffc400; }
  #tvdesktop-megamenu .menu-content > li.level-1.gdm-offer > a span { background: #ffc400; color: #1a1a1a; border-radius: 6px; padding: 4px 10px; font-weight: 600; }
  #tvdesktop-megamenu .menu-content > li.level-1 > a:focus-visible { outline: 2px solid #1a1a1a; outline-offset: -4px; border-radius: 6px; }

  html.gank-dm #tvdesktop-megamenu .menu-content > li.level-1 > .menu-dropdown,
  html.gank-dm #tvdesktop-megamenu .menu-content > li.level-1 > .tv-sub-menu { display: none !important; }

  .gdm { position: fixed; z-index: 1002; display: flex; box-sizing: border-box; min-height: 300px; overflow: hidden;
    background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, .18);
    font-family: Montserrat, sans-serif; color: #1a1a1a; text-align: left;
    opacity: 0; transform: translateY(-4px); transition: opacity .14s ease, transform .14s ease; }
  .gdm[hidden] { display: none; }
  .gdm.gdm--in { opacity: 1; transform: none; }
  .gdm-scrim { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: rgba(20, 20, 20, .38); pointer-events: none;
    opacity: 0; transition: opacity .14s ease; }
  .gdm-scrim[hidden] { display: none; }
  .gdm-scrim.gdm--in { opacity: 1; }

  .gdm__rail { flex: 0 0 272px; box-sizing: border-box; padding: 14px 12px; background: #fafafa; border-right: 1px solid #efeff1;
    display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
  .gdm__tab { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 10px;
    font-size: 14.5px; font-weight: 500; line-height: 1.2; color: #3a3a3f; text-decoration: none; }
  .gdm__tab:hover { background: #f1f1f2; color: #1a1a1a; text-decoration: none; }
  .gdm__tab.is-on { background: #fff1bf; color: #1a1a1a; font-weight: 700; }
  .gdm__tab:focus-visible { outline: 2px solid #1a1a1a; outline-offset: -2px; }
  .gdm__ico { flex: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #ececee; color: #1a1a1a; box-sizing: border-box; }
  .gdm__tab.is-on .gdm__ico { background: #ffc400; border-color: #ffc400; }
  .gdm__lbl { flex: 1; min-width: 0; }
  .gdm__chev { flex: none; display: flex; color: #8a8a90; }
  .gdm__tab.is-on .gdm__chev { color: #1a1a1a; }

  .gdm__body { flex: 1 1 auto; min-width: 0; box-sizing: border-box; padding: 24px 28px 28px; overflow-y: auto; outline: none; }
  .gdm__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
  .gdm__title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.2; color: #1a1a1a; }
  .gdm__all { flex: none; font-size: 14px; font-weight: 600; color: #6b5200; text-decoration: none; }
  .gdm__all:hover { color: #1a1a1a; text-decoration: underline; }
  .gdm__grid { display: grid; grid-template-columns: repeat(var(--gdm-cols, 4), minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  .gdm__grid > li { display: flex; min-width: 0; margin: 0; }
  .gdm__card { flex: 1; min-width: 0; min-height: 132px; box-sizing: border-box; padding: 12px 10px; border: 1px solid #ececee; border-radius: 12px;
    background: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: #1a1a1a;
    transition: border-color .12s ease, background-color .12s ease; }
  .gdm__card:hover { background: #fffaf0; border-color: #ffc400; color: #1a1a1a; text-decoration: none; }
  .gdm__card:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
  .gdm__thumb { flex: none; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; color: #9aa0a6; }
  .gdm__thumb img { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 6px; }
  .gdm__name { font-size: 13.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }

  .gdm__promo { flex: 0 0 260px; box-sizing: border-box; padding: 18px 18px 18px 0; display: flex; }
  .gdm__promo:empty { display: none; }
  .gdm__promo-card { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 22px 20px; border-radius: 14px;
    background: #141414; color: #fff; text-decoration: none; min-height: 220px; }
  .gdm__promo-card:hover { color: #fff; text-decoration: none; background: #000; }
  .gdm__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffc400; }
  .gdm__promo-text { font-size: 18px; font-weight: 700; line-height: 1.3; }
  .gdm__cta { align-self: flex-start; margin-top: 6px; padding: 10px 16px; border-radius: 8px; background: #ffc400; color: #1a1a1a; font-size: 13px; font-weight: 700; }

  /* Lista corta (Nosotros): sin riel ni tarjetas. */
  .gdm.gdm--compact { width: 260px; min-height: 0; border-radius: 0 0 14px 14px; }
  .gdm.gdm--compact .gdm__rail { flex: 1; background: #fff; border-right: 0; padding: 10px; }
  .gdm.gdm--compact .gdm__body, .gdm.gdm--compact .gdm__promo { display: none; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .gdm__promo { display: none; }
  .gdm__rail { flex-basis: 236px; }
  .gdm__body { padding: 20px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gdm, .gdm-scrim, .gdm__card { transition: none; }
}
