/* HENOK RIFT - NAVEGACIÓN EQUILIBRADA */

/* Escritorio: cinco columnas iguales */
@media (min-width: 900px) {

  .hn-lol nav.hn-tabs.hn-rift-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 22px 0 10px !important;
    overflow: visible !important;
    border-bottom: 1px solid #dbe4ef;
    background: rgba(255, 255, 255, 0.7);
  }

  .hn-lol nav.hn-rift-tabs > button[data-lol-tab] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: none !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px;

    margin: 0 !important;
    padding: 16px 12px !important;

    text-align: center;
    white-space: normal !important;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;

    background: transparent;
    border-radius: 0;
    border-bottom: 3px solid transparent;

    color: #8193ac;

    transition:
      color .18s ease,
      background-color .18s ease,
      border-color .18s ease;
  }

  .hn-lol nav.hn-rift-tabs > button[data-lol-tab]:hover {
    color: #176de5;
    background: rgba(40, 117, 230, 0.035);
  }

  .hn-lol nav.hn-rift-tabs > button.is-active {
    color: #1267e6 !important;
    background: transparent !important;
    border-bottom-color: #247cff !important;
    box-shadow: none !important;
  }
}

/* Tablet y móvil: distribución adaptable */
@media (max-width: 899px) {

  .hn-lol nav.hn-tabs.hn-rift-tabs {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;

    gap: 12px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding: 0 4px 5px !important;
    margin: 18px 0 10px !important;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .hn-lol nav.hn-rift-tabs > button[data-lol-tab] {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 48px;

    padding: 12px 14px !important;
    margin: 0 !important;

    white-space: nowrap !important;
    text-align: center;
    font-size: 12px;

    scroll-snap-align: start;
  }

  .hn-lol nav.hn-rift-tabs > button.is-active {
    color: #1267e6 !important;
    border-bottom-color: #247cff !important;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hn-lol nav.hn-rift-tabs > button {
    transition: none !important;
  }
}
