/* SIMETRIA_CATALOGO_20261126
   Marcos iguales para cada fila. La imagen completa se adapta al marco;
   los planos de ficha, ventanas de ampliación y photo-frame son independientes. */
@media screen {
  html:root body main :is(.product-image,.category-image,.family-image,.family-art,.group-image,.bd-card-image,.card-image):has(>img,>.photo-frame) {
    position:relative;display:block;flex:0 0 auto;align-self:start;
    width:100%;max-width:100%;height:auto!important;min-height:0!important;
    aspect-ratio:3 / 2!important;padding:0!important;margin:0;min-width:0;overflow:hidden;
    box-sizing:border-box;background:#fff;
  }
  html:root body main :is(.product-image,.category-image,.family-image,.family-art,.group-image,.bd-card-image,.card-image)>img {
    position:absolute;inset:0;display:block;width:100%;max-width:100%;
    height:100%!important;max-height:100%!important;min-height:0;
    aspect-ratio:auto;padding:0;margin:0;object-fit:contain;object-position:center;transform:none;
  }
  html:root body main .card-media {
    position:relative;flex:0 0 auto;width:100%;height:auto;min-height:0;
    aspect-ratio:3 / 2;padding:0;overflow:hidden;box-sizing:border-box;
  }
  html:root body main .card-media img {
    position:absolute;inset:0;width:100%;max-width:100%;height:100%;max-height:100%;margin:0;
  }
  html:root body main .card-media:is(.diagram,.small-original) {aspect-ratio:3 / 2}
  html:root body main .card-media:is(.diagram,.small-original) img {height:100%;object-fit:contain}
  html:root body main .card>figure {flex:0 0 auto;width:100%;min-width:0;margin:0}
  html:root body main .card>figure>img {
    display:block;width:100%;max-width:100%;height:auto;max-height:none;
    aspect-ratio:3 / 2;object-fit:contain;object-position:center;padding:0;margin:0;
  }
  html:root body main :is(.product-copy,.group-copy,.category-copy,.family-copy,.card-copy,.card-body) {
    min-width:0;box-sizing:border-box;
  }
  html:root body main :is(.product-card,.group-card,.category-card,.family-card,.card,.solution-card)>
  :is(.product-copy,.group-copy,.category-copy,.family-copy,.card-copy,.card-body) {
    display:flex;flex-direction:column;flex:1;
  }
  html:root body main :is(.product-copy,.group-copy,.category-copy,.family-copy,.card-copy,.card-body)>
  :is(.card-bottom,.card-link,.card-foot,.card-actions,.text-link):last-child {margin-top:auto}
  html:root body main :is(.product-copy,.group-copy,.card-copy)>
  :is(.product-tag,.eyebrow) {min-height:3em}
  html:root body main :is(.product-copy,.group-copy,.category-copy,.family-copy,.card-copy,.card-body)>h3 {
    min-height:3.9em;box-sizing:border-box;
  }
  html:root body main .pb-card>figure {margin:0;min-width:0;flex:0 0 auto}
  html:root body main .pb-card>figure img {
    display:block;width:100%;max-width:100%;height:auto;aspect-ratio:3 / 2;object-fit:contain;margin:0;
  }
  html:root body main .pb-card>figure figcaption {min-height:3em;box-sizing:content-box}
  html:root body main .pb-card-copy>.eyebrow {min-height:3em}
  html:root body main .pb-card-copy>h3 {min-height:2.6em;line-height:1.3}
  html:root body main .pb-card-copy>.pb-text-link:last-child {margin-top:auto}
}
@media screen and (max-width:580px) {
  html:root body main :is(.product-copy,.group-copy,.card-copy)>
  :is(.product-tag,.eyebrow),
  html:root body main :is(.product-copy,.group-copy,.category-copy,.family-copy,.card-copy,.card-body)>h3,
  html:root body main .pb-card-copy>:is(.eyebrow,h3),
  html:root body main .pb-card>figure figcaption {min-height:0}
}

@media screen {
  html:root body main :is(.product-image,.category-image,.family-image,.family-art,.group-image,.bd-card-image,.card-image)>.photo-frame {
    position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;
  }
  html:root body main :is(.product-copy,.group-copy,.card-copy)>:is(.product-tag,.eyebrow) {line-height:1.5}
  html[data-lm-section="VALVULAS"] body main .product-copy>.eyebrow,
  html[data-lm-reading-area="VALVULAS"] body main .product-copy>.eyebrow {min-height:4.5em}
}
@media screen and (max-width:580px) {
  html[data-lm-section="VALVULAS"] body main .product-copy>.eyebrow,
  html[data-lm-reading-area="VALVULAS"] body main .product-copy>.eyebrow {min-height:0}
}

/* Tarjetas legibles en pantallas intermedias. */
@media screen and (min-width:761px) and (max-width:1100px) {
  html:is([data-lm-section="TUBERIAS"],[data-lm-reading-area="TUBERIAS"]) body main .product-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:760px) {
  html:is([data-lm-section="TUBERIAS"],[data-lm-reading-area="TUBERIAS"]) body main .product-grid {grid-template-columns:minmax(0,1fr)}
}
@media screen and (min-width:801px) and (max-width:1100px) {
  html:root body main .pb-products {grid-template-columns:repeat(2,minmax(0,1fr))}
}
