/* Servicios Interactivos Websy */
.siw-root { width: 100%; }

.siw-wrap {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 40px;
	box-sizing: border-box;
}

/* Imagen a la izquierda = invertir el orden visual */
.siw-pos-izquierda .siw-wrap { flex-direction: row-reverse; }

.siw-wrap *,
.siw-wrap *::before,
.siw-wrap *::after { box-sizing: border-box; }

.siw-content { flex: 1 1 0; min-width: 0; }

.siw-titulo { margin: 0 0 8px; line-height: 1.1; font-weight: 300; font-size: 36px; }
.siw-texto  { margin: 0 0 18px; line-height: 1.3; }

/* Lista */
.siw-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.siw-li { margin: 0; padding: 0; list-style: none; text-align: left; }

.siw-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	margin: 0;
	padding: 4px 0;
	border: 0;
	background: transparent;
	text-align: inherit;
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: color .25s ease, background-color .25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.siw-item:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.siw-icono { display: inline-flex; flex: 0 0 auto; line-height: 1; transition: transform .25s ease; }
.siw-icono svg { width: 1em; height: 1em; }
.siw-item.is-active .siw-icono,
.siw-item:hover .siw-icono { transform: translateX(3px); }

/* Imagen */
.siw-media {
	position: relative;
	flex: 0 0 auto;
	width: 50%;
	height: 390px;
	overflow: hidden;
	border-radius: 40px;
	background-color: transparent;
}

.siw-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition-property: opacity, transform, visibility;
	transition-duration: .5s;
	transition-timing-function: ease;
}
.siw-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.siw-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}

/* Animaciones */
.siw-anim-zoom .siw-slide { transform: scale(1.08); }
.siw-anim-zoom .siw-slide.is-active { transform: scale(1); }
.siw-anim-slide .siw-slide { transform: translateX(30px); }
.siw-anim-slide .siw-slide.is-active { transform: translateX(0); }
.siw-anim-none .siw-slide { transition: none; }

/* Botón principal (debajo de la lista) */
.siw-cta-wrap { margin-top: 24px; text-align: left; }
.siw-cta {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	padding: 12px 28px;
	background: #0a5fa8;
	color: #fff;
	text-decoration: none;
	line-height: 1.2;
	border-radius: 30px;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.siw-cta-texto { color: inherit; transition: color .25s ease; }
.siw-cta-icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: color .25s ease, background-color .25s ease;
}
.siw-cta-icono svg { width: 1em; height: 1em; fill: currentColor; }

/* Video */
.siw-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 95, 168, .9);
	color: #fff;
	cursor: pointer;
	transition: background-color .25s ease, transform .25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.siw-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.siw-play svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4%; flex: 0 0 auto; }

.siw-player { position: absolute; inset: 0; z-index: 3; background: #000; }
.siw-player iframe,
.siw-player video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }

.siw-slide.is-playing .siw-play,
.siw-slide.is-playing .siw-boton { display: none; }

/* Botón sobre la imagen */
.siw-boton {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 2;
	display: inline-block;
	padding: 10px 22px;
	background: #0a5fa8;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.2;
	border-radius: 30px;
	transition: background-color .25s ease;
}

/* Responsive: la imagen siempre queda DEBAJO del contenido */
@media (max-width: 1024px) {
	.siw-titulo { font-size: 32px; }

	.siw-stack-tablet .siw-root .siw-wrap,
	.siw-stack-tablet.siw-pos-izquierda .siw-root .siw-wrap,
	.siw-stack-tablet.siw-pos-derecha .siw-root .siw-wrap {
		flex-direction: column;
		align-items: stretch;
	}
	.siw-stack-tablet .siw-root .siw-media {
		flex: 0 0 auto;
		width: 100% !important;
	}
}
@media (max-width: 767px) {
	.siw-root .siw-wrap,
	.siw-pos-izquierda .siw-root .siw-wrap,
	.siw-pos-derecha .siw-root .siw-wrap {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}
	.siw-root .siw-media { flex: 0 0 auto; width: 100% !important; }
	.siw-titulo { font-size: 28px; }
	.siw-item { padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.siw-slide, .siw-icono, .siw-item { transition: none !important; }
}
