/* KUNI-DESKTOP-MENU-EQUAL-V11
   Solo escritorio y tablet.
   Móvil, logo y hero intactos.
*/

@media (min-width:700px) {

  .topbar .nav {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:min(54vw,590px) !important;
    max-width:590px !important;
    min-width:0 !important;
    flex:0 1 590px !important;
    gap:clamp(6px,1vw,14px) !important;
    align-items:center !important;
  }

  .topbar .nav > a {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;

    width:100% !important;
    min-width:0 !important;
    max-width:none !important;

    height:56px !important;
    min-height:56px !important;
    max-height:56px !important;

    margin:0 !important;
    padding:0 8px !important;

    border:1px solid #DED6CA !important;
    border-radius:14px !important;

    background:#FFFFFF !important;
    color:#2F4C6A !important;
    -webkit-text-fill-color:#2F4C6A !important;

    text-align:center !important;
    font-size:clamp(12px,1.15vw,15px) !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    letter-spacing:0 !important;
    white-space:normal !important;

    box-shadow:none !important;
    transform:none !important;
  }

  .topbar .nav > a[href="/registro/"] {
    background:#BE745B !important;
    border-color:#BE745B !important;
    color:#FFFFFF !important;
    -webkit-text-fill-color:#FFFFFF !important;
  }

  .topbar .nav > a:focus-visible {
    outline:3px solid #2F4C6A !important;
    outline-offset:3px !important;
  }
}

@media (min-width:700px) and (max-width:899px) {
  .topbar .nav > a {
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    font-size:12px !important;
    padding-inline:5px !important;
  }
}

/* ===================================================
   KUNI-DESKTOP-MENU-HOVER-V12
   Únicamente escritorio con puntero.
   Conserva dimensiones y distribución actuales.
   =================================================== */

@media (min-width:700px) {

  .topbar .nav > a {
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease !important;
  }

  .topbar .nav > a:focus-visible {
    background:#2F4C6A !important;
    border-color:#2F4C6A !important;
    color:#FFFFFF !important;
    -webkit-text-fill-color:#FFFFFF !important;
    outline:3px solid #BE745B !important;
    outline-offset:3px !important;
  }
}

@media (min-width:700px) and (hover:hover) and (pointer:fine) {

  /* PUBLICA TU NEGOCIO */
  .topbar .nav > a[href="/negocios/publica"]:hover {
    background:#2F4C6A !important;
    border-color:#2F4C6A !important;
    color:#FFFFFF !important;
    -webkit-text-fill-color:#FFFFFF !important;
    box-shadow:0 9px 22px rgba(47,76,106,.23) !important;
    transform:translateY(-3px) !important;
  }

  /* INICIAR SESIÓN */
  .topbar .nav > a[href="/login/"]:hover {
    background:#6D6D51 !important;
    border-color:#6D6D51 !important;
    color:#FFFFFF !important;
    -webkit-text-fill-color:#FFFFFF !important;
    box-shadow:0 9px 22px rgba(109,109,81,.23) !important;
    transform:translateY(-3px) !important;
  }

  /* REGÍSTRATE */
  .topbar .nav > a[href="/registro/"]:hover {
    background:#2F4C6A !important;
    border-color:#2F4C6A !important;
    color:#FFFFFF !important;
    -webkit-text-fill-color:#FFFFFF !important;
    box-shadow:0 11px 26px rgba(47,76,106,.26) !important;
    transform:translateY(-3px) !important;
  }
}

@media (min-width:700px) and (prefers-reduced-motion:reduce) {
  .topbar .nav > a {
    transition:none !important;
  }
}
