/* HB Hero Slider — estilos base. Los valores editables vienen de los controles del widget. */

.hbhs {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	width: 100%;
	--hbhs-speed: 900ms;
}

.hbhs-track {
	display: grid;
}

/* Todas las diapositivas ocupan la misma celda: la altura la marca la más alta. */
.hbhs-slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 810px;
	padding-top: 160px;
	padding-bottom: 200px;
	box-sizing: border-box;
}

/* Fundido */
.hbhs--fade .hbhs-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--hbhs-speed) ease, visibility 0s linear var(--hbhs-speed);
}

.hbhs--fade .hbhs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--hbhs-speed) ease, visibility 0s linear 0s;
}

/* Deslizar: el JS mueve cada diapositiva con translateX */
.hbhs--slide .hbhs-slide {
	transition: transform var(--hbhs-speed) cubic-bezier(0.65, 0, 0.25, 1);
	will-change: transform;
}

/* Antes de que cargue el JS, las demás quedan fuera de vista. */
.hbhs--slide .hbhs-slide:not(.is-active) {
	transform: translateX(100%);
}

.hbhs-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background-color: #0a2f4d;
}

.hbhs-media picture,
.hbhs-img {
	display: block;
	width: 100%;
	height: 100%;
}

.hbhs-img {
	object-fit: cover;
	object-position: center center;
	transform-origin: center center;
}

.hbhs-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(10, 47, 77, 0.42);
	pointer-events: none;
}

.hbhs-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.hbhs-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 680px;
	text-align: left;
}

.hbhs .hbhs-title {
	margin: 0 0 20px;
	padding: 0;
	color: #fff;
}

.hbhs .hbhs-text {
	margin: 0 0 28px;
	padding: 0;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.9);
}

.hbhs-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hbhs .hbhs-btn {
	display: inline-block;
	text-decoration: none;
	line-height: 1.2;
	border: 1px solid transparent;
	border-radius: 100px;
	padding: 13px 30px;
	cursor: pointer;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

/* Valores de respaldo; los controles de Estilo los sobrescriben. */
.hbhs .hbhs-btn--1 {
	color: #0a2f4d;
	background-color: #77c5bb;
	border-color: #77c5bb;
}

.hbhs .hbhs-btn--2 {
	color: #fff;
	background-color: transparent;
	border-color: #fff;
}

.hbhs .hbhs-btn--1:hover,
.hbhs .hbhs-btn--2:hover {
	color: #0a2f4d;
	background-color: #fff;
	border-color: #fff;
}

.hbhs .hbhs-btn {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hbhs .hbhs-btn:focus-visible,
.hbhs-arrow:focus-visible,
.hbhs-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Flechas */
.hbhs-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background-color: rgba(10, 47, 77, 0.3);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hbhs-arrow--prev {
	left: 24px;
}

.hbhs-arrow--next {
	right: 24px;
}

.hbhs-arrow svg {
	display: block;
	pointer-events: none;
}

/* Puntos */
.hbhs-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 130px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.hbhs .hbhs-dot {
	width: 10px;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.hbhs .hbhs-dot.is-active {
	background-color: #77c5bb;
	transform: scale(1.15);
}

/* Zoom lento */
.hbhs--zoom .hbhs-slide.is-active .hbhs-img {
	animation: hbhs-zoom 9s ease-out both;
}

@keyframes hbhs-zoom {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

/* Entrada de textos */
.hbhs--animate.is-ready .hbhs-slide.is-active .hbhs-content > * {
	animation: hbhs-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hbhs--animate.is-ready .hbhs-slide.is-active .hbhs-content > *:nth-child(2) {
	animation-delay: 0.12s;
}

.hbhs--animate.is-ready .hbhs-slide.is-active .hbhs-content > *:nth-child(3) {
	animation-delay: 0.24s;
}

@keyframes hbhs-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
	.hbhs-slide {
		min-height: 640px;
	}
}

@media (max-width: 767px) {
	.hbhs-slide {
		min-height: 0;
		padding-top: 56px;
		padding-bottom: 130px;
	}

	.hbhs-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hbhs-arrow {
		display: none;
	}

	.hbhs-dots {
		bottom: 92px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbhs-slide,
	.hbhs--fade .hbhs-slide,
	.hbhs--fade .hbhs-slide.is-active,
	.hbhs--slide .hbhs-slide {
		transition: none !important;
	}

	.hbhs-img,
	.hbhs-content > * {
		animation: none !important;
	}
}
