/* Slider del Home (Splide). Se carga solo en la portada. Autónomo: no depende del plugin antiguo. */
.dbsw-home-slider {
	position: relative;
	width: 100%;
	margin: 0 0 1.5em;
}

.dbsw-home-slider .splide__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dbsw-home-slider .splide__slide {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
}

.dbsw-home-slider .dbsw-slide {
	position: relative;
	overflow: hidden;
	background: #34495e;
}

/* Altura por dispositivo (móvil por defecto) */
.dbsw-home-slider .dbsw-slide-media {
	position: relative;
	width: 100%;
	height: 220px;
	line-height: 0;
	overflow: hidden;
	background: #34495e;
}

.dbsw-home-slider .dbsw-slide-img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Panel de texto sobre la imagen, abajo */
.dbsw-home-slider .dbsw-slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px 56px 30px 16px;
	background: rgba(51, 51, 51, .5);
	color: #fff;
	text-align: left;
}

.dbsw-home-slider .dbsw-slide-cats-list {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.dbsw-home-slider .dbsw-slide-cats-list li {
	display: inline-block;
	margin: 0 6px 4px 0;
	padding: 0;
	background: none;
	list-style: none;
}

.dbsw-home-slider .dbsw-slide-cats-list li::before {
	content: none;
}

.dbsw-home-slider .dbsw-slide-cats-list a {
	display: inline-block;
	padding: 4px 10px;
	font-size: 14px;
	font-weight: bold;
	line-height: normal;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: #1abc9c;
}

.dbsw-home-slider .dbsw-slide-cats-list li:nth-child(4n+1) a { background: #1abc9c; }
.dbsw-home-slider .dbsw-slide-cats-list li:nth-child(4n+2) a { background: #3498db; }
.dbsw-home-slider .dbsw-slide-cats-list li:nth-child(4n+3) a { background: #e74c3c; }
.dbsw-home-slider .dbsw-slide-cats-list li:nth-child(4n+4) a { background: #34495e; }

.dbsw-home-slider h2.dbsw-slide-title {
	margin: 0;
	padding: 0;
	font-size: 1.3em;
	line-height: 1.2;
	text-transform: none;
}

.dbsw-home-slider h2.dbsw-slide-title a {
	color: #fff;
	text-decoration: none;
}

.dbsw-home-slider h2.dbsw-slide-title a:hover,
.dbsw-home-slider h2.dbsw-slide-title a:focus {
	text-decoration: underline;
}

/* Flechas */
.dbsw-home-slider .splide__arrow {
	background: rgba(0, 0, 0, .55);
	width: 2.4em;
	height: 2.4em;
	opacity: 1;
}

.dbsw-home-slider .splide__arrow svg {
	fill: #fff;
}

.dbsw-home-slider .splide__arrow:hover:not(:disabled),
.dbsw-home-slider .splide__arrow:focus-visible {
	background: #1279be;
}

/* Puntos */
.dbsw-home-slider .splide__pagination {
	bottom: 8px;
	padding: 0 1em;
}

.dbsw-home-slider .splide__pagination__page {
	width: 10px;
	height: 10px;
	margin: 3px 4px;
	border: none;
	background: #fff;
	opacity: .6;
}

.dbsw-home-slider .splide__pagination__page.is-active {
	opacity: 1;
	transform: scale(1.3);
}

/* Botón pausa/reproducción */
.dbsw-home-slider .splide__autoplay {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}

.dbsw-home-slider .splide__toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	cursor: pointer;
	font-size: 0;
	color: transparent;
}

.dbsw-home-slider .splide__toggle:hover,
.dbsw-home-slider .splide__toggle:focus-visible {
	background: #1279be;
}

.dbsw-home-slider .splide__toggle::before {
	content: "";
	display: block;
	box-sizing: border-box;
}

/* Reproduciendo -> icono de pausa */
.dbsw-home-slider .splide__toggle.is-active::before {
	width: 10px;
	height: 12px;
	border-left: 3px solid #fff;
	border-right: 3px solid #fff;
}

/* Pausado -> icono de play */
.dbsw-home-slider .splide__toggle:not(.is-active)::before {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
}

/* Textos del botón solo para lectores de pantalla */
.dbsw-home-slider .splide__toggle__play,
.dbsw-home-slider .splide__toggle__pause {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.dbsw-home-slider .splide__toggle:focus-visible,
.dbsw-home-slider .splide__arrow:focus-visible,
.dbsw-home-slider h2.dbsw-slide-title a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Tablet */
@media screen and (min-width: 600px) {
	.dbsw-home-slider .dbsw-slide-media { height: 300px; }
	.dbsw-home-slider .dbsw-slide-caption { padding: 14px 70px 34px 24px; }
	.dbsw-home-slider h2.dbsw-slide-title { font-size: 1.6em; }
	.dbsw-home-slider .dbsw-slide-cats-list a { font-size: 16px; }
}

/* Escritorio */
@media screen and (min-width: 960px) {
	.dbsw-home-slider .dbsw-slide-media { height: 350px; }
	.dbsw-home-slider .dbsw-slide-caption { padding: 15px 80px 36px 30px; }
	.dbsw-home-slider h2.dbsw-slide-title { font-size: 1.9em; }
	.dbsw-home-slider .dbsw-slide-cats-list a { font-size: 18px; padding: 5px 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.dbsw-home-slider * { transition: none !important; }
}
