/* App Shell · identidad verde solo cuando la ruta activa es Inicio. */
html.shell-home-identity .app-shell{--shell-bar-height:78px!important}
html.shell-home-identity .shell-topbar{
  background:linear-gradient(180deg,#003D2D 0%,#005C43 58%,#0D6B43 100%)!important;
  border-bottom:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html.shell-home-identity .shell-topbar::after{content:none!important;display:none!important}
html.shell-home-identity .shell-views{background:#005C43!important}

/* Marca: My Plaza y lema al 60%; municipio como protagonista. */
html.shell-home-identity .shell-home-brand{
  color:#fff!important;
  gap:11px!important;
  padding:4px 0!important;
}
html.shell-home-identity .shell-home-brand:focus-visible{outline-color:rgba(255,255,255,.75)!important}
html.shell-home-identity .shell-brand-logo{
  width:56px!important;
  height:56px!important;
  flex:0 0 56px!important;
  margin:0 2px 0 0!important;
  object-fit:contain!important;
  filter:none!important;
}
html.shell-home-identity .shell-brand-copy{gap:2px!important;line-height:1!important}
html.shell-home-identity .shell-brand-label{
  display:block!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:500!important;
  color:rgba(255,255,255,.60)!important;
}
html.shell-home-identity #shellMunicipalityName,
html.shell-home-identity .shell-brand-copy strong{
  color:#fff!important;
  font-size:27px!important;
  line-height:.98!important;
  font-weight:500!important;
  letter-spacing:-.025em!important;
  text-shadow:none!important;
}
html.shell-home-identity #shellMunicipalitySubline,
html.shell-home-identity .shell-brand-copy small{
  color:rgba(255,255,255,.60)!important;
  font-size:11px!important;
  line-height:1.05!important;
  font-weight:500!important;
}
html.shell-home-identity #shellMunicipalityDemand{color:rgba(255,255,255,.85)!important;opacity:1!important}

/* Bandera y avatar deben leerse como elementos distintos. */
html.shell-home-identity .shell-top-actions{gap:10px!important;align-items:center!important}
html.shell-home-identity .shell-municipality-image{
  width:42px!important;
  height:28px!important;
  flex:0 0 42px!important;
  border-radius:3px!important;
  border:1px solid rgba(255,255,255,.55)!important;
  background:rgba(255,255,255,.10)!important;
  box-shadow:none!important;
  object-fit:cover!important;
}
html.shell-home-identity #shellTopAccount.shell-account-avatar{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  flex:0 0 40px!important;
  border:1px solid rgba(255,255,255,.34)!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html.shell-home-identity #shellTopAccount.shell-account-avatar>.icon{color:#fff!important;stroke:#fff!important}
html.shell-home-identity #shellTopAccount .shell-account-initials{background:rgba(255,255,255,.18)!important;color:#fff!important}
html.shell-home-identity #shellTopAccount .shell-account-photo{border:0!important}

/* El buscador expandido toma todo el App Shell; no cambia la navegación, solo la oculta mientras está abierto. */
html.shell-search-expanded .shell-topbar,
html.shell-search-expanded .shell-bottom-nav{display:none!important}
html.shell-search-expanded .shell-views{inset:0!important;background:#fff!important}
html.shell-search-expanded .shell-view{inset:0!important;height:100%!important}
html.shell-search-expanded .app-shell{background:#fff!important}

@media(max-width:360px){
  html.shell-home-identity .app-shell{--shell-bar-height:76px!important}
  html.shell-home-identity .shell-home-brand{gap:8px!important}
  html.shell-home-identity .shell-brand-logo{width:52px!important;height:52px!important;flex-basis:52px!important}
  html.shell-home-identity #shellMunicipalityName,
  html.shell-home-identity .shell-brand-copy strong{font-size:25px!important}
  html.shell-home-identity .shell-top-actions{gap:7px!important}
  html.shell-home-identity .shell-municipality-image{width:38px!important;height:25px!important;flex-basis:38px!important}
  html.shell-home-identity #shellTopAccount.shell-account-avatar{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;flex-basis:38px!important}
}
