/**
 * VSA — componentes provisionales (guía HTML validada).
 * Animaciones, hover-stack y layouts complejos: fases posteriores.
 */

/* Sección / panel (guía: .section, .panel) */
.vsa-section {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--l);
	padding: var(--wp--preset--spacing--m);
	box-shadow: var(--wp--preset--shadow--shadow-soft);
	display: grid;
	gap: var(--wp--preset--spacing--m);
}

.vsa-panel {
	background: var(--wp--preset--color--surface-soft);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--m);
	padding: var(--wp--preset--spacing--m);
	display: grid;
	gap: var(--wp--preset--spacing--s);
}

.vsa-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--m);
	padding: var(--wp--custom--card--padding);
	box-shadow: var(--wp--preset--shadow--shadow-soft);
}

p.is-style-ok-pill-caption {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	align-items: center;
}

.vsa-eyebrow {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: var(--wp--preset--spacing--2xs);
	padding: var(--wp--preset--spacing--2xs) var(--wp--preset--spacing--xs);
	border-radius: var(--wp--preset--border-radius--pill);
	background: var(--wp--preset--color--secondary-100);
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Botones (guía: .btn, .btn-primary, etc.) */
.vsa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--wp--preset--border-radius--pill);
	padding: 1rem 1.5rem;
	font-family: var(--wp--preset--font-family--plus-jakarta-sans);
	font-size: var(--wp--preset--font-size--button);
	font-weight: var(--wp--custom--font-weight--regular);
	letter-spacing: var(--wp--custom--letter-spacing--button);
	text-transform: uppercase;
	text-decoration: none;
	transition: var(--wp--custom--transition--default);
	cursor: pointer;
}

.vsa-button--primary {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--text-inverse);
}

.vsa-button--primary:hover,
.vsa-button--primary:focus {
	background: var(--wp--preset--color--secondary-600);
	color: var(--wp--preset--color--text-inverse);
}

.vsa-button--secondary {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--body);
}

.vsa-button--secondary:hover,
.vsa-button--secondary:focus {
	background: var(--wp--preset--color--primary-600);
}

.vsa-button--outline {
	background: transparent;
	color: var(--wp--preset--color--secondary);
	border: 1px solid var(--wp--preset--color--secondary);
}

.vsa-button--outline:hover,
.vsa-button--outline:focus {
	background: var(--wp--preset--color--secondary-100);
}

.vsa-link-inline {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	font-weight: var(--wp--custom--font-weight--medium);
	transition: var(--wp--custom--transition--default);
}

.vsa-link-inline:hover,
.vsa-link-inline:focus {
	color: var(--wp--preset--color--primary);
}

.vsa-nav-link {
	font-size: var(--wp--preset--font-size--nav);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--nav);
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}

.vsa-nav-link:hover,
.vsa-nav-link:focus {
	color: var(--wp--preset--color--primary);
}

.vsa-form-field {
	width: 100%;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--preset--border-radius--s);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--body);
	padding: 15px 16px;
	font-size: var(--wp--preset--font-size--base);
	font-family: inherit;
}

/* Academia / cursos — base estructural (sin lógica) */
.vsa-course-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--m);
	background: var(--wp--preset--color--surface-soft);
	padding: var(--wp--preset--spacing--m);
}

.vsa-academy-layout {
	display: grid;
	gap: var(--wp--preset--spacing--l);
}

@media (min-width: 960px) {
	.vsa-academy-layout {
		grid-template-columns: 1fr var(--wp--custom--course--sidebar-width);
	}
}

.vsa-course-sidebar {
	/* TODO: sticky, navegación de lecciones y estados de acceso en fase PHP/bloques */
	min-width: 0;
}

/* Header superior de lección (marca + acción de progreso) — sólo single-leccion */
body.single-leccion .vsa-lesson-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--s);
	margin-bottom: 0;
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

body.single-leccion .vsa-lesson-header__brand {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--s);
	flex: 1 1 auto;
	min-width: 0;
}

body.single-leccion .vsa-lesson-header__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border: 1px solid var(--wp--preset--color--secondary-300);
	border-radius: var(--wp--preset--border-radius--pill, 999px);
	color: var(--wp--preset--color--secondary-700);
	font-size: var(--wp--preset--font-size--body-medium, 1.25rem);
	line-height: 1;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

body.single-leccion .vsa-lesson-header__back:hover,
body.single-leccion .vsa-lesson-header__back:focus-visible {
	background: var(--wp--preset--color--secondary-100);
	color: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
}

body.single-leccion .vsa-lesson-header-back__notice {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	color: var(--wp--preset--color--text-soft);
}

/* Sin separación vertical entre header y shell (blockGap del tema) */
body.single-leccion .wp-site-blocks > .vsa-lesson-shell,
body.single-leccion .wp-site-blocks > * + .vsa-lesson-shell {
	margin-block-start: 0;
}

/* Plantilla single-leccion: rejilla sin padding lateral global (lo gestionan sidebar y main) */
.vsa-lesson-shell {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	min-height: calc(100vh - var(--wp--custom--vsa-lesson-header-height, 72px));
	margin-top: 0;
	padding-top: 0;
	padding-inline: 0;
}

.vsa-lesson-shell__main {
	min-width: 0;
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--l);;
	padding-inline: var(--wp--preset--spacing--l);
	padding-bottom: var(--wp--preset--spacing--l);
}

@media (max-width: 781px) {
	.vsa-lesson-shell {
		display: block;
		padding-inline: 0;
	}

	.vsa-lesson-shell__main {
		padding-inline: var(--wp--preset--spacing--s);
		padding-bottom: var(--wp--preset--spacing--m);
	}
}

/* Título de lección: h1 semántico, escala visual h3 (theme.json) */
.vsa-lesson-title {
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--heading, 1.15);
	font-weight: var(--wp--custom--font-weight--semi-bold, 600);
	margin-block-start: 0;
	margin-block-end: var(--wp--preset--spacing--m);
}

/* Block styles: core/group — radios explícitos para grupos visuales */
.wp-block-group.is-style-vsa-rounded-m {
	border-radius: var(--wp--preset--border-radius--m);
	overflow: hidden;
}

.wp-block-group.is-style-vsa-rounded-l {
	border-radius: var(--wp--preset--border-radius--l);
	overflow: hidden;
}

.wp-block-group.is-style-vsa-rounded-xl {
	border-radius: var(--wp--preset--border-radius--xl);
	overflow: hidden;
}

/* Home hero pattern: circular scroll button.
   Necesario porque core/button no permite definir de forma estable
   width/height/display:flex en atributos nativos sin invalidar el bloque. */
.ok-home-hero__scroll-button .wp-block-button__link {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Sticky benefits pattern: imagen lateral sticky en escritorio.
   El sticky y el apilado responsive no pueden resolverse de forma fiable
   sólo con atributos de bloque sin breakpoints. */
@media (min-width: 960px) {
	.ok-sticky-benefits .wp-block-columns {
		align-items: flex-start;
	}

	.ok-sticky-benefits .ok-sticky-benefits__media {
		position: sticky;
		top: var(--wp--preset--spacing--xl);
		align-self: start;
	}

	.ok-sticky-benefits .ok-sticky-benefits__content {
		min-height: 520px;
	}
}

@media (max-width: 959px) {
	.ok-sticky-benefits .ok-sticky-benefits__media {
		position: static;
	}

	.ok-sticky-benefits .ok-sticky-benefits__content {
		min-height: 0;
	}
}

/* Sticky benefits: cover con gradiente corporativo (preset theme.json). */
.ok-sticky-benefits__media .wp-block-cover {
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--l);
	min-height: 0;
}

.ok-sticky-benefits__media .wp-block-cover__inner-container {
	display: none;
}

/* Botón Contorno (core/outline): hover con preset secondary-100.
   theme.json define la variación, pero el hover no se aplica de forma fiable en frontend. */
.wp-block-button.is-style-outline .wp-block-button__link {
	transition: var(--wp--custom--transition--default);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--secondary-100);
	color: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
}

/* Testimonio + imagen: igualar altura de columnas (sin opción nativa en Gutenberg). */
.vsa-equal-height-columns {
	align-items: stretch;
}

.vsa-equal-height-columns > .wp-block-column {
	display: flex;
}

.vsa-equal-height-columns > .wp-block-column > * {
	flex: 1;
	width: 100%;
}

.vsa-equal-height-columns .wp-block-image,
.vsa-equal-height-columns .wp-block-image img {
	height: 100%;
}

.vsa-equal-height-columns .wp-block-image img {
	width: 100%;
	object-fit: cover;
}

/* Editorial content: blog article typography
   Scoped intentionally to single post content.
   Needed because theme.json heading styles are global and too large for long-form editorial reading. */

.single-post .ok-editorial-content {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
}

.single-post .ok-editorial-content :where(h2, h3, h4, h5, h6) {
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin-top: clamp(2.25rem, 5vw, 4rem);
	margin-bottom: clamp(0.75rem, 1.5vw, 1.15rem);
}

.single-post .ok-editorial-content :where(h2) {
	font-size: clamp(2rem, 3.2vw, 3rem);
}

.single-post .ok-editorial-content :where(h3) {
	font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

.single-post .ok-editorial-content :where(h4) {
	font-size: clamp(1.25rem, 1.55vw, 1.55rem);
}

.single-post .ok-editorial-content :where(h5) {
	font-size: clamp(1.05rem, 1.2vw, 1.25rem);
}

.single-post .ok-editorial-content :where(h6) {
	font-size: clamp(0.95rem, 1vw, 1.05rem);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.single-post .ok-editorial-content :where(p, ul, ol) {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.single-post .ok-editorial-content :where(h2 + h3, h3 + h4, h4 + h5) {
	margin-top: clamp(1.25rem, 3vw, 2rem);
}

/* Single split hero: force inner post-excerpt paragraph to inherit block typography. */
.ok-single-split-hero__excerpt .wp-block-post-excerpt__excerpt {
	font-size: inherit;
	line-height: inherit;
	margin: 0;
}


/* Single split hero: force featured image to fill its viewport-aware frame. */
.ok-single-split-hero__media {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.ok-single-split-hero__featured-image {
	position: relative;
	width: min(
		100%,
		calc((80vh - (var(--wp--preset--spacing--m) * 2)) * 0.75)
	);
	height: calc(80vh - (var(--wp--preset--spacing--m) * 2));
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 24px;
}

.ok-single-split-hero__featured-image > a,
.ok-single-split-hero__featured-image > img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.ok-single-split-hero__featured-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

/* Product hero: floating scroll arrow */
.ok-product-hero {
	position: relative;
}

.ok-product-hero__scroll-arrow {
	position: absolute;
	right: clamp(2rem, 6vw, 7rem);
	bottom: clamp(7rem, 9vh, 8rem);
	width: 76px;
	height: 76px;
	border-radius: 999px;
	background: var(--wp--preset--color--line);
	color: var(--wp--preset--color--secondary-700);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	z-index: 3;
	animation: ok-product-scroll-pulse 2.4s ease-in-out infinite;
}

.ok-product-hero__scroll-arrow:hover,
.ok-product-hero__scroll-arrow:focus {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	animation-play-state: paused;
	transform: translateY(2px);
}

.ok-product-hero__scroll-arrow-icon {
	display: block;
	position: relative;
	z-index: 1;
}

@keyframes ok-product-scroll-pulse {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--primary) 24%, transparent);
	}

	50% {
		transform: scale(1.055);
		box-shadow: 0 0 0 14px color-mix(in srgb, var(--wp--preset--color--primary) 0%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ok-product-hero__scroll-arrow {
		animation: none;
	}
}

/*
 * Single product — hero responsive móvil.
 * Fuera de .ok-product-content; acotado a body.single-product.
 */
@media (max-width: 781px) {
	body.single-product .ok-single-split-hero.ok-product-hero {
		min-height: auto !important;
		margin-bottom: var(--wp--preset--spacing--xl) !important;
		padding-right: var(--wp--preset--spacing--m) !important;
		padding-left: var(--wp--preset--spacing--m) !important;
	}

	body.single-product .ok-product-hero__columns {
		display: flex !important;
		flex-direction: column !important;
		gap: var(--wp--preset--spacing--l) !important;
	}

	body.single-product .ok-product-hero__columns > .ok-product-hero__media {
		order: 1;
	}

	body.single-product .ok-product-hero__columns > .ok-product-hero__content {
		order: 2;
	}

	body.single-product .ok-product-hero__media,
	body.single-product .ok-product-hero__content {
		flex-basis: auto !important;
		width: 100% !important;
		max-width: none !important;
	}

	body.single-product .ok-product-hero__content {
		padding-top: 0 !important;
		padding-right: 0 !important;
		padding-bottom: 0 !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-hero__featured-image,
	body.single-product .ok-single-split-hero__featured-image {
		width: 100% !important;
		height: auto !important;
		max-width: 100%;
		aspect-ratio: 3 / 4;
	}

	body.single-product .ok-product-hero__featured-image > a,
	body.single-product .ok-product-hero__featured-image > img,
	body.single-product .ok-single-split-hero__featured-image > a,
	body.single-product .ok-single-split-hero__featured-image > img {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
	}

	body.single-product .ok-product-hero__purchase,
	body.single-product .ok-product-hero__purchase .vsa-product-purchase {
		width: 100%;
	}

	body.single-product .ok-product-hero__purchase .button,
	body.single-product .ok-product-hero__purchase button,
	body.single-product .ok-product-hero__purchase .single_add_to_cart_button {
		width: 100%;
		max-width: 100%;
	}

	body.single-product .ok-product-hero__scroll-arrow {
		display: none !important;
	}
}

/* Página "Resetea tu espalda"*/
.vsa-program-summary {
	position: sticky;
	top: 120px;
  }

/* VSA - Acordeón / FAQ
   CSS mínimo y acotado al bloque.
   La estructura interactiva no puede resolverse sólo con Gutenberg/theme.json.
*/

.vsa-accordion {
	display: grid;
	gap: var(--wp--preset--spacing--m, 1.5rem);
}

.vsa-accordion__item {
	overflow: hidden;
	background: var(--wp--preset--color--surface, #ffffff);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--body, #111111) 10%, transparent);
	border-radius: var(--wp--preset--border-radius--xl, 32px);
}

.vsa-accordion__heading {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.vsa-accordion__trigger {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--wp--preset--spacing--m, 1.5rem);
	align-items: center;
	width: 100%;
	padding: var(--wp--preset--spacing--m, 1.5rem) var(--wp--preset--spacing--l, 2rem);
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.vsa-accordion__title {
	color: var(--wp--preset--color--body, #111111);
	font-family: var(--wp--preset--font-family--plus-jakarta-sans, inherit);
	font-size: var(--wp--preset--font-size--h-4, clamp(1.35rem, 2vw, 2rem));
	font-weight: 500;
	line-height: 1.2;
	transition: color 160ms ease;
}

.vsa-accordion__icon {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--body, #111111) 22%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--body, #111111);
}

.vsa-accordion__icon::before,
.vsa-accordion__icon::after {
	position: absolute;
	width: 1rem;
	height: 1px;
	background: currentColor;
	content: "";
	transition: transform 160ms ease;
}

.vsa-accordion__icon::after {
	transform: rotate(90deg);
}

.vsa-accordion__panel {
	padding: 0 var(--wp--preset--spacing--l, 2rem) var(--wp--preset--spacing--m, 1.5rem);
}

.vsa-accordion__content {
	max-width: 78ch;
	color: var(--wp--preset--color--body, #111111);
	font-size: var(--wp--preset--font-size--body-large, 1.125rem);
	line-height: 1.6;
}

.vsa-accordion__content > :first-child {
	margin-top: 0;
}

.vsa-accordion__content > :last-child {
	margin-bottom: 0;
}

.vsa-accordion__item.is-open .vsa-accordion__title {
	color: var(--wp--preset--color--primary, currentColor);
}

.vsa-accordion__item.is-open .vsa-accordion__icon::after {
	transform: rotate(0deg);
}

.vsa-accordion__trigger:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, currentColor);
	outline-offset: 4px;
}

@media (max-width: 782px) {
	.vsa-accordion {
		gap: var(--wp--preset--spacing--s, 1rem);
	}

	.vsa-accordion__trigger {
		padding: var(--wp--preset--spacing--m, 1.5rem);
	}

	.vsa-accordion__panel {
		padding: 0 var(--wp--preset--spacing--m, 1.5rem) var(--wp--preset--spacing--m, 1.5rem);
	}

	.vsa-accordion__icon {
		width: 2.25rem;
		height: 2.25rem;
	}
}

/* Checkout Block: ocultar enlace "Volver al carrito" (flujo VSA sin paso carrito). */
.vsa-checkout-template .wc-block-components-checkout-return-to-cart-button,
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
	display: none !important;
}

/**
 * WooCommerce - Mi cuenta
 *
 * El HTML interno procede del shortcode [woocommerce_my_account],
 * por lo que este ajuste requiere CSS acotado al componente.
 * Los valores visuales salen de theme.json y .ok-header-nav (vsa-header.css).
 */
.woocommerce-account .woocommerce {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--preset--border-radius--l);
	min-height: 650px; /* Sin preset de min-height en theme.json; altura mínima del componente Mi cuenta */
	padding-top: var(--wp--preset--spacing--xl);
	padding-bottom: var(--wp--preset--spacing--xl);
	padding-left: var(--wp--preset--spacing--l);
	padding-right: var(--wp--preset--spacing--l);
	overflow: hidden;
}

.woocommerce-account .woocommerce::after {
	content: "";
	display: table;
	clear: both;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	border-right: 1px solid var(--wp--preset--color--line);
	padding-right: var(--wp--preset--spacing--m);
	min-height: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link {
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: fit-content;

	/* Coincide con .ok-header-nav a (vsa-header.css) */
	color: var(--wp--preset--color--body);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--nav);
	font-weight: var(--wp--custom--font-weight--semi-bold);
	letter-spacing: 0.14em;
	text-transform: uppercase;

	/* Anula subrayado nativo de WooCommerce block theme (hover/activo) */
	text-decoration: none;
	text-decoration-line: none;
	box-shadow: none;

	padding: 0.35em 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a:focus,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a:focus-visible,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a[aria-current="page"] {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	text-decoration-line: none;
	box-shadow: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 180ms ease;
	pointer-events: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a:hover::after,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a:focus-visible::after,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link.is-active a::after,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a[aria-current="page"]::after {
	transform: scaleX(1);
}

.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link a[aria-current="page"] {
	color: var(--wp--preset--color--secondary);
}

.woocommerce-account .woocommerce-MyAccount-content {
	padding-left: var(--wp--preset--spacing--m);
	min-height: 100%;
}

@media (max-width: 768px) {
	.woocommerce-account .woocommerce {
		min-height: 0;
		padding-top: var(--wp--preset--spacing--l);
		padding-bottom: var(--wp--preset--spacing--l);
		padding-left: var(--wp--preset--spacing--m);
		padding-right: var(--wp--preset--spacing--m);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--line);
		padding-right: 0;
		padding-bottom: var(--wp--preset--spacing--m);
		margin-bottom: var(--wp--preset--spacing--m);
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding-left: 0;
	}
}

/* Mi cuenta — Mis cursos */
.vsa-my-courses {
	display: grid;
	gap: var(--wp--preset--spacing--m);
}

.vsa-my-courses > h2 {
	margin: 0;
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: var(--wp--custom--font-weight--semi-bold);
	line-height: var(--wp--custom--line-height--heading, 1.15);
}

.vsa-my-courses__intro,
.vsa-my-courses__empty {
	max-width: 62ch;
	margin: 0;
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.6;
}

.vsa-my-courses__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--m);
	align-items: stretch;
}

@media (min-width: 680px) {
	.vsa-my-courses__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vsa-my-courses__card {
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--m);
	box-shadow: var(--wp--preset--shadow--shadow-soft);
}

.vsa-my-courses__image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--wp--preset--color--surface-soft);
}

.vsa-my-courses__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vsa-my-courses__content {
	display: grid;
	gap: var(--wp--preset--spacing--s);
	align-content: start;
	padding: var(--wp--preset--spacing--m);
}

.vsa-my-courses__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--2xs);
}

.vsa-my-courses__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	padding: var(--wp--preset--spacing--2xs) var(--wp--preset--spacing--xs);
	border-radius: var(--wp--preset--border-radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--bold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.vsa-my-courses__badge--active {
	background: var(--wp--preset--color--primary-100);
	color: var(--wp--preset--color--primary-700);
}

.vsa-my-courses__badge--on-hold {
	background: var(--wp--preset--color--surface-soft);
	color: var(--wp--preset--color--body);
}

.vsa-my-courses__badge--cancelled,
.vsa-my-courses__badge--expired {
	background: var(--wp--preset--color--secondary-100);
	color: var(--wp--preset--color--secondary-700);
}

.vsa-my-courses__badge--pending-cancel {
	background: var(--wp--preset--color--surface-soft);
	color: var(--wp--preset--color--secondary);
}

.vsa-my-courses__title {
	margin: 0;
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--h-6);
	font-weight: var(--wp--custom--font-weight--semi-bold);
	line-height: var(--wp--custom--line-height--heading, 1.2);
}

.vsa-my-courses__actions {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--2xs);
}

.vsa-my-courses__actions .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
}

/*
 * Single product — tablet (782–1100px).
 * Reduce padding 2xl acumulado en layout programa e intro 40/60.
 */
@media (min-width: 782px) and (max-width: 1100px) {
	body.single-product .ok-single-split-hero.ok-product-hero {
		min-height: auto !important;
	}

	body.single-product .ok-product-content .vsa-product-program-layout {
		gap: var(--wp--preset--spacing--xl) !important;
	}

	body.single-product .ok-product-content .vsa-product-program-layout > .wp-block-column:not(.has-background) {
		padding-right: var(--wp--preset--spacing--m) !important;
		padding-left: var(--wp--preset--spacing--m) !important;
	}

	body.single-product .ok-product-content .ok-section-intro-statement .wp-block-columns {
		gap: var(--wp--preset--spacing--xl) !important;
	}
}

/**
 * Footer — newsletter Gravity Forms
 * Acotado a .vsa-site-footer__newsletter para no afectar otros formularios.
 * Botón alineado con theme.json / .vsa-button--primary.
 */
.vsa-site-footer__newsletter .gform_wrapper.gravity-theme .gform_fields {
	row-gap: var(--wp--preset--spacing--xs);
}

.vsa-site-footer__newsletter .gform_wrapper.gravity-theme .gfield {
	margin-bottom: 0;
}

.vsa-site-footer__newsletter .gform_wrapper.gravity-theme .gform_footer,
.vsa-site-footer__newsletter .gform_wrapper.gravity-theme .gform_page_footer {
	margin-top: var(--wp--preset--spacing--s);
	padding-top: 0;
}

.vsa-site-footer__newsletter .gform_wrapper.gravity-theme input[type="submit"],
.vsa-site-footer__newsletter .gform_wrapper.gravity-theme button[type="submit"],
.vsa-site-footer__newsletter .gform_wrapper.gravity-theme .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--wp--preset--border-radius--pill);
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--text-inverse);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--button);
	font-weight: var(--wp--custom--font-weight--regular);
	letter-spacing: var(--wp--custom--letter-spacing--button);
	line-height: 1;
	padding: 1rem 1.5rem;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: var(--wp--custom--transition--default);
}

.vsa-site-footer__newsletter .gform_wrapper.gravity-theme input[type="submit"]:hover,
.vsa-site-footer__newsletter .gform_wrapper.gravity-theme button[type="submit"]:hover,
.vsa-site-footer__newsletter .gform_wrapper.gravity-theme .gform_button:hover {
	background: var(--wp--preset--color--secondary-600);
	color: var(--wp--preset--color--text-inverse);
}

@media (max-width: 781px) {
	.ok-sticky-benefits {
		padding-right: var(--wp--preset--spacing--s) !important;
		padding-left: var(--wp--preset--spacing--s) !important;
	}

	.ok-sticky-benefits > .wp-block-columns {
		gap: var(--wp--preset--spacing--l) !important;
	}

	.ok-sticky-benefits .wp-block-column,
	.ok-sticky-benefits__media,
	.ok-sticky-benefits__content {
		padding-right: 0 !important;
		padding-left: 0 !important;
		flex-basis: auto !important;
	}

	.ok-sticky-benefits__content-inner {
		max-width: none !important;
	}
}

@media (max-width: 781px) {
	.wp-block-group:has(> .vsa-equal-height-columns) {
		padding-right: var(--wp--preset--spacing--m) !important;
		padding-left: var(--wp--preset--spacing--m) !important;
	}

	.vsa-equal-height-columns {
		gap: var(--wp--preset--spacing--l) !important;
	}

	.vsa-equal-height-columns > .wp-block-column {
		flex-basis: auto !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.vsa-equal-height-columns .wp-block-spacer {
		height: var(--wp--preset--spacing--l) !important;
	}
}

/**
 * Beti — Slider cutout editorial (acf/beti-cutout-slider).
 * Tablet: mantiene superposición con caja y tipografía más contenidas.
 * Móvil estrecho: card vertical (imagen arriba, texto debajo).
 */
@media (min-width: 782px) and (max-width: 959px) {
	.beti-cutout-slider .beti-cutout-slider__content {
		max-width: min(58%, 26rem) !important;
		padding:
			var(--wp--preset--spacing--xs)
			var(--wp--preset--spacing--s)
			var(--wp--preset--spacing--xs)
			var(--wp--preset--spacing--xs) !important;
	}

	.beti-cutout-slider .beti-cutout-slider__heading {
		font-size: clamp(1.5rem, 3.2vw, 2.15rem) !important;
	}

	.beti-cutout-slider .beti-cutout-slider__text {
		max-width: 34ch !important;
		font-size: var(--wp--preset--font-size--body-medium, 1.125rem) !important;
		line-height: 1.5 !important;
	}
}

@media (max-width: 781px) {
	.beti-cutout-slider .beti-cutout-slider__slide.is-active {
		display: flex !important;
		flex-direction: column;
	}

	.beti-cutout-slider .beti-cutout-slider__media {
		flex: 0 0 auto;
		width: 100%;
		border-radius: var(--wp--preset--border-radius--xl) !important;
		overflow: hidden;
	}

	.beti-cutout-slider .beti-cutout-slider__image {
		border-radius: var(--wp--preset--border-radius--xl);
	}

	.beti-cutout-slider .beti-cutout-slider__overlay {
		background: linear-gradient(
			180deg,
			rgba(73, 73, 153, 0) 62%,
			rgba(73, 73, 153, 0.24) 100%
		);
	}

	.beti-cutout-slider .beti-cutout-slider__content {
		position: relative !important;
		left: auto !important;
		bottom: auto !important;
		width: calc(100% - (var(--wp--preset--spacing--s) * 2)) !important;
		max-width: none !important;
		margin-top: calc(var(--wp--preset--spacing--m) * -1) !important;
		margin-inline: var(--wp--preset--spacing--s) !important;
		padding: var(--wp--preset--spacing--m) !important;
		border-radius: var(--wp--preset--border-radius--l) !important;
		box-shadow: var(--wp--preset--shadow--shadow-soft);
	}

	.beti-cutout-slider .beti-cutout-slider__radius-shape {
		display: none !important;
	}

	.beti-cutout-slider .beti-cutout-slider__heading {
		font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
	}

	.beti-cutout-slider .beti-cutout-slider__text {
		max-width: none !important;
		font-size: var(--wp--preset--font-size--base, 1rem) !important;
		line-height: 1.55 !important;
	}

	.beti-cutout-slider .beti-cutout-slider__text p {
		font-size: inherit !important;
	}
}

/**
 * Grids AJAX + tarjetas cutout — card vertical en móvil.
 * Bloques: vsa-content-ajax-grid, vsa-posts-ajax-grid (equivalente al cutout de ok-feature-card).
 */
@media (max-width: 781px) {
	.vsa-content-ajax-grid .vsa-content-ajax-grid__grid,
	.vsa-content-ajax-grid--cols-2 .vsa-content-ajax-grid__grid,
	.vsa-content-ajax-grid--cols-3 .vsa-content-ajax-grid__grid,
	.vsa-posts-ajax-grid .vsa-posts-ajax-grid__grid,
	.vsa-posts-ajax-grid--cols-2 .vsa-posts-ajax-grid__grid,
	.vsa-posts-ajax-grid--cols-3 .vsa-posts-ajax-grid__grid {
		grid-template-columns: 1fr !important;
		gap: var(--wp--preset--spacing--l) !important;
	}

	.vsa-content-ajax-grid .vsa-content-card,
	.vsa-content-ajax-grid .vsa-content-card__inner,
	.vsa-posts-ajax-grid .vsa-post-card,
	.vsa-posts-ajax-grid .vsa-post-card__inner {
		position: relative !important;
		overflow: visible !important;
	}

	.vsa-content-ajax-grid .vsa-content-card--cutout .vsa-content-card__inner,
	.vsa-posts-ajax-grid .vsa-post-card--cutout .vsa-post-card__inner {
		display: flex !important;
		flex-direction: column;
	}

	.vsa-content-ajax-grid .vsa-content-card--cutout .vsa-content-card__media,
	.vsa-posts-ajax-grid .vsa-post-card--cutout .vsa-post-card__media {
		flex-shrink: 0;
		width: 100%;
		border-radius: var(--wp--preset--border-radius--xl) !important;
		overflow: hidden;
	}

	.vsa-content-ajax-grid .vsa-content-card__image,
	.vsa-posts-ajax-grid .vsa-post-card__image {
		border-radius: var(--wp--preset--border-radius--xl);
	}

	.vsa-content-ajax-grid .vsa-content-card--cutout .vsa-content-card__content,
	.vsa-posts-ajax-grid .vsa-post-card--cutout .vsa-post-card__content {
		position: relative !important;
		inset: auto !important;
		left: auto !important;
		bottom: auto !important;
		width: auto !important;
		max-width: none !important;
		margin: calc(var(--wp--preset--spacing--m) * -1) var(--wp--preset--spacing--m) 0 !important;
		padding: var(--wp--preset--spacing--m) !important;
		border-radius: var(--wp--preset--border-radius--l) !important;
		box-shadow: var(--wp--preset--shadow--shadow-soft);
		z-index: 2;
	}

	.vsa-content-ajax-grid .vsa-content-card--cutout .vsa-content-card__radius-shape,
	.vsa-posts-ajax-grid .vsa-post-card--cutout .vsa-post-card__radius-shape {
		display: none !important;
	}

	.vsa-content-ajax-grid .vsa-content-card__title,
	.vsa-posts-ajax-grid .vsa-post-card__title {
		font-size: clamp(1.45rem, 7vw, 2rem) !important;
		line-height: 1.08 !important;
	}

	.vsa-content-ajax-grid .vsa-content-card__excerpt,
	.vsa-content-ajax-grid .vsa-content-card__meta-line,
	.vsa-posts-ajax-grid .vsa-post-card__excerpt {
		max-width: none !important;
		font-size: var(--wp--preset--font-size--base) !important;
		line-height: 1.45 !important;
	}

	.vsa-content-ajax-grid .vsa-content-card__cta,
	.vsa-content-ajax-grid .vsa-content-card__price {
		max-width: 100%;
	}
}

/**
 * Single product — contenido responsive móvil.
 */
@media (max-width: 781px) {

	/*
	 * Single product — base móvil.
	 * Un único padding lateral general para el contenido del producto.
	 */
	body.single-product .ok-product-content {
		box-sizing: border-box;
		padding-right: var(--wp--preset--spacing--m) !important;
		padding-left: var(--wp--preset--spacing--m) !important;
	}

	body.single-product .ok-product-content > .wp-block-post-content,
	body.single-product .ok-product-content .wp-block-post-content,
	body.single-product .ok-product-content .has-global-padding,
	body.single-product .ok-product-content .is-layout-constrained {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-content .wp-block-post-content > .alignwide,
	body.single-product .ok-product-content .wp-block-post-content > .alignfull {
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	/*
	 * Intro statement / Producto curso pago único.
	 * La sección no debe añadir padding lateral propio en móvil.
	 */
	body.single-product .ok-product-content .ok-section-intro-statement {
		box-sizing: border-box;
		padding-top: var(--wp--preset--spacing--s) !important;
		padding-right: 0 !important;
		padding-bottom: var(--wp--preset--spacing--xl) !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-content .ok-section-intro-statement > .wp-block-group {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-content .ok-section-intro-statement .wp-block-columns {
		display: flex !important;
		flex-direction: column !important;
		gap: var(--wp--preset--spacing--m) !important;
	}

	body.single-product .ok-product-content .ok-section-intro-statement .wp-block-column {
		flex-basis: auto !important;
		width: 100% !important;
		max-width: none !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-content .ok-section-intro-statement .wp-block-heading.has-h-2-font-size {
		font-size: var(--wp--preset--font-size--h-4) !important;
		line-height: 1.12 !important;
	}

	body.single-product .ok-product-content .ok-section-intro-statement p {
		max-width: none !important;
	}

	/*
	 * Layout programa / módulos y lecciones.
	 * En móvil: una columna, sin padding lateral 2xl en la zona de módulos.
	 */
	body.single-product .ok-product-content .vsa-product-program-layout {
		box-sizing: border-box;
		display: flex !important;
		flex-direction: column !important;
		gap: var(--wp--preset--spacing--l) !important;
		padding-top: var(--wp--preset--spacing--l) !important;
		padding-right: 0 !important;
		padding-bottom: var(--wp--preset--spacing--l) !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-content .vsa-product-program-layout > .wp-block-column {
		flex-basis: auto !important;
		width: 100% !important;
		max-width: none !important;
	}

	/*
	 * Esta columna sí puede conservar padding porque es una tarjeta visual con fondo.
	 */
	body.single-product .ok-product-content .vsa-product-program-layout > .wp-block-column.has-background {
		padding: var(--wp--preset--spacing--m) !important;
	}

	/*
	 * La columna de contenido principal no debe conservar padding lateral de escritorio.
	 */
	body.single-product .ok-product-content .vsa-product-program-layout > .wp-block-column:not(.has-background) {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-content .vsa-product-program-layout .wp-block-heading.has-h-3-font-size {
		font-size: var(--wp--preset--font-size--h-4) !important;
		line-height: 1.15 !important;
	}

	body.single-product .ok-product-content .wp-block-acf-vsa-course-summary-features,
	body.single-product .ok-product-content .wp-block-acf-vsa-course-content-list {
		max-width: 100% !important;
	}

	/*
	 * vsa-feature-reveal dentro de producto.
	 * En single-product el padding lateral general ya lo gestiona .ok-product-content.
	 * El bloque no debe sumar padding lateral propio en móvil.
	 */
	body.single-product .ok-product-content .vsa-feature-reveal,
	body.single-product .ok-product-content .wp-block-acf-vsa-feature-reveal {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-product .ok-product-content .vsa-feature-reveal > *,
	body.single-product .ok-product-content .wp-block-acf-vsa-feature-reveal > * {
		max-width: 100%;
	}
}

/**
 * Single post — responsive móvil.
 */
@media (max-width: 781px) {

	/*
	 * Single post — hero móvil.
	 */
	body.single-post .ok-single-post-main {
		margin-top: var(--wp--preset--spacing--m) !important;
		margin-bottom: var(--wp--preset--spacing--l) !important;
	}

	body.single-post .ok-single-split-hero {
		min-height: auto !important;
		margin-bottom: var(--wp--preset--spacing--xl) !important;
		padding-top: var(--wp--preset--spacing--m) !important;
		padding-right: var(--wp--preset--spacing--m) !important;
		padding-bottom: var(--wp--preset--spacing--m) !important;
		padding-left: var(--wp--preset--spacing--m) !important;
	}

	body.single-post .ok-single-split-hero__columns {
		display: flex !important;
		flex-direction: column !important;
		gap: var(--wp--preset--spacing--l) !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	body.single-post .ok-single-split-hero__content,
	body.single-post .ok-single-split-hero__media {
		flex-basis: auto !important;
		width: 100% !important;
		max-width: none !important;
	}

	body.single-post .ok-single-split-hero__content {
		order: 2;
		padding-top: 0 !important;
		padding-right: 0 !important;
		padding-bottom: 0 !important;
		padding-left: 0 !important;
	}

	body.single-post .ok-single-split-hero__media {
		order: 1;
	}

	body.single-post .ok-single-split-hero__title {
		font-size: var(--wp--preset--font-size--h-3) !important;
		line-height: 1.05 !important;
		text-align: left !important;
		margin-bottom: var(--wp--preset--spacing--s) !important;
	}

	body.single-post .ok-single-split-hero__excerpt,
	body.single-post .ok-single-split-hero__excerpt .wp-block-post-excerpt__excerpt {
		text-align: left !important;
		font-size: var(--wp--preset--font-size--body-medium) !important;
		line-height: 1.45 !important;
	}

	body.single-post .ok-single-split-hero__featured-image {
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		aspect-ratio: 3 / 4;
		border-radius: var(--wp--preset--border-radius--xl) !important;
	}

	body.single-post .ok-single-split-hero__featured-image > a,
	body.single-post .ok-single-split-hero__featured-image > img {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
	}

	/*
	 * Single post — layout editorial móvil.
	 */
	body.single-post .ok-single-post-layout {
		display: flex !important;
		flex-direction: column !important;
		gap: var(--wp--preset--spacing--l) !important;
	}

	body.single-post .ok-single-post-meta,
	body.single-post .ok-editorial-content {
		flex-basis: auto !important;
		width: 100% !important;
		max-width: none !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-post .ok-single-post-meta {
		order: 1;
	}

	body.single-post .ok-editorial-content {
		order: 2;
	}

	/*
	 * Evitar doble padding en el post-content editorial.
	 * El ancho/padding lo gestiona el layout del single post.
	 */
	body.single-post .ok-editorial-content > .wp-block-post-content,
	body.single-post .ok-editorial-content .wp-block-post-content,
	body.single-post .ok-editorial-content .has-global-padding,
	body.single-post .ok-editorial-content .is-layout-constrained {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-post .ok-editorial-content .wp-block-post-content > .alignwide,
	body.single-post .ok-editorial-content .wp-block-post-content > .alignfull {
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
}

/**
 * Single post — responsive tablet.
 */
@media (min-width: 782px) and (max-width: 1100px) {
	body.single-post .ok-single-split-hero {
		min-height: auto !important;
	}

	body.single-post .ok-single-split-hero__content {
		padding-right: var(--wp--preset--spacing--m) !important;
		padding-left: var(--wp--preset--spacing--m) !important;
	}

	body.single-post .ok-single-split-hero__title {
		font-size: var(--wp--preset--font-size--h-2) !important;
		line-height: 1 !important;
	}

	body.single-post .ok-single-post-layout {
		gap: var(--wp--preset--spacing--xl) !important;
	}
}