/**
 * Cabecera de ficha de tratamiento (Figma: V2 · Ficha · Terapia hormonal GLP-1).
 */

.psw-th {
	padding-inline: 17.92px;
}

.psw-th .psw-th__top {
	display: grid;
	grid-template-columns: minmax(0, 866fr) minmax(0, 1000fr);
	gap: 14px;
	max-width: 1880px;
	margin: 0 auto;
}

/* --- Tarjeta de texto --- */

.psw-th .psw-th__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-width: 0;
	padding: 28px 51.2px 48px;
	border-radius: 28px;
	background-color: var(--psw-surface);
}

.psw-th .psw-breadcrumb {
	margin-bottom: 64px;
}

.psw-th .psw-th__eyebrow {
	margin-bottom: 18px;
}

.psw-th .psw-th__title {
	margin: 0;
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-display);
	font-size: var(--e-global-typography-om_display_l-font-size, 72px);
	font-weight: var(--e-global-typography-om_display_l-font-weight, 300);
	line-height: var(--e-global-typography-om_display_l-line-height, 1.02);
	letter-spacing: var(--e-global-typography-om_display_l-letter-spacing, -0.01em);
}

.psw-th .psw-th__title em {
	color: var(--psw-secondary);
	font-style: italic;
}

.psw-th .psw-th__text {
	margin: 24px 0 0;
	color: var(--e-global-color-om_texto_cuerpo, #4f4c45);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	line-height: var(--e-global-typography-om_texto_m-line-height, 28px);
}

.psw-th .psw-th__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 34px;
}

.psw-th .psw-th__link {
	padding-bottom: 3px;
	border-bottom: 1px solid rgba(79, 83, 73, 0.25);
	color: var(--psw-primary);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	font-weight: 500;
	line-height: var(--e-global-typography-om_texto_m-line-height, 28px);
	text-decoration: none;
}

.psw-th .psw-th__link:hover {
	border-bottom-color: var(--psw-primary);
	color: var(--psw-primary);
}

.psw-th .psw-th__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 28px 0 0;
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: var(--e-global-typography-om_texto_s-line-height, 22px);
}

.psw-th .psw-th__stars {
	color: var(--psw-secondary);
}

.psw-th .psw-th__rating strong {
	color: var(--psw-foreground-strong);
	font-weight: 500;
}

/* --- Foto + barra «Tu equipo» --- */

.psw-th .psw-th__media {
	position: relative;
	min-height: 680px;
	border-radius: 28px;
	overflow: hidden;
	background-color: var(--psw-surface);
}

.psw-th .psw-th__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psw-th .psw-th__team {
	position: absolute;
	right: 24px;
	bottom: 24px;
	left: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-radius: 20px;
	background-color: rgba(255, 253, 251, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.psw-th .psw-th__team-label {
	margin: 0;
	color: var(--psw-label);
	font-size: var(--e-global-typography-om_etiqueta-font-size, 13px);
	font-weight: 500;
	line-height: var(--e-global-typography-om_etiqueta-line-height, 20px);
	letter-spacing: var(--e-global-typography-om_etiqueta-letter-spacing, 1.6px);
	text-transform: uppercase;
}

.psw-th .psw-th__team-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psw-th .psw-th__team-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--psw-foreground-strong);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	font-weight: 500;
	line-height: var(--e-global-typography-om_texto_m-line-height, 28px);
}

.psw-th .psw-th__team-list svg {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--psw-secondary);
}

/* --- Datos clave --- */

.psw-th .psw-th__facts {
	display: flex;
	max-width: 1504px;
	margin: 0 auto;
	padding: 44px 0 0;
	list-style: none;
}

.psw-th .psw-th__fact {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 0 22px;
	border-left: 1px solid var(--psw-border);
}

.psw-th .psw-th__fact:first-child {
	padding-left: 0;
	border-left: 0;
}

.psw-th .psw-th__fact-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: var(--psw-surface);
	color: var(--psw-secondary);
}

.psw-th .psw-th__fact-icon svg {
	width: 26px;
	height: 26px;
}

.psw-th .psw-th__fact-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.psw-th .psw-th__fact-body strong {
	color: var(--psw-foreground-strong);
	font-family: var(--e-global-typography-secondary-font-family, "Cormorant"), Georgia, serif;
	font-size: var(--e-global-typography-secondary-font-size, 24px);
	font-weight: 400;
	line-height: var(--e-global-typography-secondary-line-height, 1.4);
}

.psw-th .psw-th__fact-body span {
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: var(--e-global-typography-om_texto_s-line-height, 22px);
}

/* --- Responsive --- */

@media (min-width: 1024px) and (max-width: 1799px) {
	.psw-th .psw-th__title {
		font-size: clamp(48px, 3.9vw, 72px);
	}
}

@media (max-width: 1279px) {
	.psw-th .psw-th__card {
		padding: 28px 40px 40px;
	}

	.psw-th .psw-th__media {
		min-height: 600px;
	}

	.psw-th .psw-th__facts {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px 0;
		padding-inline: 32px;
	}

	.psw-th .psw-th__fact:nth-child(3n + 1) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 1023px) {
	.psw-th .psw-th__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.psw-th .psw-th__media {
		order: -1;
		min-height: 420px;
	}
}

/* Móvil (Figma: Móvil · Ficha): foto arriba, sin migas, datos en 2 columnas. */
@media (max-width: 767px) {
	.psw-th {
		padding-inline: 8px;
	}

	.psw-th .psw-th__media {
		min-height: 230px;
	}

	.psw-th .psw-th__team {
		right: 12px;
		bottom: 12px;
		left: 12px;
		padding: 10px 12px;
	}

	.psw-th .psw-th__team-label {
		display: none;
	}

	.psw-th .psw-th__team-list {
		gap: 12px;
	}

	.psw-th .psw-th__team-list li {
		gap: 5px;
		font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
		line-height: 19px;
	}

	.psw-th .psw-th__team-list svg {
		width: 18px;
		height: 18px;
	}

	.psw-th .psw-th__card {
		padding: 20px 20px 28px;
	}

	.psw-th .psw-breadcrumb {
		display: none;
	}

	.psw-th .psw-th__title {
		font-size: 44px;
		line-height: 1;
	}

	.psw-th .psw-th__text {
		margin-top: 16px;
	}

	.psw-th .psw-th__actions {
		flex-direction: column;
		align-items: flex-start;
		align-self: stretch;
		margin-top: 22px;
	}

	.psw-th .psw-th__actions .psw-btn {
		width: 100%;
	}

	.psw-th .psw-th__rating {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.psw-th .psw-th__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 0;
		padding: 24px 20px 0;
	}

	.psw-th .psw-th__fact,
	.psw-th .psw-th__fact:nth-child(3n + 1) {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 0 8px 0 0;
		border-left: 0;
	}

	.psw-th .psw-th__fact-icon {
		width: 42px;
		height: 42px;
	}

	.psw-th .psw-th__fact-icon svg {
		width: 22px;
		height: 22px;
	}

	.psw-th .psw-th__fact-body strong {
		font-size: 20px;
	}
}

/* Beneficios del doc 04 (frases más largas): título algo menor hasta 1800 para que parta en 2 líneas como mucho. */
@media (min-width: 1280px) and (max-width: 1799px) {
	.psw-th .psw-th__fact-body strong {
		font-size: 20px;
		line-height: 1.2;
	}
}
