/* =============================================================
   hero.css — sección hero de la home (front-page.php).

   Layout: imagen full-width como background-image, overlay violeta
   semi-transparente para legibilidad del texto blanco. Contenido
   alineado a la izquierda con max-width contenida.

   Si NO hay imagen asignada, .hero queda como sección violeta sólida
   (heredada de .section--violet) sin overlay.
   ============================================================= */

.hero {
	position: relative;
	min-height: 60vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	overflow: hidden;
}

@media (min-width: 768px) {
	.hero {
		min-height: 80vh;
	}
}

/* Overlay solo cuando hay imagen de fondo. Gradiente leve para que
   el texto en la mitad izquierda quede sobre la zona más opaca y
   se mantenga visibilidad de la imagen hacia la derecha. */
.hero--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(83, 44, 148, 0.9) 0%,
		rgba(83, 44, 148, 0.6) 40%,
		rgba(83, 44, 148, 0.1) 100%
	);
	z-index: 1;
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero__content {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	max-width: 600px;
}

.hero__title {
	/* ~30% menor que el h1 global (--text-3xl). */
	font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
	margin: 0;
	letter-spacing: -0.02em;
	color: var(--color-white);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero__lead {
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	margin: 0;
	color: var(--color-white);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero__cta {
	margin: 0;
	margin-block-start: var(--space-1);
}
