/* =============================================================================
   La Unidad — perfiles profesionales con marco ornamental (Fase 2)
   Scoped: body.udic-phase2.page-slug-la-unidad …
   ============================================================================= */

body.udic-phase2.page-slug-la-unidad .udic-team-ornate,
body.udic-phase2.page-slug-the-unit .udic-team-ornate,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate,
body.udic-phase2.page-slug-nosotros .udic-team-ornate {
	max-width: 1180px;
	margin: 0 auto 2rem;
	padding: 0 1rem;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-grid,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-grid,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-grid,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-card,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-card,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-card,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-card {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	margin: 0;
	padding: 1.35rem 1rem 1.15rem;
	border: 1px solid rgba(115, 164, 184, 0.45);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(8, 64, 97, 0.08);
	text-align: center;
	min-height: 100%;
	font: inherit;
	color: inherit;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-card--static,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-card--static,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-card--static,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-card--static {
	cursor: default;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-card--static:hover,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-card--static:hover,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-card--static:hover,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-card--static:hover {
	transform: none;
	box-shadow: 0 8px 22px rgba(8, 64, 97, 0.08);
	border-color: rgba(115, 164, 184, 0.45);
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-frame,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-frame,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-frame,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-frame {
	position: relative;
	display: block;
	width: 132px;
	height: 168px;
	margin: 0 auto 1rem;
	padding: 7px;
	border: 2px solid var(--udic-color-clinical);
	border-radius: 48% 48% 44% 44% / 54% 54% 46% 46%;
	background: #fff;
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 4px rgba(31, 128, 140, 0.55);
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-frame::before,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-frame::before,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-frame::before,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-frame::before {
	content: "";
	position: absolute;
	inset: -6px -10px auto;
	height: 14px;
	border: 2px solid rgba(31, 128, 140, 0.45);
	border-bottom: 0;
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	pointer-events: none;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-frame::after,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-frame::after,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-frame::after,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-frame::after {
	content: "";
	position: absolute;
	inset: auto -8px -8px;
	height: 12px;
	border: 2px solid rgba(31, 128, 140, 0.35);
	border-top: 0;
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
	pointer-events: none;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-photo,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-photo,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-photo,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: 46% 46% 42% 42% / 52% 52% 44% 44%;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-ribbon,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-ribbon,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-ribbon,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-ribbon {
	position: absolute;
	left: 50%;
	bottom: 6px;
	transform: translateX(-50%);
	min-width: 52px;
	padding: 0.15rem 0.55rem;
	border-radius: 3px;
	background: var(--udic-color-clinical);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	z-index: 2;
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-name,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-name,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-name,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-name {
	display: block;
	margin: 0 0 0.35rem;
	padding: 0;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--udic-color-clinical);
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate-role,
body.udic-phase2.page-slug-the-unit .udic-team-ornate-role,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate-role,
body.udic-phase2.page-slug-nosotros .udic-team-ornate-role {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--udic-color-action);
}

body.udic-phase2.page-slug-la-unidad .udic-team-ornate--simple .udic-team-ornate-cta,
body.udic-phase2.page-slug-the-unit .udic-team-ornate--simple .udic-team-ornate-cta,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate--simple .udic-team-ornate-cta,
body.udic-phase2.page-slug-nosotros .udic-team-ornate--simple .udic-team-ornate-cta,
body.udic-phase2.page-slug-la-unidad .udic-team-ornate--simple .udic-team-profile-panel,
body.udic-phase2.page-slug-the-unit .udic-team-ornate--simple .udic-team-profile-panel,
body.udic-phase2.page-slug-la-unitat .udic-team-ornate--simple .udic-team-profile-panel,
body.udic-phase2.page-slug-nosotros .udic-team-ornate--simple .udic-team-profile-panel {
	display: none !important;
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel {
	position: relative;
	margin: 0 0 2rem;
	padding: 1.5rem 1.25rem 1.35rem;
	border: 1px solid rgba(115, 164, 184, 0.45);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(8, 64, 97, 0.1);
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel[hidden],
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel[hidden],
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel[hidden],
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel[hidden] {
	display: none !important;
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__close,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__close,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__close,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__close {
	position: absolute;
	top: 0.65rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--udic-color-clinical);
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__close:hover,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__close:hover,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__close:hover,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__close:hover,
body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__close:focus-visible,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__close:focus-visible,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__close:focus-visible,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__close:focus-visible {
	outline: 2px solid var(--udic-color-action);
	outline-offset: 2px;
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__inner,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__inner,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__inner,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__inner {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 1.5rem;
	align-items: start;
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__name,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__name,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__name,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__name {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	color: var(--udic-color-clinical);
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__role,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__role,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__role,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__role {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--udic-color-action);
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__pending,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__pending,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__pending,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__pending {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--udic-color-text);
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__columns,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__columns,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__columns,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__column-title,
body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__column-title,
body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__column-title,
body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__column-title {
	margin: 0 0 0.5rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--udic-color-clinical);
}

@media (max-width: 1024px) {
	body.udic-phase2.page-slug-la-unidad .udic-team-ornate-grid,
	body.udic-phase2.page-slug-the-unit .udic-team-ornate-grid,
	body.udic-phase2.page-slug-la-unitat .udic-team-ornate-grid,
	body.udic-phase2.page-slug-nosotros .udic-team-ornate-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__inner,
	body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__inner,
	body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__inner,
	body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	body.udic-phase2.page-slug-la-unidad .udic-team-profile-panel__columns,
	body.udic-phase2.page-slug-the-unit .udic-team-profile-panel__columns,
	body.udic-phase2.page-slug-la-unitat .udic-team-profile-panel__columns,
	body.udic-phase2.page-slug-nosotros .udic-team-profile-panel__columns {
		grid-template-columns: 1fr;
		text-align: left;
	}
}

@media (max-width: 640px) {
	body.udic-phase2.page-slug-la-unidad .udic-team-ornate-grid,
	body.udic-phase2.page-slug-the-unit .udic-team-ornate-grid,
	body.udic-phase2.page-slug-la-unitat .udic-team-ornate-grid,
	body.udic-phase2.page-slug-nosotros .udic-team-ornate-grid {
		grid-template-columns: 1fr;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
	}
}
