/**
 * Pestañas de tratamiento (Figma: V2 · Ficha > «Todo sobre…»).
 * Escritorio: botones en fila 1 de la rejilla y el panel abierto en la fila 2.
 * Móvil: acordeón (botón y panel uno tras otro).
 */

.psw-treatment-tabs .psw-sec__head {
	justify-content: center;
	margin-bottom: 36px;
	text-align: center;
}

.psw-treatment-tabs .psw-sec__head-main {
	align-items: center;
}

.psw-tt {
	display: grid;
	grid-template-columns: repeat(var(--psw-tt-n, 4), minmax(0, 1fr));
}

.psw-tt .psw-tt__tab {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 16px;
	grid-row: 1;
	min-width: 0;
	min-height: 48.6px;
	margin: 0;
	padding: 0 0 6px;
	border: 0;
	border-bottom: 1px solid var(--psw-border);
	border-radius: 0;
	background: none;
	color: var(--psw-label);
	text-align: left;
	cursor: pointer;
}

.psw-tt .psw-tt__tab::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background-color: transparent;
}

.psw-tt .psw-tt__tab[aria-expanded="true"] {
	color: var(--psw-foreground-strong);
}

.psw-tt .psw-tt__tab[aria-expanded="true"]::after {
	background-color: var(--psw-secondary);
}

.psw-tt .psw-tt__tab:hover {
	color: var(--psw-foreground-strong);
	background: none;
}

.psw-tt .psw-tt__tab:focus-visible {
	outline: 2px solid var(--psw-primary);
	outline-offset: 2px;
}

.psw-tt .psw-tt__num {
	color: var(--psw-secondary);
	font-family: var(--psw-font-body);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: 22px;
}

.psw-tt .psw-tt__tab[aria-expanded="false"] .psw-tt__num {
	color: inherit;
}

.psw-tt .psw-tt__label {
	overflow: hidden;
	font-family: var(--psw-font-display);
	font-size: var(--e-global-typography-om_display_s-font-size, 36px);
	font-weight: 300;
	line-height: 1.14;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.psw-tt .psw-tt__plus {
	display: none;
}

/* Panel */

.psw-tt .psw-tt__panel {
	display: flex;
	grid-row: 2;
	grid-column: 1 / -1;
	align-items: center;
	gap: 51.2px;
	padding-top: 40px;
}

.psw-tt .psw-tt__panel[hidden],
.psw-tt .psw-tt__panel[data-psw-closed] {
	display: none;
}

.psw-tt .psw-tt__media {
	flex: 0 0 auto;
	width: min(631.67px, 42%);
	height: 520px;
	border-radius: 28px;
	overflow: hidden;
}

.psw-tt .psw-tt__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psw-tt .psw-tt__body {
	flex: 1 1 0;
	min-width: 0;
}

.psw-tt .psw-tt__title {
	margin: 0;
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-display);
	font-size: var(--e-global-typography-om_display_s-font-size, 36px);
	font-weight: 300;
	line-height: 1.14;
}

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

.psw-tt .psw-tt__text {
	max-width: 610px;
	margin: 18px 0 0;
	color: var(--psw-muted-foreground);
	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-tt .psw-tt__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.psw-tt .psw-tt__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--psw-foreground);
	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-tt .psw-tt__check {
	display: grid;
	flex: none;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	border-radius: 50%;
	background-color: var(--psw-primary);
	color: var(--psw-primary-foreground);
}

.psw-tt .psw-tt__check svg {
	width: 12px;
	height: 12px;
}

@media (max-width: 1279px) {
	.psw-tt .psw-tt__label {
		font-size: 28px;
	}

	.psw-tt .psw-tt__panel {
		gap: 40px;
	}

	.psw-tt .psw-tt__media {
		height: 440px;
	}

	.psw-tt .psw-tt__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1023px) {
	.psw-tt .psw-tt__tab {
		gap: 10px;
	}

	.psw-tt .psw-tt__label {
		font-size: 22px;
	}

	.psw-tt .psw-tt__panel {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.psw-tt .psw-tt__media {
		width: 100%;
		height: 360px;
	}
}

/* Móvil (Figma: Móvil · Ficha > Details). */
@media (max-width: 767px) {
	.psw-treatment-tabs .psw-sec__head {
		justify-content: flex-start;
		text-align: left;
	}

	.psw-treatment-tabs .psw-sec__head-main {
		align-items: flex-start;
	}

	.psw-tt {
		display: block;
		border-top: 1px solid var(--psw-border);
	}

	.psw-tt .psw-tt__tab {
		align-items: center;
		width: 100%;
		min-height: 74.4px;
		padding: 0;
		color: var(--psw-foreground-strong);
	}

	.psw-tt .psw-tt__tab::after {
		display: none;
	}

	.psw-tt .psw-tt__num {
		flex: none;
		width: 15px;
		color: var(--psw-secondary);
		font-size: 12.5px;
		line-height: 19px;
	}

	.psw-tt .psw-tt__tab[aria-expanded="false"] .psw-tt__num {
		color: var(--psw-secondary);
	}

	.psw-tt .psw-tt__label {
		flex: 1;
		font-family: var(--e-global-typography-secondary-font-family, "Cormorant"), Georgia, serif;
		font-size: 28px;
		font-weight: 400;
		line-height: 1.15;
		white-space: normal;
	}

	.psw-tt .psw-tt__plus {
		display: block;
		flex: none;
		color: var(--psw-primary);
		font-family: var(--e-global-typography-secondary-font-family, "Cormorant"), Georgia, serif;
		font-size: 30px;
		font-weight: 300;
		line-height: 1;
		transition: transform 0.2s ease;
	}

	.psw-tt .psw-tt__tab[aria-expanded="true"] .psw-tt__plus {
		transform: rotate(45deg);
	}

	.psw-tt .psw-tt__panel {
		gap: 20px;
		padding: 0 0 20px;
		border-bottom: 1px solid var(--psw-border);
	}

	.psw-tt .psw-tt__tab[aria-expanded="true"] {
		border-bottom: 0;
	}

	.psw-tt .psw-tt__media {
		height: 200px;
	}

	.psw-tt .psw-tt__title {
		font-size: 30px;
		line-height: 1.12;
	}
}

/* Varios párrafos (línea en blanco en el texto). */
.psw-tt .psw-tt__text + .psw-tt__text {
	margin-top: 12px;
}

/* Nombres largos del doc 04 («Recuperación y cuidados», «Para quién está indicada»): 28 px hasta 1800. */
@media (min-width: 1280px) and (max-width: 1799px) {
	.psw-tt .psw-tt__label {
		font-size: 28px;
	}
}
