/* ==========================================================================
   TrazaQR — Cabecera pública global (componente único reutilizado en toda
   trazaqr.com). El marcado del <nav> vive en partials/header.html y se
   inserta en cada página en tiempo de build (scripts/build-header.js) —
   ESTE FICHERO SOLO PONE ESTILOS, no genera ni inyecta HTML.
   No depende de las variables CSS de cada página (colores en literal) para
   que funcione igual en cualquier plantilla.
   ========================================================================== */

.tqr-nav, .tqr-nav * { box-sizing: border-box; }

.tqr-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  padding: 0 clamp(16px, 3vw, 48px);
  background: rgba(247, 245, 240, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E4E1D8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tqr-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #0C447C;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.tqr-nav-logo img { height: 28px; width: 28px; border-radius: 6px; object-fit: cover; }

.tqr-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tqr-nav-links li { margin: 0; padding: 0; }

.tqr-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #55606E;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.tqr-nav-links a:hover { color: #0C447C; }

.tqr-nav-wa { color: #0C447C !important; font-weight: 600; }
.tqr-nav-wa svg { flex-shrink: 0; }

.tqr-nav-cta {
  background: #0C447C;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 7px;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: background .2s;
}
.tqr-nav-cta:hover { background: #185FA5 !important; }

.tqr-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #0C447C;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .tqr-nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E4E1D8;
    box-shadow: 0 12px 24px -8px rgba(10, 22, 40, 0.18);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .tqr-nav-links.tqr-open { display: flex; }

  .tqr-nav-links a {
    padding: 16px 6vw;
    border-bottom: 1px solid #F0EEE7;
    font-size: 15.5px;
    color: #1E2B3C;
    min-height: 44px;
  }
  .tqr-nav-links a.tqr-nav-wa { color: #0C447C !important; }
  .tqr-nav-links a.tqr-nav-cta {
    margin: 12px 6vw;
    padding: 13px 16px;
    justify-content: center;
    text-align: center;
    border: none;
    border-radius: 8px;
  }

  .tqr-nav-toggle { display: inline-flex; }
}

/* Nunca provocar scroll horizontal por la cabecera */
.tqr-nav, .tqr-nav-links { max-width: 100vw; }
