/* Senadores Banners — carrusel responsive */
.sjb {
	--sjb-bg: #0b2a55;
	--sjb-accent: #ee6b20;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--sjb-bg);
	line-height: 0;
}
.sjb-track {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 700;
}
.sjb-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility 0s linear .7s;
}
.sjb-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .7s ease, visibility 0s;
	z-index: 1;
}
.sjb-link,
.sjb-link picture {
	display: block;
	width: 100%;
	height: 100%;
}
.sjb-link img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	border: 0;
	border-radius: 0;
}

/* Flechas */
.sjb-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 30px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s, background .25s;
}
.sjb-prev { left: 16px; }
.sjb-next { right: 16px; }
.sjb:hover .sjb-arrow,
.sjb-arrow:focus-visible { opacity: 1; }
.sjb-arrow:hover { background: var(--sjb-accent); }

/* Puntos y pausa */
.sjb-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	line-height: 1;
	pointer-events: none;
}
.sjb-dots {
	display: flex;
	gap: 8px;
	pointer-events: auto;
}
.sjb-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	box-shadow: 0 0 3px rgba(0, 0, 0, .5);
	transition: background .25s, transform .25s;
}
.sjb-dot[aria-selected="true"] {
	background: var(--sjb-accent);
	border-color: var(--sjb-accent);
	transform: scale(1.2);
}
.sjb-pause {
	position: relative;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	cursor: pointer;
	pointer-events: auto;
}
.sjb-pause span,
.sjb-pause span::before {
	position: absolute;
	top: 8px;
	width: 3px;
	height: 10px;
	background: #fff;
	content: "";
}
.sjb-pause span { left: 9px; }
.sjb-pause span::before { left: 5px; top: 0; }
.sjb-pause[aria-pressed="true"] span {
	left: 10px;
	top: 7px;
	width: 0;
	height: 0;
	background: transparent;
	border-style: solid;
	border-width: 6px 0 6px 9px;
	border-color: transparent transparent transparent #fff;
}
.sjb-pause[aria-pressed="true"] span::before { display: none; }

.sjb button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Móvil: banner vertical 1080×1350 */
@media (max-width: 767px) {
	.sjb-track { aspect-ratio: 1080 / 1350; }
	/* Si un banner no trae versión móvil, se muestra el de escritorio completo, sin recortar */
	.sjb-no-mobile .sjb-link img { object-fit: contain; }
	.sjb-arrow { display: none; }
	.sjb-controls { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.sjb-slide,
	.sjb-slide.is-active { transition: none; }
}

/* Aviso solo para administradores cuando no hay banners */
.sjb-empty {
	padding: 18px 20px;
	border: 2px dashed #ee6b20;
	border-radius: 6px;
	background: #fff7f1;
	color: #333;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}
