/* ============================================================
   EB Hero — Carrusel editorial mobile-first
   Elite Business · #cdaa71 gold palette
   ============================================================ */

/* ── Contenedor principal ─────────────────────────────────── */

.eb-hero {
	position: relative;
	/* Full-bleed: rompe cualquier padding del contenedor padre */
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
	/* Altura responsiva — svh respeta la barra del navegador en iOS */
	height: 65vh;
	height: 65svh;
	min-height: 380px;
	overflow: hidden;
	background: #000;
	margin-bottom: 4px;
	user-select: none;
	-webkit-user-select: none;
}

@media (min-width: 768px) {
	.eb-hero {
		height: 72vh;
		height: 72svh;
		min-height: 500px;
	}
}

/* ── Track (posiciona slides absolutas) ───────────────────── */

.eb-hero__track {
	position: absolute;
	inset: 0;
}

/* ── Slide ────────────────────────────────────────────────── */

.eb-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	/* Crossfade suave */
	transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.eb-hero__slide--active {
	opacity: 1;
	pointer-events: auto;
}

/* ── Imagen de fondo + Ken Burns ──────────────────────────── */

.eb-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	transform: scale(1);
	/* Retorno al zoom original dura lo mismo que el crossfade — invisible bajo el fade */
	transition: transform 0.9s ease-out;
	will-change: transform;
}

/* Zoom lento (Ken Burns) solo en el slide activo */
.eb-hero__slide--active .eb-hero__bg {
	animation: eb-ken-burns 7s ease-out forwards;
}

@keyframes eb-ken-burns {
	from { transform: scale(1.0); }
	to   { transform: scale(1.07); }
}

/* ── Overlay gradiente ────────────────────────────────────── */

.eb-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.04) 0%,
		rgba(0, 0, 0, 0.15) 35%,
		rgba(0, 0, 0, 0.78) 100%
	);
	pointer-events: none;
}

/* ── Contenido editorial ──────────────────────────────────── */

.eb-hero__content {
	position: absolute;
	bottom: 54px;
	left: 0;
	right: 0;
	padding: 0 20px 0;
}

/* Animación escalonada: cada elemento entra por separado */
.eb-hero__badge,
.eb-hero__cat,
.eb-hero__title,
.eb-hero__cta {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity   0.5s ease,
		transform 0.5s ease;
}

/* Título: entra de izquierda a derecha */
.eb-hero__title {
	transform: translateX(-40px);
	transition:
		opacity   0.6s ease,
		transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.eb-hero__slide--active .eb-hero__badge,
.eb-hero__slide--active .eb-hero__cat  { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.eb-hero__slide--active .eb-hero__title { transition-delay: 0.52s; opacity: 1; transform: translateX(0); }
.eb-hero__slide--active .eb-hero__cta   { transition-delay: 0.70s; opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
	.eb-hero__content {
		bottom: 64px;
		padding: 0 48px;
		max-width: 780px;
	}
}

/* Badge "Destacado" */
.eb-hero__badge {
	display: inline-block;
	font-size: 9px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #cdaa71;
	border: 1px solid #cdaa71;
	padding: 3px 9px;
	margin-bottom: 10px;
	font-weight: 700;
}

/* Chip de categoría */
.eb-hero__cat {
	display: inline-block;
	background: #cdaa71;
	color: #000;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	padding: 4px 10px;
	margin-bottom: 14px;
	border-radius: 2px;
}

/* Título */
.eb-hero__title {
	font-size: clamp(1.35rem, 5.5vw, 2.6rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.12;
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eb-hero__title a {
	color: #fff;
	text-decoration: none;
}

.eb-hero__title a:hover {
	color: #cdaa71;
}

/* Botón CTA */
.eb-hero__cta {
	display: inline-block;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
	text-decoration: none;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	padding: 9px 22px;
	transition:
		background   0.25s ease,
		border-color 0.25s ease,
		color        0.25s ease;
}

.eb-hero__cta:hover {
	background:    #cdaa71;
	border-color:  #cdaa71;
	color:         #000;
}

/* ── Flechas prev / next ──────────────────────────────────── */

.eb-hero__arrow {
	display: none; /* ocultas en móvil */
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	background: rgba(0, 0, 0, 0.38);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 20;
	transition:
		background    0.22s ease,
		border-color  0.22s ease;
	/* centrar el glifo */
	display: none;
	align-items: center;
	justify-content: center;
}

@media (min-width: 768px) {
	.eb-hero__arrow {
		display: flex;
	}
}

.eb-hero__arrow:hover {
	background:   rgba(205, 170, 113, 0.85);
	border-color: #cdaa71;
}

.eb-hero__arrow--prev { left:  20px; }
.eb-hero__arrow--next { right: 20px; }

/* ── Dots ─────────────────────────────────────────────────── */

.eb-hero__dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 7px;
	z-index: 20;
}

.eb-hero__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	border: none;
	padding: 0;
	cursor: pointer;
	transition:
		background  0.3s ease,
		transform   0.3s ease;
}

.eb-hero__dot--active {
	background: #cdaa71;
	transform: scale(1.35);
}

/* ── Barra de progreso ────────────────────────────────────── */

.eb-hero__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(205, 170, 113, 0.22);
	z-index: 20;
}

.eb-hero__progress-bar {
	height: 100%;
	width: 0%;
	background: #cdaa71;
}

/* ── Ocultar carrusel MetaSlider anterior ─────────────────── */

.home .bkmodule.module-shortcode {
	display: none !important;
}
