.bisiesto-hero {
	padding: var(--wp--preset--spacing--space-8) var(--wp--custom--gutter--home) 0;
}

.bisiesto-hero__inner {
	position: relative;
	max-width: var(--wp--style--global--wide-size, 1376px);
	height: clamp(var(--wp--custom--layout--hero-min), calc(100svh - var(--wp--custom--layout--header-h) - var(--wp--preset--spacing--space-8) * 2), var(--wp--custom--layout--hero-h));
	margin-inline: auto;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.bisiesto-hero__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bisiesto-hero__track::-webkit-scrollbar {
	display: none;
}

.bisiesto-hero__slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.bisiesto-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bisiesto-hero__slide--campana::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(22 24 29 / 75%) 0%, rgb(22 24 29 / 35%) 45%, rgb(22 24 29 / 0%) 75%);
}

.bisiesto-hero__content {
	position: absolute;
	z-index: 1;
	right: var(--wp--preset--spacing--space-16);
	bottom: var(--wp--preset--spacing--space-16);
	left: var(--wp--preset--spacing--space-16);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--space-4);
}

.bisiesto-hero__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-s);
	line-height: var(--wp--custom--line-height--mono-s);
	text-transform: uppercase;
}

.bisiesto-hero__title {
	max-width: var(--wp--custom--layout--hero-title);
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--display-xl);
	font-weight: 800;
	line-height: var(--wp--custom--line-height--display-xl);
	text-transform: uppercase;
}

.bisiesto-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--space-3);
	margin-top: var(--wp--preset--spacing--space-2);
}

.bisiesto-hero .bisiesto-btn {
	font-size: var(--wp--preset--font-size--body-m);
}

.bisiesto-hero__slide--producto,
.bisiesto-hero__slide--coleccion {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.bisiesto-hero__slide--producto {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
}

.bisiesto-hero__slide--coleccion {
	background: var(--wp--preset--color--ink);
}

.bisiesto-hero__slide--producto .bisiesto-hero__foto,
.bisiesto-hero__fotos {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.bisiesto-hero__foto {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bisiesto-hero__fotos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--space-1);
}

.bisiesto-hero__slide--producto .bisiesto-hero__content,
.bisiesto-hero__slide--coleccion .bisiesto-hero__content {
	position: static;
	grid-column: 1;
	grid-row: 1;
	justify-content: center;
	padding: var(--wp--preset--spacing--space-16);
}

.bisiesto-hero__slide--producto .bisiesto-hero__title {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--heading-l);
}

.bisiesto-hero__slide--coleccion .bisiesto-hero__title {
	font-size: var(--wp--preset--font-size--heading-l);
}

.bisiesto-hero__logo {
	display: block;
	max-width: 100%;
	filter: invert(1);
}

.bisiesto-hero__price {
	margin: 0;
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 800;
}

.bisiesto-hero__price del {
	margin-right: var(--wp--preset--spacing--space-2);
	font-weight: 500;
	opacity: 0.6;
}

.bisiesto-hero__controls {
	position: absolute;
	z-index: 2;
	right: var(--wp--preset--spacing--space-6);
	bottom: var(--wp--preset--spacing--space-6);
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-1);
	padding: 2px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--toast);
}

.bisiesto-hero__controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.bisiesto-hero__prev,
.bisiesto-hero__next,
.bisiesto-hero__pause {
	width: var(--wp--custom--size--control-s);
	height: var(--wp--custom--size--control-s);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1;
}

.bisiesto-hero__controls button:hover {
	background-color: var(--wp--preset--color--sand);
}

.bisiesto-hero__controls button:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.bisiesto-hero__pause::before {
	content: "";
	width: 8px;
	height: 10px;
	border-inline: 3px solid currentColor;
}

.bisiesto-hero__pause[aria-pressed="true"]::before {
	width: 0;
	height: 0;
	border-block: 5px solid transparent;
	border-inline: 8px solid currentColor;
	border-inline-end: 0;
	margin-inline-start: 3px;
}

.bisiesto-hero__dots {
	display: flex;
	gap: var(--wp--preset--spacing--space-1);
}

.bisiesto-hero__dot {
	width: var(--wp--preset--spacing--space-4);
	height: var(--wp--custom--size--control-s);
}

.bisiesto-hero__dot::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: var(--wp--custom--radius--pill);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--ink);
	transition: width 0.2s;
}

.bisiesto-hero__dot[aria-current="true"]::before {
	width: 14px;
	background: var(--wp--preset--color--ink);
}

.bisiesto-hero__dot:hover {
	background: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.bisiesto-hero__dot::before {
		transition: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.bisiesto-hero {
		padding-top: var(--wp--preset--spacing--space-6);
	}
}

@media (max-width: 767px) {
	.bisiesto-hero {
		padding: 0;
	}

	.bisiesto-hero__content {
		right: var(--wp--preset--spacing--space-5);
		bottom: var(--wp--preset--spacing--space-5);
		left: var(--wp--preset--spacing--space-5);
	}

	.bisiesto-hero__slide--producto,
	.bisiesto-hero__slide--coleccion {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
	}

	.bisiesto-hero__slide--producto .bisiesto-hero__foto,
	.bisiesto-hero__fotos {
		grid-column: 1;
		grid-row: 1;
	}

	.bisiesto-hero__slide--producto .bisiesto-hero__content,
	.bisiesto-hero__slide--coleccion .bisiesto-hero__content {
		grid-column: 1;
		grid-row: 2;
		padding: var(--wp--preset--spacing--space-5);
	}

	.bisiesto-hero.is-slider .bisiesto-hero__inner {
		height: auto;
		overflow: visible;
		background: none;
	}

	.bisiesto-hero.is-slider .bisiesto-hero__track {
		height: clamp(var(--wp--custom--layout--hero-min), calc(100svh - var(--wp--custom--layout--header-h) - var(--wp--preset--spacing--space-24)), var(--wp--custom--layout--hero-h));
		background: var(--wp--preset--color--ink);
	}

	.bisiesto-hero__controls {
		position: static;
		justify-content: center;
		width: fit-content;
		margin: var(--wp--preset--spacing--space-3) auto 0;
		box-shadow: none;
		background: none;
	}

	.bisiesto-hero__prev,
	.bisiesto-hero__next {
		display: none !important;
	}
}
