/* Hercos Promociones – frontend */
.hpr-section,
.hpr-section *,
.hpr-section *::before,
.hpr-section *::after { box-sizing: border-box; }

.hpr-section {
	width: 100%;
	clear: both;
	background: var(--hpr-bg, #0b0b0d);
	padding: 80px 40px;
	color: var(--hpr-title, #fff);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hpr-section .hpr-container {
	max-width: var(--hpr-max, 1440px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: 60px;
	align-items: flex-start;
}

/* Columna izquierda */
.hpr-section .hpr-left {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	position: sticky;
	top: 40px;
}

.hpr-section .hpr-numbers {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	font-size: 13px;
	font-weight: 600;
}

.hpr-section .hpr-num {
	position: relative;
	display: inline-block;
	padding-bottom: 4px;
	color: var(--hpr-desc, #a1a1aa);
	opacity: .6;
	cursor: pointer;
}

.hpr-section .hpr-num.active { color: var(--hpr-title, #fff); opacity: 1; }
.hpr-section .hpr-num.active::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 24px;
	height: 2px;
	background: var(--hpr-title, #fff);
}

.hpr-section p.hpr-desc {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 24px !important;
	padding: 0;
	color: var(--hpr-desc, #a1a1aa);
}

.hpr-section h2.hpr-title {
	font-size: clamp(32px, 3.5vw, 46px);
	font-weight: 700;
	letter-spacing: -1.5px;
	line-height: 1.1;
	margin: 0 0 24px !important;
	padding: 0;
	text-transform: none;
	color: var(--hpr-title, #fff);
}

.hpr-section .hpr-main-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: fit-content;
	margin: 0 0 35px;
	padding: 12px 20px 12px 24px;
	border-radius: 50px;
	background: var(--hpr-btn-bg, #fff);
	color: var(--hpr-btn-color, #000) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: opacity .3s ease;
}
.hpr-section a.hpr-main-btn:hover { opacity: .85; }

.hpr-section .hpr-main-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: 16px;
	border-radius: 50%;
	background: var(--hpr-btn-color, #000);
	color: var(--hpr-btn-bg, #fff);
	font-size: 12px;
}

.hpr-section .hpr-controls { display: flex; gap: 12px; }

.hpr-section button.hpr-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--hpr-border, #222226) !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .06) !important;
	color: var(--hpr-title, #fff) !important;
	font-size: 16px;
	line-height: 1 !important;
	letter-spacing: 0;
	text-transform: none;
	text-shadow: none;
	box-shadow: none !important;
	cursor: pointer;
	transition: all .3s ease;
}
.hpr-section button.hpr-btn:hover {
	background: var(--hpr-title, #fff) !important;
	color: var(--hpr-bg, #0b0b0d) !important;
	border-color: var(--hpr-title, #fff) !important;
}

/* Columna derecha */
.hpr-section .hpr-right {
	position: relative;
	width: 100%;
	overflow: hidden;
	/* espacio extra arriba/abajo para que el efecto de elevar no se recorte */
	padding: 57px 0 24px;
}

.hpr-section .hpr-track {
	display: flex;
	width: 100%;
	transition: transform .5s cubic-bezier(.16, 1, .3, 1);
	will-change: transform;
}

.hpr-section .hpr-slide {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	flex: 0 0 100%;
	min-width: 100%;
	align-items: start;
}

/* Efecto escalonado: la 2ª tarjeta sube */
.hpr-section .hpr-card:nth-child(2) { margin-top: -45px; }

.hpr-section .hpr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: var(--hpr-card-h, 420px);
	padding: 28px;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid var(--hpr-border, #222226);
	background: #141417;
	color: #fff;
	text-decoration: none !important;
	box-shadow: none;
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease;
}
.hpr-section .hpr-card:hover { color: #fff; }
.hpr-section.hpr-fx-lift .hpr-card:hover { transform: translateY(-6px); }
.hpr-section.hpr-fx-border .hpr-card:hover { border-color: var(--hpr-accent, red); }

/* Imagen (reseteo contra estilos de img de Flatsome / Elementor) */
.hpr-section img.hpr-card__bg {
	position: absolute !important;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	transition: transform .6s ease;
}
.hpr-section .hpr-card:hover img.hpr-card__bg { transform: scale(1.05); }

.hpr-section .hpr-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg,
		rgba(11, 11, 13, var(--hpr-ov, .8)) 0%,
		rgba(11, 11, 13, calc(var(--hpr-ov, .8) * .5)) 40%,
		rgba(11, 11, 13, calc(var(--hpr-ov, .8) * 1.12)) 100%);
}

.hpr-section .hpr-card__top,
.hpr-section .hpr-card__footer { position: relative; z-index: 3; display: block; }

.hpr-section p.hpr-card__meta {
	margin: 0 0 6px !important;
	padding: 0;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: .8px;
}

.hpr-section h3.hpr-card__heading {
	margin: 0 !important;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.3px;
	text-transform: none;
}

.hpr-section .hpr-card__footer { display: flex; align-items: center; gap: 12px; }

.hpr-section .hpr-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 12px;
	transition: background-color .2s ease, color .2s ease;
}
.hpr-section .hpr-card:hover .hpr-card__arrow { background: var(--hpr-accent, red); color: #fff; }

.hpr-section .hpr-card__action {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #fff;
}

/* Tablet */
@media (max-width: 1024px) {
	.hpr-section { padding: 60px 30px; }
	.hpr-section .hpr-container { grid-template-columns: 1fr; gap: 40px; }
	.hpr-section .hpr-left { position: relative; top: 0; max-width: 100%; }
	.hpr-section .hpr-right { padding: 8px 0 20px; }
	.hpr-section .hpr-card:nth-child(2) { margin-top: 0; }
}

/* Móvil */
@media (max-width: 640px) {
	.hpr-section { padding: 40px 20px; }
	.hpr-section .hpr-slide { grid-template-columns: 1fr; }
	.hpr-section .hpr-card { height: var(--hpr-card-h-m, 340px); padding: 22px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.hpr-section .hpr-track,
	.hpr-section .hpr-card,
	.hpr-section img.hpr-card__bg { transition: none; }
}
