/**
 * Hero de unidad (Figma: Hero · Slide de tratamientos).
 * --psw-hh-wa / --psw-hh-ws: ancho de la tarjeta activa / lateral (los lee el JS).
 */

.psw-hero-hub {
	--psw-hh-wa: 960px;
	--psw-hh-ws: 640px;
	--psw-hh-gap: 24px;
	padding: 14px 20px;
}

.psw-hero-hub .psw-hero-hub__frame {
	position: relative;
	max-width: 1880px;
	height: 880px;
	margin-inline: auto;
	border-radius: 28px;
	overflow: hidden;
	background-color: var(--psw-surface);
}

.psw-hero-hub .psw-hero-hub__media {
	position: absolute;
	inset: 0;
}

.psw-hero-hub .psw-hero-hub__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(243, 237, 230, 0.98) 0%, rgba(243, 237, 230, 0.9) 34%, rgba(243, 237, 230, 0.25) 58%, rgba(243, 237, 230, 0) 80%),
		linear-gradient(0deg, rgba(243, 237, 230, 0.5) 0%, rgba(243, 237, 230, 0) 42%);
}

.psw-hero-hub .psw-hero-hub__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psw-hero-hub .psw-hero-hub__content {
	position: relative;
	z-index: 1;
	max-width: 720px;
	padding: 22px 64px 40px;
}

.psw-hero-hub .psw-hero-hub__intro {
	padding-top: 44px;
}

.psw-hero-hub .psw-hero-hub__title {
	margin: 18px 0 0;
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-display);
	font-size: var(--e-global-typography-om_display_xl-font-size, 88px);
	font-weight: var(--e-global-typography-om_display_xl-font-weight, 300);
	line-height: var(--e-global-typography-om_display_xl-line-height, 0.92);
	letter-spacing: var(--e-global-typography-om_display_xl-letter-spacing, -0.02em);
}

.psw-hero-hub .psw-hero-hub__title em {
	color: var(--psw-secondary);
	font-style: italic;
}

.psw-hero-hub .psw-hero-hub__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-hero-hub .psw-hero-hub__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* --- Carrusel --- */

.psw-hero-hub .psw-hero-hub__carousel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	/* 290 de la tarjeta activa + 28 de aire + 40 de flechas + 26 abajo. */
	height: 384px;
	touch-action: pan-y;
}

.psw-hero-hub .psw-hero-hub__track {
	position: relative;
	height: 300px;
}

.psw-hero-hub .psw-hero-hub__slide {
	position: absolute;
	top: 25px;
	left: 50%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 16px;
	width: var(--psw-hh-ws);
	height: 240px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 24px;
	background-color: rgba(255, 253, 251, 0.86);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	box-shadow: 0 1px 2px rgba(47, 50, 43, 0.04), 0 24px 48px rgba(47, 50, 43, 0.35);
	color: var(--psw-foreground);
	text-decoration: none;
	opacity: 0.8;
	transform: translateX(calc(-50% + var(--x, 0px)));
	transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.45s ease, height 0.45s ease, top 0.45s ease, opacity 0.4s ease;
	cursor: pointer;
}

.psw-hero-hub .psw-hero-hub__slide:hover,
.psw-hero-hub .psw-hero-hub__slide:focus-visible {
	color: var(--psw-foreground);
}

.psw-hero-hub .psw-hero-hub__slide.is-far {
	opacity: 0;
	pointer-events: none;
}

.psw-hero-hub .psw-hero-hub__slide.is-active {
	top: 0;
	z-index: 2;
	grid-template-columns: 371px minmax(0, 1fr);
	gap: 37px;
	width: var(--psw-hh-wa);
	height: 290px;
	opacity: 1;
	cursor: auto;
}

.psw-hero-hub .psw-hero-hub__slide-media {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--psw-surface-sand);
}

.psw-hero-hub .psw-hero-hub__slide-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psw-hero-hub .psw-hero-hub__slide-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 6px 0 2px 6px;
}

.psw-hero-hub .psw-hero-hub__slide-eyebrow {
	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-hero-hub .psw-hero-hub__slide-title {
	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: var(--e-global-typography-om_display_s-line-height, 1.14);
}

.psw-hero-hub .is-active .psw-hero-hub__slide-title {
	font-size: var(--e-global-typography-om_display_m-font-size, 48px);
	line-height: var(--e-global-typography-om_display_m-line-height, 1.06);
}

.psw-hero-hub .psw-hero-hub__slide-text {
	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-hero-hub .psw-hero-hub__slide-text--long,
.psw-hero-hub .psw-hero-hub__slide-chips {
	display: none;
}

.psw-hero-hub .is-active .psw-hero-hub__slide-text--short {
	display: none;
}

.psw-hero-hub .is-active .psw-hero-hub__slide-text--long {
	display: block;
	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-hero-hub .is-active .psw-hero-hub__slide-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 6px 0 4px;
}

.psw-hero-hub .psw-hero-hub__slide-chips span {
	padding: 7px 13px;
	border-radius: 99px;
	background-color: var(--psw-surface-raised);
	color: var(--psw-foreground-strong);
	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-hero-hub .psw-hero-hub__slide-link {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	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-hero-hub .psw-hero-hub__slide-arrow {
	display: inline-grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 19px;
	background-color: var(--psw-foreground-strong);
	color: var(--psw-primary-foreground);
	transition: transform 0.2s ease;
}

.psw-hero-hub .psw-hero-hub__arrow-icon {
	display: block;
	width: 16px;
	height: 16px;
}

.psw-hero-hub a.is-active:hover .psw-hero-hub__slide-arrow {
	transform: translateX(3px);
}

/* Navegación */

.psw-hero-hub .psw-hero-hub__nav {
	position: absolute;
	left: 50%;
	bottom: 26px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	transform: translateX(-50%);
}

.psw-hero-hub .psw-hero-hub__nav-label {
	margin-right: 10px;
	padding: 7px 12px;
	border-radius: 99px;
	background-color: rgba(255, 253, 251, 0.8);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--psw-foreground-strong);
	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;
	white-space: nowrap;
}

.psw-hero-hub button.psw-hero-hub__arrow,
.psw-hero-hub button.psw-hero-hub__arrow:hover,
.psw-hero-hub button.psw-hero-hub__arrow:focus {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background-color: rgba(255, 253, 251, 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-body);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.psw-hero-hub button.psw-hero-hub__arrow:hover {
	background-color: var(--psw-surface-raised);
}

/* --- Tablet y portátil --- */

@media (max-width: 1599px) {
	.psw-hero-hub {
		--psw-hh-wa: 820px;
		--psw-hh-ws: 560px;
	}

	.psw-hero-hub .psw-hero-hub__slide.is-active {
		grid-template-columns: 300px minmax(0, 1fr);
		gap: 24px;
	}

	.psw-hero-hub .psw-hero-hub__title {
		font-size: clamp(60px, 4.9vw, 88px);
	}
}

@media (max-width: 1023px) {
	.psw-hero-hub {
		--psw-hh-wa: 640px;
		--psw-hh-ws: 440px;
	}

	.psw-hero-hub .psw-hero-hub__frame {
		height: 900px;
	}

	.psw-hero-hub .psw-hero-hub__content {
		padding-inline: 40px;
	}

	.psw-hero-hub .psw-hero-hub__slide {
		grid-template-columns: minmax(0, 1fr) 200px;
	}

	.psw-hero-hub .psw-hero-hub__slide.is-active {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.psw-hero-hub .is-active .psw-hero-hub__slide-title {
		font-size: 36px;
	}
}

/* --- Móvil: solo la tarjeta activa, apilada bajo el texto --- */

@media (max-width: 767px) {
	.psw-hero-hub {
		padding: 8px;
	}

	.psw-hero-hub .psw-hero-hub__frame {
		height: auto;
		padding-bottom: 24px;
	}

	.psw-hero-hub .psw-hero-hub__media::after {
		background: linear-gradient(180deg, rgba(243, 237, 230, 0.92) 0%, rgba(243, 237, 230, 0.86) 60%, rgba(243, 237, 230, 0.6) 100%);
	}

	.psw-hero-hub .psw-hero-hub__content {
		padding: 22px 20px 0;
	}

	.psw-hero-hub .psw-hero-hub__intro {
		padding-top: 24px;
	}

	.psw-hero-hub .psw-hero-hub__buttons {
		flex-direction: column;
		align-items: flex-start;
	}

	.psw-hero-hub .psw-hero-hub__carousel {
		position: relative;
		height: auto;
		margin-top: 28px;
		padding-inline: 16px;
	}

	.psw-hero-hub .psw-hero-hub__track {
		height: auto;
	}

	.psw-hero-hub .psw-hero-hub__slide {
		display: none;
	}

	.psw-hero-hub .psw-hero-hub__slide.is-active {
		position: relative;
		top: auto;
		left: auto;
		display: flex;
		flex-direction: column;
		gap: 16px;
		width: 100%;
		height: auto;
		transform: none;
	}

	.psw-hero-hub .psw-hero-hub__slide-media {
		aspect-ratio: 16 / 10;
	}

	.psw-hero-hub .is-active .psw-hero-hub__slide-title {
		font-size: 30px;
		line-height: 1.12;
	}

	.psw-hero-hub .psw-hero-hub__nav {
		position: relative;
		left: auto;
		bottom: auto;
		justify-content: center;
		margin-top: 24px;
		transform: none;
	}
}

/* --- Disposición dividida: texto + foto a la derecha, sin carrusel (Longevidad) --- */

/* Figma: 14 px arriba y nada abajo (la sección siguiente ya trae su margen). */
.psw-hero-hub.psw-hero-hub--split {
	padding-bottom: 0;
}

.psw-hero-hub--split .psw-hero-hub__frame {
	height: 560px;
	background-color: #eceae3;
}

.psw-hero-hub--split .psw-hero-hub__img {
	left: 44%;
	width: 56%;
}

.psw-hero-hub--split .psw-hero-hub__media::after {
	background: linear-gradient(90deg, #f3ede6 0%, #f3ede6 42%, rgba(243, 237, 230, 0.6) 54%, rgba(243, 237, 230, 0) 72%);
}

.psw-hero-hub--split .psw-hero-hub__content {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px 64px 0;
}

.psw-hero-hub--split .psw-hero-hub__intro {
	margin: auto 0 80px;
	padding-top: 0;
}

.psw-hero-hub--split .psw-hero-hub__text {
	max-width: 528px;
}

/*
 * Escritorio ancho: posiciones fijas de Figma (Longevidad, Por qué elegirnos,
 * Garantía, Trabaja con nosotros): el texto empieza siempre a 313 px y los
 * botones a 428 (80 px del borde inferior); antetítulo y titular se apoyan
 * encima del texto, así un titular de 2 líneas crece hacia arriba.
 */
@media (min-width: 1280px) {
	/*
	 * Alto mínimo de Figma (560 px), pero el marco crece si el titular ocupa más líneas
	 * (Trabaja con nosotros a partir de 1600 px). Antes era un alto fijo: el texto subía
	 * hasta pisar las migas y los botones se recortaban.
	 */
	.psw-hero-hub--split .psw-hero-hub__frame {
		height: auto;
		min-height: 560px;
	}

	.psw-hero-hub--split .psw-hero-hub__content {
		height: auto;
		min-height: 560px;
	}

	.psw-hero-hub--split .psw-breadcrumb {
		position: absolute;
		top: 24px;
		left: 64px;
	}

	/* padding-top: hueco reservado a las migas (24 px + su línea), para que el antetítulo nunca suba encima. */
	.psw-hero-hub--split .psw-hero-hub__intro {
		display: grid;
		flex: 1;
		grid-template-rows: 1fr auto auto minmax(115px, auto) auto;
		justify-items: start;
		margin: 0;
		padding: 40px 0 80px;
	}

	.psw-hero-hub--split .psw-eyebrow {
		grid-row: 2;
	}

	.psw-hero-hub--split .psw-hero-hub__title {
		grid-row: 3;
		margin: 21.2px 0 13px;
	}

	.psw-hero-hub--split .psw-hero-hub__text {
		grid-row: 4;
		align-self: start;
		margin-top: 0;
	}

	.psw-hero-hub--split .psw-hero-hub__buttons {
		grid-row: 5;
		margin-top: 0;
	}
}

@media (max-width: 1279px) {
	.psw-hero-hub--split .psw-hero-hub__img {
		left: 50%;
		width: 50%;
	}

	.psw-hero-hub--split .psw-hero-hub__media::after {
		background: linear-gradient(90deg, #f3ede6 0%, #f3ede6 50%, rgba(243, 237, 230, 0.6) 62%, rgba(243, 237, 230, 0) 80%);
	}
}

/* Tablet y móvil: foto arriba y texto debajo (el texto no cabe junto a la foto). */
@media (max-width: 1023px) {
	.psw-hero-hub--split {
		--psw-hhs-media: 300px;
	}

	.psw-hero-hub--split .psw-hero-hub__frame {
		height: auto;
		padding-bottom: 40px;
	}

	.psw-hero-hub--split .psw-hero-hub__media {
		position: relative;
		inset: auto;
		height: var(--psw-hhs-media);
	}

	.psw-hero-hub--split .psw-hero-hub__img {
		left: 0;
		width: 100%;
	}

	.psw-hero-hub--split .psw-hero-hub__media::after {
		background: linear-gradient(180deg, rgba(38, 41, 34, 0.25) 0%, rgba(38, 41, 34, 0) 45%);
	}

	.psw-hero-hub--split .psw-hero-hub__content {
		max-width: none;
		height: auto;
		padding: 32px 40px 0;
	}

	.psw-hero-hub--split .psw-breadcrumb {
		position: absolute;
		top: calc(14px - var(--psw-hhs-media));
		left: 40px;
	}

	.psw-hero-hub--split .psw-breadcrumb ol,
	.psw-hero-hub--split .psw-breadcrumb [aria-current] {
		color: var(--psw-primary-foreground);
	}

	.psw-hero-hub--split .psw-hero-hub__intro {
		margin: 0;
		padding-top: 6px;
	}
}

@media (max-width: 767px) {
	.psw-hero-hub--split {
		--psw-hhs-media: 150px;
	}

	.psw-hero-hub--split .psw-hero-hub__frame {
		padding-bottom: 32px;
	}

	/* Figma móvil (Longevidad, Por qué elegirnos, Garantía): H1 44 px en 2 líneas, márgenes de 22 px. */
	.psw-hero-hub--split .psw-hero-hub__content {
		padding: 22px 22px 0;
	}

	.psw-hero-hub--split .psw-hero-hub__title {
		font-size: 44px;
		line-height: 1;
	}

	.psw-hero-hub--split .psw-hero-hub__text {
		margin-top: 14px;
	}

	.psw-hero-hub--split .psw-hero-hub__buttons {
		margin-top: 20px;
	}

	.psw-hero-hub--split .psw-breadcrumb {
		left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psw-hero-hub .psw-hero-hub__slide {
		transition: none;
	}
}

/* --- Dividida a ancho completo + fila de enlaces (Figma 23/11: Medicina Estética · Facial) --- */

.psw-hero-hub--split-full .psw-hero-hub__frame {
	min-height: 694px;
}

.psw-hero-hub--split-full .psw-hero-hub__img {
	left: 0;
	width: 100%;
	object-position: right center;
}

.psw-hero-hub--split-full .psw-hero-hub__media::after {
	background: linear-gradient(90deg, #f3ede6 0%, rgba(243, 237, 230, 0.94) 34%, rgba(243, 237, 230, 0.55) 52%, rgba(243, 237, 230, 0) 70%);
}

.psw-hero-hub .psw-hero-hub__links {
	margin-top: 40px;
}

.psw-hero-hub .psw-hero-hub__links-label {
	margin: 0 0 12px;
	color: var(--psw-label);
	font-size: var(--e-global-typography-om_etiqueta-font-size, 13px);
	font-weight: 500;
	letter-spacing: var(--e-global-typography-om_etiqueta-letter-spacing, 1.6px);
	text-transform: uppercase;
}

.psw-hero-hub .psw-hero-hub__links-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 620px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psw-hero-hub .psw-hero-hub__links-list .psw-chip {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 14px;
	border: 1px solid var(--psw-border);
	border-radius: 99px;
	background-color: var(--psw-surface-raised);
	color: var(--psw-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.psw-hero-hub .psw-hero-hub__links-list a.psw-chip:hover,
.psw-hero-hub .psw-hero-hub__links-list a.psw-chip:focus-visible {
	border-color: var(--psw-primary);
	background-color: var(--psw-primary);
	color: var(--psw-primary-foreground);
}

@media (min-width: 1280px) {
	.psw-hero-hub--split.psw-hero-hub--links .psw-hero-hub__intro {
		grid-template-rows: 1fr auto auto auto auto auto;
		padding-bottom: 48px;
	}

	.psw-hero-hub--split.psw-hero-hub--links .psw-hero-hub__text {
		margin-bottom: 28px;
	}

	.psw-hero-hub--split.psw-hero-hub--links .psw-hero-hub__links {
		grid-row: 6;
	}
}

@media (max-width: 1023px) {
	.psw-hero-hub--split-full .psw-hero-hub__frame {
		min-height: 0;
	}

	.psw-hero-hub--split-full .psw-hero-hub__img {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.psw-hero-hub .psw-hero-hub__links {
		margin-top: 28px;
	}
}
