/* hc_offerbanners — carrusel de ofertas en la home */

.hc-offers {
	position: relative;
	width: 100%;
	max-width: 1320px;
	margin: 32px auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* Stage = contexto de posición de los chevrons (misma altura que la imagen,
   los dots quedan fuera). Sin gutter: la imagen ocupa todo el ancho y los
   chevrons se superponen pegados a cada extremo. */
.hc-offers__stage {
	position: relative;
	padding: 0;
}

.hc-offers__viewport {
	position: relative;
	width: 100%;
	/* Sin aspect-ratio fijo: el alto lo marcan las propias imágenes */
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.hc-offers__track {
	display: flex;
	width: 100%;
	align-items: stretch;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.hc-offers__slide {
	flex: 0 0 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;       /* solo se ve si una imagen es más baja que el slide más alto */
	overflow: hidden;
}

a.hc-offers__slide {
	cursor: pointer;
}

.hc-offers__img {
	display: block;
	width: 100%;
	height: auto;           /* la imagen define el alto: sin bandas si comparten proporción */
}

/* ── Modo HTML: imagen de fondo + textos + botón ── */
.hc-offers__slide--html {
	position: relative;
}

.hc-offers__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 23px;
	text-align: left;
	padding: 0 24px 0 48px;
	color: #fff;
	box-sizing: border-box;
	/* degradado oscuro a la izquierda para legibilidad del texto sobre la imagen */
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%);
}

.hc-offers__overlay .card-slide-destacado-subtitle2 {
	margin: 0;
	max-width: 60%;
	line-height: 1.15;
}

.hc-offers__overlay .card-slide-destacado-text2 {
	margin: 0;
}

.hc-offers__overlay .card-slide-destacado-btn {
	align-self: flex-start;
}

/* ── Chevrons ── */
.hc-offers__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.hc-offers__arrow:hover {
	background: rgba(0, 0, 0, 0.7);
}

.hc-offers__arrow--prev {
	left: 8px;
}

.hc-offers__arrow--next {
	right: 8px;
}

/* Oculta controles cuando hay un solo slide (lo marca el JS) */
.hc-offers.is-single .hc-offers__arrow,
.hc-offers.is-single .hc-offers__dots {
	display: none;
}

/* ── Dots ── */
.hc-offers__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.hc-offers__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #cdd4db;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.hc-offers__dot.is-active {
	background: var(--verde-vivo, #65a400);
	transform: scale(1.2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.hc-offers {
		margin: 20px auto;
		padding: 0 8px;
	}
	.hc-offers__stage {
		padding: 0;
	}
	.hc-offers__viewport {
		border-radius: 8px;
	}
	.hc-offers__arrow {
		width: 34px;
		height: 34px;
	}
	.hc-offers__arrow--prev {
		left: 4px;
	}
	.hc-offers__arrow--next {
		right: 4px;
	}
	.hc-offers__overlay {
		gap: 12px;
		padding: 0 16px 0 22px;
		background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
	}
	.hc-offers__overlay .card-slide-destacado-subtitle2 {
		font-size: 20px;
		max-width: 80%;
	}
	.hc-offers__overlay .card-slide-destacado-text2 {
		font-size: 13px;
	}
}
