/* Inner-page hero — full-bleed image, left-aligned text, yellow accents. */

.page-hero {
	position: relative;
	min-height: 662px;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--bida-dark);
	color: var(--white);
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* legibility gradient, heavier on the left where the text sits */
.page-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(28, 59, 91, 0.82) 0%, rgba(28, 59, 91, 0.45) 42%, rgba(28, 59, 91, 0.05) 68%);
}
.page-hero__accent--circle {
	position: absolute;
	top: 0;
	right: 0;
	width: clamp(120px, 16vw, 222px);
	height: auto;
	z-index: 1;
	pointer-events: none;
}

.page-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: clamp(64px, 12vw, 164px);
	padding-inline: var(--gutter);
}
.page-hero__text { max-width: 534px; }
.page-hero__eyebrow {
	font-size: var(--fs-eyebrow);
	line-height: var(--lh-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--neutral-50);
	opacity: 0.64;
	margin-bottom: var(--space-6);
}
.page-hero__title {
	font-size: var(--fs-h1);          /* 42 / 50 */
	line-height: var(--lh-h1);
	letter-spacing: -0.84px;
	font-weight: var(--fw-regular);
	margin-bottom: clamp(40px, 8vw, 96px);
}
.page-hero__title .hl-yellow { color: var(--bida-yellow); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Compact variant — shorter hero used across the Servicios area landings. */
.page-hero--compact { min-height: 382px; }
.page-hero--compact .page-hero__inner { padding-block: clamp(40px, 6vw, 72px); }
/* Servicios landings use a large single-word title (Figma: 64 / 54, Medium). */
.page-hero--compact .page-hero__title {
	margin-bottom: 0;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1;
	letter-spacing: -0.04em;
	font-weight: var(--fw-medium);
}
/* The short crop otherwise cuts off the faces; bias toward the top. */
.page-hero--compact .page-hero__image { object-position: center 22%; }
/* Short titles need only a light scrim (Figma uses rgba(0,0,0,0.32)→0), not the
   heavy blue legibility gradient the tall Conoce-style hero needs. */
.page-hero--compact .page-hero__media::after {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 70%);
}
/* The yellow accent belongs to the Conoce/Sobre heros, not the Servicios area. */
.page-hero--compact .page-hero__accent--circle { display: none; }

/* Conoce uses the service banner height while retaining its longer heading. */
:is(.page-id-6, .page-id-2101) .page-hero { min-height: 382px; }
:is(.page-id-6, .page-id-2101) .page-hero__inner { padding-block: 50px; }
:is(.page-id-6, .page-id-2101) .page-hero__title { margin-bottom: 36px; }

@media (max-width: 640px) {
	.page-hero { min-height: 520px; }
	.page-hero__title { font-size: 32px; line-height: 40px; }
	.page-hero--compact { min-height: 300px; }
	/* Responsive review #5: the desktop accent obscures the subject's face in
	   the ES/EUS Conoce crop. */
	:is(.page-id-6, .page-id-2101) .page-hero__accent--circle { display: none; }
	/* Responsive review 07/08 #4: keep the portrait outside the narrow crop so
	   the headline sits entirely on the dark, uncluttered side of the photo. */
	:is(.page-id-6, .page-id-2101) .page-hero__image { object-position: left center; }
}
