/* CFM - Opción 3: ficha industrial con encabezado jerárquico y banda de marca/SKU. */
/* Solo se aplica en el detalle del producto; el resto del catálogo queda intacto. */
body.ae35-body .cfm-product-info-v4 .cfm-p3-heading{
  padding:0 0 15px;
  border-bottom:1px solid #dce5ee;
  margin:0 0 15px;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-heading .ae91-heading-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin-bottom:10px!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-heading h1{
  margin:0 0 14px!important;
  color:#092745!important;
  font-size:clamp(27px,2.25vw,36px)!important;
  font-weight:770!important;letter-spacing:-.03em!important;
  line-height:1.17!important;
  text-wrap:balance;
  overflow-wrap:break-word;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-heading .cfm-detail-rating{
  display:inline-flex!important;align-items:center;justify-content:flex-start;
  flex-wrap:wrap;gap:8px;margin:0!important;padding:0!important;
  font-size:12px!important;line-height:1.45!important;text-decoration:none;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-heading .cfm-detail-rating strong{
  font-size:12px!important;color:#173752!important;white-space:nowrap;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-heading .cfm-detail-rating>span:last-child{
  color:#667b8f!important;font-size:11px!important;
}
/* Tres zonas alineadas: logo cuadrado / nombre completo / SKU. */
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr) minmax(115px,.95fr)!important;
  align-items:center!important;gap:0!important;
  padding:12px!important;margin:0 0 19px!important;
  min-height:118px;
  background:#f7f9fc!important;
  border:1px solid #d9e4ef!important;
  border-radius:12px!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity.cfm-p3-has-brand:not(.cfm-p3-has-sku){
  grid-template-columns:82px minmax(0,1fr)!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity.cfm-p3-has-sku:not(.cfm-p3-has-brand){
  grid-template-columns:minmax(0,1fr)!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-art{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:82px!important;height:82px!important;aspect-ratio:1/1!important;
  min-width:0!important;margin:0!important;padding:7px!important;
  background:#fff!important;border:1px solid #d4e0eb!important;
  border-radius:9px!important;box-sizing:border-box!important;
  text-decoration:none!important;overflow:hidden!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-art:focus-visible{
  outline:3px solid #1774d4;outline-offset:2px;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-logo-image{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;aspect-ratio:1/1!important;
  border:none!important;border-radius:0!important;
  object-fit:contain!important;object-position:center!important;
  background:transparent!important;margin:0!important;padding:0!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-logo-fallback{
  display:grid;place-items:center;width:100%;height:100%;
  border-radius:6px;color:#105d9e;background:#eaf3fd;
  font-size:27px;font-weight:800;letter-spacing:-.04em;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-text{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-self:stretch!important;min-width:0!important;gap:7px!important;
  padding:9px 10px 9px 15px!important;box-sizing:border-box!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-label{
  display:block!important;margin:0!important;
  color:#667b90!important;font-size:10px!important;line-height:1.35!important;
  font-weight:740!important;letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-name{
  display:block!important;margin:0!important;padding:0!important;min-width:0!important;
  background:none!important;border:0!important;
  color:#0f3050!important;text-decoration:none!important;
  font-size:12px!important;line-height:1.35!important;
  font-weight:800!important;letter-spacing:.005em!important;
  overflow-wrap:anywhere;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-name:hover,
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-name:focus-visible{
  text-decoration:underline!important;color:#0965b5!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-sku{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;align-self:stretch!important;gap:9px!important;
  min-height:82px!important;min-width:0!important;
  padding:9px 0 9px 13px!important;
  border-left:1px solid #d9e3ec!important;
  box-sizing:border-box!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-sku-line{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  gap:3px!important;min-width:0!important;max-width:100%!important;
  line-height:1.3!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-sku-line>span{
  color:#667b90!important;font-size:10px!important;font-weight:650!important;
}
body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-sku-line strong{
  color:#092745!important;font-size:14px!important;font-weight:850!important;
  letter-spacing:.005em!important;overflow-wrap:anywhere;word-break:break-word;
}
@media(max-width:1250px){
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity{grid-template-columns:72px minmax(0,1fr) minmax(100px,.9fr)!important;padding:10px!important;min-height:106px;}
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity.cfm-p3-has-brand:not(.cfm-p3-has-sku){grid-template-columns:72px minmax(0,1fr)!important}
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-art{width:72px!important;height:72px!important;}
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-brand-text{padding-left:10px!important;padding-right:7px!important}
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-sku{padding-left:10px!important}
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-sku-line strong{font-size:13px!important}
}
/* En pantallas angostas, el SKU pasa a una fila inferior para mantener legibles marca e imagen. */
@media(max-width:540px){
  body.ae35-body .cfm-product-info-v4 .cfm-p3-heading h1{font-size:clamp(25px,7.4vw,32px)!important}
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity.cfm-p3-has-brand.cfm-p3-has-sku{
    grid-template-columns:72px minmax(0,1fr)!important;
  }
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity.cfm-p3-has-brand.cfm-p3-has-sku .cfm-p3-sku{
    grid-column:1/-1!important;min-height:0!important;
    border-left:0!important;border-top:1px solid #dce6ee!important;
    padding:12px 3px 1px!important;margin-top:10px;
  }
  body.ae35-body .cfm-product-info-v4 .cfm-p3-identity .cfm-p3-sku-line{
    flex-direction:row!important;gap:8px!important;align-items:baseline!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.ae35-body .cfm-p3-brand-art,body.ae35-body .cfm-p3-brand-name{transition:none!important}
}
