

@media (max-width: 1080px) {
  html {
    background: #061545;
  }

  .horbath-home {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    overflow-y: visible;
  }

  .horbath-home .hh-brand-prod,
  .horbath-home .hh-nav-cta .hh-btn {
    display: none;
  }

  /* The desktop active-page underline is intentionally absent in tablet and mobile menus. */
  .horbath-home .hh-nav-links > a[aria-current="page"]::after,
  .horbath-home .hh-nav-solutions.is-current-solution > .hh-nav-main-link::before {
    display: none;
  }

  .horbath-home .hh-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--hh-z-header);
    display: flex;
    align-items: center;
    width: 100%;
    height: 86px;
    min-height: 86px;
    max-height: 86px;
    border: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    transition: background-color .32s ease, box-shadow .32s ease, backdrop-filter .32s ease;
    transform: none;
    animation: hh-shared-header-enter .75s cubic-bezier(.16, 1, .3, 1) .04s both;
  }

  .horbath-home .hh-nav.scrolled {
    height: 86px;
    min-height: 86px;
    max-height: 86px;
    border: 0;
    border-bottom: 0;
    transform: none;
    background: rgba(6, 21, 69, .96);
    box-shadow: none;
    backdrop-filter: blur(16px);
    transition: none;
  }

  .horbath-home .hh-nav::before,
  .horbath-home .hh-nav::after,
  .horbath-home .hh-nav-inner::before,
  .horbath-home .hh-nav-inner::after {
    border: 0;
    box-shadow: none;
  }

  .horbath-home .hh-nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    margin: 0;
    height: 86px;
    min-height: 86px;
    box-sizing: border-box;
    padding: 14px 24px;
    transform: none;
    animation: none;
  }

  .horbath-home .hh-brand,
  .horbath-home .hh-nav-cta {
    position: relative;
    top: auto;
    margin-block: 0;
    align-self: center;
    transform: none;
  }

  .horbath-home .hh-brand {
    position: absolute;
    top: 50%;
    left: 24px;
    right: auto;
    flex: 0 0 auto;
    margin: 0;
    justify-content: flex-start;
    transform: translateY(-50%);
  }

  .horbath-home .hh-nav-cta {
    position: absolute;
    top: 50%;
    left: auto;
    right: 24px;
    flex: 0 0 auto;
    margin: 0;
    transform: translateY(-50%);
  }

  .horbath-home .hh-brand-logo {
    display: block;
    height: 56px;
    max-height: 56px;
    margin: 0;
    transform: none;
  }

  .horbath-home .hh-nav-burger {
    display: flex;
    margin: 0;
    transform: none;
  }

  .horbath-home .hh-nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    z-index: var(--hh-z-submenu);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: auto;
    max-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, visibility 0s linear .18s,
      transform .18s ease, background-color 0s linear .18s;
    contain: paint;
  }

  .horbath-home .hh-nav-check:checked ~ .hh-nav-links {
    max-height: min(720px, calc(100svh - 112px));
    padding: 14px;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(6, 21, 69, .985);
    opacity: 1;
    visibility: visible;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(56, 212, 254, .22) transparent;
    clip-path: inset(0 round 18px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
    pointer-events: auto;
    transform: none;
    transition: opacity .18s ease, visibility 0s linear 0s,
      transform .18s ease, background-color 0s linear 0s;
  }

  .horbath-home .hh-nav-check:checked ~ .hh-nav-links.needs-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .horbath-home .hh-nav-check:checked ~ .hh-nav-links::-webkit-scrollbar {
    width: 0;
  }

  .horbath-home .hh-nav-check:checked ~ .hh-nav-links.needs-scroll::-webkit-scrollbar {
    width: 8px;
  }

  .horbath-home .hh-nav-check:checked ~ .hh-nav-links::-webkit-scrollbar-track {
    margin-block: 18px;
    background: transparent;
  }

  .horbath-home .hh-nav-check:checked ~ .hh-nav-links::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(56, 212, 254, .22);
    background-clip: content-box;
  }

  .horbath-home .hh-nav-links > a,
  .horbath-home .hh-nav-main-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
  }

  .horbath-home .hh-nav-links > a:nth-child(1) { grid-column: 1; grid-row: 1; }
  .horbath-home .hh-nav-links > a:nth-child(2) { grid-column: 2; grid-row: 1; }
  .horbath-home .hh-nav-links > a:nth-child(3) { grid-column: 1; grid-row: 2; }
  .horbath-home .hh-nav-links > a:nth-of-type(4) { grid-column: 2; grid-row: 2; }

  .horbath-home .hh-nav-careers {
    grid-column: 1;
    grid-row: 3;
  }

  .horbath-home .hh-nav-solutions {
    display: block;
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
  }

  .horbath-home .hh-nav-solutions::before {
    display: none;
  }

  .horbath-home .hh-nav-main-link {
    width: 100%;
    justify-content: space-between;
  }

  .horbath-home .hh-nav-solutions .hh-submenu {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    inline-size: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    justify-self: stretch;
    max-height: 0;
    margin: 0;
    padding: 0 8px;
    border-width: 1px;
    border-color: transparent;
    opacity: 0;
    visibility: visible;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    translate: none;
    scale: none;
    transform-origin: top center;
    transition: max-height .46s cubic-bezier(.22, 1, .36, 1), margin-top .42s cubic-bezier(.22, 1, .36, 1),
      padding-top .42s cubic-bezier(.22, 1, .36, 1), padding-bottom .42s cubic-bezier(.22, 1, .36, 1),
      opacity .32s ease, border-color .2s ease;
  }

  /* En pantallas táctiles el enlace conserva el foco después del toque.
     Neutralizamos la posición de escritorio para que el panel cierre recto. */
  .horbath-home .hh-nav-solutions:hover .hh-submenu,
  .horbath-home .hh-nav-solutions:focus-within .hh-submenu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    inline-size: 100%;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: none;
    translate: none;
    scale: none;
  }

  .horbath-home .hh-nav-solutions.is-open .hh-submenu {
    max-height: 260px;
    margin-top: 8px;
    padding: 8px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, .14);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    translate: none;
    scale: none;
    transition: max-height .46s cubic-bezier(.22, 1, .36, 1), margin-top .42s cubic-bezier(.22, 1, .36, 1),
      padding-top .42s cubic-bezier(.22, 1, .36, 1), padding-bottom .42s cubic-bezier(.22, 1, .36, 1),
      opacity .32s ease, border-color .2s ease;
  }

  .horbath-home .hh-nav-solutions:not(.is-open) .hh-submenu {
    opacity: 0;
    pointer-events: none;
  }

  .horbath-home .hh-nav-solutions .hh-submenu > a {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    opacity: 1;
    transform: none;
    transition: border-color .25s ease, background-color .25s ease;
  }

  .horbath-home .hh-nav-solutions.is-open .hh-submenu > a {
    opacity: 1;
    transform: none;
  }

  .horbath-home .hh-nav-solutions .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions:hover .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions:focus-within .hh-nav-main-link::after {
    transform: rotate(45deg) translateY(-2px);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  }

  .horbath-home .hh-nav-solutions.is-open .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions.is-open:hover .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions.is-open:focus-within .hh-nav-main-link::after {
    transform: rotate(225deg) translate(-2px, -1px);
  }

  .horbath-home .hh-lang-switch {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    min-height: 46px;
    height: 46px;
    justify-content: flex-start;
    margin: 0;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
  }
}
