/* MAYORLED 6.47 — últimas correcciones: tarjetas de Ofertas, AGOTADO rojo y galerías Nosotros.
   Alcance limitado a páginas de producto y Nosotros. No altera galería WooCommerce del producto. */
body.single-product .site-content .ml47-offer-grid,
body.single-product .site-content .ml47-existing-modern,
body.single-product .site-content .ml34-replacement-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;align-items:stretch!important;
  width:100%!important;max-width:100%!important;
  padding:0!important;margin:12px 0 30px!important;
  box-sizing:border-box!important;clear:both!important;
}
body.single-product .site-content .ml47-offer-grid .ml47-card {
  display:flex!important;flex-direction:column!important;gap:0!important;
  position:relative!important;width:100%!important;min-width:0!important;
  padding:12px!important;margin:0!important;border:1px solid #dce7f1!important;
  border-radius:12px!important;background:#fff!important;
  box-shadow:0 5px 16px rgba(12,38,63,.045)!important;
  box-sizing:border-box!important;float:none!important;
}
body.single-product .site-content .ml47-offer-grid .ml34-card-title {
  color:#112c4a!important;font-size:14px!important;line-height:1.38!important;
  font-weight:800!important;min-height:3.8em!important;max-height:3.8em!important;
  margin:0 0 10px!important;overflow:hidden!important;text-decoration:none!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;
}
body.single-product .site-content .ml47-offer-grid .ml34-card-media {
  display:block!important;position:relative!important;aspect-ratio:4/3!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 0 11px!important;padding:0!important;border-radius:10px!important;
  overflow:hidden!important;background:#f4f7fa!important;
}
body.single-product .site-content .ml47-offer-grid .ml34-card-image {
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:center!important;padding:7px!important;
  margin:0!important;border:0!important;background:transparent!important;
}
body.single-product .site-content .ml47-offer-grid .ml34-card-image-alt {
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:opacity .24s ease!important;
}
@media (hover:hover) and (pointer:fine) {
  body.single-product .site-content .ml47-offer-grid .ml34-alt-loaded .ml34-card-media:hover .ml34-card-image-alt,
  body.single-product .site-content .ml47-offer-grid .ml34-alt-loaded .ml34-card-media:focus-visible .ml34-card-image-alt {opacity:1!important;visibility:visible!important;}
}
body.single-product .site-content .ml47-offer-grid .ml34-card-price {
  margin:auto 0 11px!important;min-height:1.5em!important;font-size:18px!important;
  line-height:1.4!important;font-weight:850!important;color:#102c4a!important;
}
body.single-product .site-content .ml47-offer-grid .ml34-card-price :is(.amount,.woocommerce-Price-amount,.price){color:inherit!important;font:inherit!important;}
body.single-product .site-content .ml47-offer-grid .ml34-card-action {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:42px!important;background:#ffd11b!important;
  color:#132d4a!important;border:0!important;border-radius:8px!important;
  font-size:13px!important;font-weight:800!important;text-decoration:none!important;
  margin:0!important;padding:10px!important;box-sizing:border-box!important;
}
body.single-product .site-content .ml47-offer-grid .ml34-card-action:hover{background:#efc10c!important;}
body.single-product .ml47-source-hidden{display:none!important;}
/* Si el tema dibuja un título dentro de una fila, restituirlo a ancho completo. */
body.single-product .ml47-offers-section > :is(h2,h3,h4,.section-title,.widget-title){width:100%!important;clear:both!important;float:none!important;}

/* AGOTADO: rótulo rojo intenso y fondo oscuro, en tarjetas WooCommerce y personalizadas. */
body .ml46-oos-media .ml46-oos-label,
body .ml47-offer-grid .ml46-oos-label {
  color:#fff!important;background:#d52235!important;border:1px solid #f45b6a!important;
  padding:10px 17px!important;border-radius:8px!important;
  font-weight:900!important;letter-spacing:.11em!important;
  box-shadow:0 5px 18px rgba(117,11,29,.26)!important;
  white-space:nowrap!important;
}
body .ml46-oos-media::before{background:rgba(7,13,27,.57)!important;}
body .ml46-oos-media .ml46-oos-shade{background:rgba(7,13,27,.44)!important;}

/* Nosotros: seis tarjetas originales con acentos discretos de la marca.
   Funciona con plantilla propia y con versiones editables de Elementor. */
body:is(.ml30-nosotros-activo,.ml31-elementor-nosotros,.ml32-nosotros) :is(.ml30-photo-card,.ml31-gallery-card) {
  border:1px solid #dce6ee!important;border-radius:13px!important;
  overflow:hidden!important;background:#fff!important;
  box-shadow:0 4px 12px rgba(15,46,73,.05)!important;
  transition:box-shadow .22s ease,border-color .22s ease,transform .22s ease!important;
  text-decoration:none!important;
}
body:is(.ml30-nosotros-activo,.ml31-elementor-nosotros,.ml32-nosotros) :is(.ml30-photo-card,.ml31-gallery-card):hover {
  transform:translateY(-2px)!important;border-color:#f4c623!important;
  box-shadow:0 12px 23px rgba(15,46,73,.11)!important;
}
body.ml30-nosotros-activo .ml30-photo-bottom {border-top:3px solid #ffd11b!important;}
body.ml30-nosotros-activo .ml30-photo-bottom strong,
body.ml31-elementor-nosotros .ml31-gallery-bottom :is(h2,h3,h4,strong){color:#102c4b!important;font-weight:800!important;}
body.ml30-nosotros-activo .ml30-photo-action,
body.ml31-elementor-nosotros .ml31-gallery-bottom .elementor-button {
  background:#ffd11b!important;border:1px solid #ffd11b!important;
  color:#102c4b!important;border-radius:8px!important;font-weight:800!important;
}
body.ml34-gallery-native .ml34-album-root {border-top:4px solid #ffd11b!important;box-shadow:0 10px 27px rgba(15,46,73,.07)!important;}
body.ml34-gallery-native .ml34-gallery-photos .gallery-item{border-radius:11px!important;border:1px solid #dce6ee!important;}
body.ml34-gallery-native .ml34-gallery-photos .gallery-item:hover{border-color:#f4c623!important;}
body.ml34-gallery-native .ml34-gallery-photos .gallery-icon img {transition:transform .25s ease!important;}

@media (max-width:900px) {
 body.single-product .site-content .ml47-offer-grid,
 body.single-product .site-content .ml47-existing-modern,
 body.single-product .site-content .ml34-replacement-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
}
@media (max-width:540px) {
 body.single-product .site-content .ml47-offer-grid,
 body.single-product .site-content .ml47-existing-modern,
 body.single-product .site-content .ml34-replacement-grid {grid-template-columns:minmax(0,1fr)!important;gap:13px!important;}
 body.single-product .site-content .ml47-offer-grid .ml34-card-title {font-size:15px!important;}
 body.single-product .site-content .ml47-offer-grid .ml34-card-price{font-size:19px!important;}
 body.single-product .site-content .ml47-offer-grid .ml34-card-action{min-height:45px!important;}
}
@media (prefers-reduced-motion:reduce) {
 body:is(.ml30-nosotros-activo,.ml31-elementor-nosotros,.ml32-nosotros) :is(.ml30-photo-card,.ml31-gallery-card),
 body.single-product .site-content .ml47-offer-grid .ml34-card-image-alt {transition:none!important;}
}
