/* ARANDA ELECTRIC · Portal empresarial V8.4
   Capa final aislada: prevalece sobre los estilos históricos de B2B. */
body.b2b-body.b2b-body-enterprise header.ae83-header,
body.b2b-body.b2b-body-enterprise .b2b-top.ae83-header{
  background:#ffffff !important;
  border-bottom:1px solid #dbe4ec !important;
  color:#16324d !important;
  box-shadow:0 2px 14px rgba(16,37,62,.045);
}
body.b2b-body.b2b-body-enterprise .ae83-header > .ae83-header-inner{
  width:min(1360px,calc(100% - 48px));
  min-height:84px;
  margin-inline:auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:nowrap;
}
body.b2b-body.b2b-body-enterprise .ae83-header .ae83-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:18px;
  color:#16324d !important;
  text-decoration:none !important;
  flex:0 0 auto;
}
.ae83-logo-image{
  display:block;
  width:auto;
  height:54px;
  max-width:195px;
  object-fit:contain;
  flex:0 0 auto;
}
.ae83-logo-fallback{color:#123f75;font-size:17px;line-height:1.2;max-width:190px}
.ae84-brand-text{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding-left:16px;
  border-left:1px solid #d7e0ea;
  min-height:40px;
  white-space:nowrap;
}
.ae84-brand-text span{
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#314b65;
}
.ae84-brand-text b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:28px;
  padding:0 10px;
  border-radius:6px;
  background:#123d68;
  color:#fff;
  font-size:12px;
  letter-spacing:.06em;
}
body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  min-width:0;
}
body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:9px 11px;
  color:#29445f !important;
  font-size:12px;
  font-weight:650;
  border-radius:7px;
  background:transparent;
  text-decoration:none !important;
  white-space:nowrap;
}
body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav a:hover,
body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav a:focus-visible{
  background:#edf3f9;
  color:#0b477e !important;
}
body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav .ae83-public-link{
  margin-left:8px;
  background:#f5f8fb;
  border:1px solid #d9e4ee;
  color:#164875 !important;
  font-weight:700;
}
body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav .ae83-public-link:hover{
  background:#e9f2fa;
}
body.b2b-body.b2b-body-enterprise .ae83-context{
  background:#173f61 !important;
  color:#e5f1fc;
  border-bottom:0;
  font-size:12px;
}
body.b2b-body.b2b-body-enterprise .ae83-context-inner{
  width:min(1360px,calc(100% - 48px));
  margin:auto;
  min-height:36px;
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  padding:8px 0;
}
.ae83-context strong{font-size:10px;font-weight:800;letter-spacing:.10em;text-transform:uppercase;color:#fff}
.ae83-context span{opacity:.82}

/* Cards: cuatro columnas amplias, tipografía corporativa y acciones constantes. */
body.b2b-body .b2b-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:19px}
body.b2b-body .b2b-catalog-card.ae83-product-card{min-width:0;display:flex;flex-direction:column;border:1px solid #dbe4ec;border-radius:12px;box-shadow:0 3px 15px rgba(20,44,68,.045);overflow:hidden;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}
body.b2b-body .b2b-catalog-card.ae83-product-card:hover{border-color:#b7cbdc;box-shadow:0 7px 22px rgba(20,44,68,.075)}
body.b2b-body .ae83-product-media{display:flex;align-items:center;justify-content:center;height:180px;min-height:180px;padding:15px;background:#f8fafc;border-bottom:1px solid #e6edf3;border-radius:0}
body.b2b-body .ae83-product-media img{max-width:100%;width:auto;max-height:156px;object-fit:contain}
body.b2b-body .ae83-product-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:0;padding:17px 16px 16px}
.ae83-product-meta{min-width:0;display:flex;align-items:center;gap:8px;font-size:10px;font-weight:730;text-transform:uppercase;letter-spacing:.025em;color:#54708b}
.ae83-product-meta span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ae83-product-meta span:first-child{max-width:70%}
.ae83-product-meta span+span{padding-left:8px;border-left:1px solid #dce6ef;max-width:40%}
body.b2b-body .ae83-product-title{margin:11px 0 0;padding:0;font-size:15px;font-weight:750;line-height:1.42;letter-spacing:-.01em;color:#142d49;min-height:64px;max-height:64px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}
body.b2b-body .ae83-product-title a{color:inherit;text-decoration:none}
body.b2b-body .ae83-product-title a:hover{color:#0a6ab2}
.ae83-product-sku{min-height:18px;margin:7px 0 0;font-size:12px;color:#667e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ae83-price-box{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#f3f7fb;border:1px solid #e2eaf2;border-radius:8px;margin-top:14px;padding:12px 13px;min-height:99px}
.ae83-price-label{text-transform:uppercase;font-size:10px;letter-spacing:.06em;font-weight:750;color:#55718d}
.ae83-price-value{font-size:21px;letter-spacing:-.02em;line-height:1.2;color:#103658;font-weight:780}
.ae83-price-box small{color:#67809a;font-size:11px;line-height:1.3}
.ae83-purchase-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px 13px;margin:13px 0 0;color:#516982;font-size:11px}
.ae83-purchase-meta strong{color:#223f5f;font-size:12px}
.ae83-volume-note{font-size:11px;line-height:1.35;color:#2c6489;margin:7px 0 0}
.ae83-product-actions{margin-top:auto;padding-top:15px;display:flex;flex-direction:column;gap:9px}
body.b2b-body .ae83-detail-link{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:38px;padding:9px 11px;border:1px solid #c9d9e8;border-radius:7px;text-decoration:none;font-size:12px;font-weight:750;color:#17456d;background:#fff}
body.b2b-body .ae83-detail-link:hover{background:#f5f9fc}
.ae83-add-form{display:grid;grid-template-columns:88px minmax(0,1fr);gap:9px;align-items:end}
.ae83-qty-label{font-size:10px;color:#697f96;font-weight:650;display:flex;flex-direction:column;gap:4px}
body.b2b-body .ae83-add-form input[type="number"]{box-sizing:border-box;width:100%;min-width:0;height:39px;padding:7px 8px;border:1px solid #c8d7e5;border-radius:7px;color:#183858;font-size:13px;font-weight:600;font-family:inherit;background:#fff}
body.b2b-body .ae83-add-button{border:0;border-radius:7px;min-width:0;min-height:39px;padding:9px 7px;font-size:12px;font-weight:750;font-family:inherit;background:#0e568f;color:#fff;cursor:pointer;text-align:center}
body.b2b-body .ae83-add-button:hover{background:#0a4270}
.ae83-read-only{font-size:11px;color:#627991}

@media (max-width: 1220px){
  body.b2b-body.b2b-body-enterprise .ae83-header > .ae83-header-inner{flex-wrap:wrap;gap:8px}
  body.b2b-body.b2b-body-enterprise .ae83-header .ae83-brand{flex:1 0 auto}
  body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav{flex:1 1 100%;justify-content:flex-start}
  body.b2b-body .b2b-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 920px){
  body.b2b-body .b2b-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ae84-brand-text span{font-size:12px}
}
@media (max-width: 650px){
  body.b2b-body.b2b-body-enterprise .ae83-header > .ae83-header-inner,
  body.b2b-body.b2b-body-enterprise .ae83-context-inner{width:calc(100% - 28px)}
  .ae83-logo-image{height:43px;max-width:148px}
  .ae84-brand-text{padding-left:12px;gap:7px}
  .ae84-brand-text span{font-size:10px}
  .ae84-brand-text b{min-width:32px;height:24px;font-size:11px}
  body.b2b-body.b2b-body-enterprise .ae83-header .ae83-nav{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:3px}
  body.b2b-body .b2b-catalog-grid{grid-template-columns:1fr}
}
