/* MAYORLED 6.21 — Imágenes COMPLETAS en Destacados.
 * Reemplaza únicamente el encuadre de la versión 6.20; no cambia
 * galerías de fichas individuales, productos ni carrito.
 */
body .ml-home-2026 .mlp-carousel .mlp-grid > .mlp-card {
  min-width:0!important;
  overflow:hidden!important;
  align-self:stretch!important;
}
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link {
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  display:block!important;
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  border-radius:13px!important;
  background:#f1f5f8!important;
  box-sizing:border-box!important;
}
/* Borde discreto: el fondo ya no simula una imagen recortada. */
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  border:1px solid rgba(9,35,62,.06);
  border-radius:inherit;
  pointer-events:none;
}
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link::after,
body .ml-home-2026 .mlp-carousel .mlp-card .mlp-photo-backdrop {
  display:none!important;
}
/* El producto entero cabe dentro de la fotografía, vertical u horizontal. */
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link img.mlp-photo,
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link img.mlp-photo-primary,
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link img.mlp-photo-secondary {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  max-height:100%!important;
  padding:5px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:12px!important;
  object-fit:contain!important;
  object-position:center center!important;
  filter:none!important;
  transform:none!important;
  background:transparent!important;
  box-shadow:none!important;
  transition:opacity .25s ease!important;
}
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link img.mlp-photo-primary {
  z-index:1!important; opacity:1!important;
}
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link img.mlp-photo-secondary {
  z-index:2!important; opacity:0!important; pointer-events:none!important;
}
@media(hover:hover) and (pointer:fine) {
  body .ml-home-2026 .mlp-carousel .mlp-card:has(img.mlp-photo-secondary):hover img.mlp-photo-primary,
  body .ml-home-2026 .mlp-carousel .mlp-card:has(img.mlp-photo-secondary):focus-within img.mlp-photo-primary {
    opacity:0!important;
  }
  body .ml-home-2026 .mlp-carousel .mlp-card:hover img.mlp-photo-secondary,
  body .ml-home-2026 .mlp-carousel .mlp-card:focus-within img.mlp-photo-secondary {
    opacity:1!important;
  }
}
/* Dos tarjetas tablet / una móvil se mantienen. La foto nunca se recorta. */
@media(max-width:1000px) {
  body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link {
    height:auto!important; min-height:0!important; max-height:none!important;
    aspect-ratio:1 / 1!important;
  }
}
@media(max-width:650px) {
  body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link {
    height:auto!important; min-height:0!important; max-height:none!important;
    aspect-ratio: 1.12 / 1!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body .ml-home-2026 .mlp-carousel .mlp-card img.mlp-photo {transition:none!important;}
}
