/* Banners/carruseles del tema (reemplazo de Slider Revolution). Geometría equivalente al layout
   "fullwidth" de RS5: alto = ancho × (gh/gw); capas en una rejilla de gw×gh centrada, escalada a min(1, ancho/gw). */
.xb-banner {
	position: relative;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}
.xb-stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: var(--xb-gw) / var(--xb-gh);
}
.xb-track,
.xb-slide {
	position: absolute;
	inset: 0;
}
.xb-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease-in-out, visibility 0s linear .3s;
}
.xb-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease-in-out, visibility 0s;
	z-index: 1;
}
.xb-link {
	display: block;
	width: 100%;
	height: 100%;
}
.xb-bg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}
.xb-grid {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(100%, calc(var(--xb-gw) * 1px));
	aspect-ratio: var(--xb-gw) / var(--xb-gh);
	transform: translate(-50%, -50%);
	container-type: inline-size;
	pointer-events: none;
}
.xb-layer {
	position: absolute;
	white-space: nowrap;
}

/* Carrusel (RS5 "carousel"): diapositiva central de min(ancho, gw) px, vecinas al 50 %, alto mínimo. */
.xb-carousel .xb-stage {
	aspect-ratio: auto;
	height: max(var(--xb-minh, 0px), calc(min(100vw, var(--xb-gw) * 1px) * var(--xb-gh) / var(--xb-gw)));
}
.xb-carousel .xb-slide {
	left: 50%;
	right: auto;
	width: min(100%, calc(var(--xb-gw) * 1px));
	transform: translateX(-50%);
	visibility: visible;
	transition: transform .8s cubic-bezier(.645, .045, .355, 1), opacity .8s cubic-bezier(.645, .045, .355, 1);
}
.xb-carousel .xb-slide.is-active {
	opacity: 1;
}
.xb-carousel .xb-slide.is-near {
	opacity: .5;
}

/* Video (antes slide de YouTube de RS5): miniatura y botón; el iframe se carga al pulsar. */
.xb-has-video .xb-stage {
	aspect-ratio: 16 / 9;
}
.xb-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #111;
	cursor: pointer;
}
.xb-video .xb-bg {
	object-fit: cover;
}
.xb-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .7);
}
.xb-play::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 14px;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #fff;
}
.xb-video:hover .xb-play,
.xb-video:focus-visible .xb-play {
	background: #f00;
}
.xb-has-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Flechas (estilo "uranus" de RS5). */
.xb-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .5);
	cursor: pointer;
}
.xb-arrow::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-30%, -50%) rotate(135deg);
}
.xb-next::before {
	transform: translate(-70%, -50%) rotate(-45deg);
}
.xb-prev {
	left: 30px;
}
.xb-next {
	right: 30px;
}
.xb-arrow:hover,
.xb-arrow:focus-visible {
	background: rgba(0, 0, 0, 1);
}

/* Pausa: solo visible con foco de teclado. */
.xb-pause {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 6;
	padding: 4px 10px;
	border: 0;
	border-radius: 3px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	clip-path: inset(50%);
	opacity: 0;
}
.xb-pause:focus-visible {
	clip-path: none;
	opacity: 1;
}
.xb-arrow:focus-visible,
.xb-video:focus-visible,
.xb-link:focus-visible,
.xb-pause:focus-visible {
	outline: 2px solid #ed8b00;
	outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
	.xb-slide,
	.xb-carousel .xb-slide {
		transition: none;
	}
}

/* Equivalentes de las reglas del tema para #rev_slider_1_1_* (banner1 de la portada, style.css). */
.xb-alias-banner1 {
	margin-bottom: 40px;
}
@media screen and (min-width: 769px) {
	.xb-alias-banner1 {
		padding-left: 35px;
		padding-right: 35px;
	}
}
