/* ============================================================
   Marketing Ultra — Topbar unificada (.nav glass)
   Para páginas servidas por Astra: posts, blog (home.php), páginas
   estándar, archivos, 404. Reemplaza el header de Astra (#masthead).
   AUTOCONTENIDO: valores literales, no depende de mu-home.css ni de
   variables CSS del canvas. Espejo 1:1 del .nav de los templates canvas
   (home/about/contacto/landing), namespaced .mku-topbar para no colisionar.
   El wordmark .mk hereda su estilo global de style.css.
   ============================================================ */

.mku-topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(15,23,42,.07);
  font-family:'Sora', system-ui, sans-serif;
}
/* offset solo si hay admin bar (usuario logueado) */
.admin-bar .mku-topbar{ top:32px; }
@media (max-width:782px){ .admin-bar .mku-topbar{ top:46px; } }

.mku-topbar .mku-tb-wrap{
  max-width:1200px; margin:0 auto;
  padding-left:clamp(20px,5vw,56px); padding-right:clamp(20px,5vw,56px);
  display:flex; align-items:center; justify-content:space-between; height:72px;
}
.mku-topbar .mku-tb-brand{ display:inline-flex; align-items:center; text-decoration:none; line-height:1; }

/* Wordmark: mismo tamaño que el global .nav .mk del canvas */
.mku-topbar .mk{ font-size:30px; }
@media (max-width:600px){ .mku-topbar .mk{ font-size:25px; } }

.mku-topbar .mku-tb-links{ display:flex; gap:clamp(16px,2.2vw,30px); align-items:center; font-weight:600; font-size:16px; }
.mku-topbar .mku-tb-links a{ text-decoration:none; color:#2A3344; }
.mku-topbar .mku-tb-links a:hover{ color:#0F172A; }
.mku-topbar .mku-tb-cta{ font-weight:700; font-size:15px; padding:9px 18px; border-radius:999px; background:#3CE595; color:#0F172A; border:2px solid #168A55; box-shadow:0 3px 0 0 #168A55; text-decoration:none; }

.mku-topbar .mku-tb-lang{ display:flex; gap:8px; align-items:center; font-family:'JetBrains Mono', ui-monospace, monospace; font-size:13px; text-transform:uppercase; letter-spacing:.06em; }
.mku-topbar .mku-tb-lang a{ text-decoration:none; color:#8B95A7; padding:4px 7px; border-radius:7px; }
.mku-topbar .mku-tb-lang a.current{ color:#0F172A; background:#F4F6F9; font-weight:700; }

.mku-topbar .mku-tb-burger{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
.mku-topbar .mku-tb-burger span{ display:block; width:26px; height:3px; border-radius:3px; background:#0F172A; margin:5px 0; transition:transform .2s ease, opacity .2s ease; }

/* ============ RESPONSIVE (igual breakpoint que el canvas: 900px) ============ */
@media (max-width:900px){
  .mku-topbar .mku-tb-burger{ display:block; }
  .mku-topbar .mku-tb-links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(15,23,42,.1);
    box-shadow:0 14px 28px rgba(15,23,42,.10);
    padding:6px 0 14px; display:none;
  }
  .mku-topbar.open .mku-tb-links{ display:flex; }
  .mku-topbar .mku-tb-links a{ padding:14px clamp(20px,5vw,56px); }
  .mku-topbar .mku-tb-links .mku-tb-cta{ margin:10px clamp(20px,5vw,56px) 0; text-align:center; }
  .mku-topbar .mku-tb-links .mku-tb-lang{ padding:10px clamp(20px,5vw,56px) 0; }
  .mku-topbar.open .mku-tb-burger span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .mku-topbar.open .mku-tb-burger span:nth-child(2){ opacity:0; }
  .mku-topbar.open .mku-tb-burger span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
}
