.vsa-feature-reveal {
	--vsa-feature-radius: var(--wp--preset--border-radius--m, 24px);
	--vsa-feature-gap: var(--wp--preset--spacing--m, 24px);
	--vsa-feature-gap-lg: var(--wp--preset--spacing--l, 32px);
	--vsa-feature-inner-gap: var(--wp--preset--spacing--s, 16px);
	--vsa-feature-reveal-image-height: 420px;
	--vsa-feature-reveal-image-focus-x: 50%;
	--vsa-feature-reveal-image-focus-y: 50%;
	--vsa-feature-reveal-duration: 1200ms;
	--vsa-feature-reveal-content-enter-delay: 620ms;
	--vsa-feature-reveal-content-duration: 460ms;
	--vsa-feature-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.vsa-feature-reveal__inner {
	display: grid;
	gap: var(--vsa-feature-gap-lg);
}

.vsa-feature-reveal__media {
	border-radius: var(--vsa-feature-radius);
	overflow: hidden;
	background: var(--wp--preset--color--surface, #fff);
}

.vsa-feature-reveal__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--vsa-feature-reveal-image-focus-x, 50%) var(--vsa-feature-reveal-image-focus-y, 50%);
}

.vsa-feature-reveal__placeholder {
	display: grid;
	place-content: center;
	min-height: 220px;
	padding: var(--wp--preset--spacing--l, 32px);
	font-size: var(--wp--preset--font-size--base, 1rem);
	background: var(--wp--preset--color--surface-soft, #f7fbfc);
	border-radius: var(--vsa-feature-radius);
	text-align: center;
}

.vsa-feature-reveal__body,
.vsa-feature-reveal__items {
	display: grid;
	gap: var(--vsa-feature-gap);
	align-content: start;
}

.vsa-feature-reveal__item {
	border-radius: var(--vsa-feature-radius);
	overflow: hidden;
	background: var(--wp--preset--color--surface, #fff);
	cursor: pointer;
	transition:
		flex-grow var(--vsa-feature-reveal-duration) var(--vsa-feature-reveal-ease),
		flex-basis var(--vsa-feature-reveal-duration) var(--vsa-feature-reveal-ease),
		max-width var(--vsa-feature-reveal-duration) var(--vsa-feature-reveal-ease),
		opacity 420ms var(--vsa-feature-reveal-ease),
		transform 420ms var(--vsa-feature-reveal-ease),
		box-shadow 420ms var(--vsa-feature-reveal-ease);
}

.vsa-feature-reveal__item.is-active {
	box-shadow: var(--wp--preset--shadow--shadow-soft, 0 10px 30px rgba(46, 46, 102, 0.07));
}

.vsa-feature-reveal__trigger {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
		"eyebrow"
		"title"
		"short"
		"icon";
	gap: var(--vsa-feature-inner-gap);
	align-items: start;
	width: 100%;
	padding: var(--wp--preset--spacing--l, 32px) var(--wp--preset--spacing--m, 24px);
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.vsa-feature-reveal__eyebrow {
	grid-area: eyebrow;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	flex: 0 0 auto;
	align-self: flex-start;
	height: auto;
	min-height: 0;
	gap: var(--wp--preset--spacing--2xs, 8px);
	padding: var(--wp--preset--spacing--2xs, 8px) var(--wp--preset--spacing--xs, 12px);
	border: 1px solid currentColor;
	border-radius: var(--wp--preset--border-radius--pill, 999px);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: var(--wp--custom--font-weight--bold, 700);
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vsa-feature-reveal__title {
	grid-area: title;
	margin: 0;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--h-3, 3rem);
	font-weight: var(--wp--custom--font-weight--semi-bold, 600);
	line-height: var(--wp--custom--line-height--heading, 1);
	letter-spacing: var(--wp--custom--letter-spacing--heading, -0.05em);
	color: inherit;
}

.vsa-feature-reveal__short-label {
	grid-area: short;
	display: none;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: var(--wp--preset--spacing--2xs, 8px) var(--wp--preset--spacing--xs, 12px);
	border: 1px solid currentColor;
	border-radius: var(--wp--preset--border-radius--pill, 999px);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: var(--wp--custom--font-weight--bold, 700);
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vsa-feature-reveal__icon-wrap {
	grid-area: icon;
	display: flex;
	justify-content: flex-end;
	margin-top: var(--wp--preset--spacing--xs, 12px);
}

.vsa-feature-reveal__icon {
	position: relative;
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 1.25rem;
	line-height: 1;
	transform: translateX(0);
	transition:
		transform 360ms var(--vsa-feature-reveal-ease),
		background-color 360ms var(--vsa-feature-reveal-ease),
		opacity 360ms var(--vsa-feature-reveal-ease);
}

.vsa-feature-reveal__trigger:hover .vsa-feature-reveal__icon,
.vsa-feature-reveal__trigger:focus-visible .vsa-feature-reveal__icon {
	transform: translateX(0.2em);
	opacity: 1;
}

.vsa-feature-reveal__trigger:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-600, currentColor);
	outline-offset: 3px;
}

.vsa-feature-reveal__eyebrow,
.vsa-feature-reveal__title,
.vsa-feature-reveal__panel {
	transition:
		opacity var(--vsa-feature-reveal-content-duration) var(--vsa-feature-reveal-ease),
		transform var(--vsa-feature-reveal-content-duration) var(--vsa-feature-reveal-ease),
		visibility 0ms linear calc(var(--vsa-feature-reveal-content-duration) / 2);
}

.vsa-feature-reveal__panel {
	display: grid;
	grid-template-rows: 0fr;
	padding: 0 var(--wp--preset--spacing--m, 24px);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	pointer-events: none;
	transition:
		grid-template-rows 620ms var(--vsa-feature-reveal-ease),
		opacity var(--vsa-feature-reveal-content-duration) var(--vsa-feature-reveal-ease),
		transform var(--vsa-feature-reveal-content-duration) var(--vsa-feature-reveal-ease),
		visibility 0ms linear var(--vsa-feature-reveal-content-duration),
		padding-bottom 520ms var(--vsa-feature-reveal-ease);
}

.vsa-feature-reveal__panel[hidden] {
	display: none;
}

.vsa-feature-reveal__content {
	min-height: 0;
	overflow: hidden;
}

.vsa-feature-reveal:not(.is-js-ready) .vsa-feature-reveal__panel {
	grid-template-rows: 1fr;
	padding-bottom: var(--wp--preset--spacing--l, 32px);
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.vsa-feature-reveal.is-js-ready .vsa-feature-reveal__item.is-closing .vsa-feature-reveal__panel {
	grid-template-rows: 0fr;
	padding-bottom: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	pointer-events: none;
}

.vsa-feature-reveal.is-js-ready .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__panel {
	grid-template-rows: 1fr;
	padding-bottom: var(--wp--preset--spacing--l, 32px);
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.vsa-feature-reveal.is-js-ready .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__content {
	opacity: 1;
	visibility: visible;
}

.vsa-feature-reveal__content p{
	font-size: var(--wp--preset--font-size--body-large, 1.75rem);
	line-height: var(--wp--custom--line-height--body, 1.5);
	color: inherit;
}

.vsa-feature-reveal__content p {
	margin: 0;
}

.vsa-feature-reveal--horizontal .vsa-feature-reveal__inner {
	display: flex;
	flex-direction: column;
}

.vsa-feature-reveal--horizontal.vsa-feature-reveal--image-bottom .vsa-feature-reveal__media {
	order: 2;
}

.vsa-feature-reveal--horizontal.vsa-feature-reveal--image-bottom .vsa-feature-reveal__body {
	order: 1;
}

.vsa-feature-reveal--horizontal .vsa-feature-reveal__media {
	height: var(--vsa-feature-reveal-image-height, 420px);
	min-height: 180px;
}

.vsa-feature-reveal--horizontal .vsa-feature-reveal__items {
	display: flex;
	gap: var(--vsa-feature-gap);
	align-items: stretch;
}

.vsa-feature-reveal--horizontal .vsa-feature-reveal__item {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	min-width: 0;
	max-width: 100%;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) {
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: 5.5rem;
	max-width: 5.5rem;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	max-width: 100%;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__trigger {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--s, 16px);
	padding: var(--wp--preset--spacing--m, 24px) var(--wp--preset--spacing--s, 16px);
	text-align: center;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__eyebrow,
.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__title {
	display: none;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__short-label {
	display: inline-flex;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__icon-wrap {
	justify-content: center;
	margin-top: 0;
	width: 100%;
}

@media (min-width: 782px) {
	.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__panel {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

/*
 * La pastilla activa nunca debe adoptar el layout contraído.
 * Durante la apertura sólo se oculta el panel por opacidad/visibilidad,
 * pero se mantiene la estructura para evitar saltos de altura.
 */

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__trigger {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--s, 16px);
	padding: var(--wp--preset--spacing--m, 24px) var(--wp--preset--spacing--s, 16px);
	text-align: center;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__eyebrow,
.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__title {
	display: none;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__eyebrow,
.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__title {
	display: block;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__eyebrow {
	display: inline-flex;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__short-label {
	display: inline-flex;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__short-label {
	display: none;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__icon-wrap {
	justify-content: center;
	margin-top: 0;
	width: 100%;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__trigger {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
		"eyebrow"
		"title"
		"short"
		"icon";
	align-items: start;
	text-align: left;
	padding: var(--wp--preset--spacing--l, 32px) var(--wp--preset--spacing--m, 24px);
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__icon-wrap {
	justify-content: flex-end;
	margin-top: var(--wp--preset--spacing--xs, 12px);
	width: auto;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__panel {
	grid-template-rows: 0fr;
	padding-bottom: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	pointer-events: none;
}

.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__panel {
	grid-template-rows: 1fr;
	padding-bottom: var(--wp--preset--spacing--l, 32px);
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.vsa-feature-reveal--vertical .vsa-feature-reveal__inner {
	grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
	align-items: stretch;
	transition: grid-template-columns var(--vsa-feature-reveal-duration) var(--vsa-feature-reveal-ease);
}

.vsa-feature-reveal--vertical.is-expanded .vsa-feature-reveal__inner {
	grid-template-columns: minmax(260px, 3fr) minmax(0, 7fr);
}

.vsa-feature-reveal--vertical .vsa-feature-reveal__media {
	height: 100%;
}

.vsa-feature-reveal--vertical .vsa-feature-reveal__items {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.vsa-feature-reveal--vertical:not(.is-expanded) .vsa-feature-reveal__item {
	flex: 1 1 0;
}

.vsa-feature-reveal--vertical.is-expanded .vsa-feature-reveal__item {
	flex: 0 0 auto;
}

.vsa-feature-reveal--vertical.is-expanded .vsa-feature-reveal__item.is-active {
	flex: 1 1 auto;
}

.vsa-feature-reveal--vertical.vsa-feature-reveal--vertical-start .vsa-feature-reveal__inner {
	align-items: start;
}

.vsa-feature-reveal--vertical.vsa-feature-reveal--vertical-center .vsa-feature-reveal__inner {
	align-items: center;
}

@media (max-width: 781px) {
	.vsa-feature-reveal__inner,
	.vsa-feature-reveal--horizontal .vsa-feature-reveal__inner {
		display: flex;
		flex-direction: column;
	}

	.vsa-feature-reveal__media {
		height: auto;
		min-height: clamp(220px, 60vw, 360px);
	}

	.vsa-feature-reveal__items {
		display: flex;
		flex-direction: column;
		height: auto;
	}

	.vsa-feature-reveal__item,
	.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item,
	.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active {
		flex: none;
	}
}

@media (max-width: 781px) {
	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__inner {
		display: flex;
		flex-direction: column;
		gap: var(--vsa-feature-gap-lg);
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__media {
		order: 1;
		width: 100%;
		height: auto;
		min-height: clamp(220px, 60vw, 360px);
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__body {
		order: 2;
		width: 100%;
		min-width: 0;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__items {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--vsa-feature-gap);
		width: 100%;
		height: auto;
		overflow: visible;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__item,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) {
		display: block;
		flex: none;
		width: 100%;
		min-width: 0;
		max-width: none;
		height: auto;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__trigger,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__trigger,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__trigger,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__trigger {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"eyebrow icon"
			"title icon";
		align-items: center;
		gap: var(--vsa-feature-inner-gap);
		width: 100%;
		padding: var(--wp--preset--spacing--m, 24px);
		text-align: left;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__eyebrow,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__title,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__eyebrow,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__title,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__eyebrow,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__title {
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__eyebrow {
		display: inline-flex;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__title {
		font-size: clamp(1.5rem, 7vw, 2rem);
		line-height: 1.05;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__short-label,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__short-label,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__short-label {
		display: none;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__icon-wrap,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item:not(.is-active) .vsa-feature-reveal__icon-wrap,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active:not(.is-content-visible) .vsa-feature-reveal__icon-wrap,
	.vsa-feature-reveal.vsa-feature-reveal--horizontal.is-expanded .vsa-feature-reveal__item.is-active.is-content-visible .vsa-feature-reveal__icon-wrap {
		grid-area: icon;
		justify-content: flex-end;
		align-self: center;
		width: auto;
		margin-top: 0;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__panel {
		padding-right: var(--wp--preset--spacing--m, 24px);
		padding-left: var(--wp--preset--spacing--m, 24px);
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__content {
		overflow: hidden;
	}

	.vsa-feature-reveal.vsa-feature-reveal--horizontal .vsa-feature-reveal__content p {
		font-size: var(--wp--preset--font-size--body, 1rem);
		line-height: var(--wp--custom--line-height--body, 1.5);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vsa-feature-reveal,
	.vsa-feature-reveal * {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
		scroll-behavior: auto !important;
	}
}
