/* HB Testimonial Slider — HBrand Studio */

.hbts {
	--hbts-gap: 18px;
	--hbts-speed: 600ms;
	--hbts-photo: 96px;
	--hbts-dot: 8px;
	--hbts-text-width: 820px;
	--hbts-align: center;
	--hbts-text-align: center;
	--hbts-accent: var(--color-secundario, #77C5BB);
	--hbts-white: var(--color-blanco, #FFFFFF);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 100px 24px;
	background-color: var(--color-oscuro, #0A2F4D);
	text-align: var(--hbts-text-align);
	box-sizing: border-box;
}

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

.hbts__bg,
.hbts__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.hbts__bg {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.hbts__overlay {
	background-color: rgba(10, 47, 77, 0.72);
}

.hbts__inner {
	position: relative;
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	align-items: var(--hbts-align);
	gap: var(--hbts-gap);
}

/* Encabezado */
.hbts__line {
	display: block;
	width: 48px;
	height: 3px;
	background-color: var(--hbts-accent);
}

.hbts .hbts__title {
	margin: 0;
	font-family: var(--fuente-titulos, "Playfair Display", Georgia, serif);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.2;
	color: var(--hbts-white);
}

/* Diapositivas: todas en la misma celda para que la altura no salte */
.hbts__viewport {
	position: relative;
	width: 100%;
}

.hbts__track {
	display: grid;
	width: 100%;
	touch-action: pan-y;
}

.hbts .hbts__slide {
	grid-area: 1 / 1;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: var(--hbts-align);
	gap: var(--hbts-gap);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity var(--hbts-speed) ease,
		transform var(--hbts-speed) ease,
		visibility 0s linear var(--hbts-speed);
}

.hbts .hbts__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition:
		opacity var(--hbts-speed) ease,
		transform var(--hbts-speed) ease,
		visibility 0s linear 0s;
}

.hbts--slide .hbts__slide {
	transform: translateX(48px);
}

.hbts--slide .hbts__slide.is-prev {
	transform: translateX(-48px);
}

/* Foto */
.hbts__photo {
	flex: 0 0 auto;
	width: var(--hbts-photo);
	height: var(--hbts-photo);
	margin-top: 8px;
	border: 4px solid var(--hbts-white);
	border-radius: 999px;
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.15);
}

.hbts .hbts__photo img {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 999px;
}

/* Comillas */
.hbts__icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
	color: var(--hbts-accent);
}

.hbts__icon svg {
	width: 100%;
	height: 100%;
}

/* Texto */
.hbts .hbts__text {
	margin: 0;
	padding: 0;
	border: 0;
	max-width: var(--hbts-text-width);
	font-family: var(--fuente-cuerpo, "Open Sans", Arial, sans-serif);
	font-size: 17px;
	font-style: normal;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.92);
	quotes: none;
}

.hbts .hbts__text::before,
.hbts .hbts__text::after {
	content: none;
}

.hbts .hbts__text p {
	margin: 0;
	font: inherit;
	color: inherit;
}

/* Autor */
.hbts__author {
	display: flex;
	flex-direction: column;
	align-items: var(--hbts-align);
	gap: var(--hbts-gap);
}

.hbts__name {
	display: block;
	margin-top: 6px;
	font-family: var(--fuente-titulos, "Playfair Display", Georgia, serif);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	color: var(--hbts-white);
}

.hbts__role {
	display: block;
	font-family: var(--fuente-cuerpo, "Open Sans", Arial, sans-serif);
	font-size: 13px;
	line-height: 1.4;
	color: var(--hbts-accent);
}

/* Puntos */
.hbts__dots {
	display: flex;
	justify-content: var(--hbts-align);
	gap: 8px;
	margin-top: 14px;
}

.hbts .hbts__dot {
	position: relative;
	width: var(--hbts-dot);
	height: var(--hbts-dot);
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background-color: var(--hbts-white);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
	box-shadow: none;
}

/* Área táctil más grande sin cambiar el diseño */
.hbts .hbts__dot::before {
	content: "";
	position: absolute;
	inset: -8px;
}

.hbts .hbts__dot:hover {
	transform: scale(1.25);
}

.hbts .hbts__dot[aria-current="true"] {
	background-color: var(--hbts-accent);
}

.hbts .hbts__dot:focus-visible,
.hbts .hbts__arrow:focus-visible {
	outline: 2px solid var(--hbts-accent);
	outline-offset: 3px;
}

/* Flechas */
.hbts .hbts__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background-color: transparent;
	color: var(--hbts-white);
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hbts .hbts__arrow:hover {
	background-color: var(--hbts-accent);
	border-color: var(--hbts-accent);
	color: var(--color-oscuro, #0A2F4D);
}

.hbts .hbts__arrow svg {
	width: 45%;
	height: 45%;
}

.hbts__arrow--prev {
	left: 0;
}

.hbts__arrow--next {
	right: 0;
}

.hbts--has-arrows .hbts__track {
	padding-left: 64px;
	padding-right: 64px;
}

/* Móvil */
@media (max-width: 767px) {
	.hbts {
		padding: 64px 16px;
	}

	.hbts .hbts__title {
		font-size: 30px;
	}

	.hbts .hbts__text {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbts .hbts__slide,
	.hbts .hbts__slide.is-active,
	.hbts .hbts__dot {
		transition: none;
		transform: none;
	}
}
