/* RBF module: Nuevos productos only */
.rbf-products-modern{padding:58px 0 72px!important;background:#f3f6fa!important;overflow:hidden!important}
.rbf-products-modern .rbf-showcase__viewport{width:100%!important;max-width:none!important;margin:0!important;overflow:hidden!important}
.rbf-products-modern .rbf-showcase__rail{display:flex!important;align-items:stretch!important;gap:16px!important;min-height:0!important;padding:0 max(52px,calc((100vw - 1480px)/2))!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important}
.rbf-products-modern .rbf-showcase__card,.rbf-products-modern .rbf-showcase__card:nth-child(n){position:relative!important;flex:0 0 clamp(240px,17vw,292px)!important;width:auto!important;height:420px!important;margin:0!important;padding:0!important;border:0!important;border-radius:18px!important;overflow:hidden!important;background:#e9eef3!important;box-shadow:0 14px 30px rgba(8,35,68,.12)!important;transform:none!important;scroll-snap-align:start!important}
.rbf-products-modern .rbf-showcase__card:hover{transform:translateY(-5px)!important;box-shadow:0 22px 42px rgba(8,35,68,.18)!important}
.rbf-products-modern .rbf-showcase__link{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;padding:0!important;background:transparent!important;overflow:hidden!important;color:#fff!important;text-decoration:none!important}
.rbf-products-modern .rbf-showcase__media{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;background:#eef2f5!important;overflow:hidden!important}
.rbf-products-modern .rbf-showcase__img,.rbf-products-modern .rbf-showcase__link img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;padding:18px!important;box-sizing:border-box!important;object-fit:contain!important;object-position:center 36%!important;display:block!important;transform:translateY(-55px)!important;transition:transform .45s ease!important}
.rbf-products-modern .rbf-showcase__card:hover .rbf-showcase__img{transform:translateY(-55px) scale(1.035)!important}
.rbf-products-modern .rbf-showcase__link:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(4,22,43,0) 38%,rgba(4,22,43,.12) 57%,rgba(4,22,43,.94) 100%);pointer-events:none}
.rbf-products-modern .rbf-showcase__copy{position:absolute!important;z-index:2!important;left:20px!important;right:18px!important;bottom:20px!important;top:auto!important;display:flex!important;flex-direction:column!important;gap:7px!important;width:auto!important;height:auto!important;padding:0!important;background:transparent!important;color:#fff!important;text-shadow:none!important}
.rbf-products-modern .rbf-showcase__copy strong{display:-webkit-box!important;color:#fff!important;font-size:17px!important;line-height:1.12!important;font-weight:600!important;text-shadow:none!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;max-height:2.24em!important}
.rbf-products-modern .rbf-showcase__description{display:-webkit-box!important;color:#fff!important;font-size:13px!important;font-weight:500!important;line-height:1.35!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;filter:none!important;opacity:1!important;text-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.rbf-products-modern .rbf-showcase__copy em{display:block!important;color:#ff6a00!important;font-size:13px!important;font-style:normal!important;font-weight:800!important}
.rbf-products-modern .rbf-showcase__discount{z-index:4!important;top:15px!important;left:15px!important;border-radius:999px!important}
@media(max-width:700px){.rbf-products-modern{padding:42px 0 54px!important}.rbf-products-modern .rbf-showcase__rail{padding:0 18px!important;gap:12px!important}.rbf-products-modern .rbf-showcase__card:nth-child(n){flex:0 0 78vw!important;width:78vw!important;max-width:285px!important;height:405px!important}}

/* V78 link fix: the complete product card is the real navigation target. */
.rbf-products-modern .rbf-showcase__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}
.rbf-products-modern .rbf-showcase__link > * { pointer-events: none; }

/* Interaccion del modulo: enlace nativo + arrastre con mouse */
.rbf-products-modern .rbf-showcase__rail{cursor:grab!important;user-select:none!important;-webkit-user-select:none!important;scrollbar-width:none!important}
.rbf-products-modern .rbf-showcase__rail::-webkit-scrollbar{display:none!important}
.rbf-products-modern .rbf-showcase__rail.is-dragging{cursor:grabbing!important;scroll-snap-type:none!important}
.rbf-products-modern .rbf-showcase__link{cursor:pointer!important}


/* V6: motor del carrusel aislado. El viewport desplaza; el rail solo contiene las tarjetas. */
.rbf-products-modern .rbf-showcase__viewport{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  cursor:grab!important;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.rbf-products-modern .rbf-showcase__viewport::-webkit-scrollbar{display:none!important}
.rbf-products-modern .rbf-showcase__viewport.is-dragging{cursor:grabbing!important;scroll-snap-type:none!important}
.rbf-products-modern .rbf-showcase__rail{
  width:max-content!important;
  min-width:100%!important;
  overflow:visible!important;
  scroll-snap-type:none!important;
}
.rbf-products-modern .rbf-showcase__card{scroll-snap-align:none!important}

/* V8: viewport contenido tipo AM. Mantiene intacto el motor V6. */
@media (min-width:701px){
  .rbf-products-modern .rbf-showcase__viewport{
    width:min(1500px,calc(100% - 72px))!important;
    max-width:1500px!important;
    margin:0 auto!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-padding-inline:0!important;
  }
  .rbf-products-modern .rbf-showcase__rail{
    width:max-content!important;
    min-width:100%!important;
    padding:0!important;
    margin:0!important;
    gap:16px!important;
  }
  .rbf-products-modern .rbf-showcase__card,
  .rbf-products-modern .rbf-showcase__card:nth-child(n){
    flex:0 0 clamp(240px,calc((min(1500px,calc(100vw - 72px)) - 64px)/5),287.2px)!important;
  }
  .rbf-products-modern .rbf-showcase__rail::after{
    content:"";
    flex:0 0 1px;
    width:1px;
  }
}

/* V9 infinito: las copias conservan exactamente el mismo diseño y enlaces. */
.rbf-products-modern .rbf-showcase__card[data-carousel-clone="1"]{flex-shrink:0!important}
