/* Detalle de servicio — light gradient hero band (eyebrow + title), a
   full-width contained banner and a single narrow prose column. Shares the
   centred-wrap chrome of Centros but without the sidebar cards. The content
   group is ≈ 1132px (≈154px side margins at 1440) and the prose column is
   capped at 670px, left-aligned within it. Figma node 2657:2041. */

.detalle { padding-bottom: 60px; }

/* Centred content column; collapses to the page gutter on narrower screens. */
.detalle__wrap { width: min(1132px, 100% - 2 * var(--container-pad)); margin-inline: auto; }

.detalle__hero {
	margin: 0 var(--space-2);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(28, 59, 91, 0.08), rgba(28, 59, 91, 0));
	padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px);
}
.detalle__eyebrow {
	margin: 0 0 var(--space-8);
	font-size: var(--fs-eyebrow);
	line-height: var(--lh-eyebrow);
	letter-spacing: 0.64px;
	text-transform: uppercase;
	color: var(--neutral-500);
}
.detalle__title {
	margin: 0;
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
	letter-spacing: var(--ls-h1);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
.detalle__title .hl { color: var(--bida-green); }
/* Optional description under the title (used when there is no eyebrow). */
.detalle__lead {
	max-width: 519px;
	margin: var(--space-12) 0 0;
	font-size: var(--fs-sub1);
	line-height: var(--lh-sub1);
	color: var(--bida-blue);
}

.detalle__content { margin-top: clamp(40px, 6vw, 56px); }
.detalle__banner { margin-bottom: 64px; }
.detalle__banner img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1132 / 419;
	object-fit: cover;
	border-radius: 16px;
}

/* Desktop project artwork: render the approved 30% reduction as real layout
   width, aligned with the title and prose rail. This avoids the invisible
   top/bottom/side space left by transform:scale(); mobile stays full-width so
   the logo lockups remain legible. */
@media (min-width: 901px) {
	:is(
		.page-id-3187,
		.page-id-3189,
		.page-id-3190
	) .detalle__hero {
		padding-bottom: var(--space-8);
	}
	:is(
		.page-id-3187,
		.page-id-3189,
		.page-id-3190
	) .detalle__content {
		margin-top: var(--space-8);
	}
	:is(
		.page-id-3187,
		.page-id-3189,
		.page-id-3190
	) .detalle__banner {
		width: 70%;
		margin-bottom: var(--space-8);
	}
	:is(
		.page-id-3187,
		.page-id-3189,
		.page-id-3190
	) .detalle__banner img {
		transform: none;
	}
	:is(
		.page-id-3187,
		.page-id-3189,
		.page-id-3190
	) .detalle__body.prose > :first-child {
		margin-top: 0;
	}
}

/* Narrow prose column, left-aligned within the content group (Figma 670px). */
.detalle__body { max-width: 670px; }

/* Optional "Compartir en" share block sits under the prose, in the same column. */
.detalle__share { max-width: 670px; margin-top: clamp(32px, 4vw, 40px); }
.detalle__body > :first-child { margin-top: 0; }

/* Figma section headings are H4/Medium (24/30) in blue, 64px between blocks.
   The doubled class outranks the base .prose h3 (same specificity, later in the
   glob-ordered stylesheet) so these win regardless of load order. */
.detalle__body.prose h2,
.detalle__body.prose h3 {
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
	letter-spacing: -0.24px;
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
	margin: 64px 0 var(--space-8);
}
/* Figma shows disc bullets here; the site-wide reset strips them, so restore. */
.detalle__body.prose ul { list-style: disc; }
.detalle__body.prose li { margin-bottom: var(--space-3); }

/* Latest desktop review, item 13. Keep the correction limited to the ES/EUS
   coworking-access pages: links remain semantic list items, but their bullets
   are visually removed, and the obsolete share block cannot leave a gap. */
:is(.page-id-2927, .page-id-2932) .detalle__hero {
	padding-bottom: 32px;
}
:is(.page-id-2927, .page-id-2932) .detalle__content {
	margin-top: 32px;
}
:is(.page-id-2927, .page-id-2932) .detalle__body.prose ul {
	list-style: none;
	padding-left: 0;
}
:is(.page-id-2927, .page-id-2932) .detalle__share {
	display: none;
}

/* Becas para emprender (ES/EUS), Figma 5399:8948: band text at 156px, the text
   column in a centred 1059px group (670 body + 64 gap + 325 empty aside), 35px
   under the band, grey underlined links, a deeper-indented requirements list
   and 117px before the footer. */
:is(.page-id-4046, .page-id-4047) .detalle {
	padding-bottom: clamp(64px, 8.2vw, 117px);
}
:is(.page-id-4046, .page-id-4047) .detalle__hero .detalle__wrap {
	width: min(1128px, 100% - 2 * var(--container-pad));
}
:is(.page-id-4046, .page-id-4047) .detalle__content {
	width: min(1059px, 100% - 2 * var(--container-pad));
	margin-top: clamp(24px, 2.5vw, 35px);
}
:is(.page-id-4046, .page-id-4047) .detalle__body.prose ul { margin-bottom: var(--space-4); }
:is(.page-id-4046, .page-id-4047) .detalle__body.prose ul.is-nested { padding-left: 48px; }
:is(.page-id-4046, .page-id-4047) .detalle__body.prose li:last-child,
:is(.page-id-4046, .page-id-4047) .detalle__body.prose > :last-child,
:is(.page-id-4046, .page-id-4047) .detalle__body.prose > ul:last-child { margin-bottom: 0; }
:is(.page-id-4046, .page-id-4047) .detalle__body.prose a { color: inherit; }
:is(.page-id-4046, .page-id-4047) .detalle__body.prose a:hover { color: var(--bida-blue); }

/* Partner/support marks used by the European-project payloads. */
.bida-project-logos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-8);
	align-items: center;
	margin-block: var(--space-8) var(--space-12);
}
.bida-project-logos > a,
.bida-project-logos > img {
	min-width: 0;
}
.bida-project-logos > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
}
.bida-project-logos img {
	display: block;
	width: 100%;
	max-height: 76px;
	object-fit: contain;
}

@media (max-width: 720px) {
	.bida-project-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
