/* NEXT 2.1.3 - ajustes visuales limitados a imagenes/carruseles solicitados. */
.nexttb-media-carousel-section{
  --nexttb-carousel-accent:#7b143b;
  --nexttb-carousel-bg:#f6f4f5;
  width:min(100%,1180px);
  margin:clamp(2rem,4.5vw,4.5rem) auto;
  padding-inline:clamp(.5rem,2vw,1rem);
  box-sizing:border-box;
  max-width:100%;
  overflow:visible;
}
.nexttb-media-carousel-section *{box-sizing:border-box}
.nexttb-media-carousel-section .nexttb-carousel__heading-wrap{margin:0 0 clamp(1rem,2vw,1.5rem)}
.nexttb-media-carousel-section .nexttb-carousel__eyebrow{
  margin:0 0 .35rem;
  color:var(--nexttb-carousel-accent);
  font-size:.78rem;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.nexttb-media-carousel-section .nexttb-carousel__heading{
  margin:0;
  font:inherit;
  font-size:clamp(1.55rem,2.4vw,2.45rem);
  font-weight:750;
  line-height:1.08;
  color:inherit;
}
.nexttb-carousel__viewport{
  position:relative;
  width:100%;
  max-width:100%;
  overflow:hidden;
  border-radius:18px;
  background:var(--nexttb-carousel-bg);
  isolation:isolate;
}
.nexttb-carousel__track{
  display:flex;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
  touch-action:pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling:touch;
}
.nexttb-carousel__track::-webkit-scrollbar{display:none}
.nexttb-carousel__slide{
  flex:0 0 100%;
  min-width:100%;
  width:100%;
  height:clamp(320px,52vw,680px);
  max-height:68vh;
  margin:0;
  padding:clamp(8px,1.25vw,18px);
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--nexttb-carousel-bg);
  overflow:hidden;
}
.nexttb-carousel__img,
.nexttb-review-fit-image{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  border-radius:12px;
  margin:auto !important;
}
.nexttb-review-story-image{
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
}
.nexttb-carousel__button{
  position:absolute;
  top:50%;
  z-index:4;
  width:46px;
  height:46px;
  padding:0;
  transform:translateY(-50%);
  border:0;
  border-radius:50%;
  background:rgba(123,20,59,.94);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  transition:transform .18s ease,background .18s ease,opacity .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.nexttb-carousel__button:hover{background:#64102f;transform:translateY(-50%) scale(1.04)}
.nexttb-carousel__button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.nexttb-carousel__button--prev{left:clamp(7px,1.35vw,18px)}
.nexttb-carousel__button--next{right:clamp(7px,1.35vw,18px)}
.nexttb-carousel__button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nexttb-carousel__meta{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:.7rem;
  margin-top:.75rem;
  min-height:28px;
}
.nexttb-carousel__counter{
  min-width:4.6rem;
  padding:.3rem .65rem;
  border-radius:999px;
  background:#f2ecef;
  color:#4b2434;
  font-size:.9rem;
  font-weight:700;
  text-align:center;
}
.nexttb-carousel__progress{
  width:min(240px,48vw);
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:#e3d9de;
}
.nexttb-carousel__progress-bar{
  display:block;
  width:0;
  height:100%;
  background:var(--nexttb-carousel-accent);
  transition:width .2s ease;
}
.nexttb-review-hide{display:none !important}
.nexttb-review-card-bg{
  background-image:var(--nexttb-review-bg) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}
.nexttb-review-hero-bg{
  background-image:var(--nexttb-review-bg) !important;
  background-size:contain !important;
  background-position:right center !important;
  background-repeat:no-repeat !important;
}

/* Laptop y desktop de altura reducida: evita que el visor invada toda la pantalla. */
@media (min-width:901px) and (max-height:760px){
  .nexttb-carousel__slide{height:clamp(300px,56vh,500px);max-height:56vh}
}
@media (min-width:1200px) and (min-height:761px){
  .nexttb-carousel__slide{height:clamp(380px,48vw,680px);max-height:68vh}
}
@media (max-width:900px){
  .nexttb-media-carousel-section{padding-inline:.75rem}
  .nexttb-carousel__slide{height:clamp(290px,62vw,540px);max-height:62vh}
}
@media (max-width:600px){
  .nexttb-media-carousel-section{padding-inline:.5rem;margin-block:1.75rem 3rem}
  .nexttb-carousel__viewport{border-radius:14px}
  .nexttb-carousel__slide{height:clamp(245px,78vw,430px);max-height:58vh;padding:6px}
  .nexttb-carousel__img{border-radius:9px}
  .nexttb-carousel__button{width:44px;height:44px}
  .nexttb-carousel__button--prev{left:5px}
  .nexttb-carousel__button--next{right:5px}
  .nexttb-carousel__progress{width:min(210px,58vw)}
}
@media (max-width:360px){
  .nexttb-carousel__slide{height:clamp(230px,76vw,350px)}
  .nexttb-carousel__button{width:42px;height:42px}
}
@media (prefers-reduced-motion:reduce){
  .nexttb-carousel__track{scroll-behavior:auto}
  .nexttb-carousel__button,.nexttb-carousel__progress-bar{transition:none}
}
