/**
 * PSB-PROCESOS-EN-CADENA-004 — bloque protagonista «Presupuesto en construcción» en formularios.
 */

body.psb-pres-portal-shell .psb-pres-trabajo-hero {
	margin-bottom: 1.25rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__card {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem 1.5rem;
	padding: 1.2rem 1.35rem;
	border-radius: 14px;
	border: 1px solid #d6d3d1;
	background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 55%, #eef2ff 100%);
	box-shadow:
		0 1px 2px rgba(28, 25, 23, 0.05),
		0 0 0 1px rgba(255, 255, 255, 0.6) inset;
	position: relative;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(90deg, #1c1917 0%, #44403c 50%, #78716c 100%);
	opacity: 0.85;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__main {
	display: flex;
	gap: 1rem;
	flex: 1 1 320px;
	min-width: 0;
	align-items: flex-start;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: #1c1917;
	color: #fafaf9;
	box-shadow: 0 2px 8px rgba(28, 25, 23, 0.18);
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__body {
	min-width: 0;
	flex: 1;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-bottom: 0.35rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__kicker {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #292524;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__estado {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 650;
	background: #e7e5e4;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__estado--listo_revisar {
	background: #d1fae5;
	color: #065f46;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__estado--con_pendientes {
	background: #fef3c7;
	color: #92400e;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__estado--convertido {
	background: #e0e7ff;
	color: #3730a3;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #fff;
	border: 1px solid #e7e5e4;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__work-name {
	margin: 0 0 0.35rem;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__lead {
	margin: 0 0 0.75rem;
	font-size: 13px;
	line-height: 1.45;
	color: #57534e;
	max-width: 40rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__meta-item--total {
	background: #ecfdf5;
	border-color: #a7f3d0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__meta-label {
	font-size: 10px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__meta-item strong {
	font-weight: 700;
	color: #1c1917;
	font-variant-numeric: tabular-nums;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	flex: 0 0 auto;
	min-width: 200px;
	max-width: 280px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__cta {
	justify-content: center;
	text-align: center;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__cta-secondary,
body.psb-pres-portal-shell .psb-pres-trabajo-hero__cta-quick {
	justify-content: center;
	text-align: center;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero__locked-note,
body.psb-pres-portal-shell .psb-pres-trabajo-hero__edit-note {
	margin: 0.65rem 0 0;
	font-size: 12px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-hero + .psb-pres-portal-msg,
body.psb-pres-portal-shell .psb-pres-trabajo-hero + .psb-pres-panel__grid {
	margin-top: 0;
}

@media (max-width: 767px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-hero__card {
		flex-direction: column;
		padding: 1rem;
	}

	body.psb-pres-portal-shell .psb-pres-trabajo-hero__main {
		flex-direction: row;
		width: 100%;
	}

	body.psb-pres-portal-shell .psb-pres-trabajo-hero__actions {
		width: 100%;
		max-width: none;
	}

	body.psb-pres-portal-shell .psb-pres-trabajo-hero__cta,
	body.psb-pres-portal-shell .psb-pres-trabajo-hero__cta-secondary,
	body.psb-pres-portal-shell .psb-pres-trabajo-hero__cta-quick {
		width: 100%;
	}

	body.psb-pres-portal-shell .psb-pres-trabajo-hero__work-name {
		font-size: 18px;
	}

	body.psb-pres-portal-shell .psb-pres-trabajo-hero__meta {
		flex-direction: column;
	}
}
