/* ===== EVLI BRAND FIX V3 ===== */
/* Header premium: logo izquierdo, tagline debajo, menu centrado, acciones derecha */

.nav,
header .nav,
.site-header .nav{
  display:grid !important;
  grid-template-columns:280px minmax(420px,1fr) auto !important;
  align-items:center !important;
  gap:24px !important;
  min-height:82px !important;
  padding:10px 18px 10px 28px !important;
}

/* BLOQUE LOGO */
header .brand,
.nav .brand,
.site-header .brand{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:4px !important;
  min-width:0 !important;
  width:280px !important;
  text-decoration:none !important;
  overflow:hidden !important;
}

/* LOGO MÁS PRESENTE, SIN INVADIR */
header .brand img,
.nav .brand img,
.site-header .brand img,
.evli-logo-nav{
  display:block !important;
  height:54px !important;
  width:auto !important;
  max-width:220px !important;
  object-fit:contain !important;
  flex:0 0 auto !important;
}

/* OCULTAR NOMBRE ESCRITO EXTRA */
.brand-copy strong,
.brand-copy b,
.brand-title,
.brand-name,
.brand-copy > *:first-child:not(.brand-tagline){
  display:none !important;
}

/* TAGLINE DEBAJO DEL LOGO */
.brand-copy{
  display:block !important;
  width:220px !important;
  max-width:220px !important;
  line-height:1 !important;
  margin-left:2px !important;
  overflow:hidden !important;
}

.brand-copy .brand-tagline,
.brand-copy > *:last-child{
  display:block !important;
  color:#5d6d67 !important;
  font-size:9.5px !important;
  font-weight:900 !important;
  letter-spacing:.22em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  margin:0 !important;
}

/* MENU CENTRADO */
.nav-links,
header .nav-links,
.site-header .nav-links{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:24px !important;
  min-width:0 !important;
  white-space:nowrap !important;
}

.nav-links a,
header .nav-links a,
.site-header .nav-links a{
  font-size:14px !important;
  font-weight:900 !important;
  letter-spacing:-.01em !important;
  white-space:nowrap !important;
}

/* ACCIONES DERECHA */
.nav-actions,
header .nav-actions,
.site-header .nav-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
  white-space:nowrap !important;
}

/* FOOTER LOGO BLANCO */
.footer-brand{
  display:block !important;
}

.footer-brand .brand-mark{
  display:none !important;
}

.footer-brand .evli-logo-footer,
.evli-logo-footer.evli-logo-white{
  display:block !important;
  width:min(300px,100%) !important;
  height:auto !important;
  max-height:96px !important;
  object-fit:contain !important;
  object-position:left center !important;
  margin:0 0 22px 0 !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:brightness(0) invert(1) !important;
  opacity:1 !important;
}

.footer-brand .evli-footer-title,
.footer-brand > strong{
  display:none !important;
}

/* RESPONSIVE */
@media(max-width:1200px){
  .nav,
  header .nav,
  .site-header .nav{
    grid-template-columns:240px minmax(360px,1fr) auto !important;
    gap:18px !important;
    padding-left:22px !important;
  }

  header .brand,
  .nav .brand,
  .site-header .brand{
    width:240px !important;
  }

  header .brand img,
  .nav .brand img,
  .site-header .brand img,
  .evli-logo-nav{
    height:50px !important;
    max-width:200px !important;
  }

  .brand-copy{
    width:200px !important;
    max-width:200px !important;
  }

  .brand-copy .brand-tagline,
  .brand-copy > *:last-child{
    font-size:8.5px !important;
    letter-spacing:.18em !important;
  }

  .nav-links,
  header .nav-links,
  .site-header .nav-links{
    gap:16px !important;
  }

  .nav-links a,
  header .nav-links a,
  .site-header .nav-links a{
    font-size:13px !important;
  }
}

@media(max-width:980px){
  .nav,
  header .nav,
  .site-header .nav{
    grid-template-columns:210px 1fr auto !important;
  }

  .brand-copy{
    display:none !important;
  }

  header .brand,
  .nav .brand,
  .site-header .brand{
    width:210px !important;
  }

  header .brand img,
  .nav .brand img,
  .site-header .brand img,
  .evli-logo-nav{
    height:48px !important;
    max-width:190px !important;
  }
}

@media(max-width:760px){
  .nav,
  header .nav,
  .site-header .nav{
    display:flex !important;
    justify-content:space-between !important;
    min-height:76px !important;
    padding:10px 14px !important;
  }

  header .brand,
  .nav .brand,
  .site-header .brand{
    width:auto !important;
  }

  header .brand img,
  .nav .brand img,
  .site-header .brand img,
  .evli-logo-nav{
    height:44px !important;
    max-width:170px !important;
  }

  .nav-links,
  header .nav-links,
  .site-header .nav-links{
    display:none !important;
  }
}
