/**
 * TWP Hyper Config — Hero híbrido (imagen / vídeo / color / gradiente / combinado).
 * El color del texto SIEMPRE se fija explícitamente (twp-hero--text-light /
 * --text-dark) y nunca por herencia: un fondo elegido por el usuario puede
 * ser claro u oscuro, así que no hay un valor "seguro" por defecto posible.
 */

.twp-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

.twp-hero--compact {
	min-height: 45vh;
	padding-block: var(--twp-space-5);
}

.twp-hero--large {
	min-height: 70vh;
	padding-block: var(--twp-space-6);
}

.twp-hero--fullview {
	min-height: 100vh;
	padding-block: var(--twp-space-6);
}

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

.twp-hero__layer--gradient {
	background-image: linear-gradient(135deg, var(--twp-color-primary), var(--twp-color-secondary));
}

/* En modo "combinado" el degradado es una capa TINTADA sobre la imagen/vídeo,
   no un relleno opaco — si no, taparía por completo la capa de abajo. */
.twp-hero__layer--tint {
	opacity: 0.72;
	mix-blend-mode: multiply;
}

.twp-hero__video,
.twp-hero__video-embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	pointer-events: none;
}

.twp-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--twp-hero-overlay-color, var(--twp-color-dark));
	opacity: var(--twp-hero-overlay-opacity);
}

.twp-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--twp-container-width);
	margin-inline: auto;
	padding-inline: var(--twp-space-2);
	max-width: 720px;
}

.twp-hero--align-center {
	text-align: center;
}

.twp-hero--align-center .twp-hero__content {
	margin-inline: auto;
}

.twp-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: var(--twp-space-2);
}

.twp-hero__title {
	font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
	margin-bottom: var(--twp-space-2);
}

.twp-hero__subtitle {
	font-size: 1.2rem;
	margin-bottom: var(--twp-space-3);
	max-width: 55ch;
}

.twp-hero--align-center .twp-hero__subtitle {
	margin-inline: auto;
}

.twp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--twp-space-2);
}

.twp-hero--align-center .twp-hero__actions {
	justify-content: center;
}

/* Color de texto explícito: nunca heredado del tema claro por defecto. */
.twp-hero--text-light .twp-hero__eyebrow,
.twp-hero--text-light .twp-hero__title,
.twp-hero--text-light .twp-hero__subtitle {
	color: var(--twp-color-white);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.twp-hero--text-light .twp-hero__actions .twp-button--ghost {
	color: var(--twp-color-white);
	border-color: rgba(255, 255, 255, 0.7);
}

.twp-hero--text-dark .twp-hero__eyebrow,
.twp-hero--text-dark .twp-hero__title,
.twp-hero--text-dark .twp-hero__subtitle {
	color: var(--twp-color-dark);
}

.twp-hero--text-dark .twp-hero__actions .twp-button--ghost {
	color: var(--twp-color-dark);
	border-color: var(--twp-color-dark);
}
