/* Prime Banners - slider ligero full-width con flechas estilo bodybuilding */

/* Quitar el padding-top del wrapper en el home para que el banner quede pegado al header */
body#index #wrapper{padding-top:0 !important;}

.primebanners-section{
  /* Breakout: ocupar todo el ancho del viewport aunque este dentro de un .container */
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:0;
  background:#fff;
}

.primebanners-slider{
  position:relative;
  width:100%;
  overflow:hidden;
  /* Desktop: ratio 1920x640 = 3:1 */
  aspect-ratio:1920 / 640;
}

.primebanners-track{
  display:flex;
  width:100%;
  height:100%;
  transition:transform .5s ease;
  will-change:transform;
}

.primebanners-slide{
  flex:0 0 100%;
  width:100%;
  height:100%;
}

.primebanners-slide .primebanners-link,
.primebanners-slide picture{
  display:block;
  width:100%;
  height:100%;
}

.primebanners-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* Flechas circulares estilo bodybuilding (triangulo solido) */
.primebanners-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:50px;
  height:50px;
  border-radius:50% !important;
  background:rgba(255,255,255,.9) !important;
  box-shadow:0 2px 6px rgba(0,0,0,.04),0 2px 4px rgba(0,0,0,.02) !important;
  border:0 !important;
  cursor:pointer;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease, transform .2s ease;
  padding:0;
}
.primebanners-arrow:hover{
  background:#fff;
  transform:translateY(-50%) scale(1.05);
}
.primebanners-arrow::after{
  content:'';
  display:block;
  width:30px;
  height:30px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}
.primebanners-prev{ left:20px; }
.primebanners-next{ right:20px; }
/* Flecha fina completa (raya horizontal + punta) tipo  <-  -> */
.primebanners-prev::after{
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23333' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='64' y1='50' x2='32' y2='50'/%3E%3Cpolyline points='48,32 30,50 48,68'/%3E%3C/svg%3E");
}
.primebanners-next::after{
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23333' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='36' y1='50' x2='68' y2='50'/%3E%3Cpolyline points='52,32 70,50 52,68'/%3E%3C/svg%3E");
}

/* Movil: proporcion 675x780 (mas cuadrada, no llena la pantalla) ; flechas mas chicas */
@media (max-width:768px){
  .primebanners-slider{
    aspect-ratio:675 / 780 !important;
    height:auto !important;
  }
  .primebanners-arrow{
    width:40px !important;
    height:40px !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.92) !important;
  }
  .primebanners-arrow::after{
    width:20px;
    height:20px;
  }
  .primebanners-prev{ left:10px; }
  .primebanners-next{ right:10px; }
}

/* ====================================================== */
/* Trust strip estilo redcon1 (fondo blanco, icono rojo + texto) */
/* ====================================================== */
.primebanners-benefits{
  width:100%;
  background:#ffffff;
  color:#121214;
  overflow:hidden;
  border-top:1px solid #ececec;
  border-bottom:1px solid #ececec;
}
.pb-benefits-track{
  display:flex;
  justify-content:space-between;
  align-items:center;
  max-width:1380px;
  margin:0 auto;
  padding:22px 24px;
  gap:18px;
}
.pb-benefit{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  text-align:left;
  flex:1 1 0;
  min-width:0;
  white-space:nowrap;
  line-height:1.25;
  gap:14px;
}
.pb-b-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  color:#e51a1a;          /* rojo Prime */
}
.pb-b-ico .pb-svg{
  width:36px;
  height:36px;
  display:block;
}
.pb-b-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  gap:3px;
}
.pb-b-title{
  font-weight:800;
  font-size:14px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:#121214;
  line-height:1.15;
}
.pb-b-desc{
  font-size:12.5px;
  color:#6b7280;
  line-height:1.2;
}
.pb-b-sep{ display:none; }
.pb-benefit.pb-dup{ display:none; }

/* ===== Movil: marquee horizontal con items apilados (icono + titulo/desc) ===== */
@media (max-width:768px){
  .pb-benefits-track{
    display:flex;
    flex-wrap:nowrap;
    width:max-content;
    max-width:none;
    margin:0;
    padding:14px 0;
    gap:0;
    justify-content:flex-start;
    animation:pb-marquee 26s linear infinite;
    will-change:transform;
  }
  .pb-benefit{
    flex:0 0 auto;
    flex-direction:row;     /* icono a la izquierda */
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    padding:0 30px;
    gap:11px;
    border-right:1px solid #ececec;
  }
  .pb-benefit.pb-dup{ display:flex; }
  .pb-b-ico .pb-svg{ width:30px; height:30px; }
  .pb-b-text{
    flex-direction:column;  /* titulo arriba, desc abajo */
    align-items:flex-start;
    gap:2px;
  }
  .pb-b-title{ font-size:13px; }
  .pb-b-desc{ font-size:12px; color:#6b7280; }
  @keyframes pb-marquee{
    from{ transform:translateX(0); }
    to{ transform:translateX(-50%); }
  }
}

/* === Dots de paginacion (solo movil, dentro del banner abajo) === */
.primebanners-dots{ display:none; }
@media (max-width:768px){
  .primebanners-dots{
    display:flex;
    gap:8px;
    position:absolute;
    left:0; right:0;
    bottom:14px;
    justify-content:center;
    align-items:center;
    z-index:6;
    pointer-events:auto;
  }
  .primebanners-dot{
    width:9px; height:9px;
    padding:0; border:0;
    border-radius:50%;
    background:rgba(255,255,255,.55);
    box-shadow:0 1px 3px rgba(0,0,0,.35);
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
  }
  .primebanners-dot.is-active{
    background:#ffffff;
    transform:scale(1.25);
  }
}

/* === Espaciado movil banner (arriba/abajo) con fondo blanco === */
@media (max-width:768px){
  html body .primebanners-section{
    margin-top:0 !important;
    margin-bottom:0 !important;
    padding-top:14px !important;
    padding-bottom:26px !important;
    background:#ffffff !important;
  }
}

/* === Ocultar flechas en movil (usa dots/swipe) === */
@media (max-width:768px){
  html body .primebanners-arrow{display:none !important;}
}
