/* Busco Autos V28: refinement of the existing V21.5/V26/V27 UI; no data changes. */
:root {--ba28-navy:#071a34;--ba28-accent:#c8172e}
/* Keep the original V8 mark, with a readable brand name alongside it. */
#root>header>a.logo{
  background:none!important;display:inline-flex!important;align-items:center!important;
  gap:8px!important;text-decoration:none!important;white-space:nowrap!important;
  font-size:0!important;line-height:1!important;min-width:0!important;
}
#root>header>a.logo::before{
  content:"";display:block;flex:0 0 44px;width:44px;height:44px;
  background:url('/assets/brand-v8/icono_busco_autos_v8.svg') center/contain no-repeat;
}
#root>header>a.logo::after{
  content:"BUSCO AUTOS";display:block;color:var(--ba28-navy);font-weight:850;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;letter-spacing:-.055em;line-height:1.1;
}
#root>header>a.logo:focus-visible{outline:3px solid var(--ba28-accent);outline-offset:2px}
/* Existing native sharing behavior stays intact. */
#root>header .sharePlatform {align-items:center!important}
#root>header .sharePageUrl{overflow-wrap:anywhere;font-weight:700!important}
#root>header .sharePageButton{border-radius:12px!important}
.facebookListings>.facebookClarification{max-width:42ch}
.facebookListings .facebookGroupJoin{display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:normal!important;line-height:1.25!important;min-height:44px!important}
.mycar-noticias-footer .mcn-intro p{margin-top:5px!important;margin-bottom:6px!important;line-height:1.4!important}
.mycar-noticias-footer .mcn-instagram{color:#a41536;font-weight:750;display:inline-flex;align-items:center;min-height:36px;text-decoration:underline;text-underline-offset:3px}
.mycar-noticias-footer .mcn-instagram:focus-visible{outline:3px solid #c8172e;outline-offset:3px}
@media(max-width:700px){
  #root>header:has(>.sharePlatform){
    grid-template-columns:minmax(0,1fr) auto auto!important;
    column-gap:6px!important;row-gap:7px!important;padding:9px 12px!important;
  }
  #root>header>a.logo{grid-column:1!important;grid-row:1!important;width:auto!important;
    height:46px!important;min-width:0!important;max-width:100%!important;justify-self:start!important;
    background:none!important;margin:0!important}
  #root>header>a.logo::before{flex-basis:43px;width:43px;height:43px}
  #root>header>a.logo::after{font-size:14px;max-width:90px;white-space:normal}
  #root>header>.loginButton{grid-column:2!important;grid-row:1!important;min-height:42px!important}
  #root>header>.primary{grid-column:3!important;grid-row:1!important;min-height:42px!important}
  #root>header>.sharePlatform{grid-column:1/-1!important;grid-row:2!important;
    grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;
    padding:2px 0 0!important;margin:0!important}
  #root>header .sharePageUrl{font-size:12px!important;line-height:1.3!important}
  #root>header>nav{grid-column:1/-1!important;grid-row:3!important}
  #root>main{padding-top:10px!important}
  #root .catalogHeader p{margin:0!important}
  #root .catalogHeader h2{font-size:19px!important}
  .facebookListings{margin-top:20px!important}
  .facebookListings .facebookGroupJoin{font-size:12px!important;padding:8px 12px!important;max-width:100%!important}
  .facebookListings .facebookClarification,.facebookListings .facebookLastListing{font-size:11px!important}
  .mycar-noticias-footer .mcn-intro{gap:9px!important}
  .mycar-noticias-footer .mcn-intro h2{font-size:clamp(23px,6vw,30px)!important;line-height:1.15!important}
  .mycar-noticias-footer .mcn-intro p{font-size:13px!important}
  .mycar-noticias-footer .mcn-cta{display:none}
}
@media(max-width:420px){
 #root>header:has(>.sharePlatform){column-gap:4px!important;padding-inline:9px!important}
 #root>header>a.logo{gap:5px!important}
 #root>header>a.logo::before{flex-basis:38px;width:38px;height:38px}
 #root>header>a.logo::after{font-size:12px;max-width:65px;letter-spacing:-.05em}
 #root>header>.loginButton,#root>header>.primary{font-size:11px!important;padding:7px 7px!important}
}
@media(max-width:345px){
 #root>header>a.logo::after{font-size:11px;max-width:52px}
 #root>header>a.logo::before{flex-basis:35px;width:35px;height:35px}
}
@media(prefers-reduced-motion:reduce){#root>header *{scroll-behavior:auto}}
