/**
 * Hero slider JetEngine — part-hero-slider.php
 * Requiere tokens del tema (--tdp-hero-pad-y, --tdp-primary, etc.) definidos en main.css.
 *
 * @package Tu_Detector_Peru
 */

/* Ancho completo del viewport dentro de .site-container (max-width) */
.home-hero {
	background: linear-gradient(
		90deg,
		#000000 0%,
		#0a0a0a 40%,
		#161616 72%,
		#242424 100%
	);
	color: var(--tdp-text-on-dark);
	padding: var(--tdp-hero-pad-y) var(--tdp-gap);
	width: 100vw;
	max-width: 100vw;
	margin-top: 0;
	margin-bottom: 2rem;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	box-sizing: border-box;
}

.home-hero__title {
	margin: 0 0 0.5rem;
	font-size: var(--tdp-h1);
	color: var(--tdp-white);
	text-shadow: 0 2px 24px var(--tdp-glow-primary);
}

.home-hero__text {
	margin: 0 0 1.25rem;
	max-width: 67.2rem;
	color: rgba(255, 255, 255, 0.92);
	font-size: var(--tdp-hero-lead);
}

.home-hero.tdp-hero {
	overflow: hidden;
	min-height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tdp-hero__inner {
	max-width: var(--tdp-max);
	margin: 0 auto;
	width: 100%;
}

.tdp-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4.8rem);
	align-items: center;
}

.tdp-hero__headline {
	margin: 0 0 1.2rem;
	font-family: var(--tdp-font-heading), Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: clamp(2.4rem, 4vw, 4.8rem);
	line-height: 1.08;
	letter-spacing: var(--tdp-heading-tracking);
	text-transform: uppercase;
}

.tdp-hero__line {
	display: block;
}

.tdp-hero__line--white {
	color: var(--tdp-white);
	text-shadow: 0 2px 24px var(--tdp-glow-primary);
}

.tdp-hero__line--accent {
	color: var(--tdp-primary);
	text-shadow: 0 2px 28px var(--tdp-shadow-primary-deep);
}

.tdp-hero__description {
	margin: 0 0 1.6rem;
	max-width: 56rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--tdp-hero-lead);
	line-height: 1.55;
}

.tdp-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2.8rem);
	align-items: start;
	width: 100%;
	max-width: 56rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.tdp-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
	padding-left: 1rem;
	border-left: 2px solid var(--tdp-primary);
}

.tdp-hero__stat-value {
	font-family: var(--tdp-font-heading), Arial, Helvetica, sans-serif;
	font-size: clamp(2rem, 2.8vw, 3.2rem);
	line-height: 1;
	color: var(--tdp-primary);
}

.tdp-hero__stat-label {
	font-size: 1.3rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	max-width: 14rem;
}

.tdp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

.tdp-hero__legacy-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: clamp(1.2rem, 2.5vw, 2.4rem);
	align-items: flex-start;
	width: 100%;
	max-width: 56rem;
	margin-top: 1.5rem;
}

.tdp-hero__legacy-block {
	flex: 1 1 14rem;
	min-width: 0;
	max-width: none;
	margin-top: 0;
}

/* WYSIWYG Jet: <p><strong>valor</strong></p><p>etiqueta</p> — mismo look que .tdp-hero__stat */
.tdp-hero__legacy-block.tdp-jet-wysiwyg {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-left: 1rem;
	border-left: 2px solid var(--tdp-primary);
	color: rgba(255, 255, 255, 0.88);
}

.tdp-hero__legacy-block.tdp-jet-wysiwyg p {
	margin: 0;
}

.tdp-hero__legacy-block.tdp-jet-wysiwyg p:first-of-type strong {
	font-family: var(--tdp-font-heading), Arial, Helvetica, sans-serif;
	font-size: clamp(2rem, 2.8vw, 3.2rem);
	font-weight: 400;
	line-height: 1;
	color: var(--tdp-primary);
}

.tdp-hero__legacy-block.tdp-jet-wysiwyg p:not(:first-of-type) {
	font-size: 1.3rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	max-width: 14rem;
}

.tdp-hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.tdp-hero__visual-frame {
	width: 100%;
	max-width: 52rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.tdp-hero__img {
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.55));
}

@media (max-width: 991.98px) {
	.tdp-hero__grid {
		grid-template-columns: 1fr;
	}

	.tdp-hero__visual {
		order: -1;
		margin-bottom: 1rem;
	}

	.tdp-hero__visual-frame {
		max-width: 36rem;
	}
}

/* Botón secundario del hero (fondo claro) */
.button--hero-light {
	background: var(--tdp-white);
	color: var(--tdp-text);
	border-color: var(--tdp-white);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.button--hero-light:hover,
.button--hero-light:focus {
	background: rgba(255, 255, 255, 0.92);
	color: var(--tdp-text);
	border-color: rgba(255, 255, 255, 0.92);
	box-shadow: 0 6px 22px rgba(229, 27, 32, 0.2);
}
