/* RP Banners Unificado - estilos del front
   Reproduce el aspecto actual: escritorio 1600x208, movil barra baja. */

.rpb {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.rpb-viewport {
  width: 100%;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

.rpb-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.rpb-slide {
  flex: 0 0 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rpb-link {
  display: block !important;
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 0;
  text-decoration: none !important;
}

.rpb-link img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
}

/* Flechas */
.rpb-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.rpb-btn:hover {
  background: rgba(0, 0, 0, 0.55) !important;
}

.rpb-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Puntos (opcionales) */
.rpb-dots {
  position: absolute !important;
  left: 50% !important;
  bottom: 10px !important;
  transform: translateX(-50%) !important;
  z-index: 20 !important;
  display: flex !important;
  gap: 8px !important;
}

.rpb-dot {
  width: 9px !important;
  height: 9px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rpb-dot.is-active {
  background: #fff !important;
  transform: scale(1.15) !important;
}

/* ------------------------------------------------------------------
   Escritorio: 769px o mas
   ------------------------------------------------------------------ */
@media (min-width: 769px) {
  .rpb-view-mobile {
    display: none !important;
  }

  .rpb-slide {
    aspect-ratio: 1600 / 208;
  }

  .rpb-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .rpb-prev { left: 12px !important; }
  .rpb-next { right: 12px !important; }
}

/* ------------------------------------------------------------------
   Movil: 768px o menos
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .rpb-view-desktop {
    display: none !important;
  }

  .rpb-viewport {
    height: clamp(44px, 13vw, 74px);
  }

  .rpb-slide {
    height: 100%;
  }

  .rpb-btn {
    width: 30px !important;
    height: 30px !important;
    background: rgba(0, 0, 0, 0.3) !important;
  }

  .rpb-btn svg {
    width: 16px;
    height: 16px;
  }

  .rpb-prev { left: 6px !important; }
  .rpb-next { right: 6px !important; }

  .rpb-dots { bottom: 6px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rpb-track,
  .rpb-btn,
  .rpb-dot {
    transition: none !important;
  }
}
