/* MISAVISOS.COM - Public dark header universal */
.ma-public-topbar{
  position:sticky;
  top:0;
  z-index:9999;
  background:linear-gradient(90deg,#18233d 0%,#242a4b 48%,#2e2374 100%);
  border-bottom:1px solid rgba(255,255,255,.10);
  box-shadow:0 16px 38px rgba(15,23,42,.24);
}

.ma-public-topbar__inner{
  width:90%;
  max-width:1180px;
  min-height:86px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
}

.ma-public-brand{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.ma-public-brand img{
  width:auto;
  max-width:190px;
  max-height:46px;
  object-fit:contain;
}

.ma-public-nav{
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.ma-public-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:999px;
  color:rgba(255,255,255,.92) !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.ma-public-nav a:hover,
.ma-public-nav a.is-active{
  background:rgba(255,255,255,.13);
  color:#ffffff !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}

.ma-public-menu-btn{
  display:none;
  justify-self:end;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:15px;
  background:rgba(255,255,255,.10);
  padding:10px;
}

.ma-public-menu-btn span{
  display:block;
  height:2px;
  background:#ffffff;
  border-radius:999px;
  margin:5px 0;
}

/* Cuando usamos el header nuevo, ocultamos headers públicos anteriores */
body.ma-public-unified .ma2-header,
body.ma-public-unified .ma-top,
body.ma-public-unified .ma-app-header,
body.ma-public-unified .ma-site-header:not(.ma-public-topbar){
  display:none !important;
}

@media(max-width:980px){
  .ma-public-topbar__inner{
    grid-template-columns:1fr auto;
    min-height:72px;
  }

  .ma-public-brand img{
    max-width:158px;
    max-height:42px;
  }

  .ma-public-menu-btn{
    display:inline-block;
  }

  .ma-public-nav{
    position:fixed;
    left:5%;
    right:5%;
    top:82px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:14px;
    background:#ffffff;
    border:1px solid rgba(15,23,42,.10);
    border-radius:24px;
    box-shadow:0 26px 80px rgba(15,23,42,.22);
  }

  body.ma-public-menu-open .ma-public-nav{
    display:flex;
  }

  .ma-public-nav a{
    justify-content:flex-start;
    min-height:44px;
    padding:12px 14px;
    color:#253247 !important;
  }

  .ma-public-nav a:hover,
  .ma-public-nav a.is-active{
    background:#eef4ff;
    color:#1d4ed8 !important;
    box-shadow:none;
  }
}

/* MISAVISOS.COM FIX: header logo dinámico */
.ma-public-brand img {
  display: block;
  width: auto !important;
  max-width: 150px !important;
  max-height: 42px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* MISAVISOS.COM FIX: logo más grande en header público */
.ma-public-brand img {
  max-width: 190px !important;
  max-height: 58px !important;
}

.ma-public-brand {
  min-height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* MISAVISOS.COM FIX: logo header público más grande v2 */
.ma-public-brand img {
  max-width: 220px !important;
  max-height: 68px !important;
}

.ma-public-brand {
  min-height: 68px !important;
}

/* MISAVISOS.COM FIX: destacar item Iniciar sesión en menú público */
.ma-public-nav a[href="/login.php"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #20b8ff 0%, #3268ff 48%, #8b3cff 100%) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 26px rgba(50, 104, 255, .28) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
}

.ma-public-nav a[href="/login.php"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(50, 104, 255, .36) !important;
  filter: brightness(1.05);
}

/* MISAVISOS.COM FIX: email protegido */
.ma-email-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-weight: 850;
  font-family: inherit;
  cursor: pointer;
}

.ma-email-visible {
  color: #1d4ed8;
  font-weight: 850;
  text-decoration: none;
}
