/* DN Blog Hero - estilos base. Los valores visuales se controlan desde Elementor. */

.dnbh {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #050505;
	isolation: isolate;
}

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

.dnbh__bg {
	position: absolute;
	inset: 0;
	z-index: -3;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

.dnbh__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--dnbh-overlay, #000);
	opacity: 0.72;
}

.dnbh__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 35%;
	z-index: -1;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 100%);
	pointer-events: none;
}

.dnbh__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1180px;
	min-height: inherit;
	margin: 0 auto;
}

.dnbh__left {
	flex: 0 1 55%;
	min-width: 0;
}

/* ------------------------------ Textos ------------------------------ */
.dnbh__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dnbh__line {
	display: inline-block;
	height: 1px;
	width: 46px;
	flex: none;
}

.dnbh__title,
.dnbh__desc,
.dnbh__subtitle {
	margin-top: 0;
}

.dnbh__title {
	margin-bottom: 28px;
}

.dnbh__desc {
	margin-bottom: 36px;
}

.dnbh__words {
	display: block;
	margin: 0;
}

.dnbh__word {
	display: inline;
	transition: color 0.3s ease;
}

.dnbh__cursor {
	display: inline-block;
	margin-left: 2px;
	font-weight: 300;
	animation: dnbh-blink 0.9s steps(1) infinite;
}

@keyframes dnbh-blink {
	0%, 49%   { opacity: 1; }
	50%, 100% { opacity: 0; }
}

/* Mientras se escribe, el cursor queda fijo */
.dnbh.is-typing .dnbh__cursor {
	animation-play-state: paused;
	opacity: 1;
}

/* ------------------------------ Tarjeta ----------------------------- */
.dnbh__card {
	position: relative;
	flex: none;
	width: 440px;
	max-width: 100%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.07);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 32px;
	padding: 28px;
}

.dnbh__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}

.dnbh__badge {
	display: inline-block;
	line-height: 1;
	white-space: nowrap;
}

.dnbh__number {
	line-height: 1;
}

.dnbh__list {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dnbh__watermark {
	position: absolute;
	right: 14px;
	bottom: -14px;
	z-index: 0;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

/* ------------------------- Botones laterales ------------------------- */
.dnbh__item {
	--dnbh-dur: 0.45s;
	--dnbh-x: 8px;
	--dnbh-scale: 1.02;
	--dnbh-icon-move: 4px;
	--dnbh-icon-bg: #d6a94f;
	--dnbh-sweep: rgba(255, 255, 255, 0.18);

	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background-color: rgba(255, 255, 255, 0.06);
	cursor: pointer;
	transition:
		transform var(--dnbh-dur) cubic-bezier(0.22, 1, 0.36, 1),
		background-color var(--dnbh-dur) ease,
		border-color var(--dnbh-dur) ease,
		box-shadow var(--dnbh-dur) ease;
	will-change: transform;
}

/* Destello que cruza el botón */
.dnbh__item::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	background: linear-gradient(100deg, transparent, var(--dnbh-sweep), transparent);
	transform: skewX(-18deg);
	transition: left calc(var(--dnbh-dur) * 1.6) ease;
	pointer-events: none;
}

/* Barra de acento que crece desde la izquierda */
.dnbh__item::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 0;
	background: var(--dnbh-icon-bg);
	border-radius: 0 3px 3px 0;
	transform: translateY(-50%);
	transition: height var(--dnbh-dur) cubic-bezier(0.22, 1, 0.36, 1);
}

.dnbh__item:hover,
.dnbh__item:focus-visible {
	transform: translateX(var(--dnbh-x)) scale(var(--dnbh-scale));
	outline: none;
}

.dnbh__item:hover::before,
.dnbh__item:focus-visible::before {
	left: 120%;
}

.dnbh__item:hover::after,
.dnbh__item:focus-visible::after {
	height: 55%;
}

.dnbh__item:active {
	transform: translateX(var(--dnbh-x)) scale(0.99);
}

.dnbh__item:focus-visible {
	box-shadow: 0 0 0 2px rgba(214, 169, 79, 0.8);
}

.dnbh__item-text {
	position: relative;
	z-index: 1;
	line-height: 1.2;
	transition: color var(--dnbh-dur) ease, transform var(--dnbh-dur) ease;
}

.dnbh__item-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: transparent;
	transform: rotate(45deg);
	transition:
		transform var(--dnbh-dur) cubic-bezier(0.22, 1, 0.36, 1),
		background-color var(--dnbh-dur) ease,
		color var(--dnbh-dur) ease;
}

.dnbh__item-icon svg {
	display: block;
}

.dnbh__item:hover .dnbh__item-icon,
.dnbh__item:focus-visible .dnbh__item-icon {
	background-color: var(--dnbh-icon-bg);
	transform: rotate(45deg) translate(var(--dnbh-icon-move), calc(var(--dnbh-icon-move) * -1));
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 1024px) {
	.dnbh__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 48px;
	}

	.dnbh__left {
		flex: 1 1 auto;
		width: 100%;
	}

	.dnbh__card {
		width: 100%;
		max-width: 520px;
	}
}

@media (max-width: 767px) {
	.dnbh__title {
		font-size: 56px;
	}

	.dnbh__words {
		font-size: 40px;
	}

	.dnbh__card-head {
		margin-bottom: 28px;
	}
}

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
	.dnbh__cursor {
		animation: none;
	}

	.dnbh__item,
	.dnbh__item::before,
	.dnbh__item::after,
	.dnbh__item-icon {
		transition-duration: 0.01s;
	}
}
