/* OSWS Hero + vídeos — Elementor widget */
.osws-hero {
	--osws-accent: #2ac7c0;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem);
	min-height: 520px;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

/* Waves de fondo (canvas) — se inicializan por JS con carga diferida */
.osws-hero__waves {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
	filter: blur(24px) saturate(1.05);
	mix-blend-mode: screen;
}

.osws-hero.is-waves-ready .osws-hero__waves {
	opacity: 0.55;
}

.osws-hero *,
.osws-hero *::before,
.osws-hero *::after {
	box-sizing: border-box;
}

.osws-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 3vw, 2.75rem);
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
}

.osws-hero__text {
	flex: 1 1 40%;
	max-width: 520px;
}

.osws-hero__subtitle {
	margin: 0 0 0.75rem;
	font-size: clamp(0.85rem, 1.5vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--osws-accent);
}

.osws-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.osws-hero__desc {
	margin: 0 0 1.75rem;
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.65;
	opacity: 0.92;
}

.osws-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.osws-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.osws-hero__btn:hover {
	transform: translateY(-2px);
}

.osws-hero__btn--primary {
	background: var(--osws-accent);
	color: #0a0a0a;
	box-shadow: 0 10px 30px rgba(42, 199, 192, 0.35);
}

.osws-hero__btn--primary:hover {
	filter: brightness(1.05);
	color: #0a0a0a;
}

.osws-hero__btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
}

.osws-hero__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* Columna vídeos — más presencia para reducir “marco” negro */
.osws-hero__visual {
	flex: 1 1 55%;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 440px;
	overflow: visible;
}

.osws-hero__empty {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.9rem;
	text-align: center;
}

.osws-hero__stack {
	position: relative;
	width: min(100%, 540px);
	height: 520px;
	max-width: 100%;
	perspective: 1000px;
	overflow: visible;
}

.osws-hero__card {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 66%;
	max-width: 300px;
	aspect-ratio: 9 / 16;
	margin-left: -33%;
	margin-top: -48%;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease, z-index 0s linear 0.35s;
	will-change: transform, opacity;
	pointer-events: none;
}

.osws-hero__card.is-active {
	pointer-events: auto;
	z-index: 10;
}

.osws-hero__card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	background: #111;
}

.osws-hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.osws-hero__badge {
	position: absolute;
	bottom: 14%;
	left: 50%;
	transform: translateX(-50%) rotate(-8deg);
	min-width: 4.5rem;
	padding: 0.45rem 0.75rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: #0a0a0a;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

/* Posiciones relativas al slide activo (data-offset) */
.osws-hero__card[data-offset="0"] {
	transform: translate3d(0, 0, 0) scale(1.04);
	opacity: 1;
	z-index: 10;
}

.osws-hero__card[data-offset="1"] {
	transform: translate3d(44%, 5%, 0) scale(0.9);
	opacity: 0.92;
	z-index: 6;
}

.osws-hero__card[data-offset="2"] {
	transform: translate3d(-48%, 8%, 0) scale(0.84);
	opacity: 0.88;
	z-index: 4;
}

.osws-hero__card[data-offset="3"],
.osws-hero__card[data-offset="4"],
.osws-hero__card[data-offset="5"] {
	transform: translate3d(0, 18%, 0) scale(0.72);
	opacity: 0.35;
	z-index: 2;
}

/* Móvil: texto encima, vídeo debajo, aspecto “hero” apilado */
@media (max-width: 899px) {
	.osws-hero__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.osws-hero__text {
		max-width: none;
		order: 1;
	}

	.osws-hero__visual {
		order: 2;
		min-height: 380px;
		margin-top: 0.5rem;
	}

	.osws-hero__actions {
		justify-content: center;
	}

	.osws-hero__stack {
		height: 440px;
		width: min(100%, 400px);
	}

	.osws-hero__card {
		max-width: 260px;
	}

	.osws-hero__card[data-offset="1"] {
		transform: translate3d(38%, 6%, 0) scale(0.88);
	}

	.osws-hero__card[data-offset="2"] {
		transform: translate3d(-42%, 10%, 0) scale(0.82);
	}
}
