/**
 * Buttons (docs/sistema-estils.md §5).
 *
 * Colours and type of Button / Primary come from theme.json (styles.elements.button).
 * This file adds the fixed height and the Figma variants as block styles (is-style-*).
 * Global on purpose: search, WooCommerce and core buttons share the same base.
 */

:where(.wp-block-button__link, .wp-element-button) {
	align-items: center;
	box-sizing: border-box;
	display: inline-flex;
	gap: var(--wp--preset--spacing--8);
	justify-content: flex-start;
	min-height: var(--wp--custom--size--control);
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--24) var(--wp--preset--spacing--72);
	position: relative;
	text-decoration: none;
	transition: background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), border-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

/* Arrow at the right end (Figma: Flecha / extremo derecho). */
.wp-block-button.has-icon-arrow > .wp-block-button__link::after,
.wp-element-button.has-icon-arrow::after {
	content: "→";
	inset-inline-end: var(--wp--preset--spacing--24);
	position: absolute;
}

/*
 * Minimum widths of the Figma, per variant: longer labels still grow. They sit on the block wrapper,
 * whose container has a definite width, so a button never overflows a narrow column or screen.
 * The classes is-width-352, is-width-320 and is-width-304 are the narrower Outline buttons of the Figma, and
 * is-width-420 and is-width-446 the wider Primary and Soft ones; they are set as additional CSS classes on the block.
 */
.wp-block-buttons > .wp-block-button:not([class*="is-style-"], .is-size-small) {
	min-width: min(var(--wp--custom--size--button-primary), 100%);
}

.wp-block-buttons > .wp-block-button.is-style-soft {
	min-width: min(var(--wp--custom--size--button-soft), 100%);
}

.wp-block-buttons > .wp-block-button:is(.is-style-outline, .is-style-outline-underlined) {
	min-width: min(var(--wp--custom--size--button-outline), 100%);
}

.wp-block-buttons > .wp-block-button.is-width-420 {
	min-width: min(420px, 100%);
}

.wp-block-buttons > .wp-block-button.is-style-soft.is-width-446 {
	min-width: min(446px, 100%);
}

/* In the flex row of Investigación, 100% above refers to its own content: the group takes the minimum. */
.is-layout-flex > .wp-block-buttons:has(> .is-style-soft.is-width-446) {
	min-width: min(446px, 100%);
}

.wp-block-buttons > .wp-block-button:is(.is-style-outline, .is-style-outline-underlined).is-width-352 {
	min-width: min(352px, 100%);
}

.wp-block-buttons > .wp-block-button:is(.is-style-outline, .is-style-outline-underlined).is-width-304 {
	min-width: min(304px, 100%);
}

/* Outline · 320 × 56 of the product page («See our patents»): the width of the Soft button. */
.wp-block-buttons > .wp-block-button:is(.is-style-outline, .is-style-outline-underlined).is-width-320 {
	min-width: min(var(--wp--custom--size--button-soft), 100%);
}

.wp-block-buttons > .wp-block-button:not([class*="is-style-text"]) > .wp-block-button__link {
	width: 100%;
}

/* Now that buttons are wider than their label, it stays on the left as in the Figma (core centres it). */
.wp-block-buttons > .wp-block-button:not([class*="is-style-text"], .is-style-cart) > .wp-block-button__link {
	justify-content: flex-start;
	text-align: start;
}

/*
 * In a flex row the buttons group is as wide as its content, so 100% above would refer to itself.
 * The group takes the minimum instead, against the row, which has a definite width.
 */
.is-layout-flex > .wp-block-buttons:has(> .wp-block-button:not([class*="is-style-"], .is-size-small)) {
	min-width: min(var(--wp--custom--size--button-primary), 100%);
}

.is-layout-flex > .wp-block-buttons:has(> .is-style-soft) {
	min-width: min(var(--wp--custom--size--button-soft), 100%);
}

.is-layout-flex > .wp-block-buttons:has(> :is(.is-style-outline, .is-style-outline-underlined):not(.is-width-352, .is-width-320, .is-width-304)) {
	min-width: min(var(--wp--custom--size--button-outline), 100%);
}

/* On phones and tablets (below 1024px) the buttons fit their text (breakpoint exception: media queries cannot read tokens). */
@media (max-width: 1023px) {

	.wp-block-buttons:has(> .wp-block-button:not([class*="is-style-text"])) {
		width: 100%;
	}

	.wp-block-buttons > .wp-block-button:not([class*="is-style-text"]) {
		width: 100%;
	}

	/*
	 * The buttons of the mobile Figma (Primary, Outline and Soft) are as wide as their text and 48px
	 * high, on every page: 20px, the label and 20px, or 56px with the arrow 16px from the end
	 * («Flecha / extremo derecho»). The cart buttons keep their own size.
	 */
	/* Doubled class: as specific as the minimum widths (is-width-352, is-width-304…), which they drop. */
	.wp-block-buttons > .wp-block-button.wp-block-button:not([class*="is-style-text"], .is-style-cart) {
		min-width: 0;
		width: auto;
	}

	.wp-block-buttons > .wp-block-button.wp-block-button:not([class*="is-style-text"], .is-style-cart) > .wp-block-button__link {
		min-height: var(--wp--custom--size--control-mobile);
		padding-inline: var(--wp--preset--spacing--20);
		width: auto;
	}

	.wp-block-buttons > .wp-block-button.has-icon-arrow:not([class*="is-style-text"], .is-style-cart) > .wp-block-button__link {
		padding-inline-end: calc(2 * var(--wp--preset--spacing--16) + var(--wp--preset--spacing--24));
	}

	.wp-block-buttons > .wp-block-button.has-icon-arrow:not([class*="is-style-text"], .is-style-cart) > .wp-block-button__link::after {
		inset-inline-end: var(--wp--preset--spacing--16);
	}
}

/*
 * Button / Text in the mobile Figma (the underlined «… →» links): 48px high, like the other buttons
 * below 1024px, instead of the 56 of the desktop (breakpoint exception: media queries cannot read tokens).
 */
@media (max-width: 1023px) {

	.wp-block-button.is-style-text > .wp-block-button__link {
		min-height: var(--wp--custom--size--control-mobile);
	}
}

/* Smaller size: add the class is-size-small to the button block or element. */
.wp-block-button.is-size-small > .wp-block-button__link,
.wp-element-button.is-size-small {
	min-height: var(--wp--custom--size--control-small);
	padding-inline: var(--wp--preset--spacing--16) var(--wp--preset--spacing--48);
}

/* Button / Soft */
.wp-block-button.is-style-soft > .wp-block-button__link {
	background-color: var(--wp--preset--color--surface-alt);
	color: var(--wp--preset--color--text-default);
}

.wp-block-button.is-style-soft > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--border-default);
}

/* Button / Outline: takes the text colour of its section (brown on light, white on dark). */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline-underlined > .wp-block-button__link {
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid currentcolor;
	color: inherit;
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--24) var(--wp--preset--spacing--72);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline-underlined > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--interactive);
	border-color: var(--wp--preset--color--interactive);
	color: var(--wp--preset--color--text-inverse);
}

:where(.wp-block-cover, .has-surface-inverse-background-color, .has-surface-inverse-alt-background-color, .has-surface-brand-background-color) .wp-block-button:is(.is-style-outline, .is-style-outline-underlined) > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-default);
}

/* Button / Outline · Underlined: the label is underlined (provisional, see the spec). */
.wp-block-button.is-style-outline-underlined > .wp-block-button__link {
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

/* Button / Text: underlined label (Figma: Action / Label / SemiBold / Link) */
.wp-block-button.is-style-text > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--text-default);
	padding-inline: 0;
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

.wp-block-button.is-style-text > .wp-block-button__link:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/*
 * Button / Text link: 32px high, underlined (Figma 3632:102). Text and Text link: on hover the text
 * goes to 70%, without a background (Figma, 03 / Layout y uso).
 */
.wp-block-button.is-style-text-link > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--text-default);
	min-height: var(--wp--custom--size--text-link);
	padding-inline: 0;
	text-align: start;
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

.wp-block-button.is-style-text-link > .wp-block-button__link:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/* Button / Cart: outline with centred label; solid brown on hover (Figma 3787:1064). */
.wp-block-button.is-style-cart > .wp-block-button__link,
.pa-product-card .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	color: var(--wp--preset--color--text-default);
	justify-content: center;
	max-width: 100%;
	min-width: min(var(--wp--custom--size--cart-button), 100%);
	padding-inline: var(--wp--preset--spacing--24);
	text-align: center;
}

.wp-block-button.is-style-cart > .wp-block-button__link:hover,
.pa-product-card .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:hover {
	background-color: var(--wp--preset--color--interactive);
	border-color: var(--wp--preset--color--interactive);
	color: var(--wp--preset--color--text-inverse);
}

/* Inverse: light button on dark sections */
.wp-block-button.is-style-inverse > .wp-block-button__link {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-default);
}

.wp-block-button.is-style-inverse > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface-alt);
}
/**
 * Post card (.pa-card) for archives, search and related posts.
 * Blog cards of the Figma (12 / Blog ProAge) refine it in the blog-3 pattern.
 */

.pa-card {
	gap: var(--wp--preset--spacing--24);
	height: 100%;
}

/* Editorial image: cream box with radius 40 (Figma: Imagen editorial). */
.pa-card__image {
	background-color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--40);
	margin: 0;
	overflow: hidden;
	width: 100%;
}

.pa-card__image img {
	border-radius: var(--wp--custom--radius--40);
	transition: transform var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--out);
}

/* Below 1024px, a radius of 20, as the Home cards (sections.css). Breakpoints in numbers: media queries cannot read tokens. */
@media (max-width: 1023px) {

	.pa-card__image,
	.pa-card__image img {
		border-radius: var(--wp--custom--radius--20);
	}
}

/* The photo grows a touch under the pointer; the box clips it. */
.pa-card:is(:hover, :focus-within) .pa-card__image img {
	transform: scale(1.03);
}

/* Category as an eyebrow above the title (Figma: "SALUD METABÓLICA"). */
.pa-card__kicker {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--comfortable);
	text-transform: uppercase;
}

.pa-card__kicker a {
	color: var(--wp--preset--color--text-default);
	text-decoration: none;
}

.pa-card__title {
	font-size: var(--wp--preset--font-size--xl);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
	margin: 0;
}

.pa-card__title a {
	color: var(--wp--preset--color--text-default);
	text-decoration: none;
}

.pa-card__title a:hover {
	text-decoration: underline;
}

.pa-card__excerpt {
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}

/*
 * Post header (Figma: 13-Post-D / 03 / Cabecera): breadcrumb, category and date, title. The breadcrumb
 * is WooCommerce's block; inc/magazine.php adds the blog and the » separator on posts.
 */
.pa-breadcrumb .woocommerce-breadcrumb {
	color: var(--wp--preset--color--text-default);
	line-height: var(--wp--custom--line-height--relaxed);
	margin: 0;
}

.pa-breadcrumb .woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.pa-breadcrumb .woocommerce-breadcrumb a:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/* The category as a brown chip at 5 %, 14/22 and 8/16 of padding (38px high). */
.pa-chip-list.pa-single__category a {
	background-color: var(--wp--preset--color--interactive-soft);
	border: 0;
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
	text-transform: uppercase;
}

.pa-single__date {
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--label);
}

.pa-single__title {
	line-height: var(--wp--custom--line-height--snug);
}

/* Side column: «Temas» and each topic on its own line, as a brown pill at 5 % (Figma: Temas). */
.pa-post-aside__label.wp-block-heading {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--relaxed);
	margin: 0;
	text-transform: uppercase;
}

.pa-post-aside__topics {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
}

.pa-post-aside__topics a {
	background-color: var(--wp--preset--color--interactive-soft);
	border-radius: var(--wp--custom--radius--999);
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
	text-decoration: none;
}

.pa-post-aside__topics a:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/* «¿Quieres seguir cuidando tu bienestar?»: 18/24, as in the Figma. */
.pa-related__invitation-title.wp-block-heading {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-single__image img {
	border-radius: var(--wp--custom--radius--40);
}
/**
 * Arrows of the horizontal carousels (assets/js/carousel.js): two round 44px buttons under the row,
 * on the right, 16px below it. Only with a mouse or a trackpad, where a row cannot be swiped; on
 * touch screens they never show. They take the colour of the section (white on the dark ones).
 */

.pa-carousel-nav {
	display: none;
}

@media (hover: hover) and (pointer: fine) {

	/* The whole width, also when the row sits in a flex container (the ingredients of Fórmula ProAge). */
	.pa-carousel-nav:not([hidden]) {
		box-sizing: border-box;
		display: flex;
		flex: 0 0 100%;
		gap: var(--wp--preset--spacing--8);
		justify-content: flex-end;
		width: 100%;
		margin-block-start: var(--wp--preset--spacing--16) !important; /* Over the block gap of the section's layout. */
	}
}

.pa-carousel-nav__button {
	align-items: center;
	appearance: none;
	background: transparent;
	border: var(--wp--custom--border-width--1) solid currentColor;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-size: var(--wp--preset--font-size--base);
	height: var(--wp--custom--size--control-touch);
	justify-content: center;
	padding: 0;
	transition: opacity var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
	width: var(--wp--custom--size--control-touch);
}

.pa-carousel-nav__button:hover:not(:disabled) {
	opacity: var(--wp--custom--opacity--hover);
}

.pa-carousel-nav__button:disabled {
	cursor: default;
	opacity: var(--wp--custom--opacity--disabled);
}
/**
 * Cart toast (.pa-cart-toast, assets/js/cart-toast.js): the product just added to the cart from a
 * product card, at the top right, just under the header (full width under 640px), on the page
 * gutter. The box of the WooCommerce notices (notice.css): white, 1px border, radius 8, padding 16;
 * the countdown line runs along its bottom edge and stops while the pointer or the focus is on the
 * box. The script keeps --pa-cart-toast-top at the bottom edge of the header (or of the admin bar,
 * or 0) while the header comes and goes. The WhatsApp button of the site stays at the bottom left.
 */

/* WooCommerce's «View cart» link under the card button: the toast says it instead. */
.pa-cart-toast-on .pa-product-card :is(span:has(> a.added_to_cart), a.added_to_cart) {
	display: none;
}

/*
 * The card button while WooCommerce adds the product: the spinner of the forms (field.css) in place
 * of the label, in the colour of the label (also on hover), and the same size of button. The block
 * button gets aria-busy from cart-toast.js; the classic one (related products), WooCommerce's
 * «loading» class. With reduced motion the reset of base.css stops it: the ring stays, still.
 */
.pa-product-card :is(button.wc-block-components-product-button__button[aria-busy="true"], .ajax_add_to_cart.loading) {
	cursor: progress;
	position: relative;
	-webkit-text-fill-color: transparent;
}

.pa-product-card :is(button.wc-block-components-product-button__button[aria-busy="true"], .ajax_add_to_cart.loading)::after {
	animation: pa-spin var(--wp--custom--motion--duration--spin) linear infinite;
	border: var(--wp--custom--border-width--2) solid currentcolor;
	border-inline-end-color: transparent;
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	content: "";
	height: var(--wp--custom--size--spinner);
	inset: 0;
	margin: auto;
	position: absolute;
	width: var(--wp--custom--size--spinner);
}

.pa-cart-toast {
	align-items: start;
	background-color: var(--wp--preset--color--surface-white);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--8);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-default);
	column-gap: var(--wp--preset--spacing--16);
	display: grid;
	grid-template-columns: var(--wp--custom--size--thumb-small) minmax(0, 1fr) auto;
	inset-block-start: calc(var(--pa-cart-toast-top, 0px) + var(--wp--preset--spacing--16));
	inset-inline-end: var(--wp--custom--gutter);
	opacity: 0;
	overflow: hidden;
	padding: var(--wp--preset--spacing--16);
	position: fixed;
	row-gap: var(--wp--preset--spacing--16);
	transform: translateY(calc(-1 * var(--wp--custom--motion--distance)));
	transition:
		opacity var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out),
		transform var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out);
	width: min(var(--wp--custom--size--toast), calc(100% - 2 * var(--wp--custom--gutter)));
	z-index: 200;
}

.pa-cart-toast[hidden] {
	display: none;
}

.pa-cart-toast.is-open {
	opacity: 1;
	transform: none;
}

/* Photo on the cream box of the product card. */
.pa-cart-toast__media {
	aspect-ratio: 1;
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--8);
	display: block;
	overflow: hidden;
}

.pa-cart-toast__media img {
	box-sizing: border-box;
	display: block;
	height: 100%;
	mix-blend-mode: multiply;
	object-fit: contain;
	padding: var(--wp--preset--spacing--4);
	width: 100%;
}

.pa-cart-toast__text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	min-width: 0;
}

.pa-cart-toast__text > * {
	margin: 0;
}

.pa-cart-toast__status {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-cart-toast__name {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	-webkit-line-clamp: 2;
	line-height: var(--wp--custom--line-height--normal);
	overflow: hidden;
}

.pa-cart-toast__price {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--normal);
}

/* Sale price: the old one muted and regular, as on the cards. */
.pa-cart-toast__price del {
	color: var(--wp--preset--color--text-muted);
	font-weight: var(--wp--custom--font-weight--regular);
}

.pa-cart-toast__price ins {
	text-decoration: none;
}

.pa-cart-toast__close {
	align-items: center;
	background-color: transparent;
	block-size: var(--wp--custom--size--control-compact);
	border: 0;
	cursor: pointer;
	display: flex;
	inline-size: var(--wp--custom--size--control-compact);
	justify-content: center;
	margin-block-start: calc(-1 * var(--wp--preset--spacing--4));
	margin-inline-end: calc(-1 * var(--wp--preset--spacing--4));
	padding: 0;
}

.pa-cart-toast__close:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
}

.pa-cart-toast__close img {
	display: block;
}

/* «View cart»: the Cart button, across the whole box. */
.pa-cart-toast__button {
	grid-column: 1 / -1;
	margin: 0;
}

.pa-cart-toast .pa-cart-toast__button > .wp-block-button__link {
	box-sizing: border-box;
	min-width: 0;
	padding-inline: var(--wp--preset--spacing--24);
	width: 100%;
}

/* Countdown: a line along the bottom edge that empties towards the start. */
.pa-cart-toast__progress {
	animation: pa-cart-toast-countdown var(--wp--custom--motion--duration--toast) linear forwards;
	background-color: var(--wp--preset--color--interactive);
	block-size: var(--wp--custom--border-width--2);
	inset-block-end: 0;
	inset-inline: 0;
	position: absolute;
	transform-origin: left center;
}

.pa-cart-toast.is-paused .pa-cart-toast__progress {
	animation-play-state: paused;
}

@keyframes pa-cart-toast-countdown {

	from {
		transform: scaleX(1);
	}

	to {
		transform: scaleX(0);
	}
}

@media (max-width: 640px) {

	.pa-cart-toast {
		inset-inline: var(--wp--custom--gutter);
		width: auto;
	}
}
/**
 * Catalogue pages: shop, product line, health area and product search (patterns/catalogo.php,
 * templates/archive-product.html, templates/taxonomy-proage_area.html, inc/catalog.php).
 * Figma: Productos (6100:3029) and the area page (6100:3952).
 */

/* Header (Figma 6100:3032): a full-width grey band with the page gutter and the wide container inside. */
.pa-catalog-header {
	background-color: var(--wp--preset--color--surface-alt);
	box-sizing: border-box;
	margin-block: 0;
	/* 60 over and 34 under the text (Figma 8106:149947): the scale has no 60 or 34. */
	padding: calc(var(--wp--preset--spacing--64) - var(--wp--preset--spacing--4)) var(--wp--custom--gutter) calc(var(--wp--preset--spacing--32) + var(--wp--preset--spacing--4) / 2);
}

.pa-catalog-header__inner {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

.pa-catalog-header__inner > * {
	margin-block: 0;
}

/*
 * Certifications band under the header (mobile Figma 6186:13688): only on phones and tablets, where
 * the count row leaves its labels out. The title at 16/24 and the labels at 14/20, both muted, two
 * columns 12px apart and 6px between rows, 16px around. From 1024 the labels are in the count row.
 */
.pa-catalog-certs {
	display: none;
}

@media (max-width: 1023px) {

	.pa-catalog-header {
		padding-block: var(--wp--preset--spacing--32);
	}

	.pa-catalog-certs {
		box-sizing: border-box;
		color: var(--wp--preset--color--text-muted);
		display: block;
		margin-block: 0;
		padding: var(--wp--preset--spacing--16) var(--wp--custom--gutter);
	}

	.pa-catalog-certs__title {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
		margin: 0;
	}

	.pa-catalog-certs__list {
		display: grid;
		font-size: var(--wp--preset--font-size--sm);
		font-weight: var(--wp--custom--font-weight--medium);
		gap: calc(1.5 * var(--wp--preset--spacing--4)) var(--wp--preset--spacing--12);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		line-height: var(--wp--custom--line-height--mobile-label);
		list-style: none;
		margin: var(--wp--preset--spacing--16) 0 0;
		padding: 0;
	}

	.pa-catalog-certs__list li::before {
		content: "•";
		content: "•" / "";
		margin-inline-end: var(--wp--preset--spacing--4);
	}
}

/*
 * Filters and results: one column up to 1023 (the filters are a drawer there, task 5); from 1024,
 * the filter column beside the results: size.card at the design width, narrower (28% of the
 * layout) on smaller desktops, so the grid keeps two cards of size.card-min at 1024.
 */
.pa-catalog .pa-catalog__layout {
	box-sizing: border-box;
	display: grid;
	gap: var(--wp--preset--spacing--32);
	grid-template-columns: minmax(0, 1fr);
	margin: 0 auto;
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--wp--custom--gutter));
	padding: var(--wp--preset--spacing--64) var(--wp--custom--gutter) var(--wp--preset--spacing--112);
}

@media (min-width: 1024px) {

	.pa-catalog .pa-catalog__layout {
		align-items: start;
		grid-template-columns: min(var(--wp--custom--size--card), 28%) minmax(0, 1fr);
		padding-block-start: var(--wp--preset--spacing--112);
	}
}

.pa-catalog__layout > *,
.pa-catalog__results > * {
	margin-block: 0;
	min-width: 0;
}

/*
 * Filter column (Figma 8106:149954): the health areas and WooCommerce's taxonomy filters, one group
 * after another with a hairline 32px from each, titles at 16/24 medium and square sage checkboxes.
 */
.pa-catalog-filters .wc-block-product-filters__overlay-content {
	gap: 0;
}

.pa-catalog-filters :is(.pa-catalog-areas, .wp-block-woocommerce-product-filter-taxonomy) {
	margin-block: 0;
}

.pa-catalog-filters :is(.pa-catalog-areas, .wp-block-woocommerce-product-filter-taxonomy:not([hidden])) ~ .wp-block-woocommerce-product-filter-taxonomy {
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	margin-block-start: var(--wp--preset--spacing--32);
	padding-block-start: var(--wp--preset--spacing--32);
}

.pa-catalog-filters .pa-catalog-filters__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: normal;
	line-height: var(--wp--custom--line-height--label);
	margin-block: 0 var(--wp--preset--spacing--16);
}

/* Health areas: plain links, the area of the page in medium weight. */
.pa-catalog-areas__list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-catalog-areas__list li {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-catalog-areas__list a {
	color: var(--wp--preset--color--text-default);
	text-decoration: none;
}

/* The goal of the page: medium, with a × after it; its link goes back to the shop. */
.pa-catalog-areas__list .pa-catalog-areas__current {
	align-items: baseline;
	display: inline-flex;
	font-weight: var(--wp--custom--font-weight--medium);
	gap: var(--wp--preset--spacing--8);
}

.pa-catalog-areas__remove {
	font-size: var(--wp--preset--font-size--base);
	line-height: var(--wp--custom--line-height--none);
}

/*
 * «Test and diagnosis» (Figma 8106:150027): 32px + hairline + 32px after the last filter, then the
 * grey card with a radius of 40 and 32px in: the eyebrow, the question at 26/34 medium and the
 * link at 18/24 medium with the arrow at the end of its 304px, 24px between them.
 */
.pa-catalog-test {
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	margin-block-start: var(--wp--preset--spacing--32);
	padding-block-start: var(--wp--preset--spacing--32);
}

.pa-catalog-test__card {
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--40);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	padding: var(--wp--preset--spacing--32);
}

.pa-catalog-test__card > * {
	margin: 0;
}

.pa-catalog-test__title {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-catalog-test__link {
	align-items: center;
	color: var(--wp--preset--color--text-default);
	display: flex;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
	gap: var(--wp--preset--spacing--16);
	justify-content: space-between;
	line-height: var(--wp--custom--line-height--mobile-compact);
	max-width: var(--wp--custom--size--text-link-wide);
	min-height: var(--wp--custom--size--text-link);
	text-decoration: none;
}

.pa-catalog-test__link:hover {
	opacity: var(--wp--custom--opacity--hover);
}

.pa-catalog-test__arrow {
	font-weight: var(--wp--custom--font-weight--semibold);
}

/* Phones and tablets, in the drawer (mobile Figma 8106:160482): 32/16 in, 20 between, the question at 20/24. */
@media (max-width: 1023px) {

	.pa-catalog-test__card {
		border-radius: var(--wp--custom--radius--20);
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16);
	}

	.pa-catalog-test__title {
		font-size: var(--wp--custom--font-size--mobile-detail);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--snug);
	}

	.pa-catalog-test__link {
		min-height: var(--wp--custom--size--control-mobile);
	}
}

/* WooCommerce's checkbox list: one term per row, no counts. */
.pa-catalog-filters .wc-block-product-filter-checkbox-list__items {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.pa-catalog-filters .wc-block-product-filter-checkbox-list__label {
	display: flex;
	gap: var(--wp--preset--spacing--16);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-catalog-filters .wc-block-product-filter-checkbox-list__text-wrapper {
	font-size: var(--wp--preset--font-size--sm);
}

.pa-catalog-filters .wc-block-product-filter-checkbox-list__input-wrapper {
	flex: none;
}

.pa-catalog-filters .wc-block-product-filter-checkbox-list__input-wrapper::before {
	content: none;
}

.pa-catalog-filters input[type="checkbox"].wc-block-product-filter-checkbox-list__input {
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--0);
	box-sizing: border-box;
	height: var(--wp--custom--size--checkbox-large);
	width: var(--wp--custom--size--checkbox-large);
}

.pa-catalog-filters input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked {
	background-color: var(--wp--preset--color--text-default);
	border-color: var(--wp--preset--color--text-default);
}

/* WooCommerce thins the outline on focus: the theme's visible focus (base.css) stays. */
.pa-catalog-filters input[type="checkbox"].wc-block-product-filter-checkbox-list__input:focus-visible {
	outline: var(--wp--custom--border-width--2) solid var(--wp--preset--color--border-strong);
	outline-offset: var(--wp--custom--border-width--2);
}

.pa-catalog-filters svg.wc-block-product-filter-checkbox-list__mark {
	color: var(--wp--preset--color--text-inverse);
	height: var(--wp--custom--size--checkbox-large);
	padding: var(--wp--preset--spacing--4);
	width: var(--wp--custom--size--checkbox-large);
}

.pa-catalog-filters .wc-block-product-filter-checkbox-list__count {
	display: none;
}

/*
 * Up to 1023 the filters open in WooCommerce's drawer (theme.json settings.viewport.tablet): the
 * button over the grid, and the panel with the theme's colours, spacing and buttons.
 * The button is the disclosure row of the mobile Figma (6186:13723): the whole width, 48px high,
 * «Filtrar productos» at 16/24 on the left, a «+» on the right and a hairline under it; without
 * WooCommerce's filter icon.
 */
.pa-catalog-filters .wc-block-product-filters__open-overlay {
	background: none;
	border: 0;
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-strong);
	border-radius: 0;
	box-sizing: border-box;
	color: var(--wp--preset--color--text-default);
	cursor: pointer;
	flex: 1 1 auto;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--regular);
	gap: var(--wp--preset--spacing--12);
	justify-content: space-between;
	line-height: var(--wp--custom--line-height--label);
	min-height: var(--wp--preset--spacing--48);
	padding: 0;
	text-align: start;
	width: 100%;
}

.pa-catalog-filters .wc-block-product-filters__open-overlay svg {
	display: none;
}

.pa-catalog-filters .wc-block-product-filters__open-overlay span {
	padding: 0;
}

.pa-catalog-filters .wc-block-product-filters__open-overlay::after {
	content: "+";
	content: "+" / "";
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--wp--custom--line-height--label);
}

.pa-catalog-filters .wc-block-product-filters__close-overlay {
	cursor: pointer;
}

.pa-catalog-filters .wc-block-product-filters__overlay-dialog {
	--wc-product-filters-overlay-background-color: var(--wp--preset--color--surface);
	--wc-product-filters-overlay-text-color: var(--wp--preset--color--text-default);
}

.pa-catalog-filters.is-overlay-opened .wc-block-product-filters__overlay {
	background-color: var(--wp--preset--color--brand-brown-alpha-45);
}

.pa-catalog-filters .wc-block-product-filters__apply {
	justify-content: center;
	padding-inline: var(--wp--preset--spacing--24);
}

@media (max-width: 1023px) {

	.pa-catalog-filters .wc-block-product-filters__overlay-header {
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--24) 0;
	}

	.pa-catalog-filters .wc-block-product-filters__overlay-content {
		padding: var(--wp--preset--spacing--24);
	}

	.pa-catalog-filters .wc-block-product-filters__overlay-footer {
		border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
		box-shadow: none;
		padding: var(--wp--preset--spacing--24);
	}
}

/*
 * «Applied filters» over the count (not in the Figma): the title at 14 medium, a chip per term (the
 * category chip at 14, 32px high, with a × that takes it off) and «Clear filters» underlined; it
 * wraps on narrow screens. 32px under it on desktops, 20 on phones.
 */
.pa-catalog-active {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--sm);
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12);
	line-height: var(--wp--custom--line-height--mobile-label);
	margin-block-end: var(--wp--preset--spacing--32);
}

.pa-catalog-active > * {
	margin: 0;
}

.pa-catalog-active__title {
	font-weight: var(--wp--custom--font-weight--medium);
}

.pa-catalog-active__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	list-style: none;
	padding: 0;
}

.pa-catalog-active .pa-catalog-active__chip {
	font-size: var(--wp--preset--font-size--sm);
	min-height: var(--wp--custom--size--control-compact);
	padding-block: 0;
}

.pa-catalog-active__clear {
	color: var(--wp--preset--color--text-default);
	font-weight: var(--wp--custom--font-weight--semibold);
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

.pa-catalog-active__clear:hover {
	opacity: var(--wp--custom--opacity--hover);
}

@media (max-width: 1023px) {

	.pa-catalog-active {
		margin-block-end: var(--wp--preset--spacing--20);
	}

	.pa-catalog-clear {
		display: none;
	}
}

/* Desktops: the filter column says which filters are on; «Clear filters» under the last one, 32 below. */
@media (min-width: 1024px) {

	.pa-catalog-active {
		display: none;
	}

	.pa-catalog-filters .pa-catalog-clear {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
		margin-block: var(--wp--preset--spacing--32) 0;
	}
}

/*
 * Count row (Figma 8106:150035): the subtitle at 18/28 muted with the certification labels under
 * it, at 18/24 medium, 16 apart, which go on to a second row, 8px under, when they do not fit (the
 * Figma clips the subtitle to 18px and puts the labels 16px under that: 12px under its 28px line);
 * «5 items» 32 under them and 16 over the grid, instead of the column of the Figma's group title
 * on the left.
 */
/* The subtitle and the labels on top; «45 items» under them, 32 below and 16 over the grid (Laura). */
.pa-catalog-count {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--32);
	margin-block-end: var(--wp--preset--spacing--16);
}

.pa-catalog-count .pa-catalog-count__total {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--label);
	order: 1;
}

.pa-catalog-count__total {
	margin: 0;
}

.pa-catalog-count__aside {
	color: var(--wp--preset--color--text-muted);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	/*
	 * On the right, as wide as the labels in one row (both Figma: on the shop it starts 277px in at
	 * 1920, after the group title, and ends at the edge; on the area the labels go to the right).
	 * When the row does not fit, the block takes the mobile look (container query below).
	 */
	margin-inline-start: auto;
	max-width: 100%;
	min-width: 0;
	width: max-content;
}

.pa-catalog-count__subtitle {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--relaxed);
	margin: 0;
}

.pa-catalog-count__labels {
	display: flex;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
	line-height: var(--wp--custom--line-height--mobile-compact);
	list-style: none;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.pa-catalog-count__labels li {
	white-space: nowrap;
}

/* The grey dot of the Figma, 5px and 4 from the label (the «•» of the font is wider). */
.pa-catalog-count__labels li::before {
	background-color: currentcolor;
	border-radius: var(--wp--custom--radius--999);
	content: "";
	display: inline-block;
	height: calc(1.25 * var(--wp--preset--spacing--4));
	margin-inline-end: var(--wp--preset--spacing--4);
	vertical-align: middle;
	width: calc(1.25 * var(--wp--preset--spacing--4));
}

/*
 * When the six labels do not fit in one row of the results (912px at 18px: below about 1400 wide),
 * the block takes the sizes of the mobile band (Figma 8106:160358) instead of a second row and the
 * whole width (Laura): the subtitle at 16/24 and the labels at 14/20 medium in three equal columns
 * (two rows), 24 apart and 6 between rows. Container query in numbers: it cannot read tokens.
 */
@container (max-width: 919px) {

	.pa-catalog-count__aside {
		margin-inline-start: 0;
		width: 100%;
	}

	.pa-catalog-count__subtitle {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	.pa-catalog-count__labels {
		display: grid;
		font-size: var(--wp--preset--font-size--sm);
		gap: calc(1.5 * var(--wp--preset--spacing--4)) var(--wp--preset--spacing--24);
		grid-template-columns: repeat(3, minmax(0, 1fr));
		line-height: var(--wp--custom--line-height--mobile-label);
	}
}

/* Phones and tablets: the labels are in the band under the header; the count alone, 32px over the grid. */
@media (max-width: 1023px) {

	.pa-catalog-count {
		margin-block-end: var(--wp--preset--spacing--32);
	}

	.pa-catalog-count {
		display: block;
	}

	.pa-catalog-count__aside,
	.pa-catalog-count__labels {
		display: none;
	}
}

/*
 * Shop grid in groups by product line (Figma 6212:5727, groups.php): the name of the line at 26/34
 * on the left, 40 over its grid, and 72 between groups (as between the rows of a grid). The head of
 * the first group has the subtitle and the certification labels on the right, from 1024 (the
 * aside of the count row, with its container query); its grid starts 72 under them.
 */
/* The first one level with the filters: without the block gap that the layout of the collection puts after its notices. */
.pa-catalog__grid > .pa-catalog-group {
	margin-block-start: 0;
}

.pa-catalog__grid > .pa-catalog-group + .pa-catalog-group {
	margin-block-start: var(--wp--preset--spacing--72);
}

.pa-catalog-group__head {
	align-items: flex-start;
	container-type: inline-size;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--32);
	margin-block-end: var(--wp--preset--spacing--40);
}

.pa-catalog-group__head:has(.pa-catalog-count__aside) {
	margin-block-end: var(--wp--preset--spacing--72);
}

/*
 * The title pushes the labels to the right while both fit in a row (from about 1600 wide); when
 * they do not (1440, 1536), the labels go under the title from the left edge, not from the right.
 */
.pa-catalog-group__head .pa-catalog-count__aside {
	margin-inline-start: 0;
}

.pa-catalog-group__head .pa-catalog-group__title {
	flex: 1 0 auto;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--normal);
	margin: 0;
}

/*
 * Phones and tablets: the labels are in the band under the header, so every head is the title
 * alone, 20 over its grid (as the count of the other pages), and 48 between groups.
 */
@media (max-width: 1023px) {

	.pa-catalog__grid > .pa-catalog-group + .pa-catalog-group {
		margin-block-start: var(--wp--preset--spacing--48);
	}

	.pa-catalog-group__head,
	.pa-catalog-group__head:has(.pa-catalog-count__aside) {
		margin-block-end: var(--wp--preset--spacing--20);
	}
}

/*
 * Grid of WooCommerce's product list: as many columns as fit, at most 3, and no card narrower than
 * size.card-min (min() keeps a single column inside a container narrower than that).
 */
.pa-catalog__grid .wc-block-product-template.wc-block-product-template {
	--pa-catalog-gap: var(--wp--preset--spacing--32);
	display: grid;
	gap: var(--wp--preset--spacing--72) var(--pa-catalog-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--wp--custom--size--card-min), calc((100% - 2 * var(--pa-catalog-gap)) / 3))), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-catalog__grid .wc-block-product-template > li {
	margin: 0;
	min-width: 0;
	width: auto;
}

/*
 * Phones and tablets (mobile Figma 6186:13830): two columns 12px apart and 32px between rows, as the
 * Home formulations; three from 768, where the drawer leaves the whole width to the grid. The card
 * takes the mobile sizes (product-card.css). Less room above the filters and between them and the
 * results: the certifications band is already over them.
 */
@media (max-width: 1023px) {

	.pa-catalog .pa-catalog__layout {
		gap: var(--wp--preset--spacing--20);
		padding-block: var(--wp--preset--spacing--12) calc(13 * var(--wp--preset--spacing--4));
	}

	.pa-catalog__grid .wc-block-product-template.wc-block-product-template {
		gap: var(--wp--preset--spacing--32) var(--wp--preset--spacing--12);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/*
	 * The area page (Figma 8106:160787): 18 from the certification labels to the button (the band
	 * keeps its 16 under them) and 32 under the grid; on the shop (8106:160391), 12 over the
	 * button, 20 to the results and 52 under the grid.
	 */
	.tax-proage_area .pa-catalog .pa-catalog__layout {
		padding-block: calc(var(--wp--preset--spacing--4) / 2) var(--wp--preset--spacing--32);
	}
}

@media (min-width: 768px) and (max-width: 1023px) {

	.pa-catalog__grid .wc-block-product-template.wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* No products: the message and the way back to the whole archive. */
.pa-catalog-empty {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-catalog-empty > *,
.pa-catalog-empty .wp-block-heading {
	margin-block: 0;
}

/* Test strip (shop): text on the left (8 columns of 12), the button on the right; stacked under 1024. */
/*
 * Test strip (Figma 8106:150463 and, on phones, 8106:160710): 80px over and under the text on
 * desktops; below 1024px, 32px, and 20px from the text to the button.
 */
.pa-test-strip {
	padding-block: var(--wp--preset--spacing--80);
}

@media (max-width: 1023px) {

	.pa-test-strip {
		padding-block: var(--wp--preset--spacing--32);
	}

	.pa-test-strip .pa-test-strip__inner {
		gap: var(--wp--preset--spacing--20);
	}
}

.pa-test-strip__inner {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--32);
}

.pa-test-strip__text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.pa-test-strip__inner > *,
.pa-test-strip__text > * {
	margin-block: 0;
}

@media (min-width: 1024px) {

	.pa-test-strip__inner {
		align-items: center;
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.pa-test-strip__text {
		grid-column: 1 / span 8;
	}

	.pa-test-strip__buttons {
		grid-column: 9 / span 4;
		justify-content: flex-end;
	}
}

/*
 * Sections of the area page (inc/catalog/area.php; Figma 6100:4158 and 6100:4236): the page gutter
 * outside, the wide container inside, eyebrow and heading, then the introduction.
 */
.pa-area-benefits,
.pa-area-comparison {
	box-sizing: border-box;
	margin-block: 0;
	padding-inline: var(--wp--custom--gutter);
}

.pa-area-section__inner {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: var(--wp--preset--spacing--112);
}

/* Section titles in medium (desktop Figma 8106:156777 and 8106:156869; mobile too). */
.pa-area-section__inner .pa-eyebrow-heading .wp-block-heading {
	font-weight: var(--wp--custom--font-weight--medium);
}

.pa-area-section__inner :where(p, h2, h3, ul) {
	margin-block: 0;
}

.pa-area-section__inner .pa-eyebrow-heading {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-area-section__intro {
	margin-block-start: var(--wp--preset--spacing--24);
	max-width: var(--wp--style--global--content-size);
}

/*
 * 04 · Benefits: one card per product on the dark band, 3 per row from 1024, 2 down to 641 and 1
 * on phones. The cards of a row take the height of the tallest one (Figma), with «Scientific
 * information» at the bottom.
 */
.pa-area-benefits__list {
	display: grid;
	gap: var(--wp--preset--spacing--32);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin-block-start: calc(var(--wp--preset--spacing--96) + var(--wp--preset--spacing--4));
	padding: 0;
}

@media (max-width: 640px) {

	.pa-area-benefits__list {
		grid-template-columns: minmax(0, 1fr);
		margin-block-start: var(--wp--preset--spacing--48);
	}
}

@media (min-width: 1024px) {

	.pa-area-benefits__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pa-area-benefits__card {
	background-color: var(--wp--preset--color--surface-inverse-alt);
	border-radius: var(--wp--custom--radius--40);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	margin: 0;
	padding: var(--wp--preset--spacing--32);
}

/*
 * Card of the desktop Figma (8106:156783): the name at 26/34 medium with room for two lines, the
 * labels at 14/18 medium and the texts at 18/28, 16 between them.
 */
.pa-area-benefits__title {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
	min-height: 2lh;
}

.pa-area-benefits__label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	text-transform: uppercase;
}

.pa-area-benefits__items,
.pa-area-benefits__text {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-area-benefits__items {
	list-style: none;
	padding: 0;
}

.pa-area-benefits__items li::before {
	content: "•";
	content: "•" / "";
	margin-inline-end: var(--wp--preset--spacing--4);
}

/* «Scientific information +»: a line above it, the «+» on the right. Opens the product's panel. */
.pa-area-benefits__science {
	align-items: center;
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--surface-white-alpha-8);
	color: inherit;
	display: flex;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	gap: var(--wp--preset--spacing--16);
	justify-content: space-between;
	line-height: var(--wp--custom--line-height--normal);
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--16);
	text-decoration: none;
	text-transform: uppercase;
}

.pa-area-benefits__science:hover {
	text-decoration: underline;
}

.pa-area-benefits__science span {
	font-size: var(--wp--preset--font-size--lg-plus);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--none);
}

/*
 * 05 · Comparison table: grey header and alternate rows inside a rounded box; the goal column is
 * size.card wide (narrower on smaller desktops) and the products share the rest. The box scrolls
 * sideways when the products do not fit: the table never gets narrower than its goal column plus
 * a column of a quarter of size.comparison-min per product (the number of products comes from the
 * markup), and the goal column stays in place. A quarter (150px) leaves 118px of text, room for the
 * longest word of a name (Monohidrato, 99px) without breaking it.
 */
/* Relative: the screen reader texts of the cells (absolute) stay inside the box, not past the page. */
.pa-area-comparison__scroll {
	border-radius: var(--wp--custom--radius--40);
	margin-block-start: var(--wp--preset--spacing--48);
	overflow-x: auto;
	position: relative;
}

.pa-area-comparison__table {
	--pa-area-comparison-column: calc(var(--wp--custom--size--comparison-min) / 4);
	--pa-area-comparison-first: min(var(--wp--custom--size--card), 28vw);
	border-collapse: collapse;
	min-width: calc(var(--pa-area-comparison-first) + var(--pa-area-comparison-products, 1) * var(--pa-area-comparison-column));
	table-layout: fixed;
	width: 100%;
}

/* Under 1024 the goal column is narrower (30% of size.comparison-min): the next column starts on screen. */
@media (max-width: 1023px) {

	.pa-area-comparison__table {
		--pa-area-comparison-first: calc(0.3 * var(--wp--custom--size--comparison-min));
	}
}

/*
 * Desktop Figma (8106:156873): the head row 128px high at 16/24 medium, the rows 80px high with a
 * sage line under each, the goal at 18/28 and the dash at 18/28 muted; 16 in every cell.
 */
.pa-area-comparison__table :is(th, td) {
	background-color: var(--wp--preset--color--surface);
	border: 0;
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	box-sizing: border-box;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--regular);
	height: calc(20 * var(--wp--preset--spacing--4));
	line-height: var(--wp--custom--line-height--relaxed);
	overflow-wrap: break-word;
	padding: var(--wp--preset--spacing--16);
	text-align: center;
	vertical-align: middle;
}

.pa-area-comparison__table :is(thead, tbody tr:nth-child(even)) :is(th, td) {
	background-color: var(--wp--preset--color--surface-alt);
}

.pa-area-comparison__table thead th {
	border-block-end: 0;
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	height: calc(32 * var(--wp--preset--spacing--4));
	line-height: var(--wp--custom--line-height--label);
}

.pa-area-comparison__table :is(th, td):first-child {
	inset-inline-start: 0;
	position: sticky;
	text-align: start;
	width: var(--pa-area-comparison-first);
	z-index: 1;
}

.pa-area-comparison__table thead th:first-child {
	text-transform: uppercase;
}

/*
 * When the table is wider than its box (many products on a narrow desktop; carousel.js): a brown
 * line after the fixed goal column, and a soft shadow on it once the products have moved under it.
 */
.pa-area-comparison__scroll.is-scrollable .pa-area-comparison__table :is(th, td):first-child {
	box-shadow: inset calc(-1 * var(--wp--custom--border-width--2)) 0 0 var(--wp--preset--color--interactive);
	transition: box-shadow var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-area-comparison__scroll.is-scrolled .pa-area-comparison__table :is(th, td):first-child {
	box-shadow:
		inset calc(-1 * var(--wp--custom--border-width--2)) 0 0 var(--wp--preset--color--interactive),
		var(--wp--preset--spacing--8) 0 var(--wp--preset--spacing--16) calc(-1 * var(--wp--preset--spacing--4)) color-mix(in srgb, var(--wp--preset--color--brand-brown) 16%, transparent);
}

.pa-area-comparison__table td {
	color: var(--wp--preset--color--text-muted);
}

/* The dot of a highlighted goal (the green of the Figma, accent-green) and the legend under the table. */
.pa-area-comparison__dot {
	background-color: var(--wp--preset--color--accent-green);
	border-radius: var(--wp--custom--radius--999);
	display: inline-block;
	height: var(--wp--preset--spacing--12);
	vertical-align: middle;
	width: var(--wp--preset--spacing--12);
}

.pa-area-comparison__legend {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--mobile-label);
	margin-block-start: var(--wp--preset--spacing--48);
}

.pa-area-comparison__legend .pa-area-comparison__dot {
	height: calc(2.5 * var(--wp--preset--spacing--4));
	margin-inline-end: var(--wp--preset--spacing--8);
	width: calc(2.5 * var(--wp--preset--spacing--4));
}

.pa-area-comparison__note {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--mobile-label);
	margin-block-start: var(--wp--preset--spacing--8);
}

/* From 1024 the table; the cards of the phones stay hidden. */
.pa-area-comparison__cards {
	display: none;
}

/*
 * Area page on phones and tablets, below 1024px (mobile Figma «4-Productos — Categoría-M»,
 * 8106:160748), measured at 430:
 * - 04 · Benefits and 05 · Comparison: 32px over and under, 20 from the heading to the content.
 * - 04 · Benefits: 300px cards, 12 apart, in a row that scrolls sideways to the edge of the screen,
 *   with arrows (carousel.js). Each one with a radius of 24 and 20 in, 12 between its parts, the
 *   name at 18/24 medium with room for two lines, the labels at 14/20 medium, the texts at 14/20
 *   with 4 between the benefits, and «Scientific information» at the bottom, 16 under a line.
 * - 05 · Comparison: the table becomes one grey card per product, two per row (6 apart, 16 between
 *   rows): a radius of 24, 8/12 in, the name at 15/21 medium with room for two lines, then each goal
 *   at 12/16 with the dot or the dash on the right and a line under it (not under the last one).
 *   The legend 20 under the cards and the note 20 under it, at 13/18.
 * - The product cards of the grid keep the points of the area behind «Read more» (card.php).
 */
@media (max-width: 1023px) {

	.pa-area-section__inner {
		padding-block: var(--wp--preset--spacing--32);
	}

	.pa-area-section__inner .pa-eyebrow-heading,
	.pa-area-section__intro {
		margin-block-start: var(--wp--preset--spacing--20);
	}

	.pa-area-section__inner .pa-eyebrow-heading {
		gap: var(--wp--preset--spacing--20);
		margin-block-start: 0;
	}

	.pa-area-section__intro {
		max-width: none;
	}


	/* «Read more» of the area cards: 14/20 semibold, underlined, centred, 32px high, without the arrow. */
	.pa-catalog__grid .pa-product-card__more > summary {
		align-self: center;
		justify-content: center;
		min-height: var(--wp--custom--size--text-link);
		padding-block: calc(1.5 * var(--wp--preset--spacing--4));
	}

	.pa-catalog__grid .pa-product-card__more > summary::after,
	.pa-catalog__grid .pa-product-card__more[open] > summary::after {
		content: none;
	}

	.pa-catalog__grid .pa-product-card__more > .pa-product-card__bullets {
		margin-block-start: 0;
	}

	.pa-area-benefits__list.pa-area-benefits__list {
		display: flex;
		gap: var(--wp--preset--spacing--12);
		margin-block-start: var(--wp--preset--spacing--20);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter));
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-area-benefits__card {
		border-radius: var(--wp--custom--radius--24);
		flex: 0 0 var(--wp--custom--size--blog-card);
		gap: var(--wp--preset--spacing--12);
		padding: var(--wp--preset--spacing--20);
	}

	.pa-area-benefits__title {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		font-weight: var(--wp--custom--font-weight--medium);
		line-height: var(--wp--custom--line-height--mobile-compact);
		margin-block-end: 0;
		min-height: 2lh;
	}

	.pa-area-benefits__label {
		font-size: var(--wp--preset--font-size--sm);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	.pa-area-benefits__items,
	.pa-area-benefits__text {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	.pa-area-benefits__items {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--4);
	}

	.pa-area-benefits__science {
		font-size: var(--wp--preset--font-size--sm);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-label);
		min-height: var(--wp--custom--size--control-mobile);
	}

	.pa-area-benefits__science span {
		font-size: var(--wp--preset--font-size--lg-plus);
		font-weight: var(--wp--custom--font-weight--regular);
	}

	.pa-area-comparison__scroll {
		display: none;
	}

	.pa-area-comparison__cards {
		display: grid;
		gap: var(--wp--preset--spacing--16) calc(1.5 * var(--wp--preset--spacing--4));
		grid-template-columns: repeat(2, minmax(0, 1fr));
		list-style: none;
		margin-block-start: var(--wp--preset--spacing--20);
		padding: 0;
	}

	.pa-area-comparison__card {
		background-color: var(--wp--preset--color--surface-alt);
		border-radius: var(--wp--custom--radius--24);
		display: flex;
		flex-direction: column;
		gap: calc(1.5 * var(--wp--preset--spacing--4));
		padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12);
	}

	.pa-area-comparison__name {
		font-size: var(--wp--custom--font-size--mobile-card-title);
		font-weight: var(--wp--custom--font-weight--medium);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-card);
		min-height: 2lh;
	}

	.pa-area-comparison__rows {
		display: flex;
		flex-direction: column;
		gap: calc(1.5 * var(--wp--preset--spacing--4));
		list-style: none;
		padding: 0;
	}

	.pa-area-comparison__row {
		align-items: center;
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
		display: flex;
		font-size: var(--wp--preset--font-size--xs);
		gap: var(--wp--preset--spacing--8);
		line-height: var(--wp--custom--line-height--mobile-compact);
		min-height: var(--wp--preset--spacing--28);
		padding-block: calc(1.5 * var(--wp--preset--spacing--4));
		position: relative;
	}

	.pa-area-comparison__row:last-child {
		border-block-end: 0;
	}

	.pa-area-comparison__goal {
		flex: 1 1 auto;
		min-width: 0;
	}

	.pa-area-comparison__mark {
		color: var(--wp--preset--color--text-muted);
		flex: none;
		text-align: center;
		width: var(--wp--preset--spacing--20);
	}

	.pa-area-comparison__mark .pa-area-comparison__dot,
	.pa-area-comparison__legend .pa-area-comparison__dot {
		height: calc(1.5 * var(--wp--preset--spacing--4));
		width: calc(1.5 * var(--wp--preset--spacing--4));
	}

	.pa-area-comparison__legend,
	.pa-area-comparison__note {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
		margin-block-start: var(--wp--preset--spacing--20);
	}
}

/*
 * Catalogue pages on phones and tablets, the rest of the mobile Figma (shop 8106:160351, area
 * 8106:160748), measured at 430: the page title at 26/32; on the area, the certifications band
 * without its title, 20 over the labels and 16 under them; the filter button at 16/24 medium with
 * its «+» at 20; the count at 14/18 medium, 20 over the grid.
 */
@media (max-width: 1023px) {

	.pa-catalog-header .pa-catalog-header__title {
		font-size: var(--wp--custom--font-size--mobile-metric);
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	.pa-catalog-certs:not(:has(.pa-catalog-certs__title)) {
		padding-block-start: var(--wp--preset--spacing--20);
	}

	.pa-catalog-certs .pa-catalog-certs__list:first-child {
		margin-block-start: 0;
	}

	.pa-catalog-filters .wc-block-product-filters__open-overlay {
		font-weight: var(--wp--custom--font-weight--medium);
	}

	.pa-catalog-filters .wc-block-product-filters__open-overlay::after {
		font-size: var(--wp--custom--font-size--mobile-detail);
		line-height: var(--wp--custom--line-height--snug);
	}

	.pa-catalog-count .pa-catalog-count__total {
		font-weight: var(--wp--custom--font-weight--medium);
		line-height: var(--wp--custom--line-height--normal);
	}

	.pa-catalog .pa-catalog-count {
		margin-block-end: var(--wp--preset--spacing--20);
	}
}
/**
 * Chip / Category and Category chip compact (docs/sistema-estils.md §6).
 *
 * Use .pa-chip on the element itself, or on a block wrapper whose links are the chips
 * (navigation, post terms): .pa-chip-list.
 */

.pa-chip,
.pa-chip-list a {
	align-items: center;
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-default);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
	gap: var(--wp--preset--spacing--8);
	line-height: var(--wp--custom--line-height--normal);
	padding-block: var(--wp--preset--spacing--8);
	padding-inline: var(--wp--preset--spacing--16);
	text-decoration: none;
	transition: background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), border-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-chip-list a:hover,
a.pa-chip:hover {
	background-color: var(--wp--preset--color--interactive-soft);
}

.pa-chip--compact,
.pa-chip-list.pa-chip--compact a {
	background-color: var(--wp--preset--color--surface-alt);
	border-color: transparent;
	font-size: var(--wp--preset--font-size--sm);
	min-height: var(--wp--custom--size--control-compact);
	padding-block: 0;
	white-space: nowrap;
}
/**
 * Side panel (drawer): the dialog inc/drawer.php renders from a pa-drawer group (Figma: «La ciencia
 * detrás de Fórmula ProAge®», 540px on a white background). docs/panell-lateral.md.
 */

dialog.pa-drawer {
	background-color: var(--wp--preset--color--surface-white);
	block-size: 100dvh;
	border: 0;
	box-sizing: border-box;
	color: var(--wp--preset--color--neutral-black);
	inline-size: min(var(--wp--custom--size--drawer), 100%);
	inset-block: 0;
	inset-inline: auto 0;
	margin: 0;
	max-block-size: 100dvh;
	max-inline-size: 100%;
	overflow: hidden;
	padding: 0;
	position: fixed;
}

dialog.pa-drawer[open] {
	animation: pa-drawer-in 0.3s ease-out;
}

/* The panel itself takes the focus when it opens from a shared address: no ring around all of it. */
dialog.pa-drawer:focus {
	outline: none;
}

dialog.pa-drawer::backdrop {
	background-color: var(--wp--preset--color--brand-brown-alpha-45);
}

@keyframes pa-drawer-in {

	from {
		transform: translateX(100%);
	}

	to {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	dialog.pa-drawer[open] {
		animation: none;
	}
}

/* The page behind does not scroll while a panel is open. */
html.pa-drawer-open {
	overflow: hidden;
	scrollbar-gutter: stable;
}

/* The close button stays in its corner while the content scrolls. */
.pa-drawer__close {
	align-items: center;
	background-color: var(--wp--preset--color--surface-white);
	block-size: var(--wp--custom--size--control-compact);
	border: 0;
	cursor: pointer;
	display: flex;
	inline-size: var(--wp--custom--size--control-compact);
	inset-block-start: var(--wp--preset--spacing--24);
	inset-inline-end: var(--wp--preset--spacing--32);
	justify-content: center;
	padding: 0;
	position: absolute;
	z-index: 1;
}

.pa-drawer__close:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
}

.pa-drawer__close img {
	display: block;
}

.pa-drawer__body {
	block-size: 100%;
	box-sizing: border-box;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--40) var(--wp--preset--spacing--48);
}

:is(.pa-drawer__body, .wp-block-group.pa-drawer) :where(p, li) {
	font-size: var(--wp--preset--font-size--base);
	line-height: var(--wp--custom--line-height--comfortable);
}

/* Header: what the panel is about, the close button beside it and a line under both. */
:is(.pa-drawer__body, .wp-block-group.pa-drawer) .pa-drawer__eyebrow {
	border-block-end: var(--wp--custom--border-width--1) solid color-mix(in srgb, var(--wp--preset--color--neutral-black) 20%, transparent);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	margin-block: 0;
	padding-block: var(--wp--preset--spacing--4) var(--wp--preset--spacing--24);
	padding-inline-end: var(--wp--preset--spacing--48);
}

:is(.pa-drawer__body, .wp-block-group.pa-drawer) .pa-drawer__title {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--regular);
	letter-spacing: normal;
	line-height: var(--wp--custom--line-height--normal);
	margin-block: var(--wp--preset--spacing--32) var(--wp--preset--spacing--24);
	text-wrap: balance;
}

/* Items: a short title and its text, with a line between them. */
:is(.pa-drawer__body, .wp-block-group.pa-drawer) .pa-drawer__item {
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--neutral-black);
	margin-block-start: var(--wp--preset--spacing--24);
	padding-block-start: var(--wp--preset--spacing--24);
}

:is(.pa-drawer__body, .wp-block-group.pa-drawer) .pa-drawer__title + .pa-drawer__item {
	border-block-start: 0;
	margin-block-start: 0;
	padding-block-start: 0;
}

:is(.pa-drawer__body, .wp-block-group.pa-drawer) .pa-drawer__subtitle {
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
}

/*
 * In the editor (and if the panel could not be rendered), the group shows where it is, with the
 * look of the panel and a dashed edge, so editors change its texts in place.
 */
.wp-block-group.pa-drawer {
	background-color: var(--wp--preset--color--surface-white);
	border: var(--wp--custom--border-width--1) dashed var(--wp--preset--color--border-strong);
	box-sizing: border-box;
	color: var(--wp--preset--color--neutral-black);
	max-inline-size: var(--wp--custom--size--drawer);
	padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--40);
}

/* The trigger of a long text (ProAge): the label of the old accordion, with its round sign.
   As a flex row the paragraph is as tall as the 32px sign, as in the Figma (inline it took 39). */
.pa-drawer-trigger {
	display: flex;
}

.pa-drawer-trigger a {
	align-items: center;
	color: inherit;
	display: inline-flex;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--semibold);
	gap: var(--wp--preset--spacing--16);
	text-decoration: none;
}

/*
 * The sign is drawn with two lines, so it sits in the middle of the circle whatever the font
 * (the + of the font sat high). On hover the circle takes a tint of the text colour; the label
 * is not underlined.
 */
.pa-drawer-trigger a::before {
	--pa-sign-size: var(--wp--preset--spacing--12);
	--pa-sign-stroke: var(--wp--custom--border-width--2);
	background:
		linear-gradient(currentcolor, currentcolor) center / var(--pa-sign-size) var(--pa-sign-stroke) no-repeat,
		linear-gradient(currentcolor, currentcolor) center / var(--pa-sign-stroke) var(--pa-sign-size) no-repeat;
	block-size: var(--wp--preset--spacing--32);
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: 50%;
	box-sizing: border-box;
	content: "";
	flex: 0 0 auto;
	inline-size: var(--wp--preset--spacing--32);
	transition: background-color 0.2s ease;
}

.pa-drawer-trigger a:hover::before,
.pa-drawer-trigger a:focus-visible::before {
	background-color: color-mix(in srgb, currentcolor 12%, transparent);
}
/**
 * V2 / Field and V2 / Quantity (docs/sistema-estils.md §6).
 *
 * .pa-field goes on the control itself (input, select, textarea).
 * .pa-quantity wraps WooCommerce's quantity input.
 */

.pa-field,
.pa-quantity,
.pa-form :is(input:not([type="checkbox"], [type="radio"], [type="submit"]), select, textarea) {
	background-color: var(--wp--preset--color--surface);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--8);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-default);
	font: inherit;
	min-height: var(--wp--custom--size--field);
}

.pa-field,
.pa-form :is(input:not([type="checkbox"], [type="radio"], [type="submit"]), select, textarea) {
	padding: var(--wp--preset--spacing--16);
	width: 100%;
}

/* Forms (.pa-form wraps a Contact Form 7 form): labels above the fields, as in Figma. */
.pa-form label {
	display: grid;
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	gap: var(--wp--preset--spacing--8);
}

/* Contact Form 7 writes its button without type="submit": .wpcf7-submit catches it too. */
.pa-form :is(input[type="submit"], button[type="submit"], .wpcf7-submit) {
	align-items: center;
	background-color: var(--wp--preset--color--interactive);
	border: 0;
	border-radius: var(--wp--custom--radius--999);
	color: var(--wp--preset--color--text-inverse);
	cursor: pointer;
	font: inherit;
	font-weight: var(--wp--custom--font-weight--semibold);
	display: inline-flex;
	min-height: var(--wp--custom--size--control);
	padding-inline: var(--wp--preset--spacing--24) var(--wp--preset--spacing--72);
	position: relative;
}

/* The arrow of the buttons (button.css), at the right end. */
.pa-form button.wpcf7-submit::after {
	content: "→";
	inset-inline-end: var(--wp--preset--spacing--24);
	position: absolute;
}

/*
 * The site's Contact Form 7 forms keep the grid classes of the old theme (uq-form-container, col-12,
 * col-lg-6): fields two by two, as in the Figma, and one per row on phones.
 */
.pa-form .uq-form-container {
	display: grid;
	gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--32);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pa-form .uq-form-container > div {
	grid-column: 1 / -1;
}

.pa-form .uq-form-container > .col-lg-6 {
	grid-column: auto;
}

@media (max-width: 781px) {

	.pa-form .uq-form-container > .col-lg-6 {
		grid-column: 1 / -1;
	}
}

.pa-form .uq-form-container p {
	margin-block: 0 var(--wp--preset--spacing--16);
}

/* Consent: the privacy note, then the box and its text on one line. */
.pa-form .wpcf7-list-item {
	margin: 0;
}

.pa-form .wpcf7-acceptance label {
	align-items: center;
	display: flex;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--regular);
	gap: var(--wp--preset--spacing--16);
}

.pa-form .wrap-acceptance p {
	font-size: var(--wp--preset--font-size--sm);
}

.pa-form .wpcf7-submit-wrap {
	margin-block-start: var(--wp--preset--spacing--24);
}

/*
 * A form being sent (assets/js/forms.js): another click does nothing until the answer comes, and
 * the arrow at the end of the button turns into a small spinner, in the colour of the label. With
 * reduced motion the reset of base.css stops it: the ring stays, still.
 */
.wpcf7-form[aria-busy="true"] .wpcf7-submit {
	cursor: progress;
}

.wpcf7-form[aria-busy="true"] .wpcf7-submit::after {
	animation: pa-spin var(--wp--custom--motion--duration--spin) linear infinite;
	border: var(--wp--custom--border-width--2) solid currentcolor;
	border-inline-end-color: transparent;
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	content: "";
	height: var(--wp--custom--size--spinner);
	width: var(--wp--custom--size--spinner);
}

@keyframes pa-spin {

	to {
		transform: rotate(1turn);
	}
}

/*
 * Alerts (docs/sistema-estils.md, 6.1): what is wrong reads apart from the rest of the form. The
 * message under a field and the one under the button take the error colour of their background,
 * with a "!" sign: the red of the theme on light backgrounds; a dimmed white on dark ones, where
 * the red does not read on the brown (the footer), and the sign tells it from a note. Contact Form
 * 7's own colours (red, yellow and blue) are for white backgrounds and are not the theme's.
 */
.wpcf7 {
	--pa-alert: var(--wp--preset--color--state-error);
}

:where(.wp-block-cover, .has-surface-inverse-background-color, .has-surface-inverse-alt-background-color, .has-surface-brand-background-color) .wpcf7 {
	--pa-alert: var(--wp--preset--color--state-error-inverse);
}

.wpcf7 .wpcf7-not-valid-tip {
	color: var(--pa-alert);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--relaxed);
	margin-block-start: var(--wp--preset--spacing--8);
}

/* The sign of an alert: a "!" in a circle, in the colour of its message. */
.wpcf7 .wpcf7-not-valid-tip::before,
.wpcf7 form.wpcf7-form.invalid .wpcf7-response-output::before,
.wpcf7 form.wpcf7-form.unaccepted .wpcf7-response-output::before,
.wpcf7 form.wpcf7-form.payment-required .wpcf7-response-output::before,
.wpcf7 form.wpcf7-form.failed .wpcf7-response-output::before,
.wpcf7 form.wpcf7-form.aborted .wpcf7-response-output::before,
.wpcf7 form.wpcf7-form.spam .wpcf7-response-output::before {
	align-items: center;
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	content: "!";
	display: inline-flex;
	font-size: var(--wp--preset--font-size--2-xs);
	font-weight: var(--wp--custom--font-weight--semibold);
	height: var(--wp--custom--size--alert-icon);
	justify-content: center;
	line-height: var(--wp--custom--line-height--none);
	margin-inline-end: var(--wp--preset--spacing--8);
	vertical-align: middle;
	width: var(--wp--custom--size--alert-icon);
}

/* On light backgrounds the field is marked too. */
.pa-form .wpcf7-form-control.wpcf7-not-valid {
	border-color: var(--wp--preset--color--state-error);
}

/* The message under the button: a quiet box; in the alert colour when the form was not sent. */
.wpcf7 form.wpcf7-form .wpcf7-response-output {
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: var(--wp--custom--radius--8);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
	margin: var(--wp--preset--spacing--24) 0 0;
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
}

.wpcf7 form.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 form.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7 form.wpcf7-form.payment-required .wpcf7-response-output,
.wpcf7 form.wpcf7-form.failed .wpcf7-response-output,
.wpcf7 form.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7 form.wpcf7-form.spam .wpcf7-response-output {
	border-color: var(--pa-alert);
	color: var(--pa-alert);
}

.wpcf7 form.wpcf7-form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--state-success);
}

textarea.pa-field {
	padding-block: var(--wp--preset--spacing--16);
}

.pa-field:focus,
.pa-form :is(input, select, textarea):focus,
.pa-quantity:focus-within {
	border-color: var(--wp--preset--color--border-strong);
}

.pa-field::placeholder {
	color: var(--wp--preset--color--text-subtle);
}

.pa-quantity {
	align-items: center;
	display: inline-flex;
}

.pa-quantity input {
	appearance: textfield;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	min-height: var(--wp--custom--size--control);
	text-align: center;
	width: var(--wp--custom--size--control);
}
/**
 * Footer (Figma: 21 / Footer / 5 + 4 + 3 columnas): brand background, inverse text,
 * rows separated by border-inverse lines.
 */

.pa-footer {
	padding-block: var(--wp--preset--spacing--80);
}

.pa-footer a {
	color: inherit;
	text-decoration: none;
}

/* Hover: the text at 70%, the rule of the Text links of the Figma (03 / Layout y uso). */
.pa-footer a:hover {
	opacity: var(--wp--custom--opacity--hover);
}

.pa-footer__row + .pa-footer__row {
	border-top: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-inverse);
	margin-block-start: var(--wp--preset--spacing--48);
	padding-block-start: var(--wp--preset--spacing--48);
}

.pa-footer__menu {
	line-height: var(--wp--custom--line-height--normal);
}

/* Social links as text with an arrow, as in Figma ("Instagram ↗"). */
.pa-social-text.wp-block-social-links {
	gap: 0;
}

.pa-social-text .wp-social-link {
	background: none;
	border-radius: 0;
	color: inherit;
}

.pa-social-text .wp-social-link svg {
	display: none;
}

.pa-social-text .wp-social-link a {
	padding: 0;
}

/*
 * The size of the other footer links, from the edge of the column. More specific than core's
 * .wp-block-social-links .wp-social-link span:not(.screen-reader-text), which sets 0.65em and a
 * 0.5em margin on each side. Core's anchor has no line height (line-height: 0): the label brings it.
 */
.pa-social-text.wp-block-social-links .wp-social-link .wp-block-social-link-label {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--normal);
	margin-inline: 0;
}

.pa-social-text .wp-block-social-link-label::after {
	content: " ↗";
}

.pa-footer__logo,
.pa-footer__partner {
	margin: 0;
}

.pa-footer__logo img {
	height: var(--wp--custom--size--logo-footer-height);
	object-fit: contain;
	object-position: left center;
	width: var(--wp--custom--size--logo-footer-width);
}

.pa-footer__partner {
	margin-block-start: var(--wp--preset--spacing--48);
}

.pa-footer__partner img {
	height: var(--wp--custom--size--logo-height);
	object-fit: contain;
	object-position: left center;
	width: var(--wp--custom--size--logo-width);
}

.pa-footer__company {
	margin-block: 0 var(--wp--preset--spacing--24);
}

.pa-footer__legal,
.pa-footer__legal-menu {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-footer__legal p {
	margin: 0;
}

/* Focus on the brown background: the outline in the colour of the text. */
.pa-footer :focus-visible {
	outline-color: currentcolor;
}

/*
 * Newsletter (Figma 3795:3735). The form is the Contact Form 7 form of the site, which keeps the
 * grid classes of the old theme: the email is a line under the text; under it, the consent (a
 * white square, then the privacy note) and the outline button side by side, or one under the
 * other when the column is narrow.
 */
.pa-footer__newsletter .wpcf7-form p {
	margin: 0;
}

.pa-footer__newsletter input[type="email"] {
	background: transparent;
	border: 0;
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: 0;
	box-sizing: border-box;
	color: inherit;
	display: block;
	font: inherit;
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--relaxed);
	padding: 0 0 var(--wp--preset--spacing--24);
	width: 100%;
}

.pa-footer__newsletter input[type="email"]::placeholder {
	color: inherit;
	opacity: 1;
}

/* Browsers paint autofilled fields light: keep the field on the brown background. */
.pa-footer__newsletter input[type="email"]:autofill {
	-webkit-text-fill-color: var(--wp--preset--color--text-inverse);
	box-shadow: inset 0 0 0 100vmax var(--wp--preset--color--surface-brand);
}

.pa-footer__newsletter .uq-input-wrapper-acceptance {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--24);
	justify-content: space-between;
	margin-block-start: var(--wp--preset--spacing--24);
}

.pa-footer__newsletter .uq-input-wrapper-acceptance > :first-child {
	flex: 1 1 var(--wp--custom--size--consent);
}

.pa-footer__newsletter .uq-input-wrapper-acceptance > :last-child {
	flex: none;
}

.pa-footer__newsletter .wrap-acceptance {
	display: flex;
	flex-direction: column-reverse;
	font-size: var(--wp--preset--font-size--sm);
	gap: var(--wp--preset--spacing--24);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-footer__newsletter .wpcf7-list-item {
	margin: 0;
}

.pa-footer__newsletter .wpcf7-acceptance label {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: var(--wp--preset--spacing--12);
}

/* A link inside a sentence is underlined, or it does not look like one. */
.pa-footer__newsletter .wpcf7-list-item-label a {
	text-decoration: underline;
}

.pa-footer__newsletter input[type="checkbox"] {
	appearance: none;
	background: transparent;
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: 0;
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: grid;
	flex: none;
	height: var(--wp--custom--size--checkbox);
	margin: 0;
	place-content: center;
	width: var(--wp--custom--size--checkbox);
}

/* The tick, drawn in the colour of the text. */
.pa-footer__newsletter input[type="checkbox"]:checked::before {
	background-color: currentcolor;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
	content: "";
	height: var(--wp--preset--spacing--12);
	width: var(--wp--preset--spacing--12);
}

/* Button / Outline 200 x 56 on the dark background (button.css). */
.pa-footer__newsletter .wpcf7-submit {
	align-items: center;
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--normal);
	min-height: var(--wp--custom--size--control);
	min-width: var(--wp--custom--size--button-min);
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--24) var(--wp--preset--spacing--72);
	position: relative;
	transition: background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), border-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-footer__newsletter .wpcf7-submit::after {
	content: "→";
	inset-inline-end: var(--wp--preset--spacing--24);
	position: absolute;
}

.pa-footer__newsletter .wpcf7-submit .icon {
	display: none;
}

.pa-footer__newsletter .wpcf7-submit:hover {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-default);
}

/*
 * Sections (Details blocks, patterns/footer.php). From 1024px they are always open and without
 * the summary: the desktop keeps its columns and its own titles (.pa-footer__heading). The big
 * logo is only for phones. Breakpoints in numbers: media queries cannot read tokens.
 */
.pa-footer__section > summary {
	list-style: none;
}

.pa-footer__section > summary::-webkit-details-marker {
	display: none;
}

@media (min-width: 1024px) {

	.pa-footer__section > summary,
	.pa-footer__brand {
		display: none;
	}

	/* Manifiesto (Figma 8106:29029): 32px between the title and the text. */
	.pa-footer__manifesto .is-style-lead {
		margin-block-start: var(--wp--preset--spacing--32);
	}

	.pa-footer__section::details-content {
		content-visibility: visible;
	}

	/*
	 * First row (Figma 8129:173157): the newsletter on the left, 512px wide in a wider column, so
	 * that Menú, Áreas and the social links sit to the right as in the Figma. The column widths are
	 * those of the editor; the social links never get narrower than their text.
	 */
	.pa-footer__newsletter > * {
		max-width: var(--wp--custom--size--footer-newsletter);
	}

	.pa-footer__col--social {
		min-width: max-content;
	}

	/* The hidden summary is the first child: the block after it takes no top margin. */
	.pa-footer__section > summary + * {
		margin-block-start: 0;
	}

	/*
	 * Logos column (Figma: Datos de empresa y marca): as tall as the company details, the ProAge
	 * logo at the top and seQura with its note at the bottom, 4px apart (5 in the Figma).
	 */
	.pa-footer__marks {
		display: flex;
		flex-direction: column;
	}

	.pa-footer__marks > .pa-footer__logo {
		margin-block-end: auto;
	}

	.pa-footer__marks > .pa-footer__partner {
		margin-block-start: 0;
	}

	.pa-footer__marks > .pa-footer__partner + p {
		margin-block-start: var(--wp--preset--spacing--4);
	}
}

/*
 * Phones and tablets (Figma: ProAge / Mobile / Footer). One column, in the order of the mobile
 * Figma: the manifesto, the six dropdowns (Newsletter, Menú, Áreas de salud, Información y
 * soporte, Legal and Síguenos) between white lines at 45%, the copyright and the logo at the full
 * width. The rows lend their columns to the footer (display: contents) so they can be ordered.
 */
@media (max-width: 1023px) {

	.pa-footer {
		display: flex;
		flex-direction: column;
		padding-block: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
	}

	/* As specific as core's body .is-layout-flex. */
	.pa-footer .pa-footer__row,
	.pa-footer .pa-footer__legal {
		display: contents;
	}

	.pa-footer > .pa-footer__row > .wp-block-column {
		flex-basis: auto !important; /* Each column's inline width, from the desktop. */
		margin: 0;
	}

	.pa-footer__manifesto {
		margin-block-end: var(--wp--preset--spacing--16) !important;
		order: 1;
	}

	.pa-footer__newsletter {
		order: 2;
	}

	.pa-footer__col--menu {
		order: 3;
	}

	.pa-footer__col--areas {
		order: 4;
	}

	.pa-footer__col--info {
		order: 5;
	}

	.pa-footer__section--legal {
		order: 6;
	}

	.pa-footer__col--social {
		order: 7;
	}

	/* As specific as .pa-footer__legal p, which leaves the paragraphs without margins. */
	.pa-footer .pa-footer__copyright {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--label);
		margin-block-start: var(--wp--preset--spacing--16);
		order: 8;
	}

	/* The logo fills the width between the margins (Figma: Marca final con márgenes). */
	.pa-footer .pa-footer__brand {
		margin-block: var(--wp--preset--spacing--16) 0;
		order: 9;
		width: 100%;
	}

	.pa-footer__brand img {
		display: block;
		height: auto;
		width: 100%;
	}

	/*
	 * Manifiesto: 24/30 medium (ProAge / Mobile / H2) and 16/24. Fixed sizes of the mobile Figma:
	 * the fluid scale of the theme would take the title down to 20px at 430px.
	 */
	.pa-footer__manifesto .is-style-light {
		font-size: var(--wp--custom--font-size--mobile-heading);
		font-weight: var(--wp--custom--font-weight--medium);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-heading);
		margin: 0;
	}

	.pa-footer__manifesto .is-style-lead {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
		margin-block: var(--wp--preset--spacing--8) 0;
	}

	/* Dropdowns: a 60px header, 14/20 semibold, with the arrow of the Figma (down when open). */
	.pa-footer__section {
		border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--surface-white-alpha-45);
		margin: 0;
	}

	.pa-footer__col--social .pa-footer__section {
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--surface-white-alpha-45);
	}

	.pa-footer__section > summary {
		align-items: center;
		cursor: pointer;
		display: flex;
		font-size: var(--wp--preset--font-size--sm);
		font-weight: var(--wp--custom--font-weight--semibold);
		gap: var(--wp--preset--spacing--12);
		justify-content: space-between;
		line-height: var(--wp--custom--line-height--comfortable);
		min-height: var(--wp--custom--size--footer-dropdown);
	}

	.pa-footer__section > summary::after {
		content: "→";
		flex: none;
		font-size: var(--wp--custom--font-size--mobile-detail);
		line-height: var(--wp--custom--line-height--snug);
		transition: transform var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
	}

	.pa-footer__section[open] > summary::after {
		transform: rotate(90deg);
	}

	.pa-footer__section[open] {
		padding-block-end: var(--wp--preset--spacing--24);
	}

	.pa-footer__section > :not(summary) {
		margin-block: 0;
	}

	/* The desktop titles and the small logo: on phones the summary and the big logo take their place. */
	.pa-footer__heading,
	.pa-footer__logo {
		display: none;
	}

	.pa-footer__partner {
		margin-block-start: 0;
	}

	/*
	 * Información y soporte in one column: the company details first and seQura below, so that the
	 * e-mail fits on one line. On the desktop, the logos go on the left.
	 */
	.pa-footer__col--info .wp-block-columns {
		flex-direction: column;
	}

	.pa-footer__col--info .pa-footer__marks {
		order: 1;
	}

	.pa-footer__col--info .pa-footer__company:last-child {
		margin-block-end: 0;
	}

	/* Legal and Síguenos, one link under the other, as in Menú and Áreas de salud: 16px, 16px apart. */
	.pa-footer .pa-footer__legal-menu {
		align-items: flex-start;
		flex-direction: column;
		font-size: var(--wp--preset--font-size--base);
		gap: var(--wp--preset--spacing--16);
		line-height: var(--wp--custom--line-height--normal);
	}

	.pa-footer .pa-social-text.wp-block-social-links {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-social-text.wp-block-social-links .wp-social-link .wp-block-social-link-label {
		font-size: var(--wp--preset--font-size--base);
	}
}
/**
 * Glass cards over a photo or a colour, the same everywhere: Figma's GLASS effect (Light -45° 80%,
 * Refraction 80, Depth 20, Dispersion 50, Frost 4, no fill or stroke), translated to CSS with the
 * tokens custom.glass (docs/sistema-estils.md). CSS has no refraction or dispersion; what it can do:
 * - Frost 4: the backdrop blurred 2px (Figma's blur radius is twice CSS's standard deviation).
 * - Light -45°: an edge of light in the top left corner (50%, softer than Figma's 80% so the white
 *   line does not weigh), fading along the sides and coming back, weaker, in the opposite corner,
 *   where Figma reflects it; and a lit bevel on both sides.
 * - Depth 20 and Refraction 80: the bent band of the edges, as a 20px glow of light inside them.
 *
 * The cards: Consejo / Colaboraciones and Sobre nosotros / Qué no somos (.pa-glass-card), Home /
 * Sostenibilidad, Healthspan / Hallmarks and Treatment / Cómo empezar. The product page has its own
 * glass (product-page.css). Each section keeps its radius and spacing in its own file.
 */
:is(.pa-glass-card, .pa-sostenibilidad__card, .pa-hallmark, .pa-empezar__card) {
	-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur));
	backdrop-filter: blur(var(--wp--custom--glass--blur));
	background-color: transparent !important; /* Over the colour saved in the editor. */
	border: 0 !important; /* The edge is the light below. */
	box-shadow: var(--wp--custom--glass--glow);
	position: relative;
}

:is(.pa-glass-card, .pa-sostenibilidad__card, .pa-hallmark, .pa-empezar__card)::before {
	background: linear-gradient(135deg, var(--wp--custom--glass--light), var(--wp--custom--glass--side) 35%, var(--wp--custom--glass--side) 65%, var(--wp--custom--glass--reflection));
	border-radius: inherit;
	content: "";
	inset: 0;
	-webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	padding: var(--wp--custom--border-width--1);
	pointer-events: none;
	position: absolute;
}
/**
 * Header: utility row (80px), navigation row (96px) and the shop categories row (74px).
 * Figma: 01 / Header / Utility, 02 / Header / Navigation, 03 / Header / Categories.
 */

/*
 * Header heights, also read by the Home hero (sections.css), which fills the rest of the screen,
 * and by the open mobile menu (mobile-menu.css), which starts under the utility row: the utility
 * row, lower below 1024px (Figma: ProAge / Mobile / Header / Utility, 46px), and the navigation
 * row, lower on phones (Mobile / Header, 72px). The gap of the navigation row is here too, because
 * the open menu leaves room for the menu button with it. Media queries cannot read tokens, hence
 * the breakpoints in numbers.
 */
:root {
	--pa-header-utility-size: var(--wp--custom--size--header-utility);
	--pa-header-nav-size: var(--wp--custom--size--header-nav);
	--pa-header-nav-gap: var(--wp--preset--spacing--24);
	--pa-header-size: calc(var(--pa-header-utility-size) + var(--pa-header-nav-size));
}

@media (max-width: 1023px) {

	:root {
		--pa-header-utility-size: var(--wp--custom--size--header-utility-small);
	}
}

@media (max-width: 1023px) {

	:root {
		--pa-header-nav-size: var(--wp--custom--size--header-nav-small);
		--pa-header-nav-gap: var(--wp--preset--spacing--12);
	}
}

.pa-header__utility,
.pa-header-categories {
	align-content: center;
	display: grid;
}

/* Grid items with auto margins shrink to their content; keep the wide container wide. */
.pa-header__utility > *,
.pa-header-categories > * {
	width: 100%;
}

.pa-header__utility {
	font-size: var(--wp--preset--font-size--md);
	min-height: var(--pa-header-utility-size);
}

/* ProAge / Utility action: white outline pill on the black utility row. */
.pa-utility-action {
	margin: 0;
}

.pa-utility-action a {
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: var(--wp--custom--radius--999);
	color: inherit;
	display: inline-block;
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--32);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.pa-utility-action a:hover {
	background-color: var(--wp--preset--color--surface-white-alpha-8);
}

/* "Shop": the same pill, filled white (the style "IA ProAge" had). */
.pa-utility-action--filled a {
	background-color: var(--wp--preset--color--surface-white);
	border-color: var(--wp--preset--color--surface-white);
	color: var(--wp--preset--color--text-default);
}

.pa-utility-action--filled a:hover {
	background-color: var(--wp--preset--color--surface-cream);
	border-color: var(--wp--preset--color--surface-cream);
}

/*
 * Header that comes back on scroll up (assets/js/sticky-header.js sets the class and the heights).
 * Sticky keeps its room in the page, so nothing jumps: with an offset as tall as the header it
 * waits just above the screen; revealed, the offset leaves out only the utility row and the
 * navigation row slides in. Without the script the header scrolls with the page.
 */
.pa-sticky-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--position-offset, 0px) - var(--pa-header-height));
	transition: top var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out);
	z-index: 100;
}

.pa-sticky-header.is-revealed {
	top: calc(var(--wp-admin--admin-bar--position-offset, 0px) - var(--pa-header-utility-height));
}

.pa-sticky-header .pa-header__nav {
	background-color: var(--wp--preset--color--surface);
}

.pa-sticky-header.is-revealed .pa-header__nav {
	box-shadow: 0 var(--wp--custom--border-width--1) 0 var(--wp--preset--color--border-default);
}

/* Other sticky elements (the Hallmarks wheel, pages.css) leave room for the navigation row. */
.pa-header-revealed {
	--pa-sticky-offset: calc(var(--pa-header-height) - var(--pa-header-utility-height));
}

/* Navigation row: full width with the gutter as margin (48px on desktop, as in Figma). */
/* The gap overrides the block's own (24px), so that it can be lower on phones. */
.pa-header__nav {
	align-items: center;
	gap: var(--pa-header-nav-gap);
	min-height: var(--pa-header-nav-size);
	padding-inline: var(--wp--custom--gutter);
}

.pa-header__logo {
	flex-shrink: 0;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--wp--custom--font-weight--semibold);
	margin: 0;
}

.pa-header__logo a {
	color: var(--wp--preset--color--text-default);
	display: block;
	text-decoration: none;
}

/* Link and image as blocks, without line boxes: centred in the row like the open menu's logo. */
.pa-header__logo img {
	display: block;
	height: auto;
	max-height: var(--wp--custom--size--logo-height);
	width: var(--wp--custom--size--logo-width);
}

.pa-header__menu {
	color: var(--wp--preset--color--text-default);
	flex: 1 1 auto;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
	text-transform: uppercase;
}

.pa-header__menu a {
	text-decoration: none;
	white-space: nowrap;
}

/* Hover: the text at 70%, without underline, like the Text links (Figma, 03 / Layout y uso). */
.pa-header__menu a:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/*
 * The section of the current page (inc/menu-current.php), on desktop and in the open mobile menu:
 * underlined, as the links of the panels under the pointer (mega-menu.css). Not in the Figma. The
 * hover keeps its 70%, so the two do not get mixed up. Only the menu's links: the language pills of
 * the mobile menu mark theirs with the same class (mobile-menu.css).
 */
.pa-header__menu a.wp-block-navigation-item__content.is-current {
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

/*
 * The links keep the type of the menu (md, 18px) and the 22px between them of the Figma row at every
 * width (size.header-link-gap: 22px is not on the spacing scale). Below 1440px, the width of the
 * desktop Figma, the header swaps them for the menu button: a fixed breakpoint, not one that follows the menu (the row needs
 * 1,396px in Chromium; breakpoint in numbers: media queries cannot read tokens).
 */
.pa-header__menu--desktop .wp-block-navigation__container {
	gap: var(--wp--custom--size--header-link-gap);
}

@media (max-width: 1439px) {

	.pa-header__nav > .pa-header__menu--desktop {
		display: none;
	}

	.pa-header__nav > .pa-header__actions {
		margin-inline-start: auto;
	}
}

@media (min-width: 1440px) {

	.pa-header__nav > .pa-header__menu--mobile {
		display: none;
	}
}

/* Menu button: first in the row, before the logo, with the 44px touch target of the mobile Figma. */
.pa-header__nav > .pa-header__menu--mobile {
	flex: 0 0 auto;
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container-open {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: var(--wp--custom--size--control-touch);
	min-width: var(--wp--custom--size--control-touch);
}

/*
 * Utility row below 1024px (Figma: ProAge / Mobile / Header / Utility): only the two links of the
 * mobile Figma, centred, as plain text without the outline; the others go to the open menu
 * (inc/mobile-menu.php). Breakpoint in numbers: media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	/* Without the padding of core's groups with a background: the 44px links fill the row. */
	.pa-header__utility {
		padding-block: 0;
	}

	.pa-header__utility > .alignwide {
		gap: var(--wp--preset--spacing--24);
		justify-content: center;
	}

	.pa-header__utility .pa-utility-action--not-mobile {
		display: none;
	}

	.pa-header__utility .pa-utility-action a {
		align-items: center;
		border-color: transparent;
		box-sizing: border-box;
		display: flex;
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--comfortable);
		min-height: var(--wp--custom--size--control-touch);
		padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8);
	}

	/*
	 * "Shop" keeps its filled pill, as round as on wide screens: the link is only as tall as its
	 * text, and a clear ::after stretches the area it is tapped in to 44px, above and below.
	 */
	.pa-header__utility .pa-utility-action--filled a {
		min-height: 0;
		padding-inline: var(--wp--preset--spacing--16);
		position: relative;
	}

	.pa-header__utility .pa-utility-action--filled a::after {
		content: "";
		inset-block: calc((100% - var(--wp--custom--size--control-touch)) / 2);
		inset-inline: 0;
		position: absolute;
	}
}

/* The list also carries .pa-header__menu, so the steps above would shrink the open menu too. */
.pa-header__menu .is-menu-open .wp-block-navigation__container {
	font-size: var(--wp--preset--font-size--md);
}

.pa-header__actions {
	align-items: center;
	flex-shrink: 0;
}

/* Icon buttons in the actions group share the control-small size. */
.pa-header__actions .wp-block-search__button,
.pa-header__actions .wc-block-mini-cart__button,
.pa-header__actions .wp-block-woocommerce-customer-account a {
	align-items: center;
	background: transparent;
	color: var(--wp--preset--color--text-default);
	display: inline-flex;
	justify-content: center;
	min-height: var(--wp--custom--size--control-small);
	min-width: var(--wp--custom--size--control-small);
	padding: 0;
}

/* The Figma icons (inc/header-icons.php): 24px, without the sizes and margins of core and Woo. */
.pa-header .pa-icon {
	display: block;
	fill: none; /* Core fills the search button's svg; these are line icons. */
	flex-shrink: 0;
	height: var(--wp--custom--size--icon);
	margin: 0;
	width: var(--wp--custom--size--icon);
}

/* Below 1024px (mobile Figma): 44px touch targets, 2px apart. */
@media (max-width: 1023px) {

	.pa-header__nav .pa-header__actions {
		gap: var(--wp--custom--size--header-icon-gap);
	}

	.pa-header__actions .wp-block-search__button,
	.pa-header__actions .wc-block-mini-cart__button,
	.pa-header__actions .wp-block-woocommerce-customer-account a {
		min-height: var(--wp--custom--size--control-touch);
		min-width: var(--wp--custom--size--control-touch);
	}
}

/* Hover: the icon at 70%, the same rule as the text links (Figma, 03 / Layout y uso). */
.pa-header__actions .wp-block-search__button:hover,
.pa-header__actions .wc-block-mini-cart__button:hover,
.pa-header__actions .wp-block-woocommerce-customer-account a:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/*
 * Open search. Core expands the field next to the button, which pushed the icons out of the row:
 * here the field opens under the navigation row and the row does not move. The magnifier stays
 * where it is and submits the search; Escape, or leaving the field empty, closes it (core). Without
 * core's width transition, which shrank the field on closing. The Figma has no open state: a
 * rounded field, like the shop search. Below 1024px, on a white strip under the row, between the
 * page margins; from 1024px, floating under the icons (breakpoints in numbers: media queries cannot
 * read tokens).
 */
.pa-header__nav {
	position: relative;
}

/* As specific as core's rule (.wp-block-search.wp-block-search__button-only .wp-block-search__input). */
.pa-header__search.wp-block-search__button-only .wp-block-search__inside-wrapper,
.pa-header__search.wp-block-search__button-only .wp-block-search__input {
	transition: none;
}

.pa-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
	position: static;
	width: auto !important; /* Core's inline width for the expanded field. */
}

.pa-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	background-color: var(--wp--preset--color--surface);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	font-size: var(--wp--preset--font-size--md);
	inset-block-start: calc(100% + var(--wp--preset--spacing--12));
	inset-inline: var(--wp--custom--gutter);
	margin: 0;
	min-height: var(--wp--custom--size--control-touch);
	padding-inline: var(--wp--preset--spacing--24);
	position: absolute;
	width: auto;
	z-index: 5;
}

@media (max-width: 1023px) {

	/* The white strip: the field and 12px above and below, with the line of the header. */
	.pa-header__nav:has(.pa-header__search:not(.wp-block-search__searchfield-hidden))::after {
		background-color: var(--wp--preset--color--surface);
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
		content: "";
		height: calc(var(--wp--custom--size--control-touch) + 2 * var(--wp--preset--spacing--12));
		inset-block-start: 100%;
		inset-inline: 0;
		position: absolute;
		z-index: 4;
	}
}

@media (min-width: 1024px) {

	.pa-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		inset-block-start: calc(100% + var(--wp--preset--spacing--8));
		inset-inline: auto var(--wp--custom--gutter);
		min-height: var(--wp--custom--size--control);
		width: var(--wp--custom--size--search-panel);
	}
}

/* Language switcher (inc/multilingual.php) */
.pa-language-switcher {
	position: relative;
}

.pa-language-switcher summary {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	font-weight: var(--wp--custom--font-weight--medium);
	gap: var(--wp--preset--spacing--4);
	list-style: none;
	min-height: var(--wp--custom--size--control-small);
}

.pa-language-switcher summary::-webkit-details-marker {
	display: none;
}

.pa-language-switcher summary::after {
	border-bottom: var(--wp--custom--border-width--2) solid currentcolor;
	border-right: var(--wp--custom--border-width--2) solid currentcolor;
	content: "";
	height: var(--wp--preset--spacing--4);
	transform: rotate(45deg) translateY(-25%);
	width: var(--wp--preset--spacing--4);
}

.pa-language-switcher__list {
	background-color: var(--wp--preset--color--surface);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--8);
	inset-inline-end: 0;
	list-style: none;
	margin: 0;
	padding: var(--wp--preset--spacing--8);
	position: absolute;
	z-index: 10;
}

.pa-language-switcher__list a {
	color: var(--wp--preset--color--text-default);
	display: block;
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12);
	text-decoration: none;
	white-space: nowrap;
}

.pa-language-switcher__list a:hover {
	background-color: var(--wp--preset--color--interactive-soft);
}

/*
 * Categories row of the product page (Figma: 2-Productos-D, 03 / Header / Categories): 74px on light
 * grey, without lines; the chips with the brown line (14/14 medium, 16px at the sides, 32 high)
 * spread over the row, and the search 32px after them, 240 × 32 with the grey line.
 */
.pa-header-categories {
	background-color: var(--wp--preset--color--surface-alt);
	grid-template-columns: minmax(0, 1fr); /* An auto column would grow with the chips and widen the page. */
	min-height: var(--wp--custom--size--header-categories);
}

/*
 * Where the chips and the search do not fit, the search goes first (assets/js/header-categories.js
 * adds the class); only if the chips alone do not fit, they scroll sideways.
 */
.pa-header-categories--no-search .pa-header-categories__search {
	display: none;
}

/* The menu itself is no chip: the class pa-chip--compact is for its links. */
.pa-header-categories .pa-header-categories__menu.pa-chip--compact {
	background-color: transparent;
	min-height: 0;
}

/* Spread over the row, at least 16px apart (the 32 of the pattern would hide the search sooner). */
.pa-header-categories .pa-header-categories__menu .wp-block-navigation__container {
	flex: 1 1 auto;
	gap: var(--wp--preset--spacing--16);
	justify-content: space-between;
	overflow-x: auto;
	scrollbar-width: none;
}

.pa-header-categories .pa-chip-list.pa-chip--compact a {
	background-color: transparent;
	border-color: var(--wp--preset--color--text-default);
	line-height: var(--wp--custom--line-height--none);
	padding-inline: var(--wp--preset--spacing--16);
}

.pa-header-categories__menu {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
}

/* The chips keep the inline-flex of chip.css, which centres the text: the navigation block makes its links blocks. */
.pa-header-categories .pa-chip-list a.wp-block-navigation-item__content {
	align-items: center;
	display: inline-flex;
}

.pa-header-categories__search {
	flex: 0 0 var(--wp--custom--size--search-compact);
}

.pa-header-categories__search .wp-block-search__inside-wrapper {
	background-color: transparent;
	block-size: var(--wp--custom--size--control-compact);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-muted);
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	gap: var(--wp--preset--spacing--12);
	min-height: 0;
	padding: 0 var(--wp--preset--spacing--12);
}

.pa-header-categories__search .wp-block-search__input {
	background: transparent;
	border: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	min-height: 0;
	padding: 0;
}

.pa-header-categories__search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--text-muted);
	opacity: 1;
}

.pa-header-categories__search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--text-default);
	min-height: 0;
	order: -1;
	padding: 0;
}

/* The logo of the mobile Figma (106px), with the 72px row, below 1024px. */
@media (max-width: 1023px) {

	.pa-header__logo img {
		width: var(--wp--custom--size--logo-width-small);
	}

	/*
	 * Categories row of the mobile Figma (2-Productos-M, Mobile / Header / Categories): 66px on light
	 * grey with a line under it, only the chips, in a row that scrolls sideways to the edge of the
	 * screen; each chip 44px high with the brown line, 16px at the sides, 14/20 medium, 8px apart.
	 */
	.pa-header-categories {
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
		min-height: var(--wp--custom--size--header-categories-mobile);
	}

	.pa-header-categories > .alignwide > :not(.pa-header-categories__menu) {
		display: none;
	}

	.pa-header-categories .pa-header-categories__menu {
		gap: var(--wp--preset--spacing--8);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter));
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-header-categories .pa-header-categories__menu .wp-block-navigation__container {
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--8);
		justify-content: flex-start;
	}

	.pa-header-categories .pa-chip-list.pa-chip--compact a {
		line-height: var(--wp--custom--line-height--mobile-label);
		min-height: var(--wp--custom--size--control-touch);
	}
}

/* Smallest phones: below 352px the menu button would lose its margin or leave the screen (breakpoint exception). */
@media (max-width: 351px) {

	.pa-header__nav .pa-header__actions {
		gap: 0;
	}

	.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container-open,
	.pa-header__actions .wp-block-search__button,
	.pa-header__actions .wc-block-mini-cart__button,
	.pa-header__actions .wp-block-woocommerce-customer-account a {
		min-height: var(--wp--custom--size--control-small);
		min-width: var(--wp--custom--size--control-small);
	}

	.pa-header__logo img {
		width: var(--wp--custom--size--logo-width-tiny);
	}
}
/**
 * Mega menu (Figma: 04 / Header / Megamenu; inc/mega-menu.php, assets/js/mega-menu.js).
 *
 * A menu link with a panel (.pa-mega-item) holds the button that opens it and the panel (.pa-mega),
 * closed until the item has .is-open. From 1440px, where the header shows the whole menu, the panel
 * opens under the header, at its whole width, over the page. Below, in the open mobile menu, it is a
 * screen of its own (rules at the end; Figma: 05 / Mobile / Header / Megamenu).
 */

/* Regular text, as in the Figma: the menu's links are medium, and the panels would inherit it. */
.pa-mega {
	display: none;
	font-weight: var(--wp--custom--font-weight--regular);
}

.pa-mega-item.is-open > .pa-mega {
	display: block;
}

.pa-mega__toggle,
.pa-mega__back,
.pa-mega__close {
	appearance: none;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
}

.pa-mega__bar {
	display: none;
}

/* The content of a panel, the same on desktop and mobile. */
.pa-mega__panel > *,
.pa-mega__row > *,
.pa-mega__column > *,
.pa-mega__promo > *,
.pa-mega__products > *,
.pa-mega__product > * {
	margin-block: 0;
}

.pa-mega__column,
.pa-mega__promo,
.pa-mega__product {
	display: flex;
	flex-direction: column;
}

.pa-mega__column {
	gap: var(--wp--preset--spacing--20);
}

/* 14px titles with the 1.2px tracking of the Figma (0.0857em). */
.pa-mega .pa-mega__title.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: 0.0857em;
	line-height: var(--wp--custom--line-height--normal);
}

.pa-mega__links {
	display: flex;
	flex-direction: column;
	gap: calc(3.5 * var(--wp--preset--spacing--4));
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-mega__links > li {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--normal);
	margin: 0;
}

.pa-mega a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: none;
}

.pa-mega__links a:hover,
.pa-mega__links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

/* Numbered links (Tratamientos, Magazine): three columns 56px apart, 16px between rows. */
.pa-mega__links--numbered {
	column-gap: calc(14 * var(--wp--preset--spacing--4));
	columns: 3;
	display: block;
}

/* The last row has no space under it (the gap is padding, for the columns). */
.pa-mega__column > .pa-mega__links--numbered {
	margin-block-end: calc(-1 * var(--wp--preset--spacing--16));
}

.pa-mega__links--numbered > li {
	break-inside: avoid;
	padding-block-end: var(--wp--preset--spacing--16);
}

.pa-mega__number {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--wp--custom--font-weight--medium);
	margin-inline-end: var(--wp--preset--spacing--8);
}

/* «… →» links: 14px semibold, without the height of a button. */
.pa-mega .wp-block-buttons {
	gap: 0;
}

.pa-mega .wp-block-button.is-style-text > .wp-block-button__link {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--semibold);
	min-height: 0;
	padding: 0;
}

/* Without the underline of the Text style, and the arrow right after the label (Figma: «… →»). */
.pa-mega .wp-block-button.is-style-text > .wp-block-button__link {
	text-decoration: none;
}

.pa-mega .wp-block-button.is-style-text.has-icon-arrow > .wp-block-button__link::after {
	margin-inline-start: calc(1.5 * var(--wp--preset--spacing--4));
	position: static;
}

/* The green card: 32px of padding, radius 24, text 312px wide (14px steps are 3.5 × 4: the scale has no 14). */
.pa-mega__promo {
	background-color: var(--wp--preset--color--accent-evergreen);
	border-radius: var(--wp--custom--radius--24);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-inverse);
	gap: var(--wp--preset--spacing--16);
	padding: var(--wp--preset--spacing--32);
	width: calc(var(--wp--custom--size--mega-promo-text) + 2 * var(--wp--preset--spacing--32));
}

.pa-mega__promo-title {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: 1.3;
}

.pa-mega__promo-text {
	color: var(--wp--preset--color--border-default);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

.pa-mega__promo .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--text-inverse);
	color: var(--wp--preset--color--text-inverse);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	min-height: 0;
	padding: calc(3.5 * var(--wp--preset--spacing--4)) var(--wp--preset--spacing--24);
}

.pa-mega__promo .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--text-inverse);
	color: var(--wp--preset--color--accent-evergreen);
}

/* Product cards: photo on a cream box 304 × 228 with the label over it, name, price and the link. */
.pa-mega__products {
	display: flex;
	gap: var(--wp--preset--spacing--64);
}

.pa-mega__product {
	gap: var(--wp--preset--spacing--16);
	position: relative;
	width: var(--wp--custom--size--mega-product);
}

.pa-mega__products--large .pa-mega__product {
	width: var(--wp--custom--size--mega-product-large);
}

.pa-mega__product-image {
	aspect-ratio: 304 / 228;
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--24);
	overflow: hidden;
}

.pa-mega__products--large .pa-mega__product-image {
	aspect-ratio: 376 / 260;
}

.pa-mega__product-image a,
.pa-mega__product-image img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.pa-mega__product-label.pa-chip {
	background-color: var(--wp--preset--color--surface);
	font-size: var(--wp--custom--font-size--chip-small);
	font-weight: var(--wp--custom--font-weight--semibold);
	inset-block-start: var(--wp--preset--spacing--16);
	inset-inline-start: var(--wp--preset--spacing--16);
	letter-spacing: 0.0727em;
	padding: calc(1.5 * var(--wp--preset--spacing--4)) var(--wp--preset--spacing--12);
	position: absolute;
	text-transform: uppercase;
}

.pa-mega .pa-mega__product-name {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-mega__product-name + * {
	margin-block-start: calc(-1 * var(--wp--preset--spacing--8)) !important;
}

.pa-mega .pa-mega__product-price,
.pa-mega .pa-mega__product-price .wc-block-components-product-price,
.pa-mega__product-text {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--regular);
	text-align: start;
}

/* «(IVA incluido)» (product-card.css) one step under the 14px of the price here: 12px. */
.pa-mega .woocommerce-price-suffix {
	font-size: var(--wp--preset--font-size--xs);
}

/*
 * Desktop, from 1440px (where the header shows the whole menu; breakpoint in numbers: media
 * queries cannot read tokens). The panel hangs from the sticky header (.pa-header), so the menu and
 * its items lose their own positioning. 48px above, 64 below; the content at the wide width (1600px,
 * 160px margins at 1920), columns 64px apart and the card or the products pushed to the right.
 */
@media (min-width: 1440px) {

	.pa-mega .pa-mega__mobile {
		display: none;
	}

	.pa-header__menu--desktop,
	.pa-header__menu--desktop .wp-block-navigation__container,
	.pa-header__menu--desktop .pa-mega-item {
		position: static;
	}

	/* The button is for the keyboard: it appears when it has the focus. */
	.pa-header__menu--desktop .pa-mega__toggle:not(:focus-visible) {
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.pa-header__menu--desktop .pa-mega__toggle:focus-visible::before {
		content: "▾";
		font-size: var(--wp--preset--font-size--sm);
		margin-inline-start: var(--wp--preset--spacing--4);
	}

	.pa-header__menu--desktop .pa-mega {
		background-color: var(--wp--preset--color--surface);
		border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
		box-shadow: 0 var(--wp--preset--spacing--24) var(--wp--preset--spacing--24) color-mix(in srgb, var(--wp--preset--color--brand-brown) 8%, transparent);
		box-sizing: border-box;
		color: var(--wp--preset--color--text-default);
		font-size: var(--wp--preset--font-size--base);
		inset-block-start: 100%;
		inset-inline: 0;
		max-height: calc(100vh - var(--pa-header-height, 0px));
		overflow-y: auto;
		padding: var(--wp--preset--spacing--48) var(--wp--custom--gutter) var(--wp--preset--spacing--64);
		position: absolute;
		text-transform: none;
	}

	.pa-header__menu--desktop .pa-mega__panel {
		margin-inline: auto;
		max-width: var(--wp--style--global--wide-size);
	}

	.pa-mega__row {
		align-items: flex-start;
		display: flex;
		gap: var(--wp--preset--spacing--64);
	}

	.pa-mega__aside {
		margin-inline-start: auto;
	}

	/*
	 * When the row is short, the green card keeps its width and the links of the columns wrap: they
	 * would inherit the single line of the menu's links (header.css) and push the card or the products
	 * out of the panel (Productos, below 1680px).
	 */
	.pa-header__menu--desktop .pa-mega a {
		white-space: normal;
	}

	/* A long name wraps under its own first line, not under the number. */
	.pa-header__menu--desktop .pa-mega__links--numbered a {
		align-items: baseline;
		display: flex;
	}

	.pa-mega__row > .pa-mega__promo {
		flex-shrink: 0;
	}

	.pa-mega__panel > .wp-block-buttons {
		margin-block-start: var(--wp--preset--spacing--40);
	}

	.pa-mega__panel > .wp-block-buttons .wp-block-button__link {
		font-size: var(--wp--preset--font-size--sm);
		font-weight: var(--wp--custom--font-weight--medium);
		min-height: 0;
		padding: var(--wp--preset--spacing--16) calc(7 * var(--wp--preset--spacing--4));
	}
}

/*
 * Open mobile menu, below 1440px (Figma: 05 / Mobile / Header / Megamenu, 430px). The text of each
 * row goes to its page; the rest of the row is the button that opens its panel, with the chevron on
 * the right. The panel covers the whole menu, with a bar (back to the list with
 * the name of the item, and the X) and its blocks one under the other: 24px above, 40 below, 32
 * between blocks and a line between columns; links 16px with 10px above and below.
 */
@media (max-width: 1439px) {

	.pa-mega .pa-mega__desktop {
		display: none;
	}

	.pa-header__menu--mobile .pa-mega-item {
		position: relative;
	}

	/* Only as wide as its text, over the button (which fills the row under it); as specific as the row rule of mobile-menu.css. */
	.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > li.pa-mega-item > a {
		flex: 0 1 auto;
		font-size: var(--wp--custom--font-size--mobile-card-title);
		font-weight: var(--wp--custom--font-weight--medium);
		position: relative;
		text-transform: uppercase;
		z-index: 1;
	}

	/* The chevron at the end of the row, on the page margin (Figma: 18px box ending at the margin). */
	.pa-header__menu--mobile .pa-mega__toggle {
		align-items: center;
		display: flex;
		inset: 0;
		justify-content: flex-end;
		padding-inline-end: var(--wp--preset--spacing--4);
		position: absolute;
	}

	/* Chevron: two sides of a square, 18px box (Figma). */
	.pa-header__menu--mobile .pa-mega__toggle::after,
	.pa-header__menu--mobile .pa-mega__back::before {
		block-size: var(--wp--preset--spacing--8);
		border-block-start: var(--wp--custom--border-width--1) solid currentColor;
		border-inline-end: var(--wp--custom--border-width--1) solid currentColor;
		content: "";
		inline-size: var(--wp--preset--spacing--8);
		margin-inline: var(--wp--preset--spacing--4);
		transform: rotate(45deg);
	}

	.pa-header__menu--mobile .pa-mega-item.is-open > .pa-mega {
		background-color: var(--wp--preset--color--surface);
		box-sizing: border-box;
		color: var(--wp--preset--color--text-default);
		inset-block: var(--wp-admin--admin-bar--height, 0px) 0;
		inset-inline: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		position: fixed;
		text-align: start;
		text-transform: none;
		z-index: 3;
	}

	.pa-header__menu--mobile .pa-mega__bar {
		align-items: center;
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		min-height: calc(var(--wp--custom--size--icon) + 2 * var(--wp--preset--spacing--16) + var(--wp--custom--border-width--1)); /* 57px, as in the Figma. */
		padding-inline: var(--wp--custom--gutter);
	}

	.pa-header__menu--mobile .pa-mega__back {
		align-items: center;
		display: flex;
		font-size: var(--wp--preset--font-size--sm);
		font-weight: var(--wp--custom--font-weight--medium);
		gap: calc(1.5 * var(--wp--preset--spacing--4));
		letter-spacing: 0.0429em;
		min-height: var(--wp--custom--size--control-touch);
		text-transform: uppercase;
	}

	.pa-header__menu--mobile .pa-mega__back::before {
		transform: rotate(-135deg);
	}

	.pa-header__menu--mobile .pa-mega__close {
		align-items: center;
		display: flex;
		justify-content: center;
		min-height: var(--wp--custom--size--control-touch);
		min-width: var(--wp--custom--size--control-touch);
		margin-inline-end: calc(-1 * (var(--wp--custom--size--control-touch) - var(--wp--custom--size--icon)) / 2);
	}

	.pa-header__menu--mobile .pa-mega__panel {
		padding: var(--wp--preset--spacing--24) var(--wp--custom--gutter) var(--wp--preset--spacing--40);
	}

	.pa-header__menu--mobile .pa-mega__row {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--32);
	}

	.pa-header__menu--mobile .pa-mega__column {
		gap: 0;
	}

	.pa-header__menu--mobile .pa-mega__column:has(+ .pa-mega__column) {
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
		padding-block-end: var(--wp--preset--spacing--32);
	}

	.pa-header__menu--mobile .pa-mega__links {
		gap: 0;
		padding-block-start: calc(1.5 * var(--wp--preset--spacing--4));
	}

	.pa-header__menu--mobile .pa-mega__links > li,
	.pa-header__menu--mobile .pa-mega__links--numbered > li {
		padding-block: calc(2.5 * var(--wp--preset--spacing--4));
	}

	.pa-header__menu--mobile .pa-mega__links--numbered {
		columns: 1;
	}

	.pa-header__menu--mobile .pa-mega__column > .pa-mega__links--numbered {
		margin-block-end: 0;
	}

	.pa-header__menu--mobile .pa-mega__column > .wp-block-buttons {
		margin-block-start: var(--wp--preset--spacing--20);
	}

	/* The green card: 24px of padding and 12 between its parts, title 18px, text 14/20. */
	.pa-header__menu--mobile .pa-mega__promo {
		gap: var(--wp--preset--spacing--12);
		padding: var(--wp--preset--spacing--24);
		width: auto;
	}

	.pa-header__menu--mobile .pa-mega__promo-title {
		font-size: var(--wp--preset--font-size--md);
	}

	.pa-header__menu--mobile .pa-mega__promo-text {
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	.pa-header__menu--mobile .pa-mega__promo .wp-block-button.is-style-outline > .wp-block-button__link {
		font-size: var(--wp--preset--font-size--xs-plus);
		padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--20);
	}

	/* Products: small cards, a 96px photo with the label, name, price and link beside it. */
	.pa-header__menu--mobile .pa-mega__products {
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
	}

	.pa-header__menu--mobile .pa-mega__product,
	.pa-header__menu--mobile .pa-mega__products--large .pa-mega__product {
		align-content: center;
		column-gap: var(--wp--preset--spacing--16);
		display: grid;
		grid-template-columns: var(--wp--custom--size--mega-product-small) 1fr;
		row-gap: var(--wp--preset--spacing--4);
		width: auto;
	}

	.pa-header__menu--mobile .pa-mega__product > * {
		grid-column: 2;
	}

	.pa-header__menu--mobile .pa-mega__product > .pa-mega__product-image {
		aspect-ratio: 1;
		border-radius: var(--wp--custom--radius--16);
		grid-column: 1;
		grid-row: 1 / span 4;
	}

	.pa-header__menu--mobile .pa-mega__product-label.pa-chip {
		background: none;
		border: 0;
		padding: 0;
		position: static;
	}

	.pa-header__menu--mobile .pa-mega .pa-mega__product-name {
		font-size: var(--wp--custom--font-size--mobile-card-title);
	}

	.pa-header__menu--mobile .pa-mega__product-name + * {
		margin-block-start: 0 !important;
	}

	.pa-header__menu--mobile .pa-mega .pa-mega__product-price,
	.pa-header__menu--mobile .pa-mega .pa-mega__product-price .wc-block-components-product-price {
		font-weight: var(--wp--custom--font-weight--medium);
	}

	.pa-header__menu--mobile .pa-mega__product .wp-block-button.is-style-text > .wp-block-button__link {
		font-size: var(--wp--preset--font-size--xs-plus);
	}

	.pa-header__menu--mobile .pa-mega__panel > .wp-block-buttons {
		margin-block-start: var(--wp--preset--spacing--32);
	}

	/* The «… →» link that goes at the end of the screen keeps the width of its text. */
	.pa-header__menu--mobile .pa-mega__panel > .wp-block-buttons:has(> .is-style-text) > .wp-block-button.wp-block-button,
	.pa-header__menu--mobile .pa-mega__panel > .wp-block-buttons:has(> .is-style-text) > .wp-block-button.wp-block-button > .wp-block-button__link {
		padding-block: 0;
		text-align: start;
		width: auto;
	}

	/* Doubled class: over the buttons that fit their text below 1024px (button.css). */
	.pa-header__menu--mobile .pa-mega__panel > .wp-block-buttons > .wp-block-button.wp-block-button,
	.pa-header__menu--mobile .pa-mega__panel > .wp-block-buttons > .wp-block-button.wp-block-button > .wp-block-button__link {
		width: 100%;
	}

	.pa-header__menu--mobile .pa-mega__panel > .wp-block-buttons .wp-block-button__link {
		font-size: var(--wp--preset--font-size--sm);
		justify-content: center;
		padding-block: var(--wp--preset--spacing--16);
		text-align: center;
	}
}
/**
 * Header mini-cart (woocommerce/mini-cart block): the counter badge and the side panel, sized like
 * the theme drawer. docs/panell-lateral.md and
 * docs/superpowers/specs/2026-11-08-proces-compra-estils-disseny.md (§7.6).
 *
 * Global (components/): every rule is scoped to the block's own classes. Where WooCommerce's
 * mini-cart-contents.css and wc-blocks.css use more classes, the selectors below match their
 * specificity (noted on each rule). Those stylesheets do not always load before this file
 * (WooCommerce can print them in the body, after the theme's): every selector starts with body,
 * one type more, so the theme wins the ties in either order, with no !important.
 */

/* -------------------------------------------------------------------------------------------------
 * Badge: the number of items, a circle at the top right corner of the icon. The block writes its
 * colours inline from the header's colours (mini-cart.js: badgeBackgroundColor, badgeTextColor), so
 * they change with the header's state. Without !important, the fill goes on background-image (a
 * layer over the inline background-color) and the number on -webkit-text-fill-color (painted over
 * the inline color); both are supported by every current browser.
 * ---------------------------------------------------------------------------------------------- */

body .wc-block-mini-cart__badge {
	background-image: linear-gradient(var(--wp--preset--color--interactive), var(--wp--preset--color--interactive));
	border-radius: var(--wp--custom--radius--999);
	-webkit-text-fill-color: var(--wp--preset--color--text-inverse);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--wp--custom--font-weight--semibold);
	height: var(--wp--custom--size--checkbox);
	line-height: var(--wp--custom--line-height--none);
	min-width: var(--wp--custom--size--checkbox);
	padding-inline: var(--wp--preset--spacing--4);
}

/* -------------------------------------------------------------------------------------------------
 * Panel: the theme drawer's measures (drawer.css): 540 wide and the full screen on phones, 40 of
 * padding, the brown veil. WooCommerce sizes and slides it with --drawer-width (480px, set on
 * :root) and --neg-drawer-width: both are set again here so the slide-in keeps working.
 * ---------------------------------------------------------------------------------------------- */

body .wc-block-components-drawer__screen-overlay:has(> .wc-block-mini-cart__drawer) {
	background-color: var(--wp--preset--color--brand-brown-alpha-45);
}

body .wc-block-mini-cart__drawer.wc-block-components-drawer {
	--drawer-width: var(--wp--custom--size--drawer);
	--neg-drawer-width: calc(var(--drawer-width) * -1);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-default);
	inline-size: min(var(--drawer-width), 100%);
}

/* = .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents (padding: 0). */
body .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents {
	padding: var(--wp--preset--spacing--40);
}

/* The close button lines up with the title and the 40 of padding (its 1em of padding is !important). */
body .wc-block-mini-cart__drawer .wc-block-components-drawer__close {
	inset-block-start: calc(var(--wp--preset--spacing--40) + var(--wp--preset--spacing--4));
	inset-inline-end: var(--wp--preset--spacing--40);
	opacity: 1;
}

/*
 * Notices sit above the title, clear of the close button (wc-blocks: 16px 48px -16px 16px). The empty
 * container holds whitespace, so wc-blocks' :empty does not hide it: the space goes only with a notice.
 */
body .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents .wc-block-components-notices {
	margin: 0 var(--wp--preset--spacing--48) 0 0;
}

body .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents .wc-block-components-notices:has(> *) {
	margin-block-end: var(--wp--preset--spacing--24);
}

/* Focus: the theme ring (base.css) in place of WooCommerce's blue shadow. */
body .wc-block-mini-cart__drawer .wc-block-components-button:not(.is-link):focus {
	box-shadow: none;
}

body .wc-block-mini-cart__drawer .wc-block-components-button:not(.is-link):focus-visible {
	outline: var(--wp--custom--border-width--2) solid var(--wp--preset--color--border-strong);
	outline-offset: var(--wp--custom--border-width--2);
}

/* -------------------------------------------------------------------------------------------------
 * Title («Tu carrito (2 artículos)»): pa-drawer__title's size, with a line under it.
 * WooCommerce fades the list under it with a mask and negative margins (h2.wc-block-mini-cart__title).
 * ---------------------------------------------------------------------------------------------- */

body .wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--regular);
	letter-spacing: normal;
	line-height: var(--wp--custom--line-height--normal);
	margin: 0;
	mask-image: none;
	padding-block: 0 var(--wp--preset--spacing--24);
	padding-inline: 0 var(--wp--preset--spacing--48);
}

/* -------------------------------------------------------------------------------------------------
 * Products: one row per product, a line between rows. The thumbnail on the left (96, as in the cart),
 * then the name, the unit price, the short description and the quantity; the line total on the right.
 * Selectors with table.wc-block-mini-cart-items match WooCommerce's
 * (.is-mobile table.wc-block-cart-items .wc-block-cart-items__row …).
 * ---------------------------------------------------------------------------------------------- */

body .wc-block-mini-cart__drawer .wc-block-mini-cart__items {
	padding: 0;
}

/* No gap around the rows (the table's default border-spacing): they line up with the title. */
body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items {
	border-spacing: 0;
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row {
	align-items: start;
	column-gap: var(--wp--preset--spacing--16);
	display: grid;
	grid-template-columns: var(--wp--custom--size--thumb) minmax(0, 1fr) auto;
	padding-block: var(--wp--preset--spacing--24);
	row-gap: var(--wp--preset--spacing--8);
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row ~ .wc-block-cart-items__row {
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
	grid-column: 1;
	grid-row: 1 / span 2;
	padding: 0;
}

/* The cream goes on the link and the photo multiplies over it, as in the cart (overrides/woocommerce.css). */
body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-item__image > a {
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--8);
	display: block;
	width: var(--wp--custom--size--thumb);
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img:not([hidden]) {
	aspect-ratio: 1;
	border-radius: var(--wp--custom--radius--8);
	display: block;
	height: auto;
	mix-blend-mode: multiply;
	object-fit: contain;
	width: var(--wp--custom--size--thumb);
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
	grid-column: 2;
	grid-row: 1 / span 2;
	padding: 0;
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap {
	gap: var(--wp--preset--spacing--8);
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	max-width: 100%;
	text-decoration: none;
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row a.wc-block-components-product-name:hover {
	color: var(--wp--preset--color--interactive-hover);
}

/* Unit price and short description: secondary text (spec §5). */
body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row :is(.wc-block-cart-item__prices, .wc-block-components-product-metadata) {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--comfortable);
}

/* = .wc-block-components-product-metadata .wc-block-components-product-metadata__description > p (x-small). */
body .wc-block-mini-cart__drawer .wc-block-components-product-metadata .wc-block-components-product-metadata__description > p {
	font-size: inherit;
	margin: 0;
}

/* = table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity (gap: 12px) and its .is-mobile padding. */
body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
	gap: var(--wp--preset--spacing--8);
	margin-block-start: var(--wp--preset--spacing--8);
	padding: 0;
}

/* Quantity: the block's − and + around the number, 40 high inside the border, with the border and radius of a field. */
body .wc-block-mini-cart__drawer .wc-block-components-quantity-selector:has(input:not([type="hidden"])) {
	background-color: var(--wp--preset--color--surface);
	block-size: calc(var(--wp--custom--size--control-small) + 2 * var(--wp--custom--border-width--1));
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--8);
	min-width: 0;
}

body .wc-block-mini-cart__drawer .wc-block-components-quantity-selector:focus-within {
	border-color: var(--wp--preset--color--border-strong);
}

/* = .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button (opacity .6, min-width 30px). */
body .wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--wp--preset--color--text-default);
	flex: 0 0 auto;
	font-size: var(--wp--preset--font-size--md);
	inline-size: var(--wp--custom--size--control-small);
	opacity: 1;
}

/*
 * The minimum (1) dims the −, in text-subtle: the rule above beats WooCommerce's :disabled (opacity .6),
 * which would otherwise do it.
 */
body .wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	color: var(--wp--preset--color--text-subtle);
	cursor: default;
}

body .wc-block-mini-cart__drawer .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--base);
	inline-size: var(--wp--custom--size--control-small);
	min-width: 0;
	padding: 0;
}

/* WooCommerce marks the focus with an inset shadow and no outline: the theme ring, inside the box. */
body .wc-block-mini-cart__drawer .wc-block-components-quantity-selector :is(.wc-block-components-quantity-selector__button, .wc-block-components-quantity-selector__input):focus {
	box-shadow: none;
}

body .wc-block-mini-cart__drawer .wc-block-components-quantity-selector :is(.wc-block-components-quantity-selector__button, .wc-block-components-quantity-selector__input):focus-visible {
	outline: var(--wp--custom--border-width--2) solid var(--wp--preset--color--border-strong);
	outline-offset: calc(var(--wp--custom--border-width--2) * -1);
}

/*
 * Remove: the block prints a bin icon (no text, its name is in aria-label). It takes the colours of a
 * Text link in a 40 × 40 target. = the wc-blocks rule (table … .wc-block-cart-item__quantity
 * .wc-block-cart-item__remove-link: display inline, height 24px); its [hidden] rule has one more and stays.
 */
body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
	align-items: center;
	block-size: var(--wp--custom--size--control-small);
	color: var(--wp--preset--color--text-default);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--sm);
	inline-size: var(--wp--custom--size--control-small);
	justify-content: center;
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--interactive-hover);
}

body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--semibold);
	grid-column: 3;
	grid-row: 1;
	line-height: var(--wp--custom--line-height--normal);
	padding: 0;
}

/*
 * Phones: each product reads as a card. The thumbnail on the left, the name, price, description and
 * quantity beside it, and the line total under them at the right end: three columns do not fit the
 * quantity, the bin and the total in one line at 390.
 */
@media (max-width: 640px) {

	body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row {
		grid-template-columns: var(--wp--custom--size--thumb) minmax(0, 1fr);
	}

	body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
		grid-row: 1;
	}

	body .wc-block-mini-cart__drawer table.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
		grid-column: 2;
		grid-row: 2;
	}
}

/* -------------------------------------------------------------------------------------------------
 * Footer: the subtotal, then «Ver carrito» (Outline) and «Finalizar compra» (Primary, with the arrow),
 * one under the other at the full width. They keep the block's order, which is also the tab order.
 * ---------------------------------------------------------------------------------------------- */

body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	padding: var(--wp--preset--spacing--24) 0 0;
}

/* = .wc-block-mini-cart__footer .wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal. */
body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-subtotal {
	align-items: baseline;
	column-gap: var(--wp--preset--spacing--16);
	margin-block-end: var(--wp--preset--spacing--24);
}

body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label {
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
}

body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
	font-size: var(--wp--custom--font-size--price);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--normal);
}

/* «Shipping and discounts calculated at checkout.»: WooCommerce shows it from 480 up. */
body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
	color: var(--wp--preset--color--text-muted);
	flex-basis: 100%;
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--comfortable);
}

/* = .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions (a row, the cart link hidden under 480). */
body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions {
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

/*
 * The block's buttons on theme.json's Button / Primary (.wp-element-button): the label at the start
 * and the arrow at the right end, as has-icon-arrow (button.css). WooCommerce centres them
 * (.wc-block-components-button:not(.is-link)) and lets the footer ones grow.
 */
body .wc-block-mini-cart__drawer :is(.wc-block-mini-cart__footer-actions, .wc-block-mini-cart__empty-cart-wrapper) .wc-block-components-button {
	background-color: var(--wp--preset--color--interactive);
	border: 0;
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-inverse);
	display: flex;
	flex: none;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--semibold);
	justify-content: flex-start;
	line-height: var(--wp--custom--line-height--normal);
	min-height: var(--wp--custom--size--control);
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--24) var(--wp--preset--spacing--72);
	text-align: start;
	text-decoration: none;
	transition: background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), border-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out), color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

body .wc-block-mini-cart__drawer :is(.wc-block-mini-cart__footer-checkout, .wc-block-mini-cart__shopping-button)::after {
	content: "→";
	inset-inline-end: var(--wp--preset--spacing--24);
	position: absolute;
}

body .wc-block-mini-cart__drawer :is(.wc-block-mini-cart__footer-checkout, .wc-block-mini-cart__shopping-button):hover {
	background-color: var(--wp--preset--color--interactive-hover);
	color: var(--wp--preset--color--text-inverse);
}

/*
 * «Ver carrito», Outline without the arrow: centred label, the same padding on both sides. WooCommerce
 * fills it in #1e1e1e on hover and focus with six classes
 * (.wc-block-components-button:not(.is-link).is-style-outline:not(:disabled):not([aria-disabled=true]):hover).
 */
body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-cart {
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	box-shadow: none;
	color: var(--wp--preset--color--text-default);
	justify-content: center;
	padding-inline: var(--wp--preset--spacing--24);
	text-align: center;
}

body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-cart:not(:disabled):focus {
	background-color: transparent;
	color: var(--wp--preset--color--text-default);
}

body .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-cart:not(:disabled):hover {
	background-color: var(--wp--preset--color--interactive);
	border-color: var(--wp--preset--color--interactive);
	color: var(--wp--preset--color--text-inverse);
}

/* -------------------------------------------------------------------------------------------------
 * Empty cart: the block's text and its «Start shopping» button (Primary), centred in the panel.
 * = .wp-block-woocommerce-empty-mini-cart-contents-block .wc-block-mini-cart__empty-cart-wrapper (padding 48px 16px 16px).
 * ---------------------------------------------------------------------------------------------- */

body .wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper {
	padding: 0;
	text-align: center;
}

body .wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper p {
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--normal);
	margin-block: 0 var(--wp--preset--spacing--24);
}

body .wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper .wc-block-components-button.wc-block-mini-cart__shopping-button {
	display: inline-flex;
	max-width: 100%;
	min-width: min(var(--wp--custom--size--button-primary), 100%);
}

/* -------------------------------------------------------------------------------------------------
 * Motion: the block's slide-in and fade stay; with reduced motion they go (wc-blocks does it too,
 * with screen only). = .wc-block-components-drawer__screen-overlay--with-slide-in .wc-block-components-drawer.
 * ---------------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	body .wc-block-components-drawer__screen-overlay:has(> .wc-block-mini-cart__drawer),
	body .wc-block-components-drawer__screen-overlay .wc-block-mini-cart__drawer.wc-block-components-drawer {
		animation: none;
		transition: none;
	}
}
/**
 * Open mobile menu: a list of the main links, with lines as in the comparison table of the Home.
 */

/*
 * The close button must not move when the menu opens: fade without core's slide, and keep the room
 * of the page's scrollbar, which disappears while the menu is open.
 */
.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open {
	animation-name: pa-mobile-menu-fade-in;
	padding: 0;
	scrollbar-gutter: stable;
}

@keyframes pa-mobile-menu-fade-in {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	margin: 0;
	max-width: none;
	width: 100%;
}

/* The close button takes the place of the menu button: same row height, same margin, same size. */
.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	align-items: center;
	display: flex;
	inset-block-start: calc(var(--pa-header-nav-size) / 2);
	inset-inline-end: auto;
	inset-inline-start: var(--wp--custom--gutter);
	justify-content: center;
	min-height: var(--wp--custom--size--control-touch);
	min-width: var(--wp--custom--size--control-touch);
	position: absolute;
	transform: translateY(-50%);
	z-index: 2;
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0;
	padding: 0;
}

/* The logo stays where it is in the header: after the close button and the gap of the row. */
.pa-mobile-menu__logo {
	align-items: center;
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	box-sizing: border-box;
	display: flex;
	min-height: var(--pa-header-nav-size);
	padding-inline: calc(var(--wp--custom--gutter) + var(--wp--custom--size--control-touch) + var(--pa-header-nav-gap)) var(--wp--custom--gutter);
}

.pa-mobile-menu__logo img {
	display: block;
	height: auto;
	max-height: var(--wp--custom--size--logo-height);
	width: var(--wp--custom--size--logo-width);
}

/*
 * Below 1024px, the measurements of the mobile Figma (05 / Mobile / Header / Megamenu, Nivel=Principal):
 * a bar of 77px (16px, the 44px icons and 16px, and the line) with the X at the margin, the logo of
 * 128px 12px after it and the search and cart 12px apart; rows of 52px, links one every 35px and
 * pills 40px high.
 */
@media (max-width: 1023px) {

	.pa-mobile-menu__logo {
		min-height: calc(var(--wp--custom--size--control-touch) + 2 * var(--wp--preset--spacing--16) + var(--wp--custom--border-width--1));
		padding-inline-start: calc(var(--wp--custom--gutter) + var(--wp--custom--size--icon) + var(--wp--preset--spacing--12));
	}

	.pa-mobile-menu__logo img {
		width: var(--wp--custom--size--logo-width-menu);
	}

	/* The 24px icon on the margin, centred in the bar; the 44px button around it. */
	.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		inset-block-start: calc(var(--wp--custom--size--control-touch) / 2 + var(--wp--preset--spacing--16));
		inset-inline-start: calc(var(--wp--custom--gutter) - (var(--wp--custom--size--control-touch) - var(--wp--custom--size--icon)) / 2);
	}

	.pa-mobile-menu__icons {
		gap: var(--wp--preset--spacing--12);
	}

	.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > li > a,
	.pa-mobile-menu__links > li {
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-mobile-menu__links > li {
		font-size: var(--wp--custom--font-size--mobile-card-title);
	}

	/* 40px with the line: 9px, the 20px of the text and 9px. */
	.pa-mobile-menu__languages .pa-language-pills__item {
		line-height: var(--wp--custom--line-height--mobile-label);
		padding-block: calc(2.5 * var(--wp--preset--spacing--4) - var(--wp--custom--border-width--1));
	}
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
	align-items: stretch;
	padding: 0;
	width: 100%;
	flex: 0 0 auto;
	font-size: var(--wp--preset--font-size--base);
	gap: 0;
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > li {
	align-items: center;
	box-sizing: border-box;
	flex-direction: row;
	text-align: start;
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-inline: var(--wp--custom--gutter);
	width: auto;
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > li > a {
	flex: 1 1 0;
	padding-block: var(--wp--preset--spacing--16);
}

.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content a {
	white-space: normal;
}

/*
 * The end of the menu (Figma: Accesos, Idioma): 32px under the list, the quick links at 15px 16px
 * apart, and the languages as pills (the current one filled), 12px under their title; 40px at the
 * bottom. Below 1024px only: from there the header row has the actions and the language switcher.
 */
.pa-mobile-menu__footer {
	display: none;
	flex-direction: column;
	gap: var(--wp--preset--spacing--32);
	padding: var(--wp--preset--spacing--32) var(--wp--custom--gutter) var(--wp--preset--spacing--40);
	text-transform: none;
}

.pa-mobile-menu__links {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-mobile-menu__links a {
	color: inherit;
	font-size: var(--wp--custom--font-size--mobile-card-title);
	text-decoration: none;
}

.pa-mobile-menu__languages {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
}

.pa-mobile-menu__languages > .is-style-eyebrow {
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.0857em;
	margin: 0;
}

.pa-language-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-language-pills__item {
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--interactive);
	border-radius: var(--wp--custom--radius--999);
	color: var(--wp--preset--color--interactive);
	display: inline-block;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	padding: calc(2.5 * var(--wp--preset--spacing--4)) calc(4.5 * var(--wp--preset--spacing--4));
	text-decoration: none;
}

.pa-language-pills__item.is-current {
	background-color: var(--wp--preset--color--interactive);
	color: var(--wp--preset--color--text-inverse);
}

/* The search and the cart of the header, on the right of the bar (40 × 44, as in the Figma). */
.pa-mobile-menu__icons {
	display: flex;
	margin-inline-start: auto;
}

.pa-mobile-menu__icon {
	align-items: center;
	color: var(--wp--preset--color--text-default);
	display: flex;
	height: var(--wp--custom--size--control-touch);
	justify-content: center;
	width: var(--wp--preset--spacing--40);
}

.pa-mobile-menu__icon .pa-icon {
	height: var(--wp--custom--size--icon);
	width: var(--wp--custom--size--icon);
}

/* The list starts 24px under the bar. */
.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
	padding-block-start: var(--wp--preset--spacing--24);
}

/* The open menu covers the whole screen, the black utility row too, as in the Figma (only the admin bar stays). */
.pa-header__nav > .pa-header__menu--mobile .wp-block-navigation__responsive-container.is-menu-open {
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
}

/* Below the tablet width (media queries cannot read tokens). */
@media (max-width: 1023px) {

	.pa-header__actions .pa-language-switcher {
		display: none;
	}

	.pa-mobile-menu__footer {
		display: flex;
	}
}
/**
 * Entrance motion (docs/superpowers/specs/2026-11-06-animacions-disseny.md).
 *
 * inc/motion.php marks the pieces (.pa-reveal) while the blocks render and assets/js/reveal.js adds
 * is-revealed when each one reaches the screen, with --pa-i (0–4) as its order in the batch that
 * comes in together. The hidden state exists only under html.pa-motion, which the head snippet sets
 * before paint: without JavaScript, with reduced motion or in the editor everything is visible.
 * The fade is a keyframe animation on the revealed state, not a transition: a transition would
 * replace the hover transitions of pieces that have one of their own (the area tiles), while an
 * animation leaves them alone. It plays once, fills both ways (hidden during its delay, settled
 * after) and nothing moves on load.
 */

html.pa-motion .pa-reveal:not(.is-revealed) {
	opacity: 0;
	transform: translateY(var(--wp--custom--motion--distance));
}

html.pa-motion .pa-reveal.is-revealed {
	animation: pa-reveal var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out) both;
	animation-delay: calc(var(--pa-i, 0) * var(--wp--custom--motion--stagger));
}

/* On paper there is no scrolling: everything shows. */
@media print {

	html.pa-motion .pa-reveal:not(.is-revealed) {
		opacity: 1;
		transform: none;
	}
}

@keyframes pa-reveal {

	from {
		opacity: 0;
		transform: translateY(var(--wp--custom--motion--distance));
	}

	to {
		opacity: 1;
		transform: none;
	}
}
/**
 * WooCommerce notices (.wc-block-components-notice-banner) on the cart, checkout, account and
 * mini-cart: the form message rule, a box with a border in the state colour. docs/sistema-estils.md
 * §6.1 and docs/superpowers/specs/2026-11-08-proces-compra-estils-disseny.md.
 *
 * WooCommerce's wc-blocks.css sets the colours of each state with two classes
 * (.wc-block-components-notice-banner.is-error). It does not always load before this file: on the
 * cart with products and no notice, WooCommerce prints it in the body, after the theme's stylesheets.
 * Every selector below starts with body, one type more than wc-blocks' own, so the theme wins in
 * either order with no !important (this is components/). Its padding (16px !important) is already
 * spacing-16.
 */

/* §6 Avisos: a white box with a 1px border, in the colour of its text unless the state says otherwise. */
body .wc-block-components-notice-banner,
body .wc-block-components-notice-banner:is(.is-error, .is-info, .is-success) {
	background-color: var(--wp--preset--color--surface);
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: var(--wp--custom--radius--8);
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
}

body .wc-block-components-notice-banner.is-error {
	color: var(--wp--preset--color--state-error);
}

/* The green does not read as text on white: it marks the border only. */
body .wc-block-components-notice-banner.is-success {
	border-color: var(--wp--preset--color--state-success);
}

body .wc-block-components-notice-banner.is-info {
	border-color: var(--wp--preset--color--border-default);
}

/*
 * WooCommerce's icon is a white glyph on a filled circle: here it is drawn in the text colour, in a
 * box of one text line (WooCommerce's is 24 + 2 of padding), so it lines up with the first line.
 */
body .wc-block-components-notice-banner > svg,
body .wc-block-components-notice-banner:is(.is-error, .is-info, .is-success) > svg {
	background-color: transparent;
	fill: currentcolor;
	height: 1lh;
	padding: 0;
	width: 1lh;
}

/* The error takes the "!" sign of the form alerts (field.css, §6.1) in place of WooCommerce's icon. */
body .wc-block-components-notice-banner.is-error > svg {
	display: none;
}

/*
 * On the first line of the text, as the other icons: the margins centre the sign in one line of the
 * box (font-size sm × line-height relaxed, set above); symmetric, so a centred row keeps it centred.
 */
body .wc-block-components-notice-banner.is-error::before {
	align-items: center;
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	content: "!";
	display: inline-flex;
	flex-shrink: 0;
	font-size: var(--wp--preset--font-size--2-xs);
	font-weight: var(--wp--custom--font-weight--semibold);
	height: var(--wp--custom--size--alert-icon);
	justify-content: center;
	line-height: var(--wp--custom--line-height--none);
	margin-block: calc((var(--wp--preset--font-size--sm) * var(--wp--custom--line-height--relaxed) - var(--wp--custom--size--alert-icon)) / 2);
	width: var(--wp--custom--size--alert-icon);
}

/* Links inside read as links in the colour of the notice. */
body .wc-block-components-notice-banner a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

/*
 * A notice with a link button (.wc-forward: «Browse products», «Confirm email address», «View cart»).
 * WooCommerce prints the button before the text and floats it right; on a narrow screen it lands
 * above the text. Here the text comes first and the button after it: at the end of the line, centred
 * with the text and the icon, and on its own line under the text up to 640.
 */
body .wc-block-components-notice-banner:has(> .wc-block-components-notice-banner__content > .wc-forward) {
	align-items: center;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content:has(> .wc-forward) {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--16);
	justify-content: space-between;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content > .wc-forward {
	flex-shrink: 0;
	float: none;
	margin: 0;
	order: 1;
}

@media (max-width: 640px) {

	/* The icon (one line high) at the top, on the first line of the text. */
	body .wc-block-components-notice-banner:has(> .wc-block-components-notice-banner__content > .wc-forward) {
		align-items: flex-start;
	}

	body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content:has(> .wc-forward) {
		align-items: stretch;
		align-self: flex-start;
		flex-direction: column;
	}
}
/**
 * Corporate page sections (bin/content/<slug>.html, template page-sections).
 * Shared section heading, buttons and text styles come from sections.css, button.css and typography.css.
 */

/* Page hero (Figma: 01 / … / Hero a sangre): photo, colour layer and the page H1 */
.pa-page-hero {
	align-items: flex-end;
}

.pa-page-hero__title {
	letter-spacing: var(--wp--custom--letter-spacing--tighter);
	line-height: var(--wp--custom--line-height--snug);
}

.pa-page-hero__lead {
	max-width: var(--wp--custom--size--intro);
}

/* Healthspan Peakspan / 02 / El concepto / 7 + 5 */
.pa-concepto__columns {
	justify-content: space-between;
}

/* Timeline: a dot at the first line of each heading and a line down to the next one. */
/* When the list reaches the screen the dots and the lines draw in sequence (spec §5.2): dot i at i·step, the line to the next at i·step + line delay. The text comes in with the fade of the column and never waits. */
.pa-concepto__list {
	--pa-dot-duration: 300ms;
	--pa-line-delay: 150ms;
	--pa-step-duration: 500ms;
	padding-inline-start: var(--wp--preset--spacing--32);
}

.pa-concepto__item {
	--pa-dot-top: calc(var(--wp--preset--font-size--xl) * 0.65);
	position: relative;
}

.pa-concepto__item > * {
	margin-block-end: 0;
}

.pa-concepto__item::before {
	background-color: currentcolor;
	border-radius: 50%;
	content: "";
	height: var(--wp--preset--spacing--8);
	inset-block-start: calc(var(--pa-dot-top) - var(--wp--preset--spacing--4));
	inset-inline-start: calc(-1 * var(--wp--preset--spacing--32));
	position: absolute;
	width: var(--wp--preset--spacing--8);
}

.pa-concepto__item:not(:last-child)::after {
	border-inline-start: var(--wp--custom--border-width--1) solid currentcolor;
	content: "";
	inset-block: var(--pa-dot-top) calc(-1 * (var(--wp--preset--spacing--48) + var(--pa-dot-top)));
	inset-inline-start: calc(var(--wp--preset--spacing--4) - var(--wp--preset--spacing--32));
	position: absolute;
	transform-origin: top;
}

.pa-concepto__item:nth-child(2) {
	--pa-step: 1;
}

.pa-concepto__item:nth-child(3) {
	--pa-step: 2;
}

html.pa-motion .pa-concepto__list:not(.is-revealed) .pa-concepto__item::before {
	transform: scale(0);
}

html.pa-motion .pa-concepto__list:not(.is-revealed) .pa-concepto__item:not(:last-child)::after {
	transform: scaleY(0);
}

html.pa-motion .pa-concepto__list.is-revealed .pa-concepto__item::before {
	transition: transform var(--pa-dot-duration) var(--wp--custom--motion--ease--out);
	transition-delay: calc(var(--pa-step, 0) * var(--pa-step-duration));
}

html.pa-motion .pa-concepto__list.is-revealed .pa-concepto__item:not(:last-child)::after {
	transition: transform var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--in-out);
	transition-delay: calc(var(--pa-step, 0) * var(--pa-step-duration) + var(--pa-line-delay));
}

.pa-concepto__media img {
	aspect-ratio: 648 / 778;
	border-radius: var(--wp--custom--radius--40);
	object-fit: cover;
	width: 100%;
}

.pa-concepto__media {
	margin: 0;
}

.pa-concepto__credentials > * {
	margin-block-end: 0;
}

.pa-concepto__role {
	color: var(--wp--preset--color--text-muted);
}

/* Healthspan Peakspan / 03 / Ciencia del envejecimiento / 5 + 7: wheel and the four families */
.pa-familias__columns {
	justify-content: space-between;
}

.pa-familias__wheel {
	margin: 0;
}

.pa-familias__wheel img {
	height: auto;
	width: 100%;
}

/*
 * Where the columns sit side by side (core: 782px; media queries cannot read tokens), the wheel
 * column takes the height of the row and the wheel stays on screen while the families scroll by,
 * below the navigation row when it comes back (header.css).
 */
@media (min-width: 782px) {

	.pa-familias__columns > .wp-block-column:has(> .pa-familias__wheel) {
		align-self: stretch;
	}

	.pa-familias__wheel {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--position-offset, 0px) + var(--pa-sticky-offset, 0px) + var(--wp--preset--spacing--48));
		transition: top var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out);
	}
}

/* The wheels settle from a slight turn when they reach the screen (spec §5.2). */
html.pa-motion :is(.pa-familias__wheel, .pa-marcadores__wheel):not(.is-revealed) img {
	opacity: 0;
	transform: rotate(-4deg);
}

html.pa-motion :is(.pa-familias__wheel, .pa-marcadores__wheel).is-revealed img {
	transition: opacity var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--out), transform var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--out);
}

.pa-familia {
	padding-block: var(--wp--preset--spacing--24);
	padding-inline-start: calc(var(--wp--preset--spacing--24) + var(--wp--custom--border-width--6));
	position: relative;
}

/* The colour bar is a pseudo-element so it can draw from top to bottom when the family reaches the screen (spec §5.2). */
.pa-familia::before {
	background-color: var(--pa-familia-colour, var(--wp--preset--color--text-default));
	content: "";
	inset-block: 0;
	inset-inline-start: 0;
	position: absolute;
	transform-origin: top;
	width: var(--wp--custom--border-width--6);
}

html.pa-motion .pa-familia:not(.is-revealed)::before {
	transform: scaleY(0);
}

html.pa-motion .pa-familia.is-revealed::before {
	transition: transform var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--in-out);
	transition-delay: calc(var(--pa-i, 0) * var(--wp--custom--motion--stagger));
}

.pa-familia > * {
	margin-block-end: 0;
}

.pa-familia .wp-block-heading,
.pa-familia__title {
	color: var(--pa-familia-title, var(--pa-familia-colour));
}

.pa-familia--primarios {
	--pa-familia-colour: var(--wp--preset--color--accent-navy);
}

.pa-familia--antagonistas {
	--pa-familia-colour: var(--wp--preset--color--brand-brown);
}

.pa-familia--integradores {
	--pa-familia-colour: var(--wp--preset--color--accent-forest);
}

.pa-familia--ampliado {
	--pa-familia-colour: var(--wp--preset--color--neutral-gray);
	--pa-familia-title: var(--wp--preset--color--accent-forest);
}

/* The same group description and list in the Hallmarks tabs (Home and Fórmula ProAge, sections.css). */
.pa-marcadores__desc,
.pa-marcadores__list {
	color: var(--wp--preset--color--text-muted);
}

/* Healthspan Peakspan (Figma 8106:150543): the families are written in the brand brown. */
.pa-familia__desc,
.pa-familia__list {
	color: var(--wp--preset--color--brand-brown);
}

.pa-familia__list,
.pa-marcadores__list {
	display: grid;
	font-size: var(--wp--preset--font-size--sm);
	gap: var(--wp--preset--spacing--8);
	line-height: var(--wp--custom--line-height--relaxed);
	list-style: none;
	padding-inline-start: 0;
}

/* 580px wide, as in Figma: narrower than the family, so the lines break as there. */
.pa-familia__list {
	max-width: var(--wp--custom--size--family-list);
}

.pa-familia__list strong,
.pa-marcadores__list strong {
	font-weight: var(--wp--custom--font-weight--semibold);
}

/* Healthspan Peakspan / 03 / 5 + 8: the 14 Hallmarks as glass cards over the moss photo (glass.css) */
/* Columns 64 apart (Figma); core's grid formula only knows the row gap, so it is restated here. */
.pa-hallmarks__grid.is-layout-grid {
	--pa-column-gap: calc(2 * var(--wp--preset--spacing--32));
	column-gap: var(--pa-column-gap);
	grid-template-columns: repeat(auto-fill, minmax(max(min(var(--wp--custom--size--tile), 100%), (100% - (var(--pa-column-gap) * 3)) / 4), 1fr));
}

.pa-hallmark {
	border-radius: var(--wp--custom--radius--40);
	transition: background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

/* The Figma shows this hover state on the first card, as a sample: every card starts the same. */
.pa-hallmark:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-olive) 53%, transparent) !important; /* Over the clear glass (glass.css). */
}

.pa-hallmark > * {
	margin-block-end: 0;
}

/*
 * Same height for every card, 400px as in Figma (352 × 400), where the cards sit side by side (core:
 * 782px; media queries cannot read tokens). Stacked on phones they keep the height of their text.
 */
@media (min-width: 782px) {

	.pa-hallmark {
		min-height: var(--wp--custom--size--hallmark-card);
	}
}

.pa-hallmark__top {
	width: 100%;
}

.pa-hallmark__icon {
	margin: 0;
}

.pa-hallmark__icon img {
	display: block;
	height: var(--wp--custom--size--icon-large);
	width: var(--wp--custom--size--icon-large);
}

.pa-hallmark__number {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	margin: 0;
}

/* Healthspan Peakspan / 04 / Peakspan / etapas 3 + 3 + 3 + 3 */
.pa-etapa {
	border-radius: var(--wp--custom--radius--40);
}

.pa-etapa > * {
	margin-block-end: 0;
}

/*
 * Same height for the four stages, 344px as in Figma (376 × 344), from 1366px, where they sit side by
 * side. Below, on small desktops, they go 2 + 2 and wide: 344px left them empty, so they take the
 * height of their text (Laura).
 */
@media (min-width: 1366px) {

	.pa-etapa {
		min-height: var(--wp--custom--size--stage-card);
	}
}

/* Room for two lines of title, as in Figma («Título / dos líneas», 68px), where the four sit in a row (from about 1150px): the texts line up across the stages. */
@media (min-width: 1200px) {

	.pa-etapa .wp-block-heading {
		min-height: 2lh;
	}
}

.pa-etapa__decade {
	color: var(--wp--preset--color--accent-olive);
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--normal);
}

@media (prefers-reduced-motion: reduce) {

	.pa-hallmark {
		transition: none;
	}
}

/* Section heading row (eyebrow + heading) at the wide width, left aligned */
.pa-section-head > * {
	margin-block-end: 0;
}

/* Fórmula ProAge / 01 / Hero 7 + 5: the flagship section with price and the two ways to buy */
.pa-formula-hero .pa-formula-hero__image img {
	aspect-ratio: 648 / 772;
}

/* The price takes the column gap (32px, block setting; Figma: 35px). */
.pa-formula-hero .pa-price {
	margin-block-end: 0;
}

/*
 * «(IVA incluido) · C.N: …» after the price, small (product-card.css), in the white of the text of
 * the hero: the secondary grey does not read on the dark background.
 */
.pa-formula-hero .pa-price-note {
	color: inherit;
}

/* Fórmula ProAge / 02 / Por qué Fórmula / tarjetas 4 + 4 + 4 */
/* The photo reaches the card edges: no default padding of groups with a background. */
.pa-beneficio.has-background {
	border-radius: var(--wp--custom--radius--40);
	overflow: hidden;
	padding: 0;
}

.pa-beneficio__image {
	margin: 0;
}

.pa-beneficio__image img {
	aspect-ratio: 512 / 320;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.pa-beneficio__body > * {
	margin-block-end: 0;
}

/*
 * Room for three lines of title and of description, as in Figma («Título / tres líneas», 102 + 84px),
 * so the three cards share a height where they sit side by side (core: 782px; media queries cannot
 * read tokens). `lh` follows the line height of each text style.
 */
@media (min-width: 782px) {

	.pa-beneficios .pa-beneficio__body > .wp-block-heading,
	.pa-beneficios .pa-beneficio__body > p {
		min-height: 3lh;
	}
}

/*
 * Ciencia / 02 / Cómo nace un producto: the same cards with a number. Room for two lines of title and
 * eight of description, as in Figma («Título / dos líneas» 68px, «Descripción» 224px), where they sit
 * side by side (as above).
 */
@media (min-width: 782px) {

	.pa-proceso__grid .pa-beneficio__body > .wp-block-heading {
		min-height: 2lh;
	}

	.pa-proceso__grid .pa-beneficio__body > .wp-block-heading + p {
		min-height: 8lh;
	}
}

/* Fórmula ProAge / 03 / Ingredientes / 5 + 8 */
.pa-ingredientes__columns {
	justify-content: space-between;
}

.pa-ingredientes__image {
	margin: 0;
}

.pa-ingredientes__image img {
	aspect-ratio: 648 / 760;
	border-radius: var(--wp--custom--radius--40);
	height: auto;
	object-fit: cover;
	width: 100%;
}

.pa-ingrediente {
	border-radius: var(--wp--custom--radius--40);
}

.pa-ingrediente > * {
	margin-block-end: 0;
}

/* Fórmula ProAge / 06 / Ritual diario: outlined step cards */
.pa-paso {
	align-items: center;
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	border-radius: var(--wp--custom--radius--40);
	display: flex;
	flex-direction: column;
	text-align: center;
}

.pa-paso > * {
	margin-block-end: 0;
}

.pa-paso__photo,
.pa-paso__foot {
	margin: 0;
	width: 100%;
}

.pa-paso__photo img {
	aspect-ratio: 464 / 290;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.pa-paso__foot img {
	aspect-ratio: 464 / 160;
	display: block;
	height: auto;
	margin-block-start: auto;
	object-fit: contain;
	width: 100%;
}

.pa-paso__number {
	align-items: center;
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: 50%;
	display: flex;
	font-size: var(--wp--preset--font-size--2-xl);
	height: var(--wp--custom--size--control);
	justify-content: center;
	line-height: var(--wp--custom--line-height--normal);
	width: var(--wp--custom--size--control);
}

/* The step text takes the free height, so the photos below line up across the cards. */
.pa-paso .wp-block-heading {
	flex-grow: 1;
}

/* 752px high, as in Figma (512 × 752), where the cards sit side by side (core: 782px). The step text takes the extra height. */
@media (min-width: 782px) {

	.pa-paso {
		min-height: var(--wp--custom--size--step-card);
	}
}

.pa-precauciones {
	border-radius: var(--wp--custom--radius--40);
}

.pa-precauciones > * {
	margin-block-end: 0;
}

/* Text column at the reading measure (Figma: 784) */
.pa-measure {
	max-width: var(--wp--custom--size--measure);
}

/* Tratamientos / 04 / Áreas de salud: intro box, then the nine areas */
/* A brown 1px border, as in the Figma (its 12px radius is between the 8 and 20 of the scale). */
.pa-intro-box {
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--brand-brown);
	border-radius: var(--wp--custom--radius--8);
}

.pa-intro-box > * {
	margin-block-end: 0;
}

.pa-intro-box__eyebrow {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	opacity: 0.7;
	text-transform: uppercase;
}

.pa-intro-box__title.wp-block-heading {
	font-size: var(--wp--preset--font-size--3-xl);
}

.pa-intro-box__link {
	font-size: var(--wp--preset--font-size--base);
	line-height: var(--wp--custom--line-height--label);
}

.pa-intro-box__link a {
	font-weight: var(--wp--custom--font-weight--semibold);
}

/*
 * 64px between the rows of cards (Figma). The cards share the rows of the grid (below), so the grid
 * keeps the 16px of inside the card and each card adds the other 48px under it; the last row takes
 * them back from the grid, so the section keeps its height.
 */
.pa-areas__grid.is-layout-grid {
	margin-block-end: calc(-1 * var(--wp--preset--spacing--48));
	row-gap: var(--wp--preset--spacing--16);
}

/*
 * The cards of a row share its rows (subgrid): photo, title, needs and link line up across the row,
 * also where a title or a need takes one more line. The 16px between them, as in the Figma, is the
 * row gap of the grid instead of the margins of the block.
 */
.pa-areas__grid > .pa-salud-card {
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	margin-block-end: var(--wp--preset--spacing--48);
}

.pa-salud-card > * {
	margin-block-end: 0;
}

/* In the subgrid the 16px between photo, title, needs and link is the row gap of the grid, not the block gap. */
.pa-areas__grid > .pa-salud-card > * {
	margin-block-start: 0;
}

.pa-salud-card__image {
	margin: 0;
}

.pa-salud-card__image img {
	aspect-ratio: 512 / 360;
	border-radius: var(--wp--custom--radius--8);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* Room for four needs, as in the Figma, so every card is as tall and the links line up. */
.pa-salud-card__needs {
	min-height: 4lh;
	opacity: 0.85;
}

/* Tratamientos / 08 / Certificación: Low FODMAP seal next to the title */
.pa-certificacion__logo {
	flex: 0 0 auto;
	margin: 0;
}

/* The seal (126 × 158) as tall as the round one it replaced; its width follows. */
.pa-certificacion__logo img {
	display: block;
	height: calc(var(--wp--custom--size--icon-large) * 2);
	width: auto;
}

.pa-certificacion__text {
	flex: 1 1 var(--wp--custom--size--card);
}

.pa-certificacion__text > * {
	margin-block-end: 0;
}

/* Treatment / 03 / Cabecera: a shorter photo hero */
.pa-page-hero--short {
	min-height: 0;
}

/* Treatment / 04 / ¿En qué consiste? */
.pa-consiste__columns,
.pa-porque__columns {
	justify-content: space-between;
}

.pa-consiste__image,
.pa-porque__image,
.pa-incluye__image {
	margin: 0;
}

.pa-consiste__image img,
.pa-porque__image img,
.pa-incluye__image img {
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.pa-consiste__image img {
	aspect-ratio: 653 / 534;
}

.pa-porque__image img {
	aspect-ratio: 784 / 700;
}

/* Treatment / 07 / Qué incluye: products and advice */
.pa-incluye__image img {
	aspect-ratio: 512 / 640;
}

.pa-incluye__card > * {
	margin-block-end: 0;
}

/* Treatment / 08 / Cómo empezar: glass cards on brown (glass.css) */
.pa-empezar__card {
	border-radius: var(--wp--custom--radius--40);
	display: flex;
	flex-direction: column;
}

.pa-empezar__card > * {
	margin-block-end: 0;
}

.pa-empezar__number {
	align-items: center;
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: 50%;
	display: flex;
	font-weight: var(--wp--custom--font-weight--medium);
	height: var(--wp--custom--size--control-small);
	justify-content: center;
	width: var(--wp--custom--size--control-small);
}

.pa-empezar__ilus {
	margin: auto 0 0;
}

.pa-empezar__ilus img {
	display: block;
	height: auto;
	max-height: calc(var(--wp--custom--size--icon-large) * 2);
	width: auto;
}

/* Large light number of a step or card (Figma: Display / Metric / Light) */
.pa-number {
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--normal);
}

/* Ciencia / 02 / Cómo nace un producto: the benefit card with a 376 × 240 photo */
.pa-proceso__image img {
	aspect-ratio: 376 / 240;
}

/* Ciencia / 03 / Investigación propia (brown) */
.pa-futuro__columns,
.pa-guia__columns {
	justify-content: space-between;
}

.pa-instituciones__logo {
	margin: 0;
}

.pa-instituciones__logo img {
	display: block;
	height: calc(var(--wp--custom--size--control) - var(--wp--preset--spacing--4));
	width: auto;
}

/*
 * Investigación propia: one block with the photo first, floated right at half the width (768 + 64 + 768
 * at 1920, as in the Figma). The text runs beside it and, where it does not fit, under it at the whole
 * width. On phones, one column (below).
 */
.pa-investigacion-propia__body {
	display: flow-root;
}

.pa-investigacion-propia__image {
	float: right;
	margin: 0 0 var(--wp--preset--spacing--24) 4%;
	width: 48%;
}

.pa-investigacion-propia__body > .pa-investigacion-propia__image + * {
	margin-block-start: 0;
}

/*
 * From 1696 (content at its 1600 maximum plus the two 48px gutters) the layout is the one of the Figma
 * at 1920 and the text fits beside the photo: no space under the photo, which would only make the
 * section taller.
 */
@media (min-width: 1696px) {

	.pa-investigacion-propia__image {
		margin-block-end: 0;
	}
}

.pa-investigacion-propia__image img {
	aspect-ratio: 768 / 692;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* In the Figma each text is one block: no space between its paragraphs (the text as tall as the photo). */
.pa-investigacion-propia__body > p + p {
	margin-block-start: 0;
}

/* Ciencia / 05 / Consejo de Expertos band */
/* As tall as its content (120 + title + 120 in the Figma), not the 430px the Cover block keeps by default. */
.pa-consejo-band {
	min-height: 0;
}

.pa-consejo-band__title {
	flex: 1 1 var(--wp--custom--size--measure);
	margin: 0;
	max-width: var(--wp--custom--size--intro);
}

/* Ciencia / 07 / Estudios clínicos: white study cards with the reference product */
.pa-estudio {
	border-radius: var(--wp--custom--radius--40);
	display: flex;
	flex-direction: column;
}

.pa-estudio > * {
	margin-block-end: 0;
}

.pa-estudio .pa-chip {
	align-self: flex-start;
}

/* The description keeps room for four lines and the product sits 24px below it, at the bottom (Figma). */
.pa-estudio > .wp-block-heading + p {
	min-height: 4lh;
}

.pa-estudio__product {
	margin: auto 0 0;
	padding-block-start: var(--wp--preset--spacing--24);
	text-align: center;
}

.pa-estudio__product img {
	height: auto;
	width: min(100%, calc(var(--wp--custom--size--tile) + var(--wp--preset--spacing--16) + var(--wp--preset--spacing--4)));
}

/* Ciencia / 08 / Partnerships: brown cards on brown */
.pa-alianza {
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--brand-brown-soft);
	border-radius: var(--wp--custom--radius--40);
}

.pa-alianza > * {
	margin-block-end: 0;
}

/* Title with room for two lines and description for four, as in the Figma, so both cards match. */
.pa-alianza > .wp-block-heading {
	min-height: 2lh;
}

.pa-alianza > .wp-block-heading + p {
	min-height: 4lh;
}

/* Ciencia / 09 / Cómo elegir un suplemento eficaz: the questions as white cards */
.pa-pregunta {
	border-radius: var(--wp--custom--radius--40);
}

.pa-pregunta > * {
	margin-block-end: 0;
}

/* Page H1 outside a hero (Figma: Heading / H2 size) */
.pa-page-title {
	letter-spacing: var(--wp--custom--letter-spacing--tighter);
	line-height: var(--wp--custom--line-height--snug);
}

/* Consejo de Expertos / 03 / Cabecera editorial */
.pa-consejo-cabecera__columns {
	justify-content: space-between;
}

.pa-consejo-cabecera__image {
	margin: 0;
}

.pa-consejo-cabecera__image img {
	aspect-ratio: 648 / 720;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* Consejo de Expertos / 05 / Expertos / 4 + 4 + 4 */
.pa-expertos__grid.is-layout-grid {
	row-gap: calc(2 * var(--wp--preset--spacing--32));
}

.pa-experto > * {
	margin-block-end: 0;
}

/* 24px between the photo and the name, as in Figma (the other texts keep the 16px of the group). */
.pa-experto__photo + * {
	margin-block-start: var(--wp--preset--spacing--24);
}

.pa-experto__photo img {
	aspect-ratio: 512 / 560;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* Glass cards (glass.css) */
.pa-glass-card {
	border-radius: var(--wp--custom--radius--40);
}

.pa-glass-card > * {
	margin-block-end: 0;
}

.pa-glass-card__logo {
	margin-block-start: 0;
}

.pa-glass-card__logo img {
	display: block;
	height: calc(var(--wp--custom--size--control) - var(--wp--preset--spacing--4));
	width: auto;
}

/* Text + button row (Figma: 8 + 4) */
/* 1056px wide at most, the content width, as in Figma (8 columns). */
.pa-cta-row__text {
	flex: 1 1 var(--wp--custom--size--measure);
	max-width: var(--wp--style--global--content-size);
}

.pa-cta-row__text > * {
	margin-block-end: 0;
}

.pa-cta-row__muted {
	color: var(--wp--preset--color--border-sage);
}

/* Consejo de Expertos / 09 / Plataforma: service pills */
.pa-servicio {
	border-radius: var(--wp--custom--radius--40);
}

.pa-servicio__label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--semibold);
	margin: 0;
}

/* Área Profesionales / 04 / La plataforma ProAge: text and service cards next to a photo */
.pa-plataforma-profesional__columns {
	justify-content: space-between;
}

/* 32px between the two columns of cards, as in the Figma (444px each); 16 between the rows. */
.pa-plataforma-profesional .pa-servicios__grid.is-layout-grid {
	column-gap: var(--wp--preset--spacing--32);
}

.pa-plataforma-profesional__image {
	margin: 0;
}

.pa-plataforma-profesional__image img {
	aspect-ratio: 512 / 614;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* Test SSC / 01 / Hero: the Fórmula hero (same Figma component) with the photo first */
.pa-test-hero__columns {
	justify-content: space-between;
}

/* Test SSC / 04 / Sobre el SSC / 8 + 4: text with the illustration at its foot, next to the wheel */
.pa-sobre-ssc__columns {
	justify-content: space-between;
}

.pa-sobre-ssc__text {
	display: flex;
	flex-direction: column;
}

/* The heading and the text 646px wide, as in the Figma, so the lines break as there. */
.pa-sobre-ssc__text > :is(.wp-block-heading, p:not(.is-style-eyebrow)) {
	max-width: var(--wp--custom--size--ssc-copy);
}

.pa-sobre-ssc__text > .pa-sobre-ssc__ilustracion {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--48);
}

.pa-sobre-ssc__rueda {
	margin: 0;
}

.pa-sobre-ssc__rueda img {
	display: block;
	height: auto;
	width: 100%;
}

/* Test SSC / 05 / Cómo funciona el test: text and a photo on deep forest */
.pa-como-funciona__columns,
.pa-mas-ssc__columns {
	justify-content: space-between;
}

.pa-como-funciona__image {
	margin: 0;
}

.pa-como-funciona__image img {
	aspect-ratio: 648 / 779;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* Realizar test: the questionnaire of Quiz And Survey Master at the reading measure */
.pa-realizar-test__quiz > .wp-block-shortcode,
.pa-realizar-test__quiz > .qsm-quiz-container {
	max-width: var(--wp--custom--size--measure);
}

/* The start button of QSM, which needs !important against its inline styles: overrides/qsm.css. */

/* Contacto / 03 / 5 + 7: who to write to, and the form in a light box */
.pa-contacto-pagina__columns {
	justify-content: space-between;
}

.pa-dato__label {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--label);
	margin-block-end: 0;
}

/* The e-mail addresses: 18px on a 24px line in the Figma (the nearest line height). */
.pa-dato__value {
	line-height: var(--wp--custom--line-height--normal);
}

.pa-dato__value a {
	color: inherit;
	font-weight: var(--wp--custom--font-weight--semibold);
	text-decoration: underline;
}

.pa-contacto-pagina__form {
	border-radius: var(--wp--custom--radius--20);
}

/* Phones: less room around the form, so the fields keep their width (the Figma is desktop only). */
@media (max-width: 781px) {

	.pa-contacto-pagina__form {
		padding: var(--wp--preset--spacing--24) !important;
	}
}

/* Consejo de Expertos / Nuevos prescriptores: text and the Contact Form 7 form */
.pa-prescriptor__columns {
	justify-content: space-between;
}

/* ProAge: the long texts that open in a side panel (drawer.css) */
/* A heading for SEO that reads as the text around it. */
.pa-desplegable__statement {
	font: inherit;
	letter-spacing: inherit;
}

.pa-desplegable__list {
	padding-inline-start: var(--wp--preset--spacing--24);
}

/* ProAge / 04 + 05: story and manifesto, text next to a photo mosaic */
.pa-historia__columns,
.pa-manifiesto__columns,
.pa-compromisos__columns {
	justify-content: space-between;
}

/* The bold of the story at semibold, as in the Figma. */
.pa-historia strong {
	font-weight: var(--wp--custom--font-weight--semibold);
}

/* The line between the story and the manifesto (Figma: Filete / Historia y Manifiesto) */
.pa-manifiesto__columns {
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-sage);
	padding-block-start: var(--wp--preset--spacing--80);
}

/* No figure margins, but the top one stays with the column: it is its 32px between blocks (Figma). */
:is(.pa-mosaico__wide, .pa-mosaico__small, .pa-mosaico__half) {
	margin-block-end: 0;
	margin-inline: 0;
}

:is(.pa-mosaico__wide, .pa-mosaico__small, .pa-mosaico__half) img {
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.pa-mosaico__wide--historia img {
	aspect-ratio: 784 / 488;
	object-position: 50% 0;
}

.pa-mosaico__wide--manifiesto img {
	aspect-ratio: 648 / 316;
}

.pa-mosaico__small img {
	aspect-ratio: 376 / 392;
}

.pa-mosaico__half img {
	aspect-ratio: 784 / 392;
}

/* ProAge / 07 / Nuestro origen */
.pa-origen__columns {
	justify-content: space-between;
}

.pa-origen__image {
	margin: 0;
}

.pa-origen__image img {
	aspect-ratio: 784 / 684;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* ProAge / 09 / Sostenibilidad */
.pa-sost-card > * {
	margin-block-end: 0;
}

.pa-sost-card__image {
	margin-block-start: 0;
}

/* 40px between the photo and the title, 16 between the title and the text (Figma). */
.pa-sost-card > .pa-sost-card__image + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.pa-sost-card__image img {
	aspect-ratio: 512 / 428;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.pa-compromiso {
	border-radius: var(--wp--custom--radius--40);
}

.pa-compromiso__icon {
	flex: 0 0 auto;
	margin: 0;
}

.pa-compromiso__icon img {
	display: block;
	height: calc(var(--wp--custom--size--control) + var(--wp--preset--spacing--8));
	width: calc(var(--wp--custom--size--control) + var(--wp--preset--spacing--8));
}

.pa-compromiso__text {
	flex: 1 1 0;
}

.pa-compromiso__text > * {
	margin-block-end: 0;
}

.pa-forma {
	border-radius: var(--wp--custom--radius--40);
}

.pa-forma__title {
	flex: 0 1 calc(var(--wp--custom--size--card) + var(--wp--preset--spacing--32));
	margin: 0;
}

.pa-forma__text {
	flex: 1 1 var(--wp--custom--size--card);
	max-width: var(--wp--custom--size--measure);
}

.pa-forma__text > * {
	margin-block-end: 0;
}

/*
 * Magazine / 03 / Cabecera: the three topics as compact chips. They are a List block in the template of
 * the blog (patterns/magazine-header.php), so they can be changed in the site editor; only the first
 * three show, so the layout of the Figma holds (on phones, one on top and two under it).
 */
.pa-magazine-header__categories > li:nth-child(n + 4) {
	display: none;
}

/* Magazine / 03 / Cabecera: top-level categories as compact chips */
.pa-magazine-header__categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--16);
	list-style: none;
	margin-block-end: 0;
	padding: 0;
}

/* As in the Figma: brown at 5 %, regular 14/22 type and 12px all round (46px high). */
.pa-magazine-header__categories a {
	background-color: var(--wp--preset--color--interactive-soft);
	border: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--relaxed);
	padding: var(--wp--preset--spacing--12);
	text-transform: uppercase;
	white-space: nowrap;
}

.pa-magazine-header__categories a:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/* Category label of the featured post and the article cards: the eyebrow text style */
.pa-featured__eyebrow,
.pa-article-card__terms {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--label);
	text-transform: uppercase;
}

.pa-featured__eyebrow a {
	color: inherit;
	text-decoration: none;
}

/* Featured article: the sticky post in a cream box, text next to the image */
.pa-featured__card {
	align-items: center;
	border-radius: var(--wp--custom--radius--40);
}

.pa-featured__text > * {
	margin: 0;
}

.pa-featured__title a,
.pa-article-card__title a {
	color: inherit;
	text-decoration: none;
}

.pa-featured__title a:hover,
.pa-article-card__title a:hover {
	text-decoration: underline;
}

.pa-featured__title {
	font-size: var(--wp--preset--font-size--xl);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-featured__image img {
	border-radius: var(--wp--custom--radius--40);
}

/* Magazine / 04 / Áreas de conocimiento: the Home tiles, lower. 32px between columns (the block gap, which
   the grid uses for its columns) and 24px between the two rows, as in the Figma. */
.pa-magazine-areas__grid.is-layout-grid {
	row-gap: var(--wp--preset--spacing--24);
}

.pa-area.pa-area--compact {
	min-height: 0;
	width: auto;
}

/* Magazine / 05 / Últimos artículos: 52px between the two rows in the Figma, 48 on the scale; 32 between columns. */
.pa-magazine-latest__query .wp-block-post-template.is-layout-grid {
	row-gap: var(--wp--preset--spacing--48);
}

/*
 * Editorial article card (magazine and related posts): horizontal photo, category, title. The photo
 * as in the Home cards (blog-3): 512/300 with a radius of 40, 20 below 1024px. The Figma had it
 * tall (512/660), which cut off the sides of the posts' horizontal photos.
 */
.pa-article-card > * {
	margin: 0;
}

.pa-article-card__image {
	border-radius: var(--wp--custom--radius--40);
	overflow: hidden;
}

/* Breakpoints in numbers: media queries cannot read tokens. */
@media (max-width: 1023px) {

	.pa-article-card__image {
		border-radius: var(--wp--custom--radius--20);
	}
}

.pa-article-card__image img {
	transition: transform var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--out);
}

.pa-article-card:is(:hover, :focus-within) .pa-article-card__image img {
	transform: scale(1.03);
}

.pa-article-card__terms a {
	color: inherit;
	text-decoration: none;
}

/* The look of an h3, also at other levels (h5 in the related posts, as SEO marks them). */
.pa-article-card__title {
	font-size: var(--wp--preset--font-size--xl);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

/* «Leer más →» as the Text link of the Figma: brown, 18px, semibold and underlined (13-Post-D / 05). */
.pa-article-card__more {
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--label);
	text-decoration: underline;
}

.pa-article-card__more:hover {
	opacity: var(--wp--custom--opacity--hover);
}

/*
 * Every post card on phones and tablets, below 1024px (the Home, the Magazine, the related posts, the
 * archives and the search): the category at 12/16 and the title at 18/24, as in the mobile Figma
 * of the Home. Breakpoints in numbers: media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	:is(.pa-card__kicker, .pa-article-card__terms) {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	:is(.pa-card__title, .pa-article-card__title) {
		font-size: var(--wp--custom--font-size--mobile-subtitle) !important; /* Over the size of the title block. */
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-compact);
	}
}

/* Newsletter: text and the Contact Form 7 form */
.pa-newsletter__columns {
	justify-content: space-between;
}

/* On paper there is no scrolling: the timeline, the family bars and the wheels show whole. */
/*
 * Healthspan Peakspan below 1024px (Figma: 5-Healthspan Peakspan-M, 430px). Breakpoints in numbers:
 * media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	/*
	 * Page hero (Mobile / 01 / … / Hero a sangre, the same on every corporate page): 383px high, 24px
	 * above and below, the eyebrow at the top and the message at the bottom.
	 */
	.wp-block-cover.pa-page-hero:not(.pa-page-hero--short) {
		align-items: stretch;
		min-height: var(--wp--custom--size--page-hero-mobile);
		padding-block: var(--wp--preset--spacing--24) !important; /* Over the padding saved in the editor. */
	}

	.pa-page-hero:not(.pa-page-hero--short) > .wp-block-cover__inner-container {
		display: flex;
		flex-direction: column;
	}

	.pa-page-hero:not(.pa-page-hero--short) .pa-page-hero__content {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
	}

	.pa-page-hero:not(.pa-page-hero--short) .pa-page-hero__content > * {
		margin-block: 0 !important;
	}

	.pa-page-hero:not(.pa-page-hero--short) .pa-page-hero__content > .is-style-eyebrow {
		margin-block-end: auto !important;
	}

	.pa-page-hero__title {
		letter-spacing: 0;
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	/*
	 * El concepto (Mobile / 02 / El concepto / 7 + 5): 20px from the heading to the introduction and
	 * between the three concepts, 48 to the list and to the video; the concepts 20px in, with the dot
	 * and the line in that margin; the video 400px high and 20px over the credentials.
	 */
	.pa-concepto .pa-eyebrow-heading + .is-style-lead {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-concepto__list {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		padding-inline-start: var(--wp--preset--spacing--20);
	}

	.pa-concepto__list > * {
		margin-block: 0 !important;
	}

	.pa-concepto__item {
		--pa-dot-top: calc(var(--wp--custom--font-size--mobile-subtitle) * 0.65);
	}

	.pa-concepto__item::before {
		inset-inline-start: calc(var(--wp--preset--spacing--4) - var(--wp--preset--spacing--20));
	}

	.pa-concepto__item:not(:last-child)::after {
		inset-block-end: calc(-1 * (var(--wp--preset--spacing--20) + var(--pa-dot-top)));
		inset-inline-start: calc(2 * var(--wp--preset--spacing--4) - var(--wp--preset--spacing--20));
	}

	/*
	 * A portrait: the proportion of the Figma (398 × 400) and 400px wide at most; what is cropped is the
	 * bottom (the photo is a little taller). From 768px it takes the column (rule below).
	 */
	.pa-concepto__media img {
		aspect-ratio: 398 / 400;
		border-radius: var(--wp--custom--radius--20);
		height: auto;
		max-width: var(--wp--custom--size--concept-video-mobile);
		object-position: 50% 25%;
	}

	.pa-concepto__media + .pa-concepto__credentials {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	/*
	 * Ciencia del envejecimiento (Mobile / 03 / 5 + 7), with the content of the web (longer than the
	 * Figma's): 20px from the heading to the wheel, from the wheel to the families and between them; the
	 * wheel at the width of the page; each family with a 4px line and its text 16px from the edge, without
	 * padding above or below, 12px from the title to the text and to the list, the list at 13/18.
	 */
	.pa-familias .pa-familias__head + .pa-familias__columns {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-familias .pa-familias__columns.pa-familias__columns {
		gap: var(--wp--preset--spacing--20);
	}

	/* The size of the mobile Figma at most (398px), centred: on a wide phone it would fill the screen. */
	.pa-familias__wheel img {
		display: block;
		margin: 0 auto;
		max-width: min(100%, var(--wp--custom--size--wheel-mobile));
	}

	.pa-familias .pa-familia {
		margin: 0 !important;
		padding-block: 0;
		padding-inline-start: var(--wp--preset--spacing--16); /* Counted from the edge of the line, as in the Figma. */
	}

	.pa-familias .pa-familia + .pa-familia {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-familias .pa-familia::before {
		width: var(--wp--custom--border-width--4);
	}

	.pa-familias .pa-familia > * {
		margin-block: 0 !important;
	}

	.pa-familias .pa-familia > * + * {
		margin-block-start: var(--wp--preset--spacing--12) !important;
	}

	.pa-familias .pa-familia__list li {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
	}

	/*
	 * The 14 markers (Mobile / 03 / Ciencia del envejecimiento / 5 + 8): two columns 12px apart, cards of
	 * 160px or more with 12px of padding, a radius of 20 and 8px between the icon (32px) and number,
	 * the title (14/19) and the text (13/18).
	 */
	.pa-hallmarks__grid.is-layout-grid {
		gap: var(--wp--preset--spacing--12);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pa-hallmark.pa-hallmark {
		border-radius: var(--wp--custom--radius--20);
		min-height: var(--wp--custom--size--hallmark-card-mobile);
		min-width: 0;
		padding: var(--wp--preset--spacing--12) !important; /* Over the padding saved in the editor. */
	}

	/* A flow group: the 8px between the icon row, the title and the text are margins, not a gap. */
	.pa-hallmark > * {
		margin-block: 0 !important;
	}

	.pa-hallmark > * + * {
		margin-block-start: var(--wp--preset--spacing--8) !important;
	}

	.pa-hallmark__icon img {
		height: var(--wp--custom--size--icon-hallmark-mobile);
		width: var(--wp--custom--size--icon-hallmark-mobile);
	}

	.pa-hallmark__number {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	.pa-hallmark .wp-block-heading {
		font-size: var(--wp--preset--font-size--sm);
		line-height: 1.3571; /* 19px at 14px (Figma: Detail / Text / Medium / 14–19). */
	}

	.pa-hallmark p:not(.pa-hallmark__number) {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small); /* 13/18 */
	}

	/*
	 * Peakspan (Mobile / 04 / Peakspan / etapas): a row of 300 × 220 cards, 12px apart, that scrolls
	 * sideways to the edge of the screen; 32px above and below and 16 at the sides inside each card,
	 * 20 between the decade, the title and the text.
	 */
	.pa-etapas .pa-etapas__grid.pa-etapas__grid {
		display: flex;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--12);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-etapas .pa-etapas__head + .pa-etapas__grid {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-etapa.pa-etapa {
		border-radius: var(--wp--custom--radius--20);
		box-sizing: border-box;
		flex: 0 0 var(--wp--custom--size--blog-card);
		margin: 0 !important;
		min-height: var(--wp--custom--size--stage-card-mobile);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	/* A flow group: the 20px between the decade, the title and the text are margins, not a gap. */
	.pa-etapa > * {
		margin-block: 0 !important;
	}

	.pa-etapa > * + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-etapa__decade {
		font-size: var(--wp--custom--font-size--mobile-metric);
		line-height: var(--wp--custom--line-height--mobile-metric);
	}
}

/*
 * El concepto and Ciencia del envejecimiento on tablets, 768 to 1023px: the two columns of the desktop
 * (the widths saved in the content, which core overrides below 782px), so the portrait and the wheel
 * do not grow to the width of the page; the portrait at the width of its column with the photo's own
 * proportion (no crop), and the wheel beside the families, 32px apart as on desktop.
 */
@media (min-width: 768px) and (max-width: 1023px) {

	.wp-block-columns:is(.pa-concepto__columns, .pa-familias__columns) {
		flex-wrap: nowrap !important;
	}

	.wp-block-columns.pa-concepto__columns > .wp-block-column:first-child {
		flex-basis: 49% !important;
	}

	.wp-block-columns.pa-concepto__columns > .wp-block-column:last-child {
		flex-basis: 40.5% !important;
	}

	.wp-block-columns.pa-familias__columns > .wp-block-column:first-child {
		flex-basis: 50% !important;
	}

	.wp-block-columns.pa-familias__columns > .wp-block-column:last-child {
		flex-basis: 40.5% !important;
	}

	.pa-familias .pa-familias__columns.pa-familias__columns {
		gap: var(--wp--preset--spacing--32);
	}

	.pa-familias__columns > .wp-block-column:has(> .pa-familias__wheel) {
		align-self: stretch;
	}

	.pa-familias__wheel {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--position-offset, 0px) + var(--pa-sticky-offset, 0px) + var(--wp--preset--spacing--48));
	}

	.pa-familias__wheel img {
		max-width: 100%;
	}

	.pa-concepto__media img {
		aspect-ratio: 648 / 778;
		height: auto;
		max-width: 100%;
		width: 100%;
	}
}

/*
 * Fórmula ProAge below 1024px (Figma: 6-Fórmula ProAge-M, 430px). The three rows of cards (Por qué,
 * Ingredientes, Ritual) scroll sideways as the other carousels of the site, with arrows when there
 * is a mouse (assets/js/carousel.js). Breakpoints in numbers: media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	/* Section headings of this page: 20px between the eyebrow and the title (Figma). */
	.pa-beneficios .pa-eyebrow-heading,
	.pa-ingredientes .pa-eyebrow-heading,
	.pa-ritual .pa-eyebrow-heading,
	.pa-banda .pa-banda__content {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-beneficios .pa-eyebrow-heading > *,
	.pa-ingredientes .pa-eyebrow-heading > *,
	.pa-ritual .pa-eyebrow-heading > *,
	.pa-banda .pa-banda__content > * {
		margin-block: 0 !important;
	}

	/*
	 * Hero of the product (Mobile / 01 / Fórmula ProAge / Hero a sangre): the price at 18/24 semibold
	 * (the note after it stays small), the two buttons side by side and 52px high, and the photo
	 * 400px high, 52px under them.
	 */
	.pa-formula-hero .pa-price,
	.pa-formula-hero .pa-price :not(.pa-price-note) {
		font-size: var(--wp--custom--font-size--mobile-subtitle) !important;
		font-weight: var(--wp--custom--font-weight--semibold);
		line-height: var(--wp--custom--line-height--mobile-heading) !important;
	}

	.pa-formula-hero .pa-price + .wp-block-buttons {
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--12);
	}

	.pa-formula-hero .pa-price + .wp-block-buttons > .wp-block-button.wp-block-button {
		flex: 1 1 0;
		min-width: 0;
	}

	.pa-formula-hero .pa-price + .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		min-height: calc(13 * var(--wp--preset--spacing--4));
		width: 100%;
	}

	/* Over the 44px of Producto insignia on the corporate pages (sections.css): 52 here. */
	.page-template-page-sections .pa-formula-hero.pa-insignia .wp-block-columns .wp-block-column > .pa-formula-hero__image {
		margin-block-start: calc(13 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-formula-hero .pa-formula-hero__image img {
		border-radius: var(--wp--custom--radius--20);
	}


	/* The rows of cards: 12px apart, to the edge of the screen. */
	.pa-beneficios .pa-beneficios__grid.pa-beneficios__grid,
	.pa-ingredientes .pa-ingredientes__columns > .wp-block-column + .wp-block-column,
	.pa-ritual .pa-pasos__grid.pa-pasos__grid {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--12);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-beneficios__grid > *,
	.pa-ingredientes__columns > .wp-block-column + .wp-block-column > *,
	.pa-pasos__grid > * {
		box-sizing: border-box;
		flex: 0 0 var(--wp--custom--size--blog-card);
		margin: 0 !important;
	}

	/*
	 * Por qué Fórmula (Mobile / 02 / tarjetas 4 + 4 + 4): 32px from the heading to the cards; each card
	 * with a radius of 20, the photo 320px high and the text with 32px above and below, 16 at the sides
	 * and 20 between the title and the description.
	 */
	.pa-beneficios .pa-section-head + .pa-beneficios__grid {
		margin-block-start: var(--wp--preset--spacing--32) !important;
	}

	.pa-beneficios .pa-beneficio.has-background {
		border-radius: var(--wp--custom--radius--20);
	}

	.pa-beneficios .pa-beneficio__image img {
		aspect-ratio: auto;
		height: var(--wp--custom--size--benefit-photo-mobile);
	}

	.pa-beneficios .pa-beneficio__body {
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-beneficios .pa-beneficio__body > * {
		margin-block: 0 !important;
	}

	.pa-beneficios .pa-beneficio__body > * + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	/*
	 * Ingredientes (Mobile / 03 / 5 + 8): the photo 52px under the heading, 414px wide at most (on a
	 * tablet it would fill the page), then the row of ingredients 20px under it; each card with 32px
	 * above and below, 16 at the sides and 16 between the name (20/26, room for two lines), the chip
	 * (58px high, at the whole width) and the text.
	 */
	.wp-block-columns.pa-ingredientes__columns {
		flex-wrap: wrap !important;
		gap: var(--wp--preset--spacing--20);
	}

	.wp-block-columns.pa-ingredientes__columns > .wp-block-column {
		flex-basis: 100% !important;
		margin: 0 !important;
	}

	.pa-ingredientes .pa-section-head + .pa-ingredientes__columns {
		margin-block-start: calc(13 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-ingredientes__image img {
		aspect-ratio: 414 / 433;
		border-radius: var(--wp--custom--radius--20);
		max-width: var(--wp--custom--size--ingredients-photo-mobile);
	}

	.pa-ingrediente.pa-ingrediente {
		border-radius: var(--wp--custom--radius--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-ingrediente > * {
		margin-block: 0 !important;
	}

	.pa-ingrediente > * + * {
		margin-block-start: var(--wp--preset--spacing--16) !important;
	}

	.pa-ingrediente .wp-block-heading {
		font-size: var(--wp--custom--font-size--mobile-detail);
		line-height: 1.3; /* 26px at 20px (Figma). */
		min-height: 2lh;
	}

	.pa-ingrediente .pa-chip {
		align-items: center;
		box-sizing: border-box;
		display: flex;
		font-size: var(--wp--preset--font-size--sm);
		justify-content: center;
		line-height: var(--wp--custom--line-height--mobile-label);
		min-height: var(--wp--custom--size--ingredient-chip-mobile);
		padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
		text-align: center;
		width: 100%;
	}

	/* Investigación (Mobile / 05 / a sangre): 20px between the eyebrow, the title, the text and the button. */
	.pa-banda .pa-banda__content {
		display: flex;
		flex-direction: column;
	}

	/*
	 * Ritual diario (Mobile / 06): the steps 20px under the heading; each card with an outline, a radius
	 * of 20, 24px above and below, 16 at the sides and 16 between the photo (268 × 160), the number in
	 * a circle of 56px (32/40), the indication (16/24 medium) and the moments of the day (160px high);
	 * the precautions 20px under the row.
	 */
	.pa-ritual .pa-section-head + .pa-pasos__grid {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-paso.pa-paso {
		border-radius: var(--wp--custom--radius--20);
		gap: var(--wp--preset--spacing--16);
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-paso > * {
		margin-block: 0 !important;
	}

	.pa-paso__photo img {
		aspect-ratio: auto;
		border-radius: var(--wp--custom--radius--20);
		height: var(--wp--custom--size--step-media-mobile);
	}

	/* 56px with the line (the base box leaves it outside), and 32px fixed: the 2xl of the scale is fluid. */
	.pa-paso__number {
		box-sizing: border-box;
		font-size: var(--wp--custom--font-size--mobile-step);
		height: var(--wp--custom--size--step-number-mobile);
		letter-spacing: var(--wp--custom--letter-spacing--tighter);
		line-height: 1.25; /* 40px at 32px (Figma). */
		width: var(--wp--custom--size--step-number-mobile);
	}

	.pa-paso .wp-block-heading {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	.pa-paso__foot img {
		aspect-ratio: auto;
		height: var(--wp--custom--size--step-media-mobile);
	}

	.pa-ritual .pa-pasos__grid + .pa-precauciones,
	.pa-ritual .pa-carousel-nav + .pa-precauciones {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	/* 32px above and below, 16 at the sides, 16 from the title to the text (Figma: Precauciones). */
	.pa-precauciones.pa-precauciones {
		border-radius: var(--wp--custom--radius--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}
}

/*
 * Fórmula ProAge on phones, below 768px: the photo of the hero 400px high, as in the mobile Figma. From
 * 768 the hero has two columns (Producto insignia, sections.css) and the photo keeps its proportion.
 */
@media (max-width: 767px) {

	.pa-formula-hero .pa-formula-hero__image img {
		aspect-ratio: auto;
		height: var(--wp--custom--size--formula-photo-mobile);
		object-fit: cover;
	}
}

/*
 * Consejo de Expertos below 1024px (Figma: 7-Consejo de Expertos-M, 430px). 20px between the parts of
 * every heading; the experts and the institutions are rows of 300px cards that scroll sideways (with
 * arrows when there is a mouse), the services a row of chips. Breakpoints in numbers: media queries
 * cannot read tokens.
 */
@media (max-width: 1023px) {

	.pa-consejo-cabecera .pa-consejo-cabecera__columns > .wp-block-column > *,
	.pa-colaboraciones .pa-section-head > *,
	.pa-colaboraciones .pa-eyebrow-heading > *,
	:is(.pa-nuestra-ciencia, .pa-area-profesional) .pa-cta-row__text > *,
	.pa-nuestra-ciencia .pa-eyebrow-heading > *,
	.pa-plataforma .pa-section-head > *,
	.pa-plataforma .pa-eyebrow-heading > *,
	.pa-prescriptor .pa-prescriptor__columns > .wp-block-column > *,
	.pa-prescriptor .pa-eyebrow-heading > * {
		margin-block: 0 !important;
	}

	.pa-colaboraciones .pa-section-head,
	.pa-colaboraciones .pa-eyebrow-heading,
	:is(.pa-nuestra-ciencia, .pa-area-profesional) .pa-cta-row,
	:is(.pa-nuestra-ciencia, .pa-area-profesional) .pa-cta-row__text,
	.pa-nuestra-ciencia .pa-eyebrow-heading,
	.pa-plataforma .pa-section-head,
	.pa-plataforma .pa-eyebrow-heading,
	.pa-prescriptor .pa-prescriptor__columns > .wp-block-column,
	.pa-prescriptor .pa-eyebrow-heading {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-consejo-cabecera .pa-page-title {
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	/* The lead at 18/24 (Mobile / 03 / Consejo), over the 16/24 of the other mobile leads. */
	.pa-consejo-cabecera p.is-style-lead {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-consejo-cabecera__image img {
		border-radius: var(--wp--custom--radius--20);
	}

	/*
	 * The experts (Mobile / 05 / Expertos): 300px cards, the portrait 300 × 328 with a radius of 20,
	 * 20px to the name and 16 between the name, the credentials and the speciality.
	 */
	.pa-expertos-equipo .pa-expertos__grid.pa-expertos__grid,
	.pa-colaboraciones .pa-colaboraciones__grid.pa-colaboraciones__grid,
	.pa-plataforma .pa-servicios__grid.pa-servicios__grid {
		display: flex;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--12);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	:is(.pa-expertos-equipo .pa-expertos__grid, .pa-colaboraciones__grid, .pa-plataforma .pa-servicios__grid) > * {
		box-sizing: border-box;
		flex: 0 0 var(--wp--custom--size--blog-card);
		margin: 0 !important;
	}

	.pa-expertos-equipo .pa-experto > * {
		margin-block: var(--wp--preset--spacing--16) 0 !important;
	}

	.pa-expertos-equipo .pa-experto > .pa-experto__photo {
		margin-block-start: 0 !important;
	}

	.pa-expertos-equipo .pa-experto > .pa-experto__photo + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-expertos-equipo .pa-experto__photo img {
		border-radius: var(--wp--custom--radius--20);
	}

	/*
	 * Colaboraciones científicas (Mobile / 06): 44px from the heading to the row of institutions; each
	 * card 258px high or more, with 32px above and below, 16 at the sides, a radius of 20 and 20px
	 * between the logo (50px), the name and the text.
	 */
	.pa-colaboraciones .pa-section-head + .pa-colaboraciones__grid {
		margin-block-start: calc(11 * var(--wp--preset--spacing--4)) !important;
	}

	/* The crop of the mobile Figma: the coast of the photo behind the first card. */
	.pa-colaboraciones > .wp-block-cover__image-background {
		object-position: 37% 35% !important; /* Over the focal point saved in the block. */
	}

	.pa-colaboraciones .pa-glass-card.pa-glass-card {
		border-radius: var(--wp--custom--radius--20);
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		min-height: var(--wp--custom--size--partner-card-mobile);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-colaboraciones .pa-glass-card > * {
		margin-block: 0 !important;
	}

	.pa-colaboraciones .pa-glass-card__logo img {
		height: var(--wp--preset--spacing--48);
	}

	/*
	 * Nuestra ciencia, Área profesional, Plataforma and Prescriptor (Mobile / 07–10): 40px above and
	 * below, 20 between the parts; the button of Área profesional at the whole width and 56px high;
	 * the services 40px under the text, as chips of 300 × 56.
	 */
	:is(.pa-nuestra-ciencia, .pa-area-profesional, .pa-plataforma, .pa-prescriptor).alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--40);
	}

	/* In a column, the bottom alignment of the desktop row would push the text to the right. */
	:is(.pa-nuestra-ciencia, .pa-area-profesional) .pa-cta-row {
		align-items: stretch;
	}

	/* The text keeps its own height: in a column, its 784px basis (the row of the desktop) would be a height. */
	:is(.pa-nuestra-ciencia, .pa-area-profesional) .pa-cta-row__text {
		flex: none;
	}

	.pa-area-profesional .pa-cta-row .wp-block-buttons,
	.pa-area-profesional .pa-cta-row .wp-block-buttons > .wp-block-button.wp-block-button,
	.pa-area-profesional .pa-cta-row .wp-block-buttons > .wp-block-button.wp-block-button > .wp-block-button__link {
		width: 100%;
	}

	/* 56px, over the 48 of the mobile buttons (button.css, a doubled class). */
	.pa-area-profesional .pa-cta-row .wp-block-buttons > .wp-block-button.wp-block-button > .wp-block-button__link {
		min-height: var(--wp--custom--size--control);
	}

	/* 52px under the button (Figma: Mobile / 08 / Área profesional). */
	.pa-area-profesional.alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--40) calc(13 * var(--wp--preset--spacing--4));
	}

	/* 44px under the button (Figma: Mobile / 07 / Nuestra ciencia). */
	.pa-nuestra-ciencia.alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--40) calc(11 * var(--wp--preset--spacing--4));
	}

	.pa-plataforma .pa-section-head + .pa-servicios__grid {
		margin-block-start: var(--wp--preset--spacing--40) !important;
	}

	.pa-plataforma .pa-servicio.pa-servicio {
		align-items: center;
		display: flex;
		min-height: var(--wp--custom--size--service-chip-mobile);
		padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24) !important; /* Over the padding saved in the editor. */
	}
}

/*
 * Consejo de Expertos header on phones, below 768px (Mobile / 03 / Cabecera editorial): the photo after
 * the introduction and before the long text, 398 × 440, and 20px between everything. The columns
 * lend their blocks to the row (display: contents) so they can be ordered. On tablets the full-width
 * photo would fill the screen: from 768 the two columns of the desktop stay, the text 20px apart.
 */
@media (max-width: 767px) {

	.wp-block-columns.pa-consejo-cabecera__columns {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-consejo-cabecera__columns > .wp-block-column {
		display: contents;
	}

	.pa-consejo-cabecera__columns > .wp-block-column > * {
		order: 1;
	}

	.pa-consejo-cabecera__columns > .wp-block-column > .pa-consejo-cabecera__image {
		order: 2;
	}

	.pa-consejo-cabecera__columns > .wp-block-column > .pa-measure:not(.is-style-lead) {
		order: 3;
	}

	.pa-consejo-cabecera__image img {
		aspect-ratio: 398 / 440;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {

	.pa-consejo-cabecera .wp-block-columns.pa-consejo-cabecera__columns {
		flex-wrap: nowrap !important;
	}

	.pa-consejo-cabecera .pa-consejo-cabecera__columns > .wp-block-column:first-child {
		display: flex;
		flex-basis: 57.5% !important;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-consejo-cabecera .pa-consejo-cabecera__columns > .wp-block-column:last-child {
		flex-basis: 40.5% !important;
	}
}

/*
 * Ciencia below 1024px (Figma: 8-Ciencia-M, 430px). 40px above and below every section and 20 between
 * the parts of the headings; the steps of Cómo nace un producto and the studies are rows of cards that
 * scroll sideways (with arrows when there is a mouse, assets/js/carousel.js). Breakpoints in numbers:
 * media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	:is(.pa-proceso-section, .pa-investigacion-propia, .pa-futuro, .pa-estudios, .pa-alianzas, .pa-guia).alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--40);
	}

	:is(.pa-proceso-section, .pa-futuro, .pa-estudios, .pa-alianzas, .pa-guia) :is(.pa-section-head, .pa-eyebrow-heading),
	.pa-futuro .pa-futuro__columns > .wp-block-column,
	.pa-guia .pa-guia__columns > .wp-block-column {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	:is(.pa-proceso-section, .pa-futuro, .pa-estudios, .pa-alianzas, .pa-guia) :is(.pa-section-head, .pa-eyebrow-heading) > *,
	.pa-futuro .pa-futuro__columns > .wp-block-column > *,
	.pa-guia .pa-guia__columns > .wp-block-column > * {
		margin-block: 0 !important;
	}

	.wp-block-columns:is(.pa-futuro__columns, .pa-guia__columns) {
		gap: var(--wp--preset--spacing--20);
	}

	/* The hero (Mobile / 01 / Ciencia / Hero a sangre): like the others, 383px high, the H1 at 26/32. */
	.wp-block-cover.pa-page-hero.pa-page-hero--short {
		align-items: stretch;
		min-height: var(--wp--custom--size--page-hero-mobile);
		padding-block: var(--wp--preset--spacing--24) !important; /* Over the padding saved in the editor. */
	}

	.pa-page-hero--short > .wp-block-cover__inner-container {
		display: flex;
		flex-direction: column;
	}

	.pa-page-hero--short .pa-page-hero__content {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
	}

	/*
	 * In the column of the hero, the auto margins of the layout would shrink a short text to its width
	 * and centre it (on tablets): at the whole width, on the margin of the page, as on every hero.
	 */
	.pa-page-hero > .wp-block-cover__inner-container > .pa-page-hero__content {
		width: 100%;
	}

	.pa-page-hero--short .pa-page-hero__content > * {
		margin-block: 0 !important;
	}

	.pa-page-hero--short .pa-page-hero__content > .is-style-eyebrow {
		margin-block-end: auto !important;
	}

	.pa-page-hero--short .pa-page-hero__title {
		font-size: var(--wp--custom--font-size--mobile-metric) !important;
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	/*
	 * Cómo nace un producto (Mobile / 02): the cards 20px under the heading, 300px wide and 12 apart;
	 * the photo with the same proportion (300 × 191), the text with 32px above and below, 16 at the
	 * sides and 20 between the number (26/32 light), the title and the description; a radius of 20.
	 */
	.pa-proceso-section .pa-proceso__grid.pa-proceso__grid,
	.pa-estudios .pa-estudios__grid.pa-estudios__grid {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--12);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-proceso__grid > *,
	.pa-estudios__grid > * {
		box-sizing: border-box;
		flex: 0 0 var(--wp--custom--size--blog-card);
		margin: 0 !important;
	}

	.pa-estudios__grid > * {
		flex-basis: var(--wp--custom--size--study-card-mobile);
	}

	.pa-proceso-section .pa-section-head + .pa-proceso__grid {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-proceso-section .pa-beneficio.has-background {
		border-radius: var(--wp--custom--radius--20);
	}

	.pa-proceso-section .pa-beneficio__body {
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-proceso-section .pa-beneficio__body > * {
		margin-block: 0 !important;
	}

	.pa-proceso-section .pa-beneficio__body > * + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-proceso-section .pa-number {
		font-size: var(--wp--custom--font-size--mobile-metric) !important;
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	.pa-investigacion-propia .pa-instituciones {
		gap: var(--wp--preset--spacing--24);
	}

	.pa-investigacion-propia .pa-instituciones__logo img {
		height: var(--wp--custom--size--institution-logo-mobile);
	}

	.pa-investigacion-propia__image img {
		border-radius: var(--wp--custom--radius--20);
	}

	/* Mirando adelante (Mobile / 06): the text 20px under the title, 24 between paragraphs, the button 20 under it. */
	.pa-futuro .pa-futuro__columns > .wp-block-column > p + p {
		margin-block-start: var(--wp--preset--spacing--4) !important; /* 20 + 4 = 24px. */
	}

	/* The Consejo band (Mobile / 05): 280px high, the title and the button centred, 20px apart. */
	.wp-block-cover.pa-consejo-band {
		min-height: var(--wp--custom--size--band-mobile);
		padding-block: var(--wp--preset--spacing--32) !important; /* Over the padding saved in the editor. */
	}

	.pa-consejo-band .pa-consejo-band__row {
		gap: var(--wp--preset--spacing--20);
	}

	/*
	 * Estudios clínicos (Mobile / 07): the cards 36px under the heading, 328px wide; 32px above, 16 at
	 * the sides and 20 below; 20 between the chip (14/20 in capitals, 38px high), the name and the description,
	 * and the product 30px under it, 192px high with a radius of 20.
	 */
	.pa-estudios .pa-section-head + .pa-estudios__grid {
		margin-block-start: calc(9 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-estudio.has-background {
		border-radius: var(--wp--custom--radius--20);
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) var(--wp--preset--spacing--20) !important; /* Over the padding saved in the editor. */
	}

	.pa-estudio > * {
		margin-block: 0 !important;
	}

	.pa-estudio .pa-chip {
		font-size: var(--wp--preset--font-size--sm) !important;
		line-height: var(--wp--custom--line-height--mobile-label);
		padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
		text-transform: uppercase;
	}

	.pa-estudio__product {
		padding-block-start: calc(2.5 * var(--wp--preset--spacing--4));
	}

	.pa-estudio__product img {
		border-radius: var(--wp--custom--radius--20);
		height: calc(6 * var(--wp--preset--spacing--32));
		object-fit: cover;
		width: 100%;
	}

	/*
	 * Partnerships (Mobile / 08): the cards 52px under the heading and 20 apart, as tall as their text;
	 * 32px above and below, 16 at the sides, 20 between the title and the text; a radius of 20.
	 */
	.pa-alianzas .pa-section-head + .pa-alianzas__grid {
		margin-block-start: calc(13 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-alianzas .pa-alianzas__grid {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-alianza.has-background {
		border-radius: var(--wp--custom--radius--20);
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-alianza > * {
		margin-block: 0 !important;
		min-height: 0 !important;
	}

	/*
	 * Cómo elegir un suplemento eficaz (Mobile / 09): the questions 40px under the introduction and 20
	 * apart, white cards with 16px around and a radius of 20; the question at 16/24 medium and the
	 * answer 8px under it. They open and close (inc/disclosure.php).
	 */
	.pa-guia .pa-guia__columns > .wp-block-column > .is-style-lead + * {
		margin-block-start: var(--wp--preset--spacing--20) !important; /* 20 + 20 = 40px. */
	}

	.pa-pregunta.has-background {
		border-radius: var(--wp--custom--radius--20);
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--8);
		padding: var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-pregunta > * {
		margin-block: 0 !important;
	}

	.pa-pregunta > h3 {
		font-size: var(--wp--preset--font-size--base) !important;
		line-height: var(--wp--custom--line-height--label);
	}

	/*
	 * The question as the button that opens it (assets/js/disclosure.js): the whole heading, at least
	 * 48px high, with the + or − (20px) 12px after the text.
	 */
	.pa-pregunta__toggle {
		align-items: flex-start;
		appearance: none;
		background: none;
		border: 0;
		color: inherit;
		cursor: pointer;
		display: flex;
		font: inherit;
		gap: var(--wp--preset--spacing--12);
		justify-content: space-between;
		letter-spacing: inherit;
		min-height: var(--wp--custom--size--control-mobile);
		padding: 0;
		text-align: start;
		width: 100%;
	}

	.pa-pregunta__toggle::after {
		content: "+";
		flex: none;
		font-size: var(--wp--custom--font-size--mobile-detail);
		line-height: var(--wp--custom--line-height--label);
	}

	.pa-pregunta__toggle[aria-expanded="true"]::after {
		content: "\2212";
	}

	.pa-pregunta__toggle:focus-visible {
		border-radius: var(--wp--custom--radius--8);
		outline: var(--wp--custom--border-width--2) solid currentcolor;
		outline-offset: var(--wp--preset--spacing--4);
	}
}

/*
 * Sobre nosotros below 1024px (Figma: 9-ProAge-M, 430px). Breakpoints in numbers: media queries
 * cannot read tokens.
 */
@media (max-width: 1023px) {

	:is(.pa-que-no-somos, .pa-certificacion, .pa-sostenibilidad-page, .pa-plataforma-band).alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--40);
	}

	:is(.pa-historia, .pa-manifiesto, .pa-que-no-somos, .pa-origen, .pa-sostenibilidad-page, .pa-por-que, .pa-plataforma-band) :is(.pa-eyebrow-heading, .pa-section-head, .pa-banda__content) {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	:is(.pa-historia, .pa-manifiesto, .pa-que-no-somos, .pa-origen, .pa-sostenibilidad-page, .pa-por-que, .pa-plataforma-band) :is(.pa-eyebrow-heading, .pa-section-head, .pa-banda__content) > * {
		margin-block: 0 !important;
	}

	/*
	 * Nuestra razón de existir and Manifiesto (Mobile / 04 and 05): the heading, the first paragraph
	 * (in the story) 20px under it, the photos as a row of 300 × 400 cards that scroll sideways, the
	 * text (24px between paragraphs), the highlight of the story at 18/24 and the trigger of the
	 * panel; 30px between those parts. The first column lends its blocks to the section (display:
	 * contents) so the photos of the second can sit among them.
	 */
	/* One line: wrapped, the line would be as wide as the row of photos and so would the text. */
	.wp-block-columns:is(.pa-historia__columns, .pa-manifiesto__columns) {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap !important;
		gap: 0;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) > .wp-block-column:first-child {
		display: contents;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) > .wp-block-column:first-child > * {
		margin-block: 0 !important;
		order: 3;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) > .wp-block-column:first-child > .pa-eyebrow-heading {
		order: 1;
	}

	.pa-historia__columns > .wp-block-column:first-child > .pa-eyebrow-heading + p {
		margin-block-start: var(--wp--preset--spacing--20) !important;
		order: 1;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) > .wp-block-column:first-child > p:not(.pa-drawer-trigger) + p:not(.pa-drawer-trigger) {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-historia .pa-historia__columns > .wp-block-column:first-child > .pa-eyebrow-heading + p + p:not(.pa-drawer-trigger),
	.pa-manifiesto .pa-manifiesto__columns > .wp-block-column:first-child > .pa-eyebrow-heading + p:not(.pa-drawer-trigger) {
		margin-block-start: calc(7.5 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-historia .pa-historia__columns > .wp-block-column:first-child > p:not(.pa-drawer-trigger):has(+ .pa-drawer-trigger) {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		font-weight: var(--wp--custom--font-weight--medium);
		line-height: var(--wp--custom--line-height--mobile-compact);
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) > .wp-block-column:first-child > .pa-drawer-trigger {
		margin-block-start: calc(7.5 * var(--wp--preset--spacing--4)) !important;
		order: 4;
	}

	/* The row of photos, to the edge of the screen; its arrows (with a mouse) under it. */
	:is(.pa-historia__columns, .pa-manifiesto__columns) > .wp-block-column + .wp-block-column {
		display: flex;
		flex-basis: auto !important;
		gap: var(--wp--preset--spacing--12);
		margin-block-start: calc(7.5 * var(--wp--preset--spacing--4));
		margin-inline-end: calc(-1 * var(--wp--custom--gutter));
		order: 2;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) > .pa-carousel-nav {
		order: 2;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) .pa-mosaico__row {
		display: contents;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) :is(.pa-mosaico__wide, .pa-mosaico__small, .pa-mosaico__half) {
		flex: 0 0 var(--wp--custom--size--blog-card);
		margin: 0 !important;
	}

	:is(.pa-historia__columns, .pa-manifiesto__columns) :is(.pa-mosaico__wide, .pa-mosaico__small, .pa-mosaico__half) img {
		aspect-ratio: 3 / 4;
		border-radius: var(--wp--custom--radius--20);
	}

	/*
	 * The story's photo (historia-formula.jpg, landscape) cut to the 3 : 4 card with the bottle in the
	 * middle and the cube under it.
	 */
	.pa-historia__columns .pa-mosaico__wide--historia img {
		object-position: 73% 50%;
	}

	/* The line between the two sections, 32px over the manifesto. */
	.pa-manifiesto.alignfull {
		--pa-section-padding-mobile: 0 var(--wp--preset--spacing--32);
	}

	.wp-block-columns.pa-manifiesto__columns {
		padding-block-start: var(--wp--preset--spacing--32);
	}

	/*
	 * Qué no somos (Mobile / 06): the principles 20px under the heading, as a row of 300 × 196 glass cards;
	 * 32px above and below, 16 at the sides, 20 between the number (26/32 light) and the text.
	 */
	.pa-que-no-somos .pa-principios__grid.pa-principios__grid {
		display: flex;
		gap: var(--wp--preset--spacing--12);
		margin-block-start: var(--wp--preset--spacing--20) !important;
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-principios__grid > .pa-glass-card {
		border-radius: var(--wp--custom--radius--20);
		box-sizing: border-box;
		display: flex;
		flex: 0 0 var(--wp--custom--size--blog-card);
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		margin: 0 !important;
		min-height: var(--wp--custom--size--principle-card-mobile);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-principios__grid > .pa-glass-card > * {
		margin-block: 0 !important;
	}

	.pa-principios__grid .pa-number {
		font-size: var(--wp--custom--font-size--mobile-metric) !important;
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	/*
	 * Nuestro origen (Mobile / 07): 20px between the eyebrow, the title and the text; the photo 40px
	 * under it, 16px in from the margins and from the bottom, 366 × 347 with a radius of 20.
	 */
	/* One column up to the tablet, as in the Figma (core sets two from 782px). */
	.wp-block-columns.pa-origen__columns {
		flex-direction: column;
		flex-wrap: nowrap !important;
		gap: 0;
	}

	.pa-origen__columns > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.pa-origen__columns > .wp-block-column > * {
		margin-block: 0 !important;
	}

	.pa-origen__columns > .wp-block-column:first-child {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-origen .pa-origen__image {
		margin: calc(14 * var(--wp--preset--spacing--4)) var(--wp--preset--spacing--16) var(--wp--preset--spacing--16) !important;
	}

	.pa-origen .pa-origen__image img {
		aspect-ratio: 366 / 347;
		border-radius: var(--wp--custom--radius--20);
	}

	/* On tablets the photo of the phone would fill the screen: a landscape one. */
	@media (min-width: 768px) {

		.pa-origen .pa-origen__image img {
			aspect-ratio: 16 / 9;
		}
	}

	/* Certificación (Mobile / 08): the eyebrow, the seal (117px), the title and the text, 20px apart. */
	.pa-certificacion .pa-certificacion__content,
	.pa-certificacion .pa-certificacion__row,
	.pa-certificacion .pa-certificacion__text {
		align-items: flex-start;
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-certificacion :is(.pa-certificacion__content, .pa-certificacion__row, .pa-certificacion__text) > * {
		flex-basis: auto;
		margin-block: 0 !important;
	}

	.pa-certificacion .pa-certificacion__logo img {
		height: calc(117 * var(--wp--custom--border-width--1));
	}

	/*
	 * Sostenibilidad (Mobile / 09): 24px between the paragraphs of the introduction; the materials 40px
	 * under it, as a row of 300px cards (the photo 300 × 251 with a radius of 20, 20px to the title
	 * and 16 to the text); Nuestro compromiso 60px under them, its cards 20px under the title and 16
	 * apart (cream, radius 30, 32px above and below and 16 at the sides; the icon of 64 and the title
	 * side by side, 16 apart, and the text 20 under them); the green highlight 20px under the cards.
	 */
	.pa-sostenibilidad-page .pa-section-head > p + p {
		margin-block-start: var(--wp--preset--spacing--4) !important; /* 20 + 4 = 24px. */
	}

	.pa-sostenibilidad-page .pa-sost__grid.pa-sost__grid {
		display: flex;
		gap: var(--wp--preset--spacing--12);
		margin-block-start: var(--wp--preset--spacing--40) !important;
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-sost__grid > .pa-sost-card {
		flex: 0 0 var(--wp--custom--size--blog-card);
		margin: 0 !important;
	}

	.pa-sost-card > * {
		margin-block: 0 !important;
	}

	.pa-sost-card > * + * {
		margin-block-start: var(--wp--preset--spacing--16) !important;
	}

	.pa-sost-card > .pa-sost-card__image + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-sost-card__image img {
		border-radius: var(--wp--custom--radius--20);
	}

	/* The heading after the row (its arrows, with a mouse, sit between them). */
	.pa-sostenibilidad-page .pa-sost__grid ~ .pa-section-head {
		margin-block-start: calc(16 * var(--wp--preset--spacing--4)) !important; /* 60px from the frame of the row, 4px taller than its cards. */
	}

	.pa-sostenibilidad-page .pa-section-head + .pa-compromisos__columns {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.wp-block-columns.pa-compromisos__columns,
	.pa-compromisos__columns > .wp-block-column {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
	}

	.pa-compromisos__columns > .wp-block-column > * {
		margin-block: 0 !important;
	}

	.pa-compromiso.has-background {
		align-items: center;
		border-radius: calc(7.5 * var(--wp--preset--spacing--4));
		column-gap: var(--wp--preset--spacing--16);
		flex-wrap: wrap !important;
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
		row-gap: var(--wp--preset--spacing--20);
	}

	.pa-compromiso__icon img {
		height: calc(2 * var(--wp--preset--spacing--32));
		width: calc(2 * var(--wp--preset--spacing--32));
	}

	.pa-compromiso__text {
		display: contents;
	}

	.pa-compromiso__text > * {
		margin: 0 !important;
	}

	.pa-compromiso__text > .wp-block-heading {
		flex: 1 1 0;
		font-size: var(--wp--custom--font-size--mobile-subtitle) !important;
		line-height: var(--wp--custom--line-height--mobile-compact) !important;
	}

	.pa-compromiso__text > .wp-block-heading ~ * {
		flex: 0 0 100%;
	}

	.pa-sostenibilidad-page .pa-compromisos__columns + .pa-forma {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-forma.has-background {
		border-radius: var(--wp--custom--radius--20);
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	/* In a column, the basis of the desktop row would be a height: the title took 408px. */
	.pa-forma > *,
	.pa-forma__text > * {
		flex: none;
		margin-block: 0 !important;
	}

	.pa-forma__text > * + * {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	/* Qué diferencia a ProAge (Mobile / 10): 16px between the eyebrow, the title and the text. */
	.page-template-page-sections .pa-por-que .pa-eyebrow-heading,
	.page-template-page-sections .pa-por-que .pa-por-que__columns > .wp-block-column:first-child {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
	}

	.page-template-page-sections .pa-por-que .pa-por-que__columns > .wp-block-column:first-child > * {
		margin-block: 0 !important;
	}

	/* The title as Mobile / Display / Subheading: 24/30 regular, -0.6. */
	.page-template-page-sections .pa-por-que .pa-eyebrow-heading > h2 {
		font-weight: var(--wp--custom--font-weight--regular);
		letter-spacing: var(--wp--custom--letter-spacing--tighter);
	}

	/*
	 * The table of this page (Mobile / Tabla): 40px under the text, three equal columns and the frame
	 * of ProAge (radius 24) 8px in from its column, from the top of the table to 12px under it. The Home keeps
	 * its own (sections.css).
	 */
	.page-template-page-sections .pa-por-que .pa-por-que__columns.pa-por-que__columns {
		row-gap: var(--wp--preset--spacing--40);
	}

	.page-template-page-sections .pa-por-que .pa-comparison {
		--pa-comparison-first: 33.3333%;
		--pa-comparison-proage: 33.3333%;
		margin-block-end: calc(3 * var(--wp--preset--spacing--4));
	}

	.page-template-page-sections .pa-por-que .pa-comparison::after {
		border-radius: var(--wp--custom--radius--24);
		bottom: calc(-3 * var(--wp--preset--spacing--4));
		left: calc(var(--pa-comparison-first) + var(--wp--preset--spacing--8));
		top: 0;
		width: calc(var(--pa-comparison-proage) - 2 * var(--wp--preset--spacing--8));
	}
}

/*
 * Tratamientos below 1024px (Figma: 10-Tratamientos-M, 430px). Breakpoints in numbers: media queries
 * cannot read tokens.
 *
 * The box of ProAge · Lifestyle for longevity: a brown border at 20%, 24px above and below and 20 at
 * the sides, 20 between the eyebrow (12/16), the title (24/30), the text and the link (14/20,
 * underlined); the heading of the areas 64px under it, 20 between its parts, and the areas 36px
 * under it.
 */
@media (max-width: 1023px) {

	.pa-areas-salud .pa-intro-box.pa-intro-box {
		border-color: color-mix(in srgb, var(--wp--preset--color--brand-brown) 20%, transparent);
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--20) !important; /* Over the padding saved in the editor. */
	}

	.pa-areas-salud .pa-intro-box > * {
		margin-block: 0 !important;
	}

	.pa-intro-box__eyebrow {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
		opacity: 1;
	}

	.pa-intro-box__title.wp-block-heading {
		font-size: var(--wp--custom--font-size--mobile-heading);
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-intro-box__link {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	.pa-intro-box__link a {
		text-decoration: underline;
	}

	.pa-areas-salud .pa-intro-box ~ .pa-section-head {
		margin-block-start: calc(2 * var(--wp--preset--spacing--32)) !important; /* 64px; spacing--64 is fluid. */
	}

	.pa-areas-salud .pa-section-head,
	.pa-areas-salud .pa-eyebrow-heading {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-areas-salud :is(.pa-section-head, .pa-eyebrow-heading) > * {
		margin-block: 0 !important;
	}

	.pa-areas-salud .pa-section-head + .pa-areas__grid {
		margin-block-start: calc(9 * var(--wp--preset--spacing--4)) !important;
	}
}

/*
 * The nine areas on phones, below 768px (Areas de salud / grid 2 columnas): two columns 12px apart and
 * 48px between rows; the photo 193 × 240 with a radius of 16, the number on its own line over the
 * title (both 18/24, 6px apart), 16px under the photo and 8 between the title, the needs (12/16)
 * and the link (14/20). The cards keep sharing the rows of the grid (subgrid). On tablets the
 * desktop grid of three columns stays.
 */
@media (max-width: 767px) {

	.pa-areas__grid.pa-areas__grid.is-layout-grid {
		column-gap: var(--wp--preset--spacing--12);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-block-end: calc(-10 * var(--wp--preset--spacing--4));
		row-gap: var(--wp--preset--spacing--8);
	}

	.pa-areas__grid > .pa-salud-card {
		margin-block-end: calc(10 * var(--wp--preset--spacing--4)); /* 8 + 40 = 48px between rows. */
		min-width: 0;
	}

	.pa-areas__grid > .pa-salud-card > .pa-salud-card__image {
		margin-block-end: var(--wp--preset--spacing--8); /* 8 + 8 = 16px under the photo. */
	}

	.pa-salud-card__image img {
		aspect-ratio: 193 / 240;
		border-radius: var(--wp--custom--radius--16);
	}

	.pa-salud-card .wp-block-heading {
		font-size: var(--wp--custom--font-size--mobile-subtitle) !important;
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-salud-card__number {
		display: block;
		margin-block-end: calc(1.5 * var(--wp--preset--spacing--4));
	}

	.pa-salud-card__dot {
		display: none;
	}

	.pa-salud-card__needs {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
		opacity: 1;
	}

	/* A block, so the line of the button is the 20px of the link (inline it took 24). */
	.pa-salud-card .wp-block-button.is-style-text-link > .wp-block-button__link {
		display: block;
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
		min-height: 0;
		padding: 0;
		text-align: start;
	}
}

/*
 * Magazine below 1024px (Figma: 12-Magazine-M, 430px). The cards of Últimos artículos are not touched
 * here: Martí is changing the post cards of the whole site. Breakpoints in numbers: media queries
 * cannot read tokens.
 */
@media (max-width: 1023px) {

	/*
	 * Cabecera (Mobile / 03): 20px between the eyebrow, the title (24/30), the text and the topics; the
	 * topics 48px high, 12 apart, the main one on its own row and the other two sharing the next one,
	 * at 13/18. The featured post follows 32px under them, at the whole width of the screen.
	 */
	.pa-magazine-header.alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--32) 0;
	}

	.pa-magazine-header .pa-section-head,
	.pa-magazine-header .pa-eyebrow-heading {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-magazine-header :is(.pa-section-head, .pa-eyebrow-heading) > * {
		margin-block: 0 !important;
	}

	.pa-magazine-header .pa-page-title {
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-magazine-header .pa-magazine-header__categories {
		gap: var(--wp--preset--spacing--12);
	}

	.pa-magazine-header__categories > li {
		display: flex;
		flex: 1 1 0;
		min-width: 0;
	}

	.pa-magazine-header__categories > li:first-child {
		flex-basis: 100%;
	}

	.pa-magazine-header .pa-magazine-header__categories a {
		box-sizing: border-box;
		font-size: var(--wp--preset--font-size--xs-plus);
		justify-content: center;
		line-height: var(--wp--custom--line-height--mobile-small);
		min-height: var(--wp--custom--size--control-mobile);
		width: 100%;
	}

	/*
	 * Destacado (Mobile / 04): cream from edge to edge, 32px above and below and 16 at the sides, 20
	 * between the eyebrow, the title (24/30), the text and the picture, square.
	 */
	.pa-magazine-header .pa-section-head + .pa-featured {
		margin-block-start: var(--wp--preset--spacing--32) !important;
	}

	.pa-magazine-header .pa-featured {
		margin-inline: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none !important;
	}

	.pa-featured .pa-featured__card.pa-featured__card {
		border-radius: 0;
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--32) var(--wp--custom--gutter) !important; /* Over the padding saved in the editor. */
	}

	.pa-featured__card > *,
	.pa-featured__text > * {
		margin-block: 0 !important;
	}

	.pa-featured .pa-featured__text {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-featured .pa-featured__title {
		font-size: var(--wp--custom--font-size--mobile-heading);
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-featured .pa-featured__eyebrow {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-featured .pa-featured__image img {
		aspect-ratio: 1 !important; /* Over the proportion saved in the block. */
		border-radius: 0;
	}

	/*
	 * Áreas de conocimiento (Mobile / 05): the twelve areas as rows, 40px under the title and 8 apart:
	 * cream, 80px high with a radius of 20 and 16px at the sides, the icon in a 64 × 56 box and the name 24px after it, at
	 * 16/24 in brown.
	 */
	.pa-magazine-areas .pa-eyebrow-heading {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-magazine-areas .pa-eyebrow-heading > * {
		margin-block: 0 !important;
	}

	.pa-magazine-areas .pa-eyebrow-heading + .pa-magazine-areas__grid {
		margin-block-start: var(--wp--preset--spacing--40) !important;
	}

	.pa-magazine-areas .pa-magazine-areas__grid.is-layout-grid {
		gap: var(--wp--preset--spacing--8);
		grid-template-columns: minmax(0, 1fr);
	}

	.pa-magazine-areas .pa-area.pa-area--compact {
		align-items: center;
		border-radius: var(--wp--custom--radius--20);
		flex-direction: row;
		gap: var(--wp--preset--spacing--24);
		justify-content: flex-start;
		min-height: calc(20 * var(--wp--preset--spacing--4));
		padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor; with the 56px icon box, 80px rows. */
		text-align: start;
		width: auto;
	}

	.pa-magazine-areas .pa-area > * {
		margin: 0 !important;
	}

	.pa-magazine-areas .pa-area__icon {
		align-items: center;
		display: flex;
		flex: 0 0 auto;
		height: calc(14 * var(--wp--preset--spacing--4));
		justify-content: center;
		width: calc(2 * var(--wp--preset--spacing--32));
	}

	.pa-magazine-areas .pa-area__icon img {
		max-height: calc(14 * var(--wp--preset--spacing--4));
	}

	.pa-magazine-areas .pa-area__label {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	.pa-magazine-areas .pa-area:not(:hover, :focus-within) .pa-area__label a {
		color: var(--wp--preset--color--brand-brown);
	}
}

/* On tablets the rows of areas go two by two, and the square picture of the featured post would fill the screen: 16 : 9. */
@media (min-width: 768px) and (max-width: 1023px) {

	.pa-featured .pa-featured__image img {
		aspect-ratio: 16 / 9 !important; /* Over the square of the phone. */
	}

	.pa-magazine-areas .pa-magazine-areas__grid.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * Blog post below 1024px (Figma: 13-Post-M, 430px). The related posts are not touched here: Martí is
 * changing the post cards of the whole site. «Contenido clave» and the product box are still to come
 * (they need data for each post, docs/decisions.md). Breakpoints in numbers: media queries cannot
 * read tokens.
 *
 * Header (Mobile / Post / 03): 32px above and between the breadcrumb (13/18), the category and the
 * date (a 32px chip and 12/16, 12px apart), the title (26/32) and the photo (398 × 380, radius 20);
 * the article 32px under the photo, 24px in from the margins (Figma: 350px of text), with 24px
 * between blocks, the headings at 24/30; «Temas» at 12/16 and its pills at 13/18, the whole width.
 */
@media (max-width: 1023px) {

	.pa-single.pa-single {
		padding-block-start: var(--wp--preset--spacing--32) !important; /* Over the padding saved in the template. */
	}

	.pa-single > * + * {
		margin-block-start: var(--wp--preset--spacing--32) !important;
	}

	.pa-single__header.pa-single__header {
		gap: var(--wp--preset--spacing--32);
	}

	.pa-single__header .pa-breadcrumb,
	.pa-single__header .pa-breadcrumb .woocommerce-breadcrumb {
		font-size: var(--wp--preset--font-size--xs-plus) !important;
		line-height: var(--wp--custom--line-height--mobile-small);
	}

	.pa-single__meta.pa-single__meta {
		gap: var(--wp--preset--spacing--12);
	}

	.pa-chip-list.pa-single__category a {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
		min-height: calc(2 * var(--wp--preset--spacing--16));
		padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
	}

	.pa-single__date {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-single .pa-single__title {
		font-size: var(--wp--custom--font-size--mobile-metric) !important;
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	.pa-single__image img {
		aspect-ratio: 398 / 380 !important; /* Over the proportion saved in the block. */
		border-radius: var(--wp--custom--radius--20);
	}

	.wp-block-columns.pa-single__body {
		gap: calc(15 * var(--wp--preset--spacing--4)); /* 60px from the article to the side column. */
	}

	.pa-single__body > .wp-block-column {
		padding-inline: var(--wp--preset--spacing--24);
	}

	.pa-single__content > * + * {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-single__content :is(h2, h3) {
		font-size: var(--wp--custom--font-size--mobile-heading) !important;
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-single__content :is(h2, h3) + * {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-single__content img {
		border-radius: var(--wp--custom--radius--20);
	}

	.pa-post-aside__label.wp-block-heading {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-post-aside__topics a {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
		padding: calc(2.5 * var(--wp--preset--spacing--4)) var(--wp--preset--spacing--16);
	}

	/*
	 * Invitación a seguir leyendo (Mobile / Post / 06): brown at 5 %, 32px above and below, the title at
	 * 24/30 and the button 32px under it, the whole width and 52px high.
	 */
	.pa-related__invitation.pa-related__invitation {
		padding-block: var(--wp--preset--spacing--32) !important; /* Over the padding saved in the template. */
	}

	.pa-related__invitation > .wp-block-group {
		align-items: stretch;
		flex-direction: column;
		gap: var(--wp--preset--spacing--32);
	}

	.pa-related__invitation > .wp-block-group > * {
		margin: 0 !important;
	}

	.pa-related__invitation-title.wp-block-heading {
		font-size: var(--wp--custom--font-size--mobile-heading);
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	/* Doubled class: over the buttons that fit their text on phones (button.css). */
	.pa-related__invitation .wp-block-buttons > .wp-block-button.wp-block-button {
		flex: 1 1 auto;
		width: 100%;
	}

	.pa-related__invitation .wp-block-buttons > .wp-block-button.wp-block-button > .wp-block-button__link {
		min-height: calc(13 * var(--wp--preset--spacing--4));
		padding-inline-start: var(--wp--preset--spacing--24);
		width: 100%;
	}
}

/* On tablets the photo of the post would fill the screen: 16 : 9. */
@media (min-width: 768px) and (max-width: 1023px) {

	.pa-single__image img {
		aspect-ratio: 16 / 9 !important; /* Over the proportion of the phone. */
	}
}

/*
 * Área Profesionales below 1024px (Figma: 14-Área Profesionales-M, 430px). The account forms
 * (WooCommerce) are Martí's; the form of the new prescribers (Contact Form 7) is not shown locally.
 * Breakpoints in numbers: media queries cannot read tokens.
 *
 * Cabecera: the title at 24/30. La plataforma ProAge (Mobile / 04): 40px above and below, 24 between
 * the eyebrow, the title (24/30, -0.6), the paragraphs and the four functions; each function cream,
 * at least 88px high with 16px around and a radius of 32, its name at 14/20 semibold; 24px between
 * the two of a row and 16 between rows, as in the Figma; the photo 44px under them (398 × 477,
 * radius 40). Nuevos prescriptores on this page: 32px above and below and 24 between its parts.
 */
@media (max-width: 1023px) {

	.pa-profesionales-cabecera .pa-page-title {
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-plataforma-profesional.alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--40);
	}

	.wp-block-columns.pa-plataforma-profesional__columns {
		flex-direction: column;
		flex-wrap: nowrap !important;
		gap: calc(11 * var(--wp--preset--spacing--4));
	}

	.pa-plataforma-profesional__columns > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.pa-plataforma-profesional__columns > .wp-block-column:first-child > .wp-block-group > * {
		margin-block: 0 !important;
	}

	.pa-plataforma-profesional__columns > .wp-block-column:first-child > .wp-block-group > * + * {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-plataforma-profesional h2 {
		letter-spacing: var(--wp--custom--letter-spacing--tighter);
	}

	.pa-plataforma-profesional .pa-servicios__grid.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--wp--preset--spacing--24);
	}

	.pa-plataforma-profesional__columns > .wp-block-column:first-child > .pa-servicios__grid {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-plataforma-profesional .pa-servicios__grid.pa-servicios__grid > .pa-servicio {
		margin: 0 !important;
	}

	/* 16px between the rows of two of the Figma: 24 - 8. */
	.pa-plataforma-profesional .pa-servicios__grid.pa-servicios__grid > .pa-servicio.pa-servicio:nth-child(2n + 3) {
		margin-block-start: calc(-1 * var(--wp--preset--spacing--8)) !important;
	}

	.pa-plataforma-profesional .pa-servicio.has-background {
		border-radius: var(--wp--custom--radius--32);
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: calc(22 * var(--wp--preset--spacing--4));
		padding: var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-plataforma-profesional .pa-servicio__label {
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	.pa-plataforma-profesional__image img {
		aspect-ratio: 398 / 477;
	}

	/* On tablets that photo would fill the screen: a landscape one. */
	@media (min-width: 768px) {

		.pa-plataforma-profesional__image img {
			aspect-ratio: 16 / 9;
		}
	}

	.pa-plataforma-profesional ~ .pa-prescriptor.alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--32);
	}

	.pa-plataforma-profesional ~ .pa-prescriptor .pa-eyebrow-heading,
	.pa-plataforma-profesional ~ .pa-prescriptor .pa-prescriptor__columns > .wp-block-column:first-child {
		gap: var(--wp--preset--spacing--24);
	}
}

/*
 * Test SSC below 1024px (Figma: 15-Test SSC-M, 430px). The contact section waits for its form.
 * Breakpoints in numbers: media queries cannot read tokens.
 *
 * Hero (Mobile / Test SSC / 01): 40px above and below, 24 between the eyebrow, the title (24/30,
 * -0.6), the texts and the photo (398 × 474, radius 40), and the button 36px under the photo, the
 * whole width and 56px high. The columns lend their blocks to the section (display: contents) to
 * put the photo after the text.
 */
@media (max-width: 1023px) {

	.pa-test-hero.alignfull,
	.pa-sobre-ssc.alignfull,
	.pa-como-funciona.alignfull,
	.pa-mas-ssc.alignfull {
		--pa-section-padding-mobile: var(--wp--preset--spacing--40);
	}

	.wp-block-columns:is(.pa-test-hero__columns, .pa-sobre-ssc__columns, .pa-como-funciona__columns, .pa-mas-ssc__columns) {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap !important;
		gap: var(--wp--preset--spacing--24);
	}

	:is(.pa-test-hero__columns, .pa-sobre-ssc__columns, .pa-como-funciona__columns) > .wp-block-column {
		display: contents;
	}

	.pa-mas-ssc__columns > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	:is(.pa-test-hero__columns, .pa-sobre-ssc__columns, .pa-como-funciona__columns, .pa-mas-ssc__columns) > .wp-block-column > * {
		margin: 0 !important;
		order: 1;
	}

	.pa-test-hero .pa-page-hero__title,
	:is(.pa-sobre-ssc, .pa-como-funciona, .pa-mas-ssc) h2 {
		letter-spacing: var(--wp--custom--letter-spacing--tighter);
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-test-hero .pa-insignia__intro > * + * {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-test-hero__columns > .wp-block-column > .pa-formula-hero__image {
		order: 2;
	}

	/* Over the 400px of the Fórmula hero (same blocks). */
	.pa-test-hero__columns > .wp-block-column > .pa-formula-hero__image img {
		aspect-ratio: 398 / 474;
		border-radius: var(--wp--custom--radius--40);
		height: auto;
	}

	.pa-test-hero__columns > .wp-block-column > .wp-block-buttons {
		margin-block-start: var(--wp--preset--spacing--12) !important; /* 24 + 12 = 36px under the photo. */
		order: 3;
	}

	/* Doubled class: over the buttons that fit their text on phones (button.css). */
	:is(.pa-test-hero, .pa-mas-ssc) .wp-block-buttons {
		width: 100%;
	}

	:is(.pa-test-hero, .pa-mas-ssc) .wp-block-buttons > .wp-block-button.wp-block-button {
		flex: 1 1 auto;
		width: 100%;
	}

	:is(.pa-test-hero, .pa-mas-ssc) .wp-block-buttons > .wp-block-button.wp-block-button > .wp-block-button__link {
		min-height: var(--wp--custom--size--control);
		padding-inline-start: var(--wp--preset--spacing--24);
		width: 100%;
	}

	/*
	 * Sobre el SSC (Mobile / Test SSC / 04): the eyebrow, the title, the wheel (398px) and, right under it,
	 * the illustration (91px wide), then the text 24px under it.
	 */
	.pa-sobre-ssc__columns > .wp-block-column > .pa-sobre-ssc__rueda {
		order: 2;
	}

	.pa-sobre-ssc__columns > .wp-block-column > .pa-sobre-ssc__ilustracion {
		margin-block-start: calc(-1 * var(--wp--preset--spacing--24)) !important; /* Right under the wheel. */
		order: 3;
		padding: 0;
	}

	.pa-sobre-ssc__columns > .wp-block-column > .pa-sobre-ssc__ilustracion img {
		height: auto;
		width: calc(91 * var(--wp--custom--border-width--1));
	}

	.pa-sobre-ssc__columns > .wp-block-column > p:not(.is-style-eyebrow) {
		order: 4;
	}

	/*
	 * Cómo funciona el test (Mobile / Test SSC / 05): the heading (24px between its parts), the photo
	 * 40px under it (398 × 478, radius 40) and the two notes 40px under the photo, 24 apart, each one
	 * with its title (18/24, -0.2) 16px over the text.
	 */
	.pa-como-funciona__columns > .wp-block-column > .wp-block-group:first-child > * + * {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-como-funciona__columns > .wp-block-column > .pa-como-funciona__image {
		margin-block-start: var(--wp--preset--spacing--16) !important; /* 24 + 16 = 40px. */
		order: 2;
	}

	.pa-como-funciona__columns > .wp-block-column > .pa-como-funciona__image img {
		aspect-ratio: 398 / 478;
		border-radius: var(--wp--custom--radius--40);
	}

	.pa-como-funciona__columns > .wp-block-column > .wp-block-group:not(:first-child) {
		margin-block-start: var(--wp--preset--spacing--16) !important; /* 24 + 16 = 40px under the photo. */
		order: 3;
	}

	.pa-como-funciona__columns > .wp-block-column > .wp-block-group:not(:first-child) > .wp-block-group > * {
		margin-block: 0 !important;
	}

	.pa-como-funciona__columns > .wp-block-column > .wp-block-group:not(:first-child) > .wp-block-group + .wp-block-group {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	.pa-como-funciona__columns h3 {
		letter-spacing: var(--wp--custom--letter-spacing--snug);
	}

	.pa-como-funciona__columns > .wp-block-column > .wp-block-group:not(:first-child) > .wp-block-group > h3 + * {
		margin-block-start: var(--wp--preset--spacing--16) !important;
	}

	/* Más sobre el SSC (Mobile / Test SSC / 06): the text and the button 24px apart. */
	.pa-mas-ssc__columns > .wp-block-column > * + * {
		margin-block-start: var(--wp--preset--spacing--24) !important;
	}

	/* The line between Más sobre el SSC and the contact section, without space around it. */
	.pa-filete.alignfull {
		--pa-section-padding-mobile: 0;
	}
}

/*
 * On tablets these portraits would fill the screen; cut to a landscape one they lose half their
 * height (and the heads): they keep their proportion, 480px wide at most.
 */
@media (min-width: 768px) and (max-width: 1023px) {

	.pa-test-hero__columns > .wp-block-column > .pa-formula-hero__image,
	.pa-como-funciona__columns > .wp-block-column > .pa-como-funciona__image {
		max-width: var(--wp--custom--size--portrait-photo-tablet);
	}
}

/*
 * Ciencia between the phone and the desktop Figma. The page has four steps: phones (below 768px, the
 * mobile Figma), tablets (768–1023), small desktops (1024–1365, where the columns of the 1920px
 * Figma leave the headings in three or four lines) and the desktop (from 1366, as in the Figma). Breakpoints in numbers: media queries cannot read tokens.
 *
 * Investigación propia on phones (the mobile Figma): one column; the eyebrow, the logos, the title and
 * the text, then the whole photo with its own proportion (landscape, so FINBA and ISPA both show) and,
 * 44px under it, Innovación permanente; 20px between the rest.
 */
@media (max-width: 767px) {

	.pa-investigacion-propia__body {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.pa-investigacion-propia__body > * {
		margin-block: 0 !important;
		order: 1;
	}

	.pa-investigacion-propia__body > .pa-investigacion-propia__image {
		float: none;
		margin: 0 !important;
		order: 2;
		width: 100%;
	}

	.pa-investigacion-propia__body > h3,
	.pa-investigacion-propia__body > h3 ~ * {
		order: 3;
	}

	.pa-investigacion-propia__body > h3 {
		margin-block-start: var(--wp--preset--spacing--24) !important; /* 20 + 24 = 44px under the photo. */
	}

	.pa-investigacion-propia__image img {
		aspect-ratio: 1840 / 1384;
	}
}

/*
 * Mirando adelante, the guide (Ciencia) and Nuevos prescriptores (Consejo, Área Profesionales): one
 * column up to the tablet, as in the Figma (core sets two from 782px).
 */
@media (max-width: 1023px) {

	.wp-block-columns:is(.pa-futuro__columns, .pa-guia__columns, .pa-prescriptor__columns) {
		flex-direction: column;
	}

	:is(.pa-futuro__columns, .pa-guia__columns, .pa-prescriptor__columns) > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

/*
 * Small desktops: the headings of Mirando adelante, the guide and Nuevos prescriptores get 38% instead of 32%, so they
 * break in fewer lines. Cómo nace un producto keeps the 2 + 2 of every grid of four (sections.css):
 * four columns would leave the descriptions at about 20 characters a line.
 */
@media (min-width: 1024px) and (max-width: 1365px) {

	:is(.pa-futuro__columns, .pa-guia__columns, .pa-prescriptor__columns) > .wp-block-column:first-child {
		flex-basis: 38% !important;
	}

	:is(.pa-futuro__columns, .pa-guia__columns, .pa-prescriptor__columns) > .wp-block-column:last-child {
		flex-basis: 58% !important;
	}
}

@media print {

	html.pa-motion .pa-concepto__list:not(.is-revealed) .pa-concepto__item::before,
	html.pa-motion .pa-concepto__list:not(.is-revealed) .pa-concepto__item:not(:last-child)::after,
	html.pa-motion .pa-familia:not(.is-revealed)::before,
	html.pa-motion :is(.pa-familias__wheel, .pa-marcadores__wheel):not(.is-revealed) img {
		opacity: 1;
		transform: none;
	}
}

/*
 * 404 (Figma: 17-404-D / 03 / 404 / Senescencia): the illustration and the text side by side, 720 : 800 as in the Figma.
 * The text never gets narrower than 480px: the illustration gives way first. Below 1280px they stack (breakpoint exception):
 * side by side, the text would be under 600px, with the title in three lines and the notebook rows broken.
 */
.pa-404__art {
	aspect-ratio: 720 / 640;
	container-type: inline-size;
	flex: 9 1 0;
	max-width: var(--wp--custom--size--error-art);
	min-width: 0;
	position: relative;
}

.pa-404__text {
	flex: 10 1 0;
	min-width: min(var(--wp--custom--size--error-text-min), 100%);
}

/*
 * Laptops (1280–1599px), side by side: with the padding of the Figma (120 / 96) the notebook ends below the fold, and
 * the drawing, which only fills its box from 36 % to 79 % of the height, sits lower than the text. Less padding, and the
 * empty band of the box is cut so the drawing is centred on the text. The box is 9/19 of the row minus the gap.
 */
/* The padding is an inline style of the block (120 / 96, the Figma at 1920): only !important can change it by width. */
@media (max-width: 1599px) {

	main.pa-404 {
		padding-block: var(--wp--preset--spacing--80) !important;
	}
}

@media (min-width: 1280px) and (max-width: 1599px) {

	.pa-404__content > .pa-404__art {
		margin-block: calc((100% - var(--wp--preset--spacing--80)) * 9 / 19 * -0.28) calc((100% - var(--wp--preset--spacing--80)) * 9 / 19 * -0.14);
		pointer-events: none;
	}
}

@media (max-width: 1279px) {

	/* Less space between the drawing and the text than side by side, so the buttons stay in view. */
	.pa-404 .pa-404__content {
		align-items: stretch;
		flex-direction: column;
		gap: var(--wp--preset--spacing--48);
	}

	.pa-404__art,
	.pa-404__text {
		flex: none;
	}

	/* The text keeps the width of the Figma (800px) and is centred under the drawing, aligned to the left inside. */
	.pa-404__text {
		align-self: center;
		max-width: var(--wp--custom--size--error-text);
		width: 100%;
	}

	/*
	 * Centred on top, at most 480px wide, and without the empty band of the box: the drawing only fills it from 36 % to
	 * 79 % of the height (the box is 8/9 of its width high). Margins in % refer to the row, so they use the width of the box.
	 * The parent is in the selector to win over the margin reset of the flex layout (.is-layout-flex > :is(*, div)).
	 */
	.pa-404__content > .pa-404__art {
		align-self: center;
		pointer-events: none; /* The empty top of the box rises over the header: it must not catch its clicks. */
		margin-block: calc(min(var(--wp--custom--size--error-art-stacked), 100%) * -0.3) calc(min(var(--wp--custom--size--error-art-stacked), 100%) * -0.17);
		max-width: var(--wp--custom--size--error-art-stacked);
		width: 100%;
	}
}

/*
 * The 404 drawing: two «4» in the font and the open capsule inside the ring as the «0».
 * Positions are the Figma ones as a share of the 720 × 640 box, so the drawing scales as a whole;
 * the digits use container units for the same reason (320px on 720px).
 */
.pa-404__art > * {
	margin: 0;
	position: absolute;
}

.pa-404__digit {
	color: var(--wp--preset--color--text-default);
	font-size: 44.4444cqi;
	font-weight: var(--wp--custom--font-weight--light);
	line-height: normal;
	top: 23.4375%;
}

.pa-404__digit--left {
	left: 8.3333%;
}

.pa-404__digit--right {
	left: 66.6667%;
}

/* The photo has a light background: multiply blends it with the section and the radial mask fades its edges. */
.pa-404__capsule {
	height: 42.4286%;
	left: 26.6417%;
	mask-image: radial-gradient(closest-side, #000 60%, transparent);
	mix-blend-mode: multiply;
	object-fit: cover;
	top: 36.7453%;
	width: 49.2719%;
}

.pa-404__ring {
	height: 40.6375%;
	left: 37.4389%;
	top: 36.3688%;
	width: 27.6779%;
}

/* Title and lead of the Figma (50px / 1.12 and 20px / 1.55 at 80 %): they do not match any text style of the theme. */
.pa-404__title {
	font-size: var(--wp--custom--font-size--error-title);
	line-height: var(--wp--custom--line-height--display);
}

.pa-404__title em {
	color: var(--wp--preset--color--accent-moss);
}

.pa-404__lead {
	font-size: var(--wp--custom--font-size--error-lead);
	line-height: var(--wp--custom--line-height--relaxed);
	opacity: var(--wp--custom--opacity--secondary);
}

/*
 * Buttons of the Figma: as wide as the label (centred), 16px Medium, 16px × 28px of padding and the arrow next to the text.
 * Smaller than Button / Primary and Outline, so the minimum widths and the fixed height of button.css do not apply.
 */
.pa-404 .pa-404__actions,
.pa-404 .pa-404__actions > .wp-block-button {
	min-width: 0;
}

.pa-404 .pa-404__actions .wp-block-button__link {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	justify-content: center;
	line-height: normal;
	min-height: 0;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--28);
}

/* The primary one has no border: a transparent one keeps both buttons at the same height. */
.pa-404 .pa-404__actions .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	border: var(--wp--custom--border-width--1) solid transparent;
}

/* The link is inline-block (core), so the space before the arrow is a margin and not a flex gap. */
.pa-404 .pa-404__actions .has-icon-arrow > .wp-block-button__link::after {
	margin-inline-start: var(--wp--preset--spacing--4);
	position: static;
}

/*
 * Lab notebook: rows of label and value, separated by a dashed line. The notebook is a flow group, not a vertical
 * flex one: as a flex column, Firefox added 24px to the height of every row.
 */
.pa-404__notebook {
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--16);
	width: 100%;
}

/* Line height «normal», as in the Figma: the 12px labels are 15px high. */
.pa-404__notebook-title,
.pa-404__label {
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	line-height: normal;
	text-transform: uppercase;
}

.pa-404__notebook-title {
	font-weight: var(--wp--custom--font-weight--medium);
}

.pa-404__row + .pa-404__row {
	border-top: var(--wp--custom--border-width--1) dashed var(--wp--preset--color--border-default);
}

.pa-404__label {
	flex: 0 0 var(--wp--custom--size--notebook-label);
	font-weight: var(--wp--custom--font-weight--semibold);
	letter-spacing: var(--wp--custom--letter-spacing--label);
}

.pa-404__value {
	flex: 1 1 0;
	line-height: var(--wp--custom--line-height--comfortable);
}

.pa-404__value:has(> s) {
	opacity: var(--wp--custom--opacity--struck);
}

/* On phones the label goes above its value, close to it. */
@media (max-width: 640px) {

	.pa-404__row {
		flex-wrap: wrap;
		row-gap: var(--wp--preset--spacing--4);
	}

	.pa-404__label {
		flex-basis: 100%;
	}
}

/*
 * Desktop spacing of the full-site review against the Figma (2026-11-12, measured at 1920). Over the
 * padding saved in each section of the editor, hence !important. Breakpoint in numbers: media
 * queries cannot read tokens.
 */
@media (min-width: 1024px) {

	/* Healthspan Peakspan / 04 / Peakspan: 150 over the heading and 152 under the cards. */
	.pa-etapas.alignfull {
		padding-block: calc(var(--wp--preset--spacing--160) - 2.5 * var(--wp--preset--spacing--4)) calc(var(--wp--preset--spacing--160) - 2 * var(--wp--preset--spacing--4)) !important;
	}

	/* Healthspan Peakspan / 03: the wheel at 780px, centred in its column. */
	.pa-familias__wheel img {
		display: block;
		margin-inline: auto;
		max-width: min(100%, var(--wp--custom--size--wheel));
	}

	/* Consejo de Expertos / 05 / Expertos: 30 over the first row and 120 under the last one. */
	.pa-expertos-equipo.alignfull {
		padding-block: calc(7.5 * var(--wp--preset--spacing--4)) var(--wp--preset--spacing--120) !important;
	}

	/* ProAge / 06 / Qué no somos: 130 over and under, and the four glass cards 244px high. */
	.pa-que-no-somos.alignfull {
		padding-block: calc(var(--wp--preset--spacing--120) + 2.5 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-que-no-somos .pa-principios__grid > .pa-glass-card {
		min-height: var(--wp--custom--size--principle-card);
	}
}
/**
 * Pagination of the Query Loops (class pa-pagination; labels in inc/pagination.php): Magazine, archives and search.
 * Figma: 12-Magazine-D / 05 / Últimos artículos / Paginación. Previous and next as an arrow and a
 * 16px label, disabled at 40 % on the first and last page; the page numbers in 48px squares with an
 * 8px radius, 8px apart: the current one filled in brown, the others with a 1px border in brown at
 * 20 %. The ellipsis takes the room of a number, as in the Figma.
 */

/*
 * Two blocks of numbers: two pages on each side of the current one, as in the Figma, and a compact
 * one with one page on each side for phones, which always fits on one line. One shows at a time.
 */
.pa-pagination .wp-block-query-pagination-numbers.pa-pagination__numbers--compact {
	display: none;
}

/* 64px under the list of posts, as in the Figma (the Query Loop gives only its block gap). */
.pa-pagination.pa-pagination {
	margin-block-start: var(--wp--preset--spacing--64);
}

.pa-pagination {
	align-items: center;
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--regular);
	gap: var(--wp--preset--spacing--8);
	line-height: var(--wp--custom--line-height--label);
}

.pa-pagination .wp-block-query-pagination-numbers {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--8);
}

.pa-pagination .page-numbers {
	align-items: center;
	border: var(--wp--custom--border-width--1) solid color-mix(in srgb, var(--wp--preset--color--brand-brown) 20%, transparent);
	border-radius: var(--wp--custom--radius--8);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-default);
	display: inline-flex;
	height: var(--wp--custom--size--page-number);
	justify-content: center;
	min-width: var(--wp--custom--size--page-number);
	text-decoration: none;
	transition: background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-pagination a.page-numbers:hover {
	background-color: var(--wp--preset--color--interactive-soft);
}

.pa-pagination .page-numbers.current {
	background-color: var(--wp--preset--color--brand-brown);
	border-color: var(--wp--preset--color--brand-brown);
	color: var(--wp--preset--color--text-inverse);
}

.pa-pagination .page-numbers.dots {
	border-color: transparent;
}

/* Previous and next: arrow and label, 32px from the numbers (8 of the gap and 24 more). */
.pa-pagination .wp-block-query-pagination-previous,
.pa-pagination .wp-block-query-pagination-next {
	align-items: center;
	color: var(--wp--preset--color--text-default);
	display: inline-flex;
	gap: var(--wp--preset--spacing--8);
	text-decoration: none;
	transition: opacity var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-pagination .wp-block-query-pagination-previous {
	margin-inline-end: var(--wp--preset--spacing--24);
}

/* 12px between the label and the arrow of next, 8 in previous, as in the Figma. */
.pa-pagination .wp-block-query-pagination-next {
	gap: var(--wp--preset--spacing--12);
	margin-inline-start: var(--wp--preset--spacing--24);
}

/* First and last page: previous or next as text, disabled (inc/pagination.php). */
.pa-pagination .is-disabled {
	opacity: var(--wp--custom--opacity--disabled);
}

/* Hover: the text at 70 %, the rule of the Text links (Figma, 03 / Layout y uso). */
.pa-pagination a:is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
	opacity: var(--wp--custom--opacity--hover);
}

/* Core spaces the arrow with a margin; here the gap does it. */
.pa-pagination .wp-block-query-pagination-previous-arrow,
.pa-pagination .wp-block-query-pagination-next-arrow {
	margin: 0;
}

/*
 * Below 1024px previous and next keep only their arrow (the label stays for screen readers), so the
 * row fits on one line: nine items (first, two on each side of the current one, last and two
 * ellipses) take 576px with the 48px squares. A number with more digits makes its square wider.
 * Breakpoint exception: media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	/* The arrows stay at the sides of the numbers; if the numbers do not fit, they wrap between them. */
	.pa-pagination.pa-pagination {
		display: grid;
		grid-template-columns: 1fr minmax(0, max-content) 1fr;
	}

	.pa-pagination .wp-block-query-pagination-numbers {
		flex-wrap: wrap;
		grid-column: 2;
		justify-content: center;
	}

	.pa-pagination .wp-block-query-pagination-previous {
		grid-column: 1;
		justify-self: end;
	}

	.pa-pagination .wp-block-query-pagination-next {
		grid-column: 3;
		justify-self: start;
	}

	.pa-pagination .wp-block-query-pagination-previous,
	.pa-pagination .wp-block-query-pagination-next {
		font-size: 0;
		justify-content: center;
		margin-inline: 0;
		min-height: var(--wp--custom--size--page-number);
		min-width: var(--wp--preset--spacing--24);
	}

	.pa-pagination :is(.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow) {
		font-size: var(--wp--preset--font-size--md);
	}
}

/*
 * On phones the squares are 40px, 4px apart, with the 16px number, and the ellipsis takes only its
 * own width; the compact numbers (one page on each side of the current one, seven items at most)
 * take 256px and always fit on one line between the arrows (breakpoint exception).
 */
@media (max-width: 640px) {

	.pa-pagination,
	.pa-pagination .wp-block-query-pagination-numbers {
		gap: var(--wp--preset--spacing--4);
	}

	.pa-pagination .page-numbers {
		height: var(--wp--custom--size--control-small);
		min-width: var(--wp--custom--size--control-small);
	}

	.pa-pagination .page-numbers.dots {
		min-width: var(--wp--preset--spacing--16);
	}

	.pa-pagination .wp-block-query-pagination-numbers:not(.pa-pagination__numbers--compact) {
		display: none;
	}

	.pa-pagination .wp-block-query-pagination-numbers.pa-pagination__numbers--compact {
		display: flex;
	}

	.pa-pagination .wp-block-query-pagination-previous,
	.pa-pagination .wp-block-query-pagination-next {
		min-height: var(--wp--custom--size--control-small);
	}
}
/**
 * Card / Product (.pa-product-card): image on a cream box with the chips over it, name, format,
 * hallmark families, bullets (health area pages), price and the Cart button at the bottom. Used by
 * the Home formulations, the catalogue pages (inc/catalog/card.php) and the related products.
 */

.pa-product-card {
	gap: var(--wp--preset--spacing--8);
	height: 100%;
	min-width: 0;
}

.pa-product-card .pa-product-card__image {
	margin-block-end: var(--wp--preset--spacing--16);
	position: relative;
	width: 100%;
}

/* «OUT OF STOCK», «FLAGSHIP» over the photo, top left: the chip of the product page gallery. */
.pa-product-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	inset-block-start: var(--wp--preset--spacing--16);
	inset-inline: var(--wp--preset--spacing--16);
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.pa-product-card__chips .pa-chip {
	background-color: var(--wp--preset--color--surface-white);
	border-color: var(--wp--preset--color--text-default);
	text-transform: uppercase;
}

/* Catalogue grid (Figma 8106:150064): the chip without a fill, at 18/24 medium, 8/16 in (40px high). */
.pa-catalog__grid .pa-product-card__chips .pa-chip {
	background-color: transparent;
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--mobile-compact);
	min-height: 0;
	/* The line of the Figma is inside the 40px: 1px less above and below. */
	padding: calc(var(--wp--preset--spacing--8) - var(--wp--custom--border-width--1)) var(--wp--preset--spacing--16);
}

.pa-product-card .pa-product-card__image .wc-block-components-product-image,
.pa-product-card .pa-product-card__image a {
	aspect-ratio: 1;
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--40);
	display: block;
	overflow: hidden;
}

.pa-product-card .pa-product-card__image img {
	box-sizing: border-box;
	height: 100%;
	mix-blend-mode: multiply;
	object-fit: contain;
	padding: var(--wp--preset--spacing--24);
	transition: transform var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--out);
	width: 100%;
}

/* An ambient photo fills the box; a packshot stays whole on the grey (inc/product/photo.php). */
.pa-product-card .pa-product-card__image.pa-photo--ambient img {
	mix-blend-mode: normal;
	object-fit: cover;
	padding: 0;
}

/* The product grows a touch under the pointer; the cream box clips it. */
.pa-product-card:is(:hover, :focus-within) .pa-product-card__image img {
	transform: scale(1.03);
}

.pa-product-card__title {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	margin: 0;
}

.pa-product-card__title a {
	-webkit-box-orient: vertical;
	color: var(--wp--preset--color--text-default);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-decoration: none;
}

.pa-product-card__format,
.pa-product-card__bullets {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--comfortable);
	margin: 0;
}

.pa-product-card__format {
	color: var(--wp--preset--color--text-muted);
}

/* The format sits spacing.8 under the name (Figma). */
.pa-product-card__format {
	margin-block-start: var(--wp--preset--spacing--8);
}

.pa-product-card__bullets {
	list-style: none;
	padding: 0;
}

.pa-product-card__bullets li::before {
	content: "•";
	content: "•" / "";
	margin-inline-end: var(--wp--preset--spacing--4);
}

.pa-product-card__subtitle {
	margin: 0;
}

.pa-price,
.pa-product-card .wc-block-components-product-price {
	font-size: var(--wp--custom--font-size--price);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--normal);
}

/*
 * «(IVA incluido)» after a price, wherever it shows (2026-11-13): WooCommerce's suffix
 * (woocommerce-price-suffix: cards, product page, mega menu, the products of a pack) and the note
 * written after the price of a page (pa-price-note, Fórmula ProAge). Only information: the price is
 * what stands out. 13px, regular, in the secondary colour, as the VAT note of the cart; it never
 * breaks inside. It took the size and the weight of the price (22-23px semibold beside 26-28).
 */
:is(.woocommerce-price-suffix, .pa-price-note) {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--xs-plus);
	font-weight: var(--wp--custom--font-weight--regular);
	letter-spacing: normal;
	white-space: nowrap;
}

/*
 * In a card, on a line of its own under the price: beside a sale price it does not fit and jumped
 * to a second line, so the prices of a row stood at different heights.
 */
.pa-product-card .woocommerce-price-suffix {
	display: block;
	line-height: var(--wp--custom--line-height--mobile-compact);
}

/*
 * Sale price: the old price muted, smaller and regular, as on the product page; the new price
 * stays as any other price.
 */
.pa-product-card .wc-block-components-product-price del {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--regular);
}

.pa-product-card .wp-block-woocommerce-product-button {
	align-items: flex-start;
	margin-block-start: var(--wp--preset--spacing--8);
	text-align: start;
}

/*
 * Catalogue grid only (the Home formulations keep the card as it was): price and button at the
 * bottom of the card, so the cards of a row line them up; the price keeps spacing.16 above it (the
 * gap of the card and its padding).
 */
.pa-catalog__grid .pa-product-card .wp-block-woocommerce-product-price {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--8);
}

/*
 * Catalogue grid only (Figma 8106:150062): the name keeps room for two lines and the format sits
 * 20px under it, so the cards of a row line up; the format and the hallmark families at 18/28 in
 * brown, one under the other (the card gap taken back); 24px from the price to the button.
 */
.pa-catalog__grid .pa-product-card__title {
	min-height: 2lh;
}

.pa-catalog__grid .pa-product-card__format {
	margin-block-start: var(--wp--preset--spacing--12);
}

.pa-catalog__grid .pa-product-card__format {
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--relaxed);
}

/* The points of the area at 18/28 in brown too, right under the format (Figma 8106:156669). */
.pa-catalog__grid .pa-product-card__more .pa-product-card__bullets {
	color: var(--wp--preset--color--text-default);
}

@media (min-width: 1024px) {

	.pa-catalog__grid .pa-product-card__format + .pa-product-card__more {
		margin-block-start: calc(-1 * var(--wp--preset--spacing--8));
	}

	.pa-catalog__grid .pa-product-card__more .pa-product-card__bullets {
		font-size: var(--wp--preset--font-size--md);
		line-height: var(--wp--custom--line-height--relaxed);
	}

	.pa-catalog__grid .pa-product-card__title {
		letter-spacing: normal;
	}
}

/* Catalogue grid only: the button takes the whole width of the card. */
.pa-catalog__grid .pa-product-card .wp-block-woocommerce-product-button {
	align-items: stretch;
	align-self: stretch;
	margin-block-start: var(--wp--preset--spacing--16);
}

.pa-catalog__grid .pa-product-card .wp-block-woocommerce-product-button .wc-block-components-product-button__button {
	width: 100%;
}

/*
 * Catalogue grid on phones and tablets, below 1024px (mobile Figma 6186:13832): the card of the
 * Home formulations (sections.css). Centred; the image box at a radius of 20 with the chips 12px in;
 * the name at 15/21 medium, the format, the hallmark families and the bullets at 12/16; the price at
 * 17/24 semibold with «(IVA incluido)» under it, smaller; the button at the whole width, 44px high.
 * 10px from the image to the name and from the price to the button, 6 between the rest; the price
 * and the button at the bottom, so a row lines them up.
 */
@media (max-width: 1023px) {

	.pa-catalog__grid .pa-product-card.pa-product-card {
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 0;
		text-align: center;
	}

	/* 6px between blocks, 10px around the name and the button (4px steps: the scale has no 6 or 10). */
	.pa-catalog__grid .pa-product-card > * {
		margin-block: calc(1.5 * var(--wp--preset--spacing--4)) 0;
		max-width: 100%;
		min-width: 0;
	}

	.pa-catalog__grid .pa-product-card > .pa-product-card__image {
		margin-block: 0;
	}

	.pa-catalog__grid .pa-product-card > .pa-product-card__title,
	.pa-catalog__grid .pa-product-card > .wp-block-woocommerce-product-button {
		margin-block-start: calc(2.5 * var(--wp--preset--spacing--4));
	}

	/* Radius 24 and the format in a 20px line (mobile Figma 8106:160494 and 8106:160890). */
	.pa-catalog__grid .pa-product-card .pa-product-card__image .wc-block-components-product-image,
	.pa-catalog__grid .pa-product-card .pa-product-card__image a {
		border-radius: var(--wp--custom--radius--24);
	}

	.pa-catalog__grid .pa-product-card .pa-product-card__format {
		min-height: var(--wp--preset--spacing--20);
	}

	/* The area page of the Figma gives the name a single line (8106:160893), the shop two. */
	.tax-proage_area .pa-catalog__grid .pa-product-card__title {
		min-height: 0;
	}

	/* The packshot fills the box, as in the mobile Figma: its own margin is in the picture. */
	.pa-catalog__grid .pa-product-card .pa-product-card__image img {
		padding: 0;
	}

	.pa-catalog__grid .pa-product-card__chips {
		gap: var(--wp--preset--spacing--4);
		inset-block-start: var(--wp--preset--spacing--12);
		inset-inline: var(--wp--preset--spacing--12);
	}

	/* The chips of the mobile Figma (8106:160496): 10/14 medium, 3/6 in (20px high). */
	.pa-catalog__grid .pa-product-card__chips .pa-chip {
		font-size: var(--wp--preset--font-size--2-xs);
		line-height: var(--wp--custom--line-height--mobile-card);
		padding: calc(0.75 * var(--wp--preset--spacing--4) - var(--wp--custom--border-width--1)) calc(1.5 * var(--wp--preset--spacing--4));
	}

	.pa-catalog__grid .pa-product-card__title {
		font-size: var(--wp--custom--font-size--mobile-card-title);
		line-height: var(--wp--custom--line-height--mobile-card);
	}

	.pa-catalog__grid :is(.pa-product-card__format, .pa-product-card__bullets) {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-catalog__grid .pa-product-card > .wp-block-woocommerce-product-price {
		margin-block-start: auto;
		padding-block-start: calc(1.5 * var(--wp--preset--spacing--4));
	}

	.pa-catalog__grid .pa-product-card :is(.wp-block-woocommerce-product-price, .wc-block-components-product-price) {
		font-size: var(--wp--custom--font-size--mobile-price);
		line-height: var(--wp--custom--line-height--mobile-card);
		text-align: center;
	}

	/* «(IVA incluido)» under the price (rule above), at 12px in the cards of phones and tablets. */
	.pa-product-card .woocommerce-price-suffix {
		font-size: var(--wp--preset--font-size--xs);
	}

	.pa-catalog__grid .pa-product-card .wp-block-woocommerce-product-button .wc-block-components-product-button__button {
		box-sizing: border-box;
		height: var(--wp--custom--size--control-touch);
		min-height: 0;
		min-width: 0;
		padding: 0 var(--wp--preset--spacing--8);
	}
}
/**
 * Single product page (templates/single-product.html, inc/product.php). Figma: 2-Productos-D
 * (6100:1757) and the product side panels. docs/woocommerce-plantejament.md (3.9).
 */

/* Sections: the full width with the page gutter and the wide container inside. */
.pa-product-section {
	box-sizing: border-box;
	margin-block: 0;
	padding: var(--wp--preset--spacing--112) var(--wp--custom--gutter);
}

.pa-product-section__inner {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--48);
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

.pa-product-section :where(p, h2, h3, ul, ol, dl, dd, figure) {
	margin-block: 0;
}

.pa-product-heading {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.pa-product-heading--loose {
	gap: var(--wp--preset--spacing--48);
}

/* Underlined text link with the arrow after it (Figma: Text link «… →»). */
.pa-arrow-link {
	color: inherit;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--normal);
	text-decoration: underline;
	text-underline-offset: var(--wp--preset--spacing--4);
}

.pa-arrow-link:hover {
	color: var(--wp--preset--color--interactive-hover);
}

.pa-arrow-link__arrow {
	display: inline-block;
	margin-inline-start: var(--wp--preset--spacing--8);
	text-decoration: none;
}

.pa-product-buttons {
	margin: 0;
}

/*
 * Header (Figma: 04 / Producto / Galería + Compra): breadcrumbs, then the gallery and the summary
 * in two columns of 6.
 */
.pa-product-hero {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--32);
	padding: calc(var(--wp--preset--spacing--72) + var(--wp--preset--spacing--4)) var(--wp--custom--gutter) calc(var(--wp--preset--spacing--96) + var(--wp--preset--spacing--4)); /* 76 and 100, as in the Figma. */
}

.pa-product-hero > * {
	box-sizing: border-box;
	margin-block: 0;
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	width: 100%;
}

.pa-product-hero__breadcrumbs .woocommerce-breadcrumb {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
	margin: 0;
}

.pa-product-hero__breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.pa-product-hero__breadcrumbs a:hover {
	text-decoration: underline;
}

.pa-breadcrumb__separator {
	margin-inline: var(--wp--preset--spacing--8);
}

.pa-product-hero .wc-block-store-notices:not(:has(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-error, .woocommerce-info)) {
	display: none;
}

.pa-product-hero__columns {
	align-items: start;
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--preset--spacing--32);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pa-product-hero__gallery,
.pa-product-hero__summary {
	min-width: 0;
}

/*
 * The summary column keeps WooCommerce's «summary» class (seQura looks for the price inside it),
 * but not the float and the 48% width WooCommerce gives it inside div.product.
 */
.pa-product-hero .pa-product-hero__columns > .pa-product-hero__summary.summary {
	float: none;
	margin: 0;
	width: auto;
}

.pa-product-hero__summary {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-product-hero .pa-product-hero__summary > * {
	margin-block: 0;
}

.pa-product-hero__title {
	text-wrap: balance;
}

/* Gallery: the product large on cream, then the other images two by two. */
.pa-product-gallery {
	display: grid;
	gap: var(--wp--preset--spacing--32);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-product-gallery__item {
	aspect-ratio: 376 / 392;
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--40);
	overflow: hidden;
}

.pa-product-gallery__item--main {
	aspect-ratio: 784 / 600;
	grid-column: 1 / -1;
	position: relative;
}

/* An ambient photo fills the box; a packshot stays whole on the grey (inc/product/photo.php). */
.pa-product-gallery .pa-product-gallery__item--main.pa-photo--ambient .pa-product-gallery__image {
	mix-blend-mode: normal;
	object-fit: cover;
}

/* «AGOTADO» over the main photo: Chip / Category on white, as on the catalogue cards of the Figma. */
.pa-product-gallery .pa-product-gallery__chip {
	background-color: var(--wp--preset--color--surface-white);
	inset-block-start: var(--wp--preset--spacing--16);
	inset-inline-start: var(--wp--preset--spacing--16);
	position: absolute;
	text-transform: uppercase;
	z-index: 1;
}

.pa-product-gallery .pa-product-gallery__image,
.pa-product-gallery .pa-product-gallery__video {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	object-fit: cover;
}

.pa-product-gallery .pa-product-gallery__item--main .pa-product-gallery__image {
	mix-blend-mode: multiply;
	object-fit: contain;
}

/*
 * The other photos fill their box. Multiplied, the white background of a packshot in JPEG becomes
 * the grey of the box, as the transparent ones; an ambient photo looks the same.
 */
.pa-product-gallery .pa-product-gallery__item:not(.pa-product-gallery__item--main) .pa-product-gallery__image {
	mix-blend-mode: multiply;
}

.pa-product-gallery__video {
	background-color: var(--wp--preset--color--surface-inverse);
}

/* Summary: national code, format, short description and the technical sheet. */
.pa-product-summary__intro {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-product-summary__intro > * {
	margin-block: 0;
}

.pa-product-summary__code {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-product-summary__format {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-product-summary__description > * {
	margin-block: 0;
}

.pa-product-summary__description > * + * {
	margin-block-start: var(--wp--preset--spacing--24);
}

.pa-product-summary__description strong {
	font-weight: var(--wp--custom--font-weight--semibold);
}

.pa-product-summary__description ul,
.pa-product-details ul {
	margin-block: 0;
	padding-inline-start: var(--wp--preset--spacing--24);
}

/* Price «52,00 € (VAT included)» (Figma: Detail / 26 / SemiBold). */
.pa-product-hero .pa-product-price {
	color: var(--wp--preset--color--text-default);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--semibold);
	letter-spacing: var(--wp--custom--letter-spacing--tight);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-product-price del {
	color: var(--wp--preset--color--text-muted);
	font-weight: var(--wp--custom--font-weight--regular);
}

.pa-product-price ins {
	text-decoration: none;
}

/*
 * Purchase: WooCommerce's classic form (woocommerce/add-to-cart-form, stepper style) dressed as the
 * Figma: quantity 144 × 64 with − and +, and «Add to cart» as the Cart button, 64 high.
 * WooCommerce styles the form with long selectors (up to five classes on the quantity); these
 * start from the hero and the summary column to stay above them without !important.
 */
.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form {
	margin: 0;
}

/* The row of the quantity and the button: the form itself, or its inner row in variable products. */
.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form :is(form.cart, .variations_button) {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--16);
	margin: 0;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form :is(form.cart, .variations_button)::before,
.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form :is(form.cart, .variations_button)::after {
	content: none;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form .variations_button > .woocommerce-variation {
	flex-basis: 100%;
}

/* Bundle lists and other plugin content of the form take the whole row, above the buttons. */
.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart > :not(.quantity, .single_add_to_cart_button) {
	flex-basis: 100%;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart div.quantity.wc-block-components-quantity-selector,
.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart div.quantity {
	align-items: center;
	background-color: transparent;
	block-size: var(--wp--custom--size--field);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	display: flex;
	flex: none;
	float: none;
	inline-size: var(--wp--custom--size--quantity);
	justify-content: space-between;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity .wc-block-components-quantity-selector__button {
	align-items: center;
	background: transparent;
	block-size: 100%;
	border: 0;
	color: var(--wp--preset--color--text-default);
	cursor: pointer;
	display: flex;
	flex: none;
	font: inherit;
	font-size: var(--wp--preset--font-size--md);
	inline-size: var(--wp--preset--spacing--48);
	justify-content: center;
	margin: 0;
	min-inline-size: 0;
	opacity: 1;
	padding: 0;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity .wc-block-components-quantity-selector__button:hover {
	background-color: var(--wp--preset--color--interactive-soft);
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity .wc-block-components-quantity-selector__button:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
	outline-offset: calc(var(--wp--custom--border-width--2) * -1);
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity input.qty {
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
	block-size: 100%;
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--wp--preset--color--text-default);
	flex: 1 1 auto;
	font: inherit;
	font-size: var(--wp--preset--font-size--md);
	inline-size: var(--wp--preset--spacing--48);
	margin: 0;
	min-inline-size: 0;
	padding: 0;
	text-align: center;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity input.qty::-webkit-inner-spin-button,
.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity input.qty:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
	outline-offset: calc(var(--wp--custom--border-width--2) * -1);
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .single_add_to_cart_button {
	align-items: center;
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-default);
	display: flex;
	flex: 1 1 0;
	float: none;
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--semibold);
	justify-content: center;
	line-height: var(--wp--custom--line-height--normal);
	margin: 0;
	min-block-size: var(--wp--custom--size--field);
	min-inline-size: min(var(--wp--custom--size--card-small), 100%);
	padding: 0 var(--wp--preset--spacing--24);
	text-align: center;
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .single_add_to_cart_button:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--interactive);
	border-color: var(--wp--preset--color--interactive);
	color: var(--wp--preset--color--text-inverse);
}

.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .single_add_to_cart_button:is(.disabled, :disabled) {
	opacity: 0.5;
}

/* Stock and bundle notes of WooCommerce inside the form. */
.pa-product-hero .summary .pa-product-buy .stock {
	font-size: var(--wp--preset--font-size--sm);
	margin-block: 0 var(--wp--preset--spacing--16);
}

/* Accordions under the form (Figma: Desplegable): a line under the title, + closed and − open. */
.pa-product-details {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-accordion__summary {
	align-items: center;
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	cursor: pointer;
	display: flex;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	gap: var(--wp--preset--spacing--24);
	justify-content: space-between;
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
	list-style: none;
	padding-block-end: var(--wp--preset--spacing--24);
}

.pa-accordion__summary::-webkit-details-marker {
	display: none;
}

.pa-accordion__summary::after {
	content: "+";
	flex: none;
	font-weight: var(--wp--custom--font-weight--light);
	inline-size: var(--wp--preset--spacing--32);
	text-align: center;
}

.pa-accordion[open] > .pa-accordion__summary::after {
	content: "−";
}

.pa-accordion__summary:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
	outline-offset: var(--wp--preset--spacing--4);
}

.pa-accordion__body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	padding-block-start: var(--wp--preset--spacing--24);
}

.pa-accordion__body > * {
	margin-block: 0;
}

/* The link to 02 Ingredients, on a row of its own under the accordions. */
.pa-product-details__link {
	margin: 0;
}

/* Certification icons: the name on top and the icon at the bottom, in three columns (the same three for every product). */
.pa-product-certs {
	display: grid;
	gap: var(--wp--preset--spacing--16);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: var(--wp--preset--spacing--24) 0 0;
	padding: 0;
}

.pa-product-certs__item {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	justify-content: space-between;
	text-align: center;
}

.pa-product-certs__label {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-product-certs__icon {
	block-size: var(--wp--custom--size--icon-medium);
	inline-size: var(--wp--custom--size--icon-medium);
	object-fit: contain;
}

/* Hallmarks: the shared module (pattern proage-theme/marcadores) keeps its own styles (sections.css). */

/* 01 Benefits: two columns, each with its heading, summary and the button to its panel. */
.pa-product-benefits {
	padding-block-end: calc(var(--wp--preset--spacing--96) + var(--wp--preset--spacing--4)); /* 100, as in the Figma. */
}

.pa-product-benefits__columns {
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--preset--spacing--32);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pa-product-benefits__column {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-product-benefits__column .pa-product-buttons {
	margin-block-start: var(--wp--preset--spacing--24);
}

/* 02 Clinical evidence: a glass card on the photo, and the signature image on the right. */
.pa-product-evidence {
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--120);
}

.pa-product-evidence__panel {
	align-items: center;
	border-radius: var(--wp--custom--radius--40);
	box-sizing: border-box;
	color: var(--wp--preset--color--text-inverse);
	display: grid;
	gap: var(--wp--preset--spacing--32);
	grid-template-columns: minmax(0, 818fr) minmax(0, 654fr);
	isolation: isolate;
	overflow: hidden;
	padding: var(--wp--preset--spacing--48);
	position: relative;
}

.pa-product-evidence__panel--single {
	grid-template-columns: minmax(0, 818fr) minmax(0, 654fr);
}

.pa-product-evidence .pa-product-evidence__background {
	block-size: 100%;
	inline-size: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	z-index: -2;
}

.pa-product-evidence__panel::before {
	background-color: color-mix(in srgb, var(--wp--preset--color--neutral-black) 20%, transparent);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

.pa-product-evidence__card {
	align-self: stretch;
	backdrop-filter: blur(var(--wp--preset--spacing--4));
	background-color: var(--wp--preset--color--surface-white-alpha-8);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--surface-white-alpha-8);
	border-radius: var(--wp--custom--radius--40);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--48);
	padding: var(--wp--preset--spacing--32);
}

.pa-product-evidence__card .pa-product-heading + .is-style-lead {
	margin-block-start: calc(var(--wp--preset--spacing--24) * -1);
}

.pa-product-evidence__card .pa-product-buttons {
	margin-block-start: auto;
}

/* «See the clinical trials» right under «See the bibliography». */
.pa-product-evidence__card .pa-product-buttons + .pa-product-buttons {
	margin-block-start: calc(var(--wp--preset--spacing--16) - var(--wp--preset--spacing--48));
}

/*
 * The rows share their columns (subgrid): the key column is 240px, or as wide as the longest key,
 * so a long word («Homocisteína») stays whole.
 */
.pa-product-evidence__rows {
	column-gap: var(--wp--preset--spacing--24);
	display: grid;
	grid-template-columns: minmax(var(--wp--custom--size--tile), max-content) minmax(0, 1fr);
}

.pa-product-evidence__row {
	display: grid;
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--24);
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
	padding-block: var(--wp--preset--spacing--24);
}

.pa-product-evidence__row:first-child {
	padding-block-start: 0;
}

.pa-product-evidence__row + .pa-product-evidence__row {
	border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
}

.pa-product-evidence__key {
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-product-evidence__value {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	justify-content: center;
	margin: 0;
}

.pa-product-evidence__value .pa-arrow-link {
	overflow-wrap: anywhere;
}

.pa-product-evidence__value .pa-arrow-link:hover {
	color: inherit;
	text-decoration-thickness: var(--wp--custom--border-width--2);
}

/* The Outline button on the photo takes the hover of dark sections. */
.pa-product-evidence .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text-default);
}

.pa-product-evidence__figure {
	align-self: stretch;
	display: flex;
}

.pa-product-evidence__image {
	block-size: auto;
	border-radius: var(--wp--custom--radius--40);
	display: block;
	inline-size: 100%;
	margin-block: auto;
}

/* 02 Ingredients: the image (5 columns) and the ingredients as accordions (7 columns). */
.pa-product-ingredients__columns {
	align-items: start;
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--preset--spacing--32);
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.pa-product-ingredients__columns--single {
	grid-template-columns: minmax(0, 1fr);
}

.pa-product-ingredients__image {
	block-size: auto;
	display: block;
	inline-size: 100%;
	mix-blend-mode: darken;
}

/*
 * The ingredient loops have a grey background darker than the section (244): from 243 down to 222
 * (Glutamina and Creatina; Astaxantina, 229). Enough brightness to take the darkest one, noise included, over the
 * grey of the section, where «darken» hides it: the edge of the video disappears in all of them.
 */
.pa-product-ingredients__video {
	filter: brightness(1.12);
}

.pa-product-ingredients__list {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-ingredients {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pa-ingredient__summary {
	align-items: baseline;
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	cursor: pointer;
	display: flex;
	gap: var(--wp--preset--spacing--16);
	list-style: none;
	padding-block-end: var(--wp--preset--spacing--24);
}

.pa-ingredient__summary::-webkit-details-marker {
	display: none;
}

/* The + and − of the Figma (13px, 2px strokes), drawn so they sit in the middle whatever the font. */
.pa-ingredient__summary::after {
	--pa-sign-size: var(--wp--preset--spacing--12);
	--pa-sign-stroke: var(--wp--custom--border-width--2);
	align-self: center;
	background:
		linear-gradient(currentcolor, currentcolor) center / var(--pa-sign-size) var(--pa-sign-stroke) no-repeat,
		linear-gradient(currentcolor, currentcolor) center / var(--pa-sign-stroke) var(--pa-sign-size) no-repeat;
	block-size: var(--pa-sign-size);
	content: "";
	flex: none;
	inline-size: var(--pa-sign-size);
}

.pa-ingredient[open] > .pa-ingredient__summary::after {
	background: linear-gradient(currentcolor, currentcolor) center / var(--pa-sign-size) var(--pa-sign-stroke) no-repeat;
}

/* An ingredient without text: nothing to open, so no pointer and no sign (hidden, so the labels line up). */
.pa-ingredient--static > .pa-ingredient__summary {
	cursor: auto;
}

.pa-ingredient--static > .pa-ingredient__summary::after {
	visibility: hidden;
}

.pa-ingredient__summary:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
	outline-offset: var(--wp--preset--spacing--4);
}

.pa-ingredient__name {
	flex: 1 1 auto;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-ingredient__label {
	flex: none;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--comfortable);
	text-align: end;
	text-transform: uppercase;
}

.pa-ingredient__body {
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	padding-block: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
}

.pa-ingredient__body p {
	max-inline-size: var(--wp--custom--size--measure);
}

.pa-product-ingredients__certs {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
	margin-block-start: var(--wp--preset--spacing--24);
}

.pa-product-ingredients__dot {
	white-space: pre;
}

/* 03 How to take it: three cards with a numbered circle, the step and its picture. */
.pa-product-ritual {
	padding-block: calc(var(--wp--preset--spacing--120) + var(--wp--preset--spacing--8)); /* 128 (130 in the Figma). */
}

.pa-product-ritual__steps {
	display: grid;
	gap: var(--wp--preset--spacing--32);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-product-ritual__step {
	align-items: center;
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	border-radius: var(--wp--custom--radius--40);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	padding: var(--wp--preset--spacing--48) var(--wp--preset--spacing--24) var(--wp--preset--spacing--24);
	text-align: center;
}

.pa-product-ritual__number {
	align-items: center;
	block-size: var(--wp--custom--size--icon-medium);
	border: var(--wp--custom--border-width--1) solid currentcolor;
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	display: flex;
	flex: none;
	font-size: var(--wp--preset--font-size--2-xl);
	inline-size: var(--wp--custom--size--icon-medium);
	justify-content: center;
	letter-spacing: var(--wp--custom--letter-spacing--tighter);
	line-height: var(--wp--custom--line-height--mobile-heading); /* 32/40, as in the Figma. */
}

.pa-product-ritual__text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.pa-product-ritual__title {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-product-ritual__text p {
	line-height: var(--wp--custom--line-height--relaxed); /* 18/28, as in the Figma. */
}

.pa-product-ritual__media {
	align-items: flex-end;
	display: flex;
	justify-content: center;
	margin-block-start: auto;
	max-inline-size: 100%;
}

/* The photos with the rounded corners of the rest of the site (20 inside a card of 40). */
.pa-product-ritual__product {
	block-size: auto;
	border-radius: var(--wp--custom--radius--20);
	display: block;
	inline-size: auto;
	max-block-size: var(--wp--custom--size--ritual-media);
	max-inline-size: 100%;
	mix-blend-mode: multiply;
	object-fit: contain;
}

.pa-product-ritual__pair {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--16);
	inline-size: 100%;
	justify-content: center;
}

.pa-product-ritual__pair > :not(.pa-product-ritual__plus) {
	flex: 1 1 0;
	min-width: 0;
}

/* As high as its proportion asks, up to 216: a fixed height would round an empty box, not the photo. */
.pa-product-ritual__pair .pa-product-ritual__product {
	inline-size: 100%;
	max-block-size: var(--wp--custom--size--ritual-pair);
}

.pa-product-ritual__plus {
	flex: none;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
}

.pa-product-ritual__link {
	display: block;
	min-width: 0;
}

/* Step 1: morning, afternoon and night as tall pills; the capsule in the marked ones. */
.pa-product-moments {
	display: grid;
	gap: var(--wp--preset--spacing--12);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	inline-size: min(100%, var(--wp--custom--size--ritual-moments));
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-product-moment {
	align-items: center;
	block-size: var(--wp--custom--size--ritual-moment);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	justify-content: flex-end;
	padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
}

/* The capsule photos are squares on white: multiplied, the white disappears over the card. */
.pa-product-moment__capsule {
	aspect-ratio: 1;
	block-size: auto;
	inline-size: 100%;
	margin-block-end: auto;
	mix-blend-mode: multiply;
	object-fit: contain;
}

.pa-product-moment__label {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-product-moment__icon {
	block-size: var(--wp--preset--spacing--40);
	inline-size: var(--wp--preset--spacing--40);
}

/* Banner: the photo under a brown veil with the phrase in a glass box at the bottom. */
.pa-product-banner {
	padding-block: 0;
}

.pa-product-banner__media {
	aspect-ratio: 1600 / 750;
	border-radius: var(--wp--custom--radius--40);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	isolation: isolate;
	justify-content: flex-end;
	min-block-size: var(--wp--custom--size--hero-min);
	overflow: hidden;
	padding: var(--wp--preset--spacing--48) var(--wp--preset--spacing--48) var(--wp--preset--spacing--112);
	position: relative;
}

.pa-product-banner__media::before {
	background-color: var(--wp--preset--color--brand-brown-alpha-35);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

.pa-product-banner .pa-product-banner__image {
	block-size: 100%;
	inline-size: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	z-index: -2;
}

.pa-product-banner__text {
	backdrop-filter: blur(var(--wp--preset--spacing--4));
	background-color: var(--wp--preset--color--brand-brown-alpha-5);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--surface-white-alpha-8);
	border-radius: var(--wp--custom--radius--40);
	color: var(--wp--preset--color--surface-cream);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--80);
}

.pa-product-banner__kicker {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-product-banner__phrase {
	font-size: var(--wp--preset--font-size--4-xl);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	text-wrap: balance;
}

/* 04 Results: the timeline and the notice (6 columns) and the image (6 columns); 116 above and below, as in the Figma. */
.pa-product-results {
	padding-block: calc(var(--wp--preset--spacing--112) + var(--wp--preset--spacing--4));
}

.pa-product-results__columns {
	align-items: start;
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--preset--spacing--160); /* 167 in the Figma: the photo 784 wide. */
	grid-template-columns: minmax(0, 649fr) minmax(0, 784fr);
}

.pa-product-results__columns--single {
	grid-template-columns: minmax(0, 1fr);
}

.pa-product-results__text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--72);
}

.pa-product-results__notice {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
}

.pa-product-results__image {
	block-size: auto;
	display: block;
	inline-size: 100%;
}

/*
 * Timeline: a dot per stage joined by a line. The label («Day 7») is optional: without labels in
 * any stage, the column disappears and the dots stay by the titles.
 */
.pa-timeline {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	list-style: none;
	margin: 0;
	padding: 0 0 0 var(--wp--preset--spacing--24);
}

.pa-timeline__item {
	--pa-dot: var(--wp--preset--spacing--8);
	--pa-dot-top: var(--wp--preset--spacing--12);
	column-gap: var(--wp--preset--spacing--96); /* The text 248 from the line, as in the Figma (271 from the frame). */
	display: grid;
	grid-template-columns: var(--wp--custom--size--timeline-label) minmax(0, 1fr);
	position: relative;
}

.pa-timeline--no-labels .pa-timeline__item {
	grid-template-columns: minmax(0, 1fr);
}

.pa-timeline__item::before {
	background-color: var(--wp--preset--color--text-default);
	block-size: var(--pa-dot);
	border-radius: var(--wp--custom--radius--999);
	content: "";
	inline-size: var(--pa-dot);
	inset-block-start: var(--pa-dot-top);
	inset-inline-start: calc(var(--wp--preset--spacing--24) * -1);
	position: absolute;
}

/* The line runs from this dot to the next one. */
.pa-timeline__item:not(:last-child)::after {
	background-color: var(--wp--preset--color--text-default);
	content: "";
	inline-size: var(--wp--custom--border-width--1);
	inset-block: calc(var(--pa-dot-top) + var(--pa-dot) / 2) calc((var(--wp--preset--spacing--40) + var(--pa-dot-top) + var(--pa-dot) / 2) * -1);
	inset-inline-start: calc(var(--wp--preset--spacing--24) * -1 + var(--pa-dot) / 2);
	position: absolute;
}

.pa-timeline__label {
	color: var(--wp--preset--color--accent-olive);
	font-size: var(--wp--preset--font-size--lg-plus);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-timeline__body {
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	grid-column: -2;
	padding-block-end: var(--wp--preset--spacing--40);
}

.pa-timeline__title {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

/* 07 Sustainability («Packaging with a conscience»): three commitments with their photo. */
.pa-product-packaging__list {
	display: grid;
	gap: var(--wp--preset--spacing--24) var(--wp--preset--spacing--32);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-product-packaging__item {
	display: grid;
	gap: var(--wp--preset--spacing--24);
	grid-row: span 2;
	grid-template-rows: subgrid;
}

.pa-product-packaging__text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
}

.pa-product-packaging__title {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-product-packaging__figure {
	aspect-ratio: 512 / 532;
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--40);
	overflow: hidden;
}

.pa-product-packaging .pa-product-packaging__image {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	object-fit: cover;
}

.pa-product-packaging .pa-product-packaging__figure--contain .pa-product-packaging__image {
	object-fit: contain;
}

/* 09 FAQ: the heading (4 columns) and the questions (8 columns). */
.pa-product-faq .pa-product-section__inner {
	align-items: start;
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--preset--spacing--160);
	grid-template-columns: minmax(0, 512fr) minmax(0, 920fr);
}

.pa-faq__item {
	border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-strong);
	padding-block: var(--wp--preset--spacing--24);
}

.pa-faq__item:first-child {
	padding-block-start: 0;
}

.pa-faq__question {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: var(--wp--preset--font-size--lg);
	gap: var(--wp--preset--spacing--24);
	justify-content: space-between;
	line-height: var(--wp--custom--line-height--comfortable);
	list-style: none;
}

.pa-faq__question::-webkit-details-marker {
	display: none;
}

.pa-faq__question::after {
	content: "+";
	flex: none;
	font-size: var(--wp--preset--font-size--md);
	inline-size: var(--wp--preset--spacing--32);
	text-align: center;
}

.pa-faq__item[open] > .pa-faq__question::after {
	content: "−";
}

.pa-faq__question:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
	outline-offset: var(--wp--preset--spacing--4);
}

.pa-faq__answer {
	padding-block-start: var(--wp--preset--spacing--8);
	padding-inline-end: var(--wp--preset--spacing--64);
}

/*
 * 10 Applied science: the post cards of the Home (blog-3). The card is the theme's .pa-card
 * (card.css: photo box, category, title and their mobile sizes in pages.css); here only the parts
 * the Home's blocks give it: a single link, the 512/300 photo and the grid, three
 * 512px columns 32px apart, as in the Figma (4 + 4 + 4).
 */
.pa-product-articles .pa-product-section__inner {
	gap: calc(var(--wp--preset--spacing--72) + var(--wp--preset--spacing--4)); /* 76 (75 in the Figma). */
}

.pa-product-articles__list {
	display: grid;
	gap: var(--wp--preset--spacing--32);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-product-article__link {
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	text-decoration: none;
}

.pa-product-article .pa-card__image {
	aspect-ratio: 512 / 300;
	display: block;
}

.pa-product-article .pa-card__image img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	object-fit: cover;
}

.pa-product-article__link:hover .pa-card__title {
	text-decoration: underline;
}

/*
 * The carousel arrows (carousel.css) 16px under their row, as on the Home: the row gives back the
 * 16 of the section's gap on mobile, the only width where the rows scroll.
 */
@media (hover: hover) and (pointer: fine) {

	.pa-product-section__inner > :has(+ .pa-carousel-nav:not([hidden])) {
		margin-block-end: calc(var(--wp--preset--spacing--16) * -1);
	}
}

/* «You may also like»: five product cards (Figma: Card / Product · 288). */
.pa-product-related__list {
	display: grid;
	gap: var(--wp--preset--spacing--48) var(--wp--preset--spacing--40);
	grid-template-columns: repeat(5, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Positioned, so the screen reader texts of WooCommerce prices stay inside the card (and the
   sideways list of phones). */
.pa-product-related__card {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

.pa-product-related__media {
	aspect-ratio: 1;
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--40);
	box-sizing: border-box;
	display: block;
	margin-block-end: var(--wp--preset--spacing--24);
	overflow: hidden;
	padding: var(--wp--preset--spacing--32);
}

.pa-product-related .pa-product-related__image {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	mix-blend-mode: multiply;
	object-fit: contain;
	transition: transform var(--wp--custom--motion--duration--slow) var(--wp--custom--motion--ease--out);
}

/* An ambient photo fills the card (inc/product/photo.php). */
.pa-product-related__media.pa-photo--ambient {
	padding: 0;
}

.pa-product-related .pa-photo--ambient .pa-product-related__image {
	mix-blend-mode: normal;
	object-fit: cover;
}

.pa-product-related__card:is(:hover, :focus-within) .pa-product-related__image {
	transform: scale(1.03);
}

.pa-product-related__card .pa-product-card__title {
	line-height: var(--wp--custom--line-height--normal);
}

/*
 * Card / Product of the Figma (288 × 548): 24 from the photo to the name, 28 to the format, the price
 * right under it and the button 16 below. The price goes down with the button, so the prices and the
 * buttons of a row line up whether a product has a format or not.
 */
.pa-product-related__format {
	margin-block-start: var(--wp--preset--spacing--28);
}

.pa-product-related__price {
	margin-block: auto var(--wp--preset--spacing--16);
	padding-block-start: var(--wp--preset--spacing--28);
}

.pa-product-related__format + .pa-product-related__price {
	padding-block-start: 0;
}

.pa-product-related__price del {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--regular);
}

.pa-product-related__price ins {
	text-decoration: none;
}

.pa-product-related__button {
	margin-block-start: 0;
}

.pa-product-related__button > .wp-block-button__link {
	inline-size: 100%;
	min-inline-size: 0;
}

/* WooCommerce adds «View cart» after a product is added from a card. */
.pa-product-related__button .added_to_cart {
	display: inline-block;
	font-size: var(--wp--preset--font-size--sm);
	margin-block-start: var(--wp--preset--spacing--8);
}

/* «Talk to a nutritionist»: the heading and the form of the theme. */
.pa-product-contact .pa-product-section__inner {
	align-items: flex-start;
}

.pa-product-contact__form {
	align-self: stretch;
}

/* Side panels of the product: group titles, goals and notices. */
.pa-product-drawer .pa-product-drawer__intro {
	line-height: var(--wp--custom--line-height--relaxed);
	margin-block: 0 var(--wp--preset--spacing--24);
}

.pa-product-drawer .pa-product-drawer__group {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
	margin-block: var(--wp--preset--spacing--32) var(--wp--preset--spacing--8);
}

.pa-product-drawer .pa-product-drawer__intro + .pa-product-drawer__group {
	margin-block-start: 0;
}

.pa-product-drawer .pa-product-drawer__group + .pa-drawer__item {
	border-block-start: 0;
	margin-block-start: 0;
	padding-block-start: 0;
}

.pa-product-drawer .pa-drawer__item > * {
	margin-block: 0;
}

.pa-product-drawer .pa-drawer__item ul {
	padding-inline-start: var(--wp--preset--spacing--24);
}

.pa-product-drawer .pa-product-drawer__goal,
.pa-product-drawer .pa-product-drawer__notice {
	font-size: var(--wp--preset--font-size--sm);
}

.pa-product-drawer .pa-product-drawer__goal {
	font-weight: var(--wp--custom--font-weight--medium);
}

/* In the editor, each section shows its name. */
.pa-product-section-placeholder {
	border: var(--wp--custom--border-width--1) dashed var(--wp--preset--color--border-strong);
	font-size: var(--wp--preset--font-size--sm);
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
}

/* Tablets and small laptops: the wide grids close up (breakpoint exception). */
@media (max-width: 1439px) {

	.pa-product-related__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/*
 * Below 1280px the evidence card gets narrow (under 590px) and the text beside the key would be a
 * column of a few words: each key goes above its text, as on phones.
 */
@media (max-width: 1279px) {

	.pa-product-evidence__rows,
	.pa-product-evidence__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1023px) {

	.pa-product-hero__columns,
	.pa-product-ingredients__columns,
	.pa-product-results__columns,
	.pa-product-faq .pa-product-section__inner,
	.pa-product-evidence__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The gallery scrolls sideways, so the purchase stays near the top: 300 × 312 cards 12px apart, radius 24 (Figma: 2-Productos-M). */
	.pa-product-gallery {
		display: flex;
		gap: var(--wp--preset--spacing--12);
		margin-inline: calc(var(--wp--custom--gutter) * -1);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding-inline: var(--wp--custom--gutter);
		scroll-padding-inline: var(--wp--custom--gutter);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.pa-product-gallery__item,
	.pa-product-gallery__item--main {
		aspect-ratio: 300 / 312;
		border-radius: var(--wp--custom--radius--24);
		flex: 0 0 var(--wp--custom--size--blog-card);
		scroll-snap-align: start;
	}

	/*
	 * A single image, centred and with the shape of the gallery cards (300 : 312): the whole width
	 * on phones, at most 480 wide on a tablet. The same shape as always, so an ambient photo, which
	 * fills its box, is not cut differently.
	 */
	.pa-product-gallery:has(> .pa-product-gallery__item:only-child) {
		justify-content: center;
	}

	.pa-product-gallery__item:only-child {
		flex-basis: 100%;
		max-inline-size: var(--wp--custom--size--gallery-single-max);
	}

	/*
	 * Sections of the mobile Figma (2-Productos-M): 32px above and below and 16 between their
	 * parts. Over the padding some sections have of their own on desktop.
	 */
	.pa-product .pa-product-section {
		padding-block: var(--wp--preset--spacing--32);
	}

	.pa-product-section__inner {
		gap: var(--wp--preset--spacing--16);
	}

	/*
	 * 01 Benefits (Mobile / 06 / Beneficios): the two blocks 44px apart; in each, 16 between the
	 * title, the text and the button; the button at least 288 wide (291 in the Figma, which gives
	 * both the width of the longer one). It keeps the 48px of every mobile button (button.css; the
	 * product Figma has 52).
	 */
	.pa-product-benefits__columns {
		gap: calc(var(--wp--preset--spacing--40) + var(--wp--preset--spacing--4));
	}

	.pa-product-benefits__column {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-product-benefits__column .pa-product-buttons {
		margin-block-start: 0;
	}

	.pa-product-benefits__column .wp-block-button__link {
		min-inline-size: var(--wp--custom--size--card-small);
	}

	/* Section headings as the mobile H2 (24/30 medium): the desktop Figma has some in regular. */
	.pa-product-heading .wp-block-heading.is-style-light {
		font-weight: var(--wp--custom--font-weight--medium);
		letter-spacing: normal;
	}

	.pa-product-articles .pa-product-section__inner {
		gap: var(--wp--preset--spacing--16);
	}

	/*
	 * 03 How to take it (Mobile / 09 / Ritual diario): the eyebrow 16 above the title and the title
	 * 40 above the steps, which are 300px cards 12px apart in a row that scrolls sideways to the edge
	 * of the screen. Each card with the brown line, a radius of 20 and 24/16 inside, 24 between the
	 * number (56, 32/40), the texts (18/24 medium and 16/24, 20 apart) and the media: the moments as
	 * pills of 160 (label 14/21, icon 24), the photo 121 high, the pair 128 high with the + at 18/24.
	 */
	.pa-product-ritual .pa-product-heading--loose {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-product-ritual__steps {
		display: flex;
		gap: var(--wp--preset--spacing--12);
		margin-block-start: var(--wp--preset--spacing--24);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter));
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-product-ritual__step {
		border-radius: var(--wp--custom--radius--20);
		flex: 0 0 var(--wp--custom--size--blog-card);
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
	}

	/* A single step takes the whole width: alone at 300px it would sit on the left with nothing beside it. */
	.pa-product-ritual__step:only-child {
		flex-basis: 100%;
	}

	.pa-product-ritual__number {
		font-size: var(--wp--custom--font-size--mobile-step);
		font-weight: var(--wp--custom--font-weight--regular);
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	.pa-product-ritual__text {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-product-ritual__title {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-product-ritual__text p {
		line-height: var(--wp--custom--line-height--label);
	}

	.pa-product-ritual__product {
		border-radius: var(--wp--custom--radius--8);
		max-block-size: var(--wp--custom--size--ritual-media-mobile);
	}

	.pa-product-ritual__pair {
		gap: var(--wp--preset--spacing--12);
	}

	.pa-product-ritual__pair .pa-product-ritual__product {
		max-block-size: var(--wp--custom--size--ritual-pair-mobile);
	}

	.pa-product-ritual__plus {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	/* The moments the whole width of the card (the media box would shrink to them). */
	.pa-product-ritual__media:has(.pa-product-moments) {
		align-self: stretch;
	}

	/* As wide as the card, up to the 310 of the desktop moments (a single step takes the whole width). */
	.pa-product-moments {
		inline-size: 100%;
		margin-inline: auto;
		max-inline-size: var(--wp--custom--size--ritual-moments);
	}

	.pa-product-moment {
		block-size: var(--wp--custom--size--ritual-moment-mobile);
		padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--8) var(--wp--preset--spacing--20);
	}

	/* The capsule 56 high (over WooCommerce's .woocommerce img { height: auto }). */
	.pa-product-moment .pa-product-moment__capsule {
		block-size: var(--wp--custom--size--icon-medium);
		inline-size: auto;
		margin-block-end: 0;
	}

	.pa-product-moment__label {
		line-height: var(--wp--custom--line-height--label);
	}

	.pa-product-moment__icon {
		block-size: var(--wp--custom--size--icon);
		inline-size: var(--wp--custom--size--icon);
	}

	/*
	 * 04 Results (Mobile / 11 / Resultados): the heading, the timeline, the image and the notice under
	 * the image (13/18), 40 from it; 52px at the bottom of the section. The text column makes no box,
	 * so the notice can go after the image. Timeline: the dots (8) and the line 32px to the left of the
	 * text; in each stage the label (18/24, olive), 20 to the title (18/24 medium) and 8 to the text;
	 * the stages 16 apart, each with the line under it 16 below.
	 */
	.pa-product .pa-product-results {
		padding-block-end: calc(var(--wp--preset--spacing--48) + var(--wp--preset--spacing--4));
	}

	.pa-product-results__columns {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
	}

	.pa-product-results__text {
		display: contents;
	}

	/* At most 480 wide, centred (the whole width of a tablet would make it over 1,000 high). */
	.pa-product-results__figure {
		align-self: center;
		margin-block-start: calc(var(--wp--preset--spacing--40) + var(--wp--preset--spacing--4) - var(--wp--preset--spacing--16));
		max-inline-size: var(--wp--custom--size--gallery-single-max);
		order: 1;
		width: 100%;
	}

	.pa-product-results__notice {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
		margin-block-start: calc(var(--wp--preset--spacing--40) - var(--wp--preset--spacing--16));
		order: 2;
	}

	.pa-timeline {
		gap: var(--wp--preset--spacing--16);
		padding-inline-start: var(--wp--preset--spacing--32);
	}

	.pa-timeline__item {
		--pa-dot-top: var(--wp--preset--spacing--8);
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--wp--preset--spacing--20);
	}

	.pa-timeline__item::before {
		inset-inline-start: calc(var(--wp--preset--spacing--32) * -1);
	}

	.pa-timeline__item:not(:last-child)::after {
		inset-block: calc(var(--pa-dot-top) + var(--pa-dot) / 2) calc((var(--wp--preset--spacing--16) + var(--pa-dot-top) + var(--pa-dot) / 2) * -1);
		inset-inline-start: calc(var(--wp--preset--spacing--32) * -1 + var(--pa-dot) / 2);
	}

	.pa-timeline__label {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-timeline__body {
		grid-column: auto;
		padding-block-end: var(--wp--preset--spacing--16);
	}

	.pa-timeline__title {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	/*
	 * 05 Comparison (Mobile / 12 / Comparativa), the Home's table: 16 between the eyebrow and the
	 * title. Its padding and the gap to the table are in sections.css, with the Home's.
	 */
	.pa-product .pa-product-comparison .pa-eyebrow-heading {
		gap: var(--wp--preset--spacing--16);
	}

	/*
	 * 07 Sustainability (Mobile / 14 / Sostenibilidad): 44px above and below (45 in the Figma), 48
	 * from the heading to the commitments, which are 300px cards 12px apart in a row that scrolls
	 * sideways to the edge of the screen: the title (18/24 medium) 16 above the text, 32 to the photo
	 * (300 × 240, radius 24).
	 */
	.pa-product .pa-product-packaging {
		padding-block: calc(var(--wp--preset--spacing--40) + var(--wp--preset--spacing--4));
	}

	.pa-product-packaging__list {
		display: flex;
		gap: var(--wp--preset--spacing--12);
		margin-block-start: var(--wp--preset--spacing--32);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter));
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-product-packaging__item {
		display: flex;
		flex: 0 0 var(--wp--custom--size--blog-card);
		flex-direction: column;
		gap: var(--wp--preset--spacing--32);
	}

	.pa-product-packaging__text {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-product-packaging__title {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-product-packaging__figure {
		aspect-ratio: 300 / 240;
		border-radius: var(--wp--custom--radius--24);
	}

	/*
	 * 09 FAQ (Mobile / 16 / Preguntas frecuentes): 16 from the heading to the questions; each with 8
	 * above and below and the line under it; the question a row of 48 (12 above and below) at 18/24
	 * with the sign at 22/28 medium; the answer 12 under the question.
	 */
	.pa-product-faq .pa-product-section__inner {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-faq__item,
	.pa-faq__item:first-child {
		padding-block: var(--wp--preset--spacing--8);
	}

	.pa-faq__question {
		box-sizing: border-box;
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		gap: var(--wp--preset--spacing--12);
		line-height: var(--wp--custom--line-height--mobile-compact);
		min-block-size: var(--wp--custom--size--control-mobile);
		padding-block: var(--wp--preset--spacing--12);
	}

	.pa-faq__question::after {
		block-size: var(--wp--preset--spacing--32);
		font-size: var(--wp--custom--font-size--mobile-sign);
		font-weight: var(--wp--custom--font-weight--medium);
		line-height: var(--wp--custom--line-height--normal);
	}

	.pa-faq__answer {
		padding-block-start: var(--wp--preset--spacing--12);
		padding-inline-end: 0;
	}

	/*
	 * «You may also like» (Mobile / 19 / Productos relacionados): 20 from the title to the products,
	 * in two columns 12 apart and rows 32 apart. Each card centred: the photo square on light grey
	 * with a radius of 20, 10 to the name (15/21 medium), 16 to the format (12/16), the price under
	 * it (17/24 semibold) and the button 6 below, 48 high and the whole width (14/20 semibold).
	 */
	.pa-product-related__list {
		gap: var(--wp--preset--spacing--32) var(--wp--preset--spacing--12);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-block-start: var(--wp--preset--spacing--4);
	}

	.pa-product-related__card {
		align-items: center;
		gap: 0;
		text-align: center;
	}

	.pa-product-related__media {
		border-radius: var(--wp--custom--radius--20);
		inline-size: 100%;
		margin-block-end: calc(var(--wp--preset--spacing--8) + var(--wp--preset--spacing--4) / 2);
		padding: 0;
	}

	.pa-product-related__card .pa-product-card__title {
		font-size: var(--wp--custom--font-size--mobile-card-title);
		line-height: var(--wp--custom--line-height--mobile-card);
	}

	.pa-product-related__format {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
		margin-block-start: var(--wp--preset--spacing--16);
	}

	.pa-product-related__price {
		font-size: var(--wp--custom--font-size--mobile-price);
		font-weight: var(--wp--custom--font-weight--semibold);
		line-height: var(--wp--custom--line-height--mobile-card);
		margin-block-end: calc(var(--wp--preset--spacing--4) + var(--wp--preset--spacing--4) / 2);
		padding-block-start: var(--wp--preset--spacing--16);
	}

	.pa-product-related__button {
		inline-size: 100%;
	}

	.pa-product-related__button > .wp-block-button__link {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
		min-block-size: var(--wp--custom--size--control-mobile);
		padding-inline: var(--wp--preset--spacing--8);
	}

	/*
	 * Clinical evidence (Mobile / 07 / Ciencia): the photo panel and the glass card with a radius of
	 * 20 and 24/16 inside, 16 between all their parts (20 from the heading to the text); each row
	 * in one column, the key at 26/32 light, 16 to its text and its link, and the rows 16 apart
	 * with the line between them.
	 */
	.pa-product-evidence__panel,
	.pa-product-evidence__card {
		border-radius: var(--wp--custom--radius--20);
		gap: var(--wp--preset--spacing--16);
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
	}

	.pa-product-evidence__card .pa-product-heading + .is-style-lead {
		margin-block-start: var(--wp--preset--spacing--4);
	}

	.pa-product-evidence__card .pa-product-buttons + .pa-product-buttons {
		margin-block-start: 0;
	}

	.pa-product-evidence__rows,
	.pa-product-evidence__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.pa-product-evidence__row {
		gap: var(--wp--preset--spacing--16);
		padding-block: var(--wp--preset--spacing--16);
	}

	.pa-product-evidence__key {
		font-size: var(--wp--custom--font-size--mobile-metric);
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	.pa-product-evidence__value {
		gap: var(--wp--preset--spacing--16);
	}

	/* The link of each row as in the Figma: 16/24 regular, underlined. */
	.pa-product-evidence__value .pa-arrow-link {
		font-size: var(--wp--preset--font-size--base);
		font-weight: var(--wp--custom--font-weight--regular);
		line-height: var(--wp--custom--line-height--label);
	}

	/*
	 * 02 Ingredients (Mobile / 08 / Ingredientes): the eyebrow 16 above the title and the title 36
	 * above the image; the image the whole width (358 : 274, the capsule whole inside); 16 from the
	 * image to the list, between the rows and their lines, to the line of the certifications (13/18)
	 * and to the button. Each row on one line: the name at 16/24 medium, the dose label at 12/16
	 * medium on the right and the sign 12px after it, 8px from the edge.
	 */
	.pa-product-ingredients .pa-product-heading--loose {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-product-ingredients__columns {
		gap: var(--wp--preset--spacing--16);
		margin-block-start: var(--wp--preset--spacing--20);
	}

	/* At most 480 wide, centred: on a tablet the whole width would make it some 700 high. */
	.pa-product-ingredients__figure {
		aspect-ratio: 358 / 274;
		justify-self: center;
		max-inline-size: var(--wp--custom--size--gallery-single-max);
		width: 100%;
	}

	.pa-product-ingredients .pa-product-ingredients__image {
		block-size: 100%;
		object-fit: contain;
	}

	.pa-product-ingredients__list,
	.pa-ingredients {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-ingredient__summary {
		align-items: center;
		gap: var(--wp--preset--spacing--12);
		padding-block-end: var(--wp--preset--spacing--16);
		padding-inline-end: var(--wp--preset--spacing--8);
	}

	.pa-ingredient__name {
		font-size: var(--wp--preset--font-size--base);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--label);
		min-inline-size: 0;
	}

	.pa-ingredient__label {
		font-size: var(--wp--preset--font-size--xs);
		font-weight: var(--wp--custom--font-weight--medium);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-ingredient__body {
		padding-block: var(--wp--preset--spacing--16);
	}

	.pa-product-ingredients__certs {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
		margin-block-start: var(--wp--preset--spacing--16);
	}

	/*
	 * Banner (Mobile / 08 / Banner editorial): the photo with a radius of 20, under the same brown
	 * veil at 35%, 280px of photo above the glass box (24 under it, 16 at the sides); the box with a
	 * radius of 20 and 24/16 inside, the kicker at 16/24 and the phrase at 24/30, 8px apart.
	 */
	.pa-product-banner__media {
		aspect-ratio: auto;
		border-radius: var(--wp--custom--radius--20);
		min-block-size: 0;
		padding: calc(var(--wp--custom--size--card-small) - var(--wp--preset--spacing--8)) var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
	}

	/*
	 * The banner photos are wide, with the person on the right (65–80 % of the width), and the mobile box
	 * is tall: cut at 70 %, not in the middle, so the person stays whole (also in the Figma one, centred).
	 */
	.pa-product-banner .pa-product-banner__image {
		object-position: 70% 50%;
	}

	.pa-product-banner__text {
		border-radius: var(--wp--custom--radius--20);
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
	}

	.pa-product-banner__kicker {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	.pa-product-banner__phrase {
		font-size: var(--wp--custom--font-size--mobile-heading);
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	/*
	 * Header as the mobile Figma (2-Productos-M, 04 / Producto / Galería + Compra), measured at 430:
	 * the breadcrumbs, then the title, the national code and the format above the gallery, and the
	 * description, the price, the purchase, the accordions and the certifications under it, 16px
	 * apart (15 in the Figma). The summary column and its intro do not make boxes here, so their
	 * parts can be put in order; the summary keeps its class for seQura. Anything a plugin adds to
	 * the column goes between the purchase and the accordions, where the Figma has seQura.
	 */
	.pa-product-hero {
		gap: var(--wp--preset--spacing--16);
		padding-block: var(--wp--preset--spacing--32);
	}

	/* Every part the whole width (the desktop grid aligns them to the start, which in a column would make them as wide as their text). */
	.pa-product-hero__columns {
		align-items: stretch;
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
	}

	.pa-product-hero .pa-product-hero__columns > .pa-product-hero__summary.summary,
	.pa-product-summary__intro {
		display: contents;
	}

	.pa-product-hero__summary > * {
		order: 8;
	}

	/* Without the column's gap, the bottom margin WooCommerce gives the summary's parts (.woocommerce div.product div.summary > *) would add to the 16px. */
	.pa-product-hero .pa-product-hero__columns > .pa-product-hero__summary.summary > * {
		margin-block-end: 0;
	}

	.pa-product-hero__summary > .pa-product-hero__title {
		order: 1;
	}

	.pa-product-summary__intro > * {
		order: 5;
	}

	.pa-product-summary__intro > .pa-product-summary__code {
		order: 2;
	}

	.pa-product-summary__intro > .pa-product-summary__format {
		order: 3;
	}

	.pa-product-hero__gallery {
		order: 4;
	}

	/* 28px from the gallery to the description, as in the Figma. */
	.pa-product-hero__gallery + .pa-product-hero__summary .pa-product-summary__description {
		margin-block-start: calc(var(--wp--preset--spacing--28) - var(--wp--preset--spacing--16));
	}

	.pa-product-hero__summary > .pa-product-price {
		order: 6;
	}

	.pa-product-hero__summary > .pa-product-buy {
		order: 7;
	}

	/* 24 from the price (22 in the Figma); as specific as the form's own margin: 0. */
	.pa-product-hero .summary > .pa-product-buy.wp-block-add-to-cart-form {
		margin-block-start: var(--wp--preset--spacing--8);
	}

	.pa-product-hero__summary > .pa-product-details {
		order: 9;
	}

	/* Breadcrumbs 13/18; title 26/32; national code 12/16 medium; format 16/24 medium. */
	.pa-product-hero__breadcrumbs .woocommerce-breadcrumb {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
	}

	.pa-product-hero .pa-product-hero__title {
		font-size: var(--wp--custom--font-size--mobile-metric);
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	/* The code sits in a 28px box in the Figma: 12px more down to the format. */
	.pa-product-summary__code {
		font-size: var(--wp--preset--font-size--xs);
		font-weight: var(--wp--custom--font-weight--medium);
		line-height: var(--wp--custom--line-height--mobile-compact);
		padding-block-end: var(--wp--preset--spacing--12);
	}

	.pa-product-summary__format {
		font-size: var(--wp--preset--font-size--base);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--label);
	}

	/*
	 * Description: the first line in bold on a line of its own, 12px above the text (the Figma has
	 * them as two paragraphs; the description keeps them in one, with a line break). Bold is the
	 * theme's 600: the font is loaded up to 600, and the Figma's 700 would be drawn by the browser.
	 * The class comes from mark_lead() (inc/product/header.php): a bold word inside a sentence stays inline.
	 */
	.pa-product-summary__description .pa-product-summary__lead {
		display: block;
		margin-block-end: var(--wp--preset--spacing--12);
	}

	.pa-product-summary__description .pa-product-summary__lead + br {
		display: none;
	}

	/* «Read more» right under the paragraph, as in the Figma. */
	.pa-product-summary__description > .pa-read-more {
		margin-block-start: 0;
	}

	/* Price 18/24 medium, «(VAT included)» too. */
	.pa-product-hero .pa-product-price {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		font-weight: var(--wp--custom--font-weight--medium);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	/* Purchase: quantity 144 × 56 with the number at 18/28, and «Add to cart» 56 high, as wide as its text. */
	.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form :is(form.cart, .variations_button) {
		gap: var(--wp--preset--spacing--12);
	}

	.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart div.quantity.wc-block-components-quantity-selector,
	.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart div.quantity {
		block-size: var(--wp--custom--size--control);
	}

	.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .quantity :is(.wc-block-components-quantity-selector__button, input.qty) {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		line-height: var(--wp--custom--line-height--relaxed);
	}

	.pa-product-hero .summary .pa-product-buy.wp-block-add-to-cart-form form.cart .single_add_to_cart_button {
		flex: none;
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
		min-block-size: var(--wp--custom--size--control);
		min-inline-size: 0;
		padding-inline: var(--wp--preset--spacing--20);
	}

	/*
	 * Accordions: rows of 44 at 16/24 medium, the sign at 18, lines of 1px above the first row,
	 * under each row and under an open text, which has 12px above and below.
	 */
	.pa-product-details {
		gap: var(--wp--preset--spacing--16);
	}

	.pa-product-details > .pa-accordion {
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	}

	.pa-product-details > .pa-accordion:first-child {
		border-block-start: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	}

	.pa-product-details > .pa-accordion + .pa-accordion {
		margin-block-start: calc(var(--wp--preset--spacing--16) * -1);
	}

	.pa-accordion__summary {
		border-block-end: 0;
		box-sizing: border-box;
		font-size: var(--wp--preset--font-size--base);
		gap: var(--wp--preset--spacing--12);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--label);
		min-block-size: var(--wp--custom--size--control-touch);
		padding-block: var(--wp--preset--spacing--8);
	}

	.pa-accordion__summary::after {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		font-weight: var(--wp--custom--font-weight--medium);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-accordion[open] > .pa-accordion__summary {
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	}

	.pa-accordion__body {
		gap: var(--wp--preset--spacing--12);
		padding-block: var(--wp--preset--spacing--12);
	}

	/*
	 * The link to 02 Ingredients under the last accordion, as in the mobile Figma: a row of 48 at
	 * 14/20 semibold, with the arrow at 18, right under the line of the accordions.
	 */
	.pa-product-details > .pa-product-details__link {
		align-items: center;
		display: flex;
		margin-block: calc(var(--wp--preset--spacing--16) * -1) 0;
		min-block-size: var(--wp--custom--size--control-mobile);
	}

	.pa-product-details__link .pa-arrow-link {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	.pa-product-details__link .pa-arrow-link__arrow {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	/* Certifications: two columns 12px apart, each with the 40px icon on the left and the name at 13/18; without the indent of the lists of text (.pa-product-details ul). */
	.pa-product-details .pa-product-certs {
		gap: var(--wp--preset--spacing--12);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-block-start: 0;
		padding-inline-start: 0;
	}

	.pa-product-certs__item {
		flex-direction: row-reverse;
		gap: var(--wp--preset--spacing--8);
		justify-content: flex-end;
		text-align: start;
	}

	.pa-product-certs__label {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
	}

	.pa-product-certs__icon {
		block-size: var(--wp--custom--size--control-small);
		inline-size: var(--wp--custom--size--control-small);
	}

	.pa-product-evidence__figure {
		justify-self: center;
		max-inline-size: var(--wp--custom--size--card);
		width: 100%;
	}

	/* As the Home below 1024px (sections.css, .pa-blog): 300px cards 12px apart in a row that scrolls sideways to the edge of the screen, 20px between the photo, the category and the title. */
	.pa-product-articles__list {
		display: flex;
		gap: var(--wp--preset--spacing--12);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter));
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-product-article {
		flex: 0 0 var(--wp--custom--size--blog-card);
	}

	.pa-product-article__link {
		gap: var(--wp--preset--spacing--20);
	}
}

/* Tablets (768–1023): «You may also like» in three columns, as the shop grid (2 on phones). */
@media (min-width: 768px) and (max-width: 1023px) {

	.pa-product-related__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phones (below 641px). */
@media (max-width: 640px) {

	.pa-product-benefits__columns {
		grid-template-columns: minmax(0, 1fr);
	}

}
/**
 * «Leer más» (Figma: Mobile / Disclosure / Leer más): a Details block with the class pa-read-more.
 * On phones and tablets (below 1024px) it is closed, with a 48px summary at 14px and a «+» that turns into «−»,
 * over a line in brown at 35%; open, the summary says «Leer menos». From 1024px it is always open and without the summary, so the text
 * reads as on desktop. Breakpoints in numbers: media queries cannot read tokens.
 */
.pa-read-more > summary {
	list-style: none;
}

.pa-read-more > summary::-webkit-details-marker {
	display: none;
}

@media (min-width: 1024px) {

	.pa-read-more > summary {
		display: none;
	}

	.pa-read-more::details-content {
		content-visibility: visible;
	}

	/* The block after the hidden summary takes no top margin, as if the summary were not there. */
	.pa-read-more > summary + * {
		margin-block-start: 0;
	}
}

@media (max-width: 1023px) {

	.pa-read-more > summary {
		align-items: center;
		border-block-end: var(--wp--custom--border-width--1) solid var(--wp--preset--color--brand-brown-alpha-35);
		box-sizing: border-box;
		cursor: pointer;
		display: flex;
		font-size: var(--wp--preset--font-size--sm);
		font-weight: var(--wp--custom--font-weight--medium);
		gap: var(--wp--preset--spacing--12);
		justify-content: space-between;
		line-height: var(--wp--custom--line-height--mobile-label);
		min-height: var(--wp--custom--size--read-more);
		padding-block: var(--wp--preset--spacing--8);
	}

	.pa-read-more > summary::after {
		content: "+";
		flex: none;
		font-size: var(--wp--custom--font-size--mobile-detail);
		line-height: var(--wp--custom--line-height--snug);
	}

	.pa-read-more[open] > summary::after {
		content: "−";
	}

	/* «Leer más» closed, «Leer menos» open: the summary has both labels (inc/disclosure.php, inc/product/header.php, inc/catalog/card.php). */
	.pa-read-more:not([open]) .pa-read-more__label--open,
	.pa-read-more[open] .pa-read-more__label:not(.pa-read-more__label--open) {
		display: none;
	}

	.pa-read-more > summary:focus-visible {
		outline: var(--wp--custom--border-width--2) solid currentcolor;
		outline-offset: var(--wp--preset--spacing--4);
	}

	.pa-read-more > :not(summary) {
		margin-block: var(--wp--preset--spacing--20) 0;
	}
}

/*
 * «Leer más» as a text link (Figma: 2-Productos-M, Mobile / Acción / Leer más), for the short
 * description of the product page: 14/20 semibold, underlined, with the arrow after it and no line
 * under it (only the label is underlined, not the arrow). Once open it stays where it was as
 * «Leer menos», with the arrow up, so it can be folded again and the focus is not lost, and the
 * rest of the text shows 12px under it.
 */
@media (max-width: 1023px) {

	.pa-read-more--link > summary {
		border-block-end: 0;
		display: inline-flex;
		font-weight: var(--wp--custom--font-weight--semibold);
		gap: var(--wp--preset--spacing--8);
		justify-content: flex-start;
	}

	.pa-read-more--link .pa-read-more__label {
		text-decoration: underline;
		text-underline-offset: var(--wp--preset--spacing--4);
	}

	.pa-read-more--link > summary::after {
		content: "→";
		display: inline-block;
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	.pa-read-more--link[open] > summary::after {
		content: "↑";
	}

	.pa-read-more--link > :not(summary) {
		margin-block: var(--wp--preset--spacing--12) 0;
	}
}
/**
 * Home sections (patterns/*.php). One block per pattern, in the order of the Figma Home.
 */

/* Full-width covers keep the page gutter on small screens, also in pages seeded before the
   patterns carried it (their padding is inline, hence !important). */
.wp-block-post-content > .wp-block-cover.alignfull {
	padding-inline: var(--wp--custom--gutter) !important;
}

/* 01 / Proaging / Hero */
/*
 * The hero fills the screen under the header (and the admin bar), so the photo and the buttons are
 * on screen from the start. On tablets and computers it is never shorter than hero-min; on phones
 * (small breakpoint, 640px: media queries cannot read tokens) its content sets the minimum.
 * 100vh first, for the browsers without svh (the screen with the browser bars shown).
 */
.pa-hero {
	align-items: flex-end;
	min-height: max(var(--pa-hero-min, var(--wp--custom--size--hero-min)), calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--pa-header-size)));
	min-height: max(var(--pa-hero-min, var(--wp--custom--size--hero-min)), calc(100svh - var(--wp-admin--admin-bar--height, 0px) - var(--pa-header-size)));
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 01 / Healthy Longevity / Hero): 24px of padding, the eyebrow at the top and
 * the message at the bottom, over the veil of the Figma (brown, from clear to 92% at the bottom),
 * 16px between the title, the text and the buttons, and the two buttons side by side, as wide as
 * their text.
 */
@media (max-width: 1023px) {

	.pa-hero {
		--pa-hero-min: 0px;
		--pa-section-padding-mobile: var(--wp--preset--spacing--24);
		align-items: stretch;
	}

	.pa-hero::after {
		background-image: var(--wp--preset--gradient--hero-veil);
		content: "";
		inset: 0;
		pointer-events: none;
		position: absolute;
	}

	.pa-hero > .wp-block-cover__inner-container {
		display: flex;
		position: relative;
		z-index: 1;
	}

	.pa-hero > .wp-block-cover__inner-container > .wp-block-group {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--16);
		width: 100%;
	}

	.pa-hero > .wp-block-cover__inner-container > .wp-block-group > * {
		margin-block: 0;
	}

	.pa-hero .is-style-eyebrow {
		margin-block-end: auto !important; /* Pushes the message to the bottom, over the layout gap. */
	}

	/* The lines break as in the Figma, without balancing them; the title without the desktop tracking. */
	.pa-hero .pa-hero__title,
	.pa-hero .pa-hero__lead {
		text-wrap: wrap;
	}

	.pa-hero .pa-hero__title {
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	/* Side by side; on the narrowest phones (under ~340px) the second one goes under the first. */
	.pa-hero .wp-block-buttons {
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--12);
	}

	/* As specific as button.css (.wp-block-buttons > .wp-block-button:not(…)), which stretches them on phones. */
	.pa-hero .wp-block-buttons > .wp-block-button.wp-block-button {
		flex: 0 0 auto;
		min-width: 0;
		width: auto;
	}

	.pa-hero .wp-block-buttons > .wp-block-button > .wp-block-button__link.wp-block-button__link {
		min-height: 0;
		min-width: 0;
		padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
		width: auto;
	}
}

.pa-hero__title {
	letter-spacing: var(--wp--custom--letter-spacing--tighter);
	line-height: var(--wp--custom--line-height--snug);
	text-wrap: balance;
}

.pa-hero__lead {
	text-wrap: pretty;
}

/*
 * Menú / FINBA · Consejo · Patente: one row of chips spread across the wide width, each one as wide as
 * its text and always on one line. The three chips are links (.pa-chip-list a); a Home saved before
 * 2026-11-15 still has two of them without a link (.pa-chip).
 */
.pa-respaldo__list > p {
	flex-shrink: 0;
	margin: 0;
	white-space: nowrap;
}

/*
 * One row at every width, whatever layout the saved content has (a Home saved with the old markup,
 * a translation). If the row is ever wider than its box (a longer text, another font), it scrolls
 * sideways instead of widening the page.
 */
.pa-respaldo .pa-respaldo__list.pa-respaldo__list {
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden; /* With overflow-x, the row would scroll up and down by a few pixels too. */
	scrollbar-width: none;
}

/* The focus ring inside the chip: the scrolling row would cut one drawn outside. */
.pa-respaldo__list a:focus-visible {
	outline-offset: calc(-1 * var(--wp--custom--border-width--2));
}

/* Up to 1159px, the row only fits on one line with the 14px text of the phones (breakpoint exception). */
@media (max-width: 1159px) {

	.pa-respaldo__list .pa-chip,
	.pa-respaldo__list .pa-chip-list a {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / Menú / FINBA · …): 16px of padding and a row that scrolls
 * sideways, from the page margin to the edge of the screen.
 */
@media (max-width: 1023px) {

	.pa-respaldo {
		--pa-section-padding-mobile: var(--wp--preset--spacing--16);
	}

	.pa-respaldo .pa-respaldo__list.pa-respaldo__list {
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		padding-inline-end: var(--wp--custom--gutter);
	}
}

/* Section heading (eyebrow + heading), reused by most sections */
.pa-eyebrow-heading .wp-block-heading,
.pa-eyebrow-heading p {
	margin: 0;
}

/* 02 / Nuestro ADN / 6 + 6 */
.pa-adn__columns {
	justify-content: space-between;
}

.pa-adn__manifesto {
	border-radius: var(--wp--custom--radius--40);
}

.pa-adn__manifesto p {
	margin: 0;
}

/*
 * The card keeps its Figma width and the text adapts. Tokens live here because the Column block
 * only saves numeric widths, and a var() there makes it invalid in the editor.
 */
@media (min-width: 1024px) {

	.pa-adn__story.pa-adn__story {
		max-width: var(--wp--custom--size--intro);
	}

	/* Core sets flex-basis and flex-grow on columns with a three-class selector. */
	.wp-block-columns.pa-adn__columns > .wp-block-column.pa-adn__aside {
		flex: 0 0 var(--wp--custom--size--manifesto);
	}
}

/* Below that the text would be too narrow next to the card. WordPress only stacks under 782px. */
@media (max-width: 1023px) {

	.pa-adn__columns.pa-adn__columns {
		flex-wrap: wrap !important;
	}

	.pa-adn__columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* From 1024px the «Leer más» of the story is open: its paragraphs keep the 32px of the column. */
@media (min-width: 1024px) {

	/* 28px between the paragraphs of the story (desktop Figma 8106:149450), 32 to the link. */
	.pa-adn__story .pa-read-more > * + * {
		margin-block-start: calc(7 * var(--wp--preset--spacing--4));
	}

	.pa-adn .pa-adn__story > .pa-read-more {
		margin-block-start: calc(7 * var(--wp--preset--spacing--4));
	}

}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 02 / Nuestro ADN): 20px between the heading, the story and the card; the
 * card with a radius of 20, 32px above and below and 16px at the sides, and its text at 18/24.
 */
@media (max-width: 1023px) {

	/* The gaps of the Figma, over the layout's. */
	.pa-adn > *,
	.pa-adn .pa-adn__story > * {
		margin-block: 0 !important;
	}

	.pa-adn > * + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-adn .pa-adn__columns,
	.pa-adn .pa-adn__story {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-adn .pa-adn__story {
		display: flex;
		flex-direction: column;
	}

	/* 30px from the link to the card: the frame of the link is 58px high for a 48px button in the Figma. */
	.pa-adn .pa-adn__story > .wp-block-buttons:last-child {
		margin-block-end: calc(2.5 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-adn .pa-adn__manifesto.pa-adn__manifesto {
		border-radius: var(--wp--custom--radius--20);
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	/* The story has no bold in the mobile Figma (PROAGING, Proage, LFL keep the weight of the text). */
	.pa-adn .pa-adn__story strong {
		font-weight: inherit;
	}

	.pa-adn .pa-adn__manifesto > p:first-child {
		font-size: var(--wp--custom--font-size--mobile-subtitle) !important; /* Over the size saved in the editor (lg-plus). */
		line-height: var(--wp--custom--line-height--mobile-compact) !important;
	}
}

/*
 * Phones, below 768px (Figma: Mobile / 04 / Producto insignia): one column, with the photo after the title and
 * before the text, 20px between every block and the photo with a radius of 20. The columns lend
 * their blocks to the row (display: contents) so they can be ordered. On tablets the full-width
 * photo would fill the screen before the text: from 768 the section keeps the two columns of the
 * desktop (rule below).
 */
@media (max-width: 767px) {

	.pa-insignia .wp-block-columns.wp-block-columns {
		flex-direction: column;
		flex-wrap: nowrap !important;
		gap: 0;
	}

	.pa-insignia .wp-block-columns > .wp-block-column {
		display: contents;
	}

	.pa-insignia .wp-block-columns .wp-block-column > * {
		margin-block: var(--wp--preset--spacing--20) 0 !important;
		order: 3;
	}

	.pa-insignia .wp-block-columns .wp-block-column > .is-style-eyebrow {
		margin-block-start: 0 !important;
		order: 1;
	}

	.pa-insignia .wp-block-columns .wp-block-column > :is(.wp-block-heading, .pa-insignia__image) {
		order: 2;
	}

}

/*
 * On the corporate pages (Healthspan Peakspan) and the shop (Figma: Mobile / 04 / Producto insignia
 * / 7 + 6, 8106:160685) the photo goes after all the text, 44px below the button, instead of after
 * the title as on the Home. On the shop, 32px over and under the section, as the other sections of
 * the mobile Figma (the cover keeps the desktop padding inline).
 */
@media (max-width: 767px) {

	:is(.page-template-page-sections, .pa-catalog-page) .pa-insignia .wp-block-columns .wp-block-column > .wp-block-heading {
		order: 1;
	}

	:is(.page-template-page-sections, .pa-catalog-page) .pa-insignia .wp-block-columns .wp-block-column > .pa-insignia__image {
		margin-block-start: calc(11 * var(--wp--preset--spacing--4)) !important;
		order: 4;
	}

	.pa-catalog-page .pa-insignia.wp-block-cover {
		padding-block: var(--wp--preset--spacing--32) !important;
	}
}

/*
 * Tablets, 768 to 1023px: the two columns of the desktop. Below 782px core stacks them and forces
 * flex-basis 100% with !important, over the widths saved in the pattern: they are repeated here
 * (57.5% and 40.5%, patterns/producto-insignia.php). The radius of the photo follows its size (rule
 * of .pa-insignia__image img).
 */
@media (min-width: 768px) and (max-width: 1023px) {

	.pa-insignia .wp-block-columns.wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.pa-insignia .wp-block-columns.wp-block-columns > .wp-block-column:first-child {
		flex-basis: 57.5% !important;
	}

	.pa-insignia .wp-block-columns.wp-block-columns > .wp-block-column:last-child {
		flex-basis: 40.5% !important;
	}

}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 06 / Test y protocolos): two cards 20px apart, each with 32px above and
 * below and 16 at the sides, a radius of 20 and 20px between its texts and the button.
 */
@media (max-width: 1023px) {

	.pa-test .wp-block-columns.wp-block-columns {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-test .pa-test__card.pa-test__card {
		border-radius: var(--wp--custom--radius--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-test .pa-test__card > * {
		margin-block: 0 !important;
	}

	.pa-test .pa-test__card > * + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}
}

/*
 * Phones, below 768px (Figma: Mobile / 07 / Apoyo personalizado): one column with the photo after the texts and
 * before the button, 20px between every block (16 under the eyebrow) and the photo with a radius of
 * 20. The columns lend their blocks to the row (display: contents) so they can be ordered. On
 * tablets the portrait would fill the screen: from 768px the two columns of the desktop stay.
 */
@media (max-width: 767px) {

	.pa-apoyo .pa-apoyo__columns.pa-apoyo__columns {
		flex-direction: column;
		flex-wrap: nowrap !important;
		gap: 0;
	}

	.pa-apoyo .pa-apoyo__columns > .wp-block-column {
		display: contents;
	}

	.pa-apoyo .pa-apoyo__columns .wp-block-column > * {
		margin-block: var(--wp--preset--spacing--20) 0 !important;
		order: 1;
	}

	.pa-apoyo .pa-apoyo__columns .wp-block-column > .pa-eyebrow-heading {
		margin-block-start: 0 !important;
	}

	.pa-apoyo .pa-apoyo__columns .wp-block-column > .pa-apoyo__image {
		order: 2;
	}

	.pa-apoyo .pa-apoyo__columns .wp-block-column > :is(.wp-block-buttons, .is-style-small) {
		order: 3;
	}

	.pa-apoyo .pa-apoyo__image img {
		border-radius: var(--wp--custom--radius--20);
	}

	/* The button of the Figma takes the width of the column here (384 of 398px). */
	.pa-apoyo .wp-block-buttons > .wp-block-button.wp-block-button,
	.pa-apoyo .wp-block-buttons > .wp-block-button.wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 08 / Investigación e innovación): 20px between the heading, the text and
 * the card; the card with 32px above and below, 16 at the sides, a radius of 20 and 20px from its
 * text to the button, which takes the width of the card here.
 */
@media (max-width: 1023px) {

	.pa-investigacion .pa-eyebrow-heading ~ *,
	.pa-investigacion .pa-investigacion__evidence {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-investigacion .pa-investigacion__evidence.pa-investigacion__evidence {
		border-radius: var(--wp--custom--radius--20);
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-investigacion .pa-investigacion__evidence .wp-block-buttons {
		margin-block-start: 0 !important;
		width: 100%;
	}

	.pa-investigacion .pa-investigacion__evidence .wp-block-buttons > .wp-block-button.wp-block-button,
	.pa-investigacion .pa-investigacion__evidence .wp-block-buttons > .wp-block-button.wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

/*
 * Price and button at the bottom of the card, as in the catalogue: when a name, a description or a
 * price range takes one more line, the cards of a row still line up their prices and buttons.
 */
.pa-formulaciones .pa-product-card > .pa-price {
	margin-block-start: auto;
}

/*
 * Narrow desktops (1024 to 1279px): the four cards are too narrow for «Añadir al carrito» on one
 * line with the padding of the button; the button takes the width of the card, text centred.
 * Breakpoints in numbers: media queries cannot read tokens.
 */
@media (min-width: 1024px) and (max-width: 1279px) {

	.pa-formulaciones .pa-product-card .wp-block-button,
	.pa-formulaciones .pa-product-card .wp-block-button > .wp-block-button__link {
		width: 100%;
	}

	.pa-formulaciones .pa-product-card .wp-block-button > .wp-block-button__link {
		justify-content: center;
		padding-inline: var(--wp--preset--spacing--16);
		text-align: center;
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 11 / Nuestras formulaciones): two columns 12px apart and 32px between
 * rows; each card centred, with the image at a radius of 20, the name at 15/21 medium (two lines of
 * room), the description at 12/16, the price at 17/24 semibold and the button at the whole width,
 * 44px high; 10px from the image to the name and from the price to the button, 6 between the rest.
 * 32px under the title and above the link (Figma: 34). Only in this section: the shop keeps its card.
 */
@media (max-width: 1023px) {

	/* Two columns, as in the mobile Figma: WooCommerce's responsive grid would put four on tablets. */
	.pa-formulaciones .wc-block-product-template.wc-block-product-template {
		gap: var(--wp--preset--spacing--32) var(--wp--preset--spacing--12);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pa-formulaciones .pa-formulaciones__grid,
	.pa-formulaciones .pa-formulaciones__grid + * {
		margin-block-start: var(--wp--preset--spacing--32) !important;
	}

	.pa-formulaciones .pa-product-card.pa-product-card {
		align-items: stretch;
		gap: 0;
		text-align: center;
	}

	/* 6px between name, description and price; 10px around them (4px steps: the scale has no 6 or 10). */
	.pa-formulaciones .pa-product-card > * {
		margin-block: calc(1.5 * var(--wp--preset--spacing--4)) 0 !important;
	}

	.pa-formulaciones .pa-product-card > .pa-product-card__image {
		margin-block-start: 0 !important;
	}

	.pa-formulaciones .pa-product-card > .pa-product-card__title,
	.pa-formulaciones .pa-product-card > .wp-block-button {
		margin-block-start: calc(2.5 * var(--wp--preset--spacing--4)) !important;
	}

	.pa-formulaciones .pa-product-card__image,
	.pa-formulaciones .pa-product-card__image img {
		border-radius: var(--wp--custom--radius--20);
	}

	/* The name: the room of two lines (Figma: 42px), and two at most, a longer one ending in «…». */
	.pa-formulaciones .pa-product-card__title {
		-webkit-box-orient: vertical;
		display: -webkit-box;
		font-size: var(--wp--custom--font-size--mobile-card-title);
		font-weight: var(--wp--custom--font-weight--medium);
		-webkit-line-clamp: 2;
		line-clamp: 2;
		line-height: var(--wp--custom--line-height--mobile-card);
		min-height: calc(2 * var(--wp--custom--font-size--mobile-card-title) * var(--wp--custom--line-height--mobile-card));
		overflow: hidden;
	}

	.pa-formulaciones .pa-product-card__subtitle,
	.pa-formulaciones .pa-product-card__subtitle p {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
		margin: 0;
	}

	/*
	 * One line of description, as in the Figma («Energía celular»); a longer one ends in «…». The
	 * product of the grid can shrink below its content (min-width 0): without it, the unbroken line
	 * would widen the card over the next one.
	 */
	.pa-formulaciones .wc-block-product-template > li {
		min-width: 0;
	}

	/* The card is a flex group that wraps (core's default): its blocks would take the width of their content. */
	.pa-formulaciones .pa-product-card.pa-product-card {
		flex-wrap: nowrap;
	}

	.pa-formulaciones .pa-product-card > * {
		max-width: 100%;
		min-width: 0;
	}

	.pa-formulaciones .pa-product-card__subtitle p {
		min-height: calc(var(--wp--preset--font-size--xs) * var(--wp--custom--line-height--mobile-compact));
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* The price and the button at the bottom of the card (over the 6px between blocks, set with !important above). */
	.pa-formulaciones .pa-product-card > .pa-price {
		margin-block-start: auto !important;
		padding-block-start: calc(1.5 * var(--wp--preset--spacing--4));
	}

	.pa-formulaciones .pa-price,
	.pa-formulaciones .pa-price .wc-block-components-product-price {
		font-size: var(--wp--custom--font-size--mobile-price);
		font-weight: var(--wp--custom--font-weight--semibold);
		line-height: var(--wp--custom--line-height--mobile-card);
		text-align: center;
	}

	.pa-formulaciones .pa-product-card .wp-block-button,
	.pa-formulaciones .pa-product-card .wp-block-button > .wp-block-button__link {
		width: 100%;
	}

	.pa-formulaciones .pa-product-card .wp-block-button > .wp-block-button__link {
		box-sizing: border-box;
		height: var(--wp--custom--size--control-touch);
		justify-content: center;
		min-height: 0;
		padding: 0 var(--wp--preset--spacing--8);
		text-align: center;
	}
}

/*
 * Tablets, 768 to 1023px: the same card, four in a row. In two columns each card would be about
 * 420px wide; from 768 the four are 162px or more, enough for «Añadir al carrito» on one line.
 * Breakpoints in numbers: media queries cannot read tokens.
 */
@media (min-width: 768px) and (max-width: 1023px) {

	.pa-formulaciones .wc-block-product-template.wc-block-product-template {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 12 / Blog ProAge): the articles in a row of 300px cards, 12px apart, that
 * scrolls sideways to the edge of the screen; the image horizontal (512/300, as every post card)
 * with a radius of 20, 20px between the image, the category and the title (their sizes, the same
 * in every post card, are in pages.css). 40px from the title to the row and 20px to the link.
 */
@media (max-width: 1023px) {

	.pa-blog > :has(.wp-block-query) {
		margin-block-start: var(--wp--preset--spacing--40) !important;
	}

	.pa-blog .wp-block-query + .wp-block-buttons {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-blog .wp-block-post-template.wp-block-post-template {
		display: flex;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--12);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden; /* With overflow-x it would scroll up and down a few pixels too. */
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-blog .wp-block-post-template > .wp-block-post {
		flex: 0 0 var(--wp--custom--size--blog-card);
		margin: 0;
	}

	.pa-blog .pa-card.pa-card {
		gap: 0;
	}

	.pa-blog .pa-card > * {
		margin-block: var(--wp--preset--spacing--20) 0 !important;
	}

	.pa-blog .pa-card > .pa-card__image {
		margin-block-start: 0 !important;
	}

	.pa-blog .pa-card__image,
	.pa-blog .pa-card__image img {
		border-radius: var(--wp--custom--radius--20);
		object-fit: cover;
		width: 100%;
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 13 / Sostenibilidad): the three commitments in a row of 300px cards, 12px
 * apart, that scrolls sideways to the edge of the screen; each card 184px high, with 32px above and
 * below, 16 at the sides, a radius of 20 and 20px from the title to the text. 20px from the heading
 * to the row and from the row to the link.
 */
@media (max-width: 1023px) {

	/* The content sets the height, without the 430px minimum of core's Cover. */
	.pa-sostenibilidad.wp-block-cover {
		min-height: 0;
	}

	.pa-sostenibilidad .pa-sostenibilidad__cards,
	.pa-sostenibilidad .pa-sostenibilidad__cards ~ .wp-block-buttons {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	/* The link is a Button / Text of 48px in the mobile Figma, not the 32px of the Text link style. */
	.pa-sostenibilidad .wp-block-button.is-style-text-link > .wp-block-button__link {
		min-height: var(--wp--custom--size--control-mobile);
	}

	.pa-sostenibilidad .pa-sostenibilidad__cards.pa-sostenibilidad__cards {
		flex-wrap: nowrap !important;
		gap: var(--wp--preset--spacing--12);
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden; /* With overflow-x it would scroll up and down a few pixels too. */
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	/* Core stacks columns on phones with a three-class selector and !important. */
	.wp-block-columns.pa-sostenibilidad__cards > .wp-block-column.pa-sostenibilidad__card {
		border-radius: var(--wp--custom--radius--20);
		box-sizing: border-box;
		flex: 0 0 var(--wp--custom--size--blog-card) !important;
		min-height: var(--wp--custom--size--commitment-card);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) !important; /* Over the padding saved in the editor. */
	}

	.pa-sostenibilidad .pa-sostenibilidad__card > * {
		margin-block: 0 !important;
	}

	.pa-sostenibilidad .pa-sostenibilidad__card > * + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 14 / Confianza): 32px above and 48 below, 42px from the title to the
 * figures (40 + 2: the scale has no 42), and the figures two by two, 16px apart and 40px between rows.
 */
@media (max-width: 1023px) {

	.pa-confianza {
		--pa-section-padding-mobile: var(--wp--preset--spacing--32) var(--wp--preset--spacing--48);
	}

	.pa-confianza .pa-confianza__figures {
		margin-block-start: calc(var(--wp--preset--spacing--40) + var(--wp--custom--border-width--2)) !important;
	}

	.pa-confianza .pa-confianza__figures.pa-confianza__figures {
		column-gap: var(--wp--preset--spacing--16);
		row-gap: var(--wp--preset--spacing--40);
	}

	.wp-block-columns.pa-confianza__figures > .wp-block-column.wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--8)) !important;
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 16 / Opiniones): the opinions in a row of 300px cards, 12px apart, that
 * scrolls sideways to the edge of the screen; each card 183px high at least, with 32px above and
 * below, 16 at the sides, a radius of 20, the quote at the top and the name (12/16) at the bottom.
 * 20px from the heading to the row.
 */
@media (max-width: 1023px) {

	.pa-opiniones .pa-opiniones__cards.pa-opiniones__cards {
		flex-wrap: nowrap !important;
		gap: var(--wp--preset--spacing--12);
		margin-block-start: var(--wp--preset--spacing--20) !important;
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden; /* With overflow-x it would scroll up and down a few pixels too. */
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	/* Core stacks columns on phones with a three-class selector and !important. */
	.wp-block-columns.pa-opiniones__cards > .wp-block-column.wp-block-column {
		flex: 0 0 var(--wp--custom--size--blog-card) !important;
	}

	.pa-opiniones .pa-opinion.pa-opinion {
		border-radius: var(--wp--custom--radius--20);
		gap: var(--wp--preset--spacing--32);
		justify-content: space-between;
		min-height: var(--wp--custom--size--opinion-card);
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16);
	}

	.pa-opiniones .pa-opinion cite {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}
}

/* 05 / Marcadores / 6 + 6 columnas */

/*
 * Home and product page: a summary (client, 2026-11-12: the space held back the purchase). Each tab
 * keeps only the description of its group: the hallmarks are already named on the wheel and the
 * button takes to the whole list in Healthspan. Fórmula ProAge keeps the full list (shared content).
 */
:is(body.home .pa-marcadores, .pa-product-markers) .pa-marcadores__contenido :is(.pa-marcadores__list, .is-style-text-link) {
	display: none;
}

/* From 1024px: 48px between «Ver composición completa» and the button (Figma: 47). */
@media (min-width: 1024px) {

	.pa-marcadores .pa-marcadores__contenido > .wp-block-buttons {
		gap: var(--wp--preset--spacing--48);
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 05 / Marcadores): one column, with the wheel after «Ver composición
 * completa» and before the button, 48px above it and 32px below. The two columns and their groups
 * lend their blocks to the row (display: contents) so they can be ordered.
 */
@media (max-width: 1023px) {

	.pa-marcadores .pa-marcadores__columns.pa-marcadores__columns {
		flex-direction: column;
		flex-wrap: nowrap !important;
		gap: 0;
	}

	.pa-marcadores .pa-marcadores__columns > .wp-block-column,
	.pa-marcadores .pa-marcadores__contenido,
	.pa-marcadores .pa-marcadores__contenido > .wp-block-buttons {
		display: contents;
	}

	.pa-marcadores .pa-marcadores__columns .is-style-eyebrow {
		order: 1;
	}

	.pa-marcadores .pa-marcadores__contenido > :is(.wp-block-heading, .is-style-lead, .pa-marcadores__pestanas) {
		order: 2;
	}

	.pa-marcadores .pa-marcadores__contenido .is-style-text-link {
		margin-block: var(--wp--preset--spacing--20) 0 !important;
		order: 3;
	}

	/* The gaps of the Figma: 16px under the eyebrow, 20px between the rest. */
	.pa-marcadores .pa-marcadores__contenido > .wp-block-heading {
		margin-block: var(--wp--preset--spacing--16) 0 !important;
	}

	.pa-marcadores .pa-marcadores__contenido > :is(.is-style-lead, .pa-marcadores__pestanas) {
		margin-block: var(--wp--preset--spacing--20) 0 !important;
	}

	.pa-marcadores .pa-marcadores__pestanas .wp-block-tab-list + * {
		margin-block-start: var(--wp--preset--spacing--20);
	}

	/* The text of the tab starts those 20px under the tabs: without the 24px saved in the panel. */
	.pa-marcadores .pa-marcadores__panel {
		padding-block-start: 0 !important;
	}

	.pa-marcadores .pa-marcadores__wheel {
		margin-block: var(--wp--preset--spacing--48) 0 !important;
		order: 4;
	}

	.pa-marcadores .pa-marcadores__contenido .is-style-outline {
		margin-block: var(--wp--preset--spacing--32) 0 !important;
		order: 5;
	}

	.pa-marcadores .pa-marcadores__contenido > .pa-referencia {
		margin-block: var(--wp--preset--spacing--24) 0 !important;
		order: 6;
	}

	.pa-marcadores .pa-marcadores__wheel img {
		height: auto;
		width: 100%;
	}
}
.pa-marcadores__columns {
	justify-content: space-between;
}

/*
 * Grids of exactly four cards: four in a row where they fit, otherwise two and two, never three and
 * one; one column where two do not fit. The minimum width of a card jumps from a quarter to a half
 * of the row when four 240px cards and their 32px gaps no longer fit (the clamp() with a large
 * factor works as a switch).
 */
.wp-block-group.is-layout-grid:has(> :nth-child(4):last-child) {
	--pa-grid-gap: var(--wp--preset--spacing--32);
	grid-template-columns: repeat(auto-fill, minmax(max(min(var(--wp--custom--size--tile), 100%), clamp((100% - 3 * var(--pa-grid-gap)) / 4, (4 * var(--wp--custom--size--tile) + 3 * var(--pa-grid-gap) - 100%) * 999, (100% - var(--pa-grid-gap)) / 2)), 1fr));
}

/* Segmented control (core/tabs): pill track with a filled active option. */
.pa-segmented .wp-block-tab-list {
	background-color: var(--wp--preset--color--surface);
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	border-radius: var(--wp--custom--radius--999);
	display: flex;
	gap: 0;
	/* 60px high as in Figma: the 56px tabs, 1px of room and the 1px border. */
	padding: var(--wp--custom--border-width--1);
}

/* Core gives the tabs "flex-grow/basis: inherit !important", so equal widths are set on the list. */
.pa-segmented > .wp-block-tab-list {
	flex-basis: 0;
	flex-grow: 1;
}

.pa-segmented .wp-block-tab-list [role="tab"] {
	background: transparent;
	border: 0;
	padding-block: 0; /* The height is the min-height (56px, as in the Figma), not the label plus core's padding. */
	border-radius: var(--wp--custom--radius--999);
	color: var(--wp--preset--color--text-default);
	cursor: pointer;
	font: inherit;
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	justify-content: center;
	min-height: var(--wp--custom--size--control);
	text-align: center;
}

/*
 * The labels depend on the width of the control, not of the screen: on tablets it sits in a narrow
 * column too. A smaller type and no side padding keep every word whole (container query values:
 * they cannot read tokens).
 */
.pa-segmented {
	container-type: inline-size;
}

@container (max-width: 480px) {

	.pa-segmented .wp-block-tab-list [role="tab"] {
		font-size: var(--wp--preset--font-size--sm);
		overflow-wrap: normal;
		padding-inline: 0;
		word-break: normal;
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Categorías de marcadores, mobile): 56px high, the 48px tabs, 4px around them
 * (3px of room plus the 1px border) and the labels at 14/21.
 */
@media (max-width: 1023px) {

	.pa-segmented .wp-block-tab-list {
		padding: calc(var(--wp--preset--spacing--4) - var(--wp--custom--border-width--1));
	}

	.pa-segmented .wp-block-tab-list [role="tab"] {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--label);
		min-height: var(--wp--custom--size--segmented-tab);
		padding-block: 0;
	}
}

/* On the narrowest controls the labels would touch each other. */
@container (max-width: 295px) {

	.pa-segmented .wp-block-tab-list [role="tab"] {
		font-size: var(--wp--preset--font-size--xs);
	}
}

.pa-segmented .wp-block-tab-list [role="tab"][aria-selected="true"] {
	background-color: var(--wp--preset--color--interactive-selected);
	color: var(--wp--preset--color--text-inverse);
}

/*
 * Hallmarks tabs: each tab takes the colour of its group on the wheel (hallmarks-wheel-2026-v2.png):
 * Primarios, Antagonistas, Integradores, in the order of the pattern, filled when active. On hover
 * the inactive tabs follow the Text rule of the Figma (03 / Layout y uso): the text at 70%.
 */
.pa-marcadores__pestanas .wp-block-tab-list [role="tab"] {
	transition: opacity var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-marcadores__pestanas .wp-block-tab-list [role="tab"]:nth-child(1) {
	--pa-tab-colour: var(--wp--preset--color--accent-slate);
}

.pa-marcadores__pestanas .wp-block-tab-list [role="tab"]:nth-child(2) {
	--pa-tab-colour: var(--wp--preset--color--accent-clay);
}

.pa-marcadores__pestanas .wp-block-tab-list [role="tab"]:nth-child(3) {
	--pa-tab-colour: var(--wp--preset--color--accent-olive);
}

.pa-marcadores__pestanas .wp-block-tab-list [role="tab"]:not([aria-selected="true"]):hover {
	opacity: var(--wp--custom--opacity--hover);
}

.pa-marcadores__pestanas .wp-block-tab-list [role="tab"][aria-selected="true"] {
	background-color: var(--pa-tab-colour);
}

/* Core draws an underline under the active tab; the segmented control uses the fill instead. */
.pa-segmented .wp-block-tab-list [role="tab"][aria-selected="true"]::before {
	content: none;
}

.pa-segmented .wp-block-tab-panel p {
	margin: 0;
}

/*
 * All the panels share one cell, so the tallest sets the height and nothing moves between tabs.
 * Hidden panels stay out of sight and of the keyboard; core hides them with !important.
 */
.pa-segmented .wp-block-tab-panels {
	display: grid;
}

.pa-segmented .wp-block-tab-panel {
	grid-area: 1 / 1;
	min-width: 0;
}

/*
 * From 1024px only: on phones and tablets each panel takes its own height, so a short tab leaves no gap
 * (core's display: none of the hidden ones applies).
 */
@media (min-width: 1024px) {

	.pa-segmented .wp-block-tab-panel[hidden] {
		display: block !important;
		visibility: hidden;
	}
}

.pa-marcadores__wheel img {
	height: auto;
	width: 100%;
}

/* Same limit as Nuestro ADN: below it the column squeezes the title and the tabs. */
@media (max-width: 1023px) {

	.pa-marcadores__columns.pa-marcadores__columns {
		flex-wrap: wrap !important;
	}

	.pa-marcadores__columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.pa-marcadores__wheel {
		margin-inline: auto;
		max-width: var(--wp--custom--size--wheel-stacked);
	}
}

/* Scientific reference under the hallmarks (shared content of the Home and Fórmula ProAge, and Healthspan): the text at 75 %, as in the Figma. */
.pa-referencia {
	line-height: var(--wp--custom--line-height--label);
	max-width: var(--wp--custom--size--measure);
	opacity: var(--wp--custom--opacity--subtle);
}

.pa-referencia strong {
	font-weight: var(--wp--custom--font-weight--medium);
}

/* Hallmarks tabs (shared by the Home and Fórmula ProAge): the group description and its hallmarks, styled as the Healthspan list (pages.css). */
.pa-marcadores__panel > * {
	margin-block-end: 0;
}

/* 04 / Producto insignia / 7 + 5 */
.pa-insignia__intro {
	max-width: var(--wp--custom--size--measure);
}

.pa-insignia__benefits {
	margin-block-end: 0;
	padding-inline-start: 1.5em;
}

/*
 * The photo has black rounded corners baked into the file (40px at 648 × 600, the desktop size), and
 * they grow and shrink with it: the radius is a share of the photo (40/648 of the width, 40/600 of the
 * height), so it covers them at every width. A clean original would allow the radii of the Figma (40
 * on desktop, 20 on mobile); proage.es has none (checked 2026-11-11).
 */
.pa-insignia__image img {
	aspect-ratio: 648 / 600;
	border-radius: 6.1729% / 6.6667%;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* 05 / Empieza por aquí: health area tiles (the whole tile is the link) */
.pa-areas {
	align-items: center;
}

.pa-area {
	background-color: var(--wp--preset--color--surface-alt);
	justify-content: center;
	border-radius: var(--wp--custom--radius--40);
	box-sizing: border-box;
	min-height: var(--wp--custom--size--tile-height);
	padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
	position: relative;
	text-align: center;
	transition: background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
	width: var(--wp--custom--size--tile);
}

.pa-area__icon,
.pa-area__label {
	margin: 0;
}

.pa-area__icon img {
	height: auto;
	max-height: var(--wp--custom--size--tile-icon);
	transition: filter var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
	width: auto;
}

/*
 * Tiles in rows: 5 + 4, as in Figma, narrower when they do not fit at their full width.
 */
.pa-areas__row {
	width: 100%;
}

.pa-areas__row > .pa-area {
	width: min(var(--wp--custom--size--tile), calc((100% - 4 * var(--wp--preset--spacing--32)) / 5));
}

/*
 * Below 1024px the tiles of the two groups join one grid (display: contents), the list of the mobile
 * Figma (below). From 1024px they stay in the two rows of the desktop (5 + 4), narrower when they
 * do not fit at their full width: two versions only, not a 3 + 3 + 3 one in between (Laura).
 */
@media (max-width: 1023px) {

	.pa-areas.pa-areas {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, var(--wp--custom--size--tile)));
		justify-content: center;
		column-gap: var(--wp--preset--spacing--32);
	}

	.pa-areas__row.pa-areas__row {
		display: contents;
	}

	.pa-areas__row > .pa-area {
		width: auto;
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 05 / Empieza por aquí): a list of rows, 8px apart, each with the 40px
 * icon on the left and the label at 16/24 medium, 80px high at least, 16px of padding and a radius
 * of 20. Under the heading: 16px between the title, the text and the link, and 28px to the list.
 */
@media (max-width: 1023px) {

	.pa-tarjetas .pa-eyebrow-heading ~ * {
		margin-block-start: var(--wp--preset--spacing--16) !important;
	}

	.pa-tarjetas .pa-areas {
		margin-block-start: var(--wp--preset--spacing--28) !important;
	}

	.pa-areas.pa-areas {
		gap: var(--wp--preset--spacing--8);
		grid-template-columns: minmax(0, 1fr);
	}

	.pa-areas .pa-areas__row > .pa-area {
		align-items: center;
		border-radius: var(--wp--custom--radius--20);
		flex-direction: row;
		gap: var(--wp--preset--spacing--16);
		justify-content: flex-start;
		min-height: var(--wp--custom--size--area-row);
		padding: var(--wp--preset--spacing--16);
		text-align: start;
	}

	.pa-area__icon {
		flex: 0 0 var(--wp--custom--size--area-row-icon);
	}

	.pa-areas .pa-area__icon img {
		height: var(--wp--custom--size--area-row-icon);
		max-height: none;
		object-fit: contain;
		width: var(--wp--custom--size--area-row-icon);
	}

	/*
	 * Salud metabólica is the only wide icon: in the Figma it takes 45.5px across and overflows its
	 * 40px box into the gap, so the label stays in line. Squeezed into 40px its line was 0.8px.
	 */
	.pa-areas .pa-area__icon img[src$="/metabolic.svg"] {
		margin-inline-end: calc(var(--wp--custom--size--area-row-icon) - var(--wp--custom--size--area-row-icon-max));
		max-width: none;
		object-position: left center;
		width: var(--wp--custom--size--area-row-icon-max);
	}

	.pa-areas .pa-area__label {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	/* The labels break in two on the tiles; in a row they read on one line (the pattern keeps a space before the break). */
	.pa-areas .pa-area__label br {
		display: none;
	}
}

/* Figma uses Deep forest for the labels on the cream tiles. */
.pa-area__label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--normal);
}

.pa-area__label a {
	color: var(--wp--preset--color--accent-deep-forest);
	text-decoration: none;
	transition: color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-area__label a::after {
	content: "";
	inset: 0;
	position: absolute;
}

/* The Figma shows this hover state on the first tile, as a sample: every tile starts cream. */
.pa-area:hover,
.pa-area:focus-within {
	background-color: var(--wp--preset--color--surface-inverse-alt);
}

.pa-area:hover .pa-area__label a,
.pa-area:focus-within .pa-area__label a {
	color: var(--wp--preset--color--text-inverse);
}

/* Line icons are dark; on the dark tile they turn white. */
.pa-area:is(:hover, :focus-within) .pa-area__icon img {
	filter: brightness(0) invert(1);
}

/* 09 / Consejo de Expertos */
.pa-expertos__grid {
	align-items: flex-start;
}

/*
 * Six in a row of 240px photos from 1720px, where they fit (6 × 240 + 5 × 32 = 1600, the wide box). A
 * grid, not a wrapping flex row: with a classic scrollbar the box is a few pixels short up to 1711px,
 * and the photos shrink by a pixel or two instead of sending the sixth one down.
 */
.pa-expertos__grid.is-layout-flex {
	column-gap: var(--wp--preset--spacing--32);
	display: grid;
	grid-template-columns: repeat(6, minmax(0, var(--wp--custom--size--tile)));
	justify-content: center;
	row-gap: var(--wp--preset--spacing--48);
}

.pa-expertos__grid.is-layout-flex > .pa-expert {
	width: auto;
}

.pa-expertos__grid.is-layout-flex .pa-expert__photo img {
	width: 100%;
}

/*
 * Below 1720px: one row of 240px cards that scrolls sideways from the page margin to the edge of the
 * screen, 32px apart (the gap of the row of six), so the photos keep their size and never shrink.
 * Breakpoints in numbers: media queries cannot read tokens.
 */
@media (max-width: 1719px) {

	.pa-expertos__grid.is-layout-flex.is-layout-flex {
		display: flex;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--32);
		justify-content: flex-start;
		margin-inline-end: calc(-1 * var(--wp--custom--gutter)) !important; /* Over the layout's auto margins. */
		max-width: none;
		overflow-x: auto;
		overflow-y: hidden; /* With overflow-x it would scroll up and down a few pixels too. */
		padding-inline-end: var(--wp--custom--gutter);
		scrollbar-width: none;
	}

	.pa-expertos__grid.is-layout-flex > .pa-expert {
		flex: 0 0 var(--wp--custom--size--tile);
	}
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 09 / Consejo de Expertos): the cards 20px apart;
 * 16px from the photo to the name and 8 to the role. Under the heading: 20px to the text and 32 to the row.
 */
@media (max-width: 1023px) {

	.pa-expertos .pa-eyebrow-heading ~ * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}

	.pa-expertos .pa-expertos__grid {
		margin-block-start: var(--wp--preset--spacing--32) !important;
	}

	.pa-expertos__grid.is-layout-flex.is-layout-flex {
		gap: var(--wp--preset--spacing--20);
	}

	.pa-expertos__grid.is-layout-flex > .pa-expert {
		gap: 0;
	}

	.pa-expertos .pa-expert > .pa-expert__photo.pa-expert__photo {
		margin-block-end: var(--wp--preset--spacing--16);
	}

	.pa-expertos .pa-expert > .pa-expert__role {
		margin-block-start: var(--wp--preset--spacing--8);
	}
}

.pa-expert {
	text-align: center;
	width: var(--wp--custom--size--tile);
}

.pa-expert p {
	margin: 0;
}

/* With the block gap of the column, the 46–48px of the Figma between photo and name. */
.pa-expert > .pa-expert__photo.pa-expert__photo {
	margin: 0 0 var(--wp--preset--spacing--32);
}

.pa-expert__photo img {
	aspect-ratio: 1;
	background-color: var(--wp--preset--color--surface-alt);
	border-radius: var(--wp--custom--radius--999);
	height: auto;
	object-fit: cover;
	width: var(--wp--custom--size--tile);
}

.pa-expert__name {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
}

/* 10 / Por qué ProAge / 4 + 8: comparison table with the ProAge column framed */
.pa-por-que__columns {
	justify-content: space-between;
}

/* Same limit as the other two-column sections: the table needs the whole width. */
@media (max-width: 1023px) {

	/* The frame of the ProAge column sticks out 48px above the table: it needs room under the title. */
	.pa-por-que__columns.pa-por-que__columns {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--112);
	}

	.pa-por-que__columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.pa-comparison {
	--pa-comparison-min: 100%;
	--pa-comparison-first: 60%;
	--pa-comparison-proage: 20.5%;
	--pa-comparison-outset: calc(-1 * var(--wp--preset--spacing--48));
	margin: 0;
	overflow: visible;
	position: relative;
}

/*
 * Phones and tablets, below 1024px (Figma: Mobile / 10 / Por qué ProAge): the table fits the screen without scrolling, with
 * columns at 40%, 30% and 30%, every cell at 12/16 and centred, 8px of padding and rows of 56px at
 * least; the frame of the ProAge column, with a radius of 20, sticks out 8px above and 16px below.
 * 44px from the title to the table (Figma: 45). Prefixed with the section: the base rules come after.
 * Breakpoint in numbers: media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	.pa-por-que .pa-por-que__columns.pa-por-que__columns {
		row-gap: calc(var(--wp--preset--spacing--32) + var(--wp--preset--spacing--12));
	}

	/* On the product page (Figma: 2-Productos-M, Mobile / 05 / Marcadores): 32 above and below. */
	.pa-marcadores.pa-product-markers {
		padding-block: var(--wp--preset--spacing--32) !important; /* Over the padding of the pattern. */
	}

	/* On the product page (Figma: 2-Productos-M, Mobile / 12 / Comparativa): 40 above (42), 32 below and 32 to the table. */
	.pa-por-que.pa-product-comparison {
		padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--32) !important; /* Over the padding of the pattern. */
	}

	.pa-por-que.pa-product-comparison .pa-por-que__columns.pa-por-que__columns {
		row-gap: var(--wp--preset--spacing--32);
	}

	.pa-por-que .pa-comparison {
		--pa-comparison-first: 40%;
		--pa-comparison-proage: 30%;
		margin-block-end: var(--wp--preset--spacing--16);
	}

	.pa-por-que .pa-comparison::after {
		border-radius: var(--wp--custom--radius--20);
		bottom: calc(-1 * var(--wp--preset--spacing--16));
		top: calc(-1 * var(--wp--preset--spacing--8));
	}

	.pa-por-que .pa-comparison table {
		table-layout: fixed;
	}

	.pa-por-que .pa-comparison :is(th, td),
	.pa-por-que .pa-comparison :is(th, td):first-child {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
		padding: var(--wp--preset--spacing--8);
		text-align: center;
	}

	.pa-por-que .pa-comparison td {
		height: var(--wp--custom--size--comparison-row-mobile);
	}

	.pa-por-que .pa-comparison th {
		height: var(--wp--custom--size--comparison-row-mobile);
	}

	.pa-por-que .pa-comparison__logo {
		max-width: none;
		min-width: 0;
		width: var(--wp--custom--size--comparison-logo-mobile);
	}
}

.pa-comparison table {
	border-collapse: collapse;
	min-width: var(--pa-comparison-min);
	width: 100%;
}

.pa-comparison thead,
.pa-comparison tfoot {
	border: 0;
}

.pa-comparison :is(th, td) {
	border: 0;
	border-bottom: var(--wp--custom--border-width--1) solid var(--wp--preset--color--border-default);
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--16);
	overflow-wrap: normal;
	text-align: center;
	vertical-align: middle;
	word-break: normal;
}

.pa-comparison :is(th, td):first-child {
	padding-inline: 0 var(--wp--preset--spacing--48);
	text-align: start;
	width: var(--pa-comparison-first);
}

.pa-comparison :is(th, td):nth-child(2) {
	width: var(--pa-comparison-proage);
}

/* Row height of the Figma; in a table cell, height works as a minimum. */
.pa-comparison td {
	height: var(--wp--custom--size--comparison-row);
}

.pa-comparison th {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
}

/* The logo of the ProAge column at 128 × 32, as in the Figma (8106:149696): the head row is 64px high. */
.pa-comparison__logo {
	height: auto;
	max-width: 100%;
	min-width: var(--wp--custom--size--comparison-logo-min);
	vertical-align: middle;
	width: var(--wp--custom--size--comparison-logo);
}

/* The frame around the ProAge column sticks out 48px above and below, as in Figma. */
.pa-comparison::after {
	border: var(--wp--custom--border-width--1) solid var(--wp--preset--color--text-default);
	border-radius: var(--wp--custom--radius--40);
	bottom: var(--pa-comparison-outset);
	content: "";
	left: var(--pa-comparison-first);
	pointer-events: none;
	position: absolute;
	top: var(--pa-comparison-outset);
	width: var(--pa-comparison-proage);
}

/* 14 / Confianza / 3 + 3 + 3 + 3 (block gap keeps the 16px between figure and label) */
.pa-confianza p {
	margin-block-end: 0;
}

/* Four figures: two by two below this width, also on phones. */
@media (max-width: 1023px) {

	.pa-confianza__figures.pa-confianza__figures {
		flex-wrap: wrap !important;
	}

	/* Core stacks columns on phones with a three-class selector and !important. */
	.wp-block-columns.pa-confianza__figures > .wp-block-column.wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--16)) !important;
	}
}

/* While a figure counts up (reveal.js) the digits keep one width, so nothing jitters. */
.pa-metric.is-counting {
	font-variant-numeric: tabular-nums;
}

/* 16 / Opiniones / 4 + 4 + 4 */
.pa-opinion {
	border: 0;
	border-radius: var(--wp--custom--radius--40);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--32);
	height: 100%;
	margin: 0;
	padding: var(--wp--preset--spacing--40);
}

.pa-opinion p {
	margin: 0;
}

.pa-opinion cite {
	font-size: var(--wp--preset--font-size--base);
	margin: 0;
	font-style: normal;
	font-weight: var(--wp--custom--font-weight--medium);
}

/* Same limit as Sostenibilidad. */
@media (max-width: 1179px) {

	.pa-opiniones__cards.pa-opiniones__cards {
		flex-wrap: wrap !important;
	}

	.pa-opiniones__cards > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (max-width: 640px) {

	.pa-opinion.pa-opinion {
		padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--24);
	}
}

/* 06 / Test y protocolos / 6 + 6: two white cards over a light video */
.pa-test__card {
	border-radius: var(--wp--custom--radius--40);
}

.pa-test__card p,
.pa-test__card .wp-block-heading {
	margin-block-end: 0;
}

/*
 * Side by side, both cards share the same rows: heading, lead, text and button start at the same
 * height even if a text takes more lines. The Columns block has no option for it.
 */
@media (min-width: 1024px) {

	.pa-test__cards.pa-test__cards {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(4, auto);
		row-gap: 0;
	}

	.pa-test__cards > .pa-test__card {
		display: grid;
		grid-row: span 4;
		grid-template-rows: subgrid;
	}
}

/* Same limit as Nuestro ADN and Marcadores: below it the cards get too narrow for their title. */
@media (max-width: 1023px) {

	.pa-test__cards.pa-test__cards {
		flex-wrap: wrap !important;
	}

	.pa-test__cards > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* On phones the side padding would take too much of the width (inline padding from the block). */
@media (max-width: 640px) {

	.pa-test__card.pa-test__card {
		padding-inline: var(--wp--preset--spacing--24) !important;
	}
}

/* The source video has a few black rows at the top and bottom: a slight zoom leaves them out. */
.pa-test .wp-block-cover__video-background {
	transform: scale(1.01);
}

/* 07 / Apoyo personalizado / 6 + 6 */
.pa-apoyo__columns {
	justify-content: space-between;
}

.pa-apoyo__image img {
	border-radius: var(--wp--custom--radius--40);
	height: auto;
	width: 100%;
}

/* Phones: one column (above). From 768px the two columns stay, also where core stacks them (below 782px). */
@media (max-width: 767px) {

	.pa-apoyo__columns.pa-apoyo__columns {
		flex-wrap: wrap !important;
	}

	.pa-apoyo__columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.pa-apoyo__image {
		margin-inline: auto;
		max-width: var(--wp--custom--size--photo);
	}
}

@media (min-width: 768px) and (max-width: 781px) {

	.pa-apoyo__columns.pa-apoyo__columns {
		flex-wrap: nowrap !important;
	}

	.pa-apoyo__columns > .wp-block-column:first-child {
		flex-basis: 49% !important;
	}

	.pa-apoyo__columns > .wp-block-column:last-child {
		flex-basis: 40.5% !important;
	}
}

/* 08 / Investigación e innovación: brown evidence box with the button on the right */
.pa-investigacion__evidence {
	border-radius: var(--wp--custom--radius--40);
}

.pa-investigacion__message {
	flex: 1 1 0;
	min-width: min(100%, var(--wp--custom--size--card));
}

.pa-investigacion__message p {
	margin: 0;
}

/* 13 / Sostenibilidad / 4 + 4 + 4: glass cards over the moss video (glass.css) */
.pa-sostenibilidad__card {
	border-radius: var(--wp--custom--radius--40);
}

.pa-sostenibilidad__card p,
.pa-sostenibilidad__card .wp-block-heading {
	margin-block-end: 0;
}

/* Three cards do not fit their title below this width: they stack (rule: docs/decisions.md). */
@media (max-width: 1179px) {

	.pa-sostenibilidad__cards.pa-sostenibilidad__cards {
		flex-wrap: wrap !important;
	}

	.pa-sostenibilidad__cards > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (max-width: 640px) {

	.pa-sostenibilidad__card.pa-sostenibilidad__card {
		padding-inline: var(--wp--preset--spacing--24) !important;
	}
}

/* The text link is brown on light sections; here it keeps the white of the section. */
.pa-sostenibilidad .wp-block-button.is-style-text-link > .wp-block-button__link,
.pa-sostenibilidad .wp-block-button.is-style-text-link > .wp-block-button__link:hover {
	color: inherit;
}

/* 15 / Membresía ProAge / 6 + 6: the member badge card */
.pa-membresia__badge {
	border-radius: var(--wp--custom--radius--40);
	min-height: var(--wp--custom--size--membership-card);
}

.pa-membresia__badge p,
.pa-membresia__shield {
	margin: 0;
	text-align: center;
}

/* Video backgrounds stay still for people who ask for less motion: the overlay colour remains. */
@media (prefers-reduced-motion: reduce) {

	.wp-block-cover__video-background {
		display: none;
	}
}

/*
 * Home on desktops, from 1024px, against the desktop Figma (1-Home-D, 8106:149425), measured at 1920.
 * The paddings saved in the patterns are inline, hence !important.
 */
@media (min-width: 1024px) {

	/* Nuestro ADN: the manifesto card is the forest green under a 20% black veil in the Figma: #2C3639. */
	.pa-adn .pa-adn__manifesto.has-background {
		background-color: color-mix(in srgb, var(--wp--preset--color--accent-forest) 80%, var(--wp--preset--color--neutral-black)) !important; /* Over the colour class saved in the editor. */
	}

	/* Test y protocolos: 126 over and under the cards. */
	.pa-test.wp-block-cover {
		padding-block: calc(var(--wp--preset--spacing--120) + 1.5 * var(--wp--preset--spacing--4)) !important;
	}

	/* Consejo de Expertos: the name at 16/24, 46px under the photo. */
	.pa-expertos .pa-expert > .pa-expert__photo {
		margin-block-end: calc(7.5 * var(--wp--preset--spacing--4));
	}

	.pa-expertos .pa-expert__name {
		line-height: var(--wp--custom--line-height--label);
	}

	/*
	 * Nuestras formulaciones, the card (8106:149798): the name with room for two lines and the
	 * tagline 85px under its top (28 under two lines), so every tagline starts at the same height.
	 */
	.pa-formulaciones .pa-product-card__title {
		min-height: 2lh;
	}

	.pa-formulaciones .pa-product-card > .pa-product-card__subtitle {
		margin-block-start: var(--wp--preset--spacing--20);
	}

	/* Nuestras formulaciones: four cards of 376, 32 apart (WooCommerce's grid counts its own gap). */
	.pa-formulaciones .wc-block-product-template.wc-block-product-template {
		gap: var(--wp--preset--spacing--32);
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/* Blog: 84px from the title to the articles. */
	.pa-blog > :has(.wp-block-query) {
		margin-block-start: calc(21 * var(--wp--preset--spacing--4)) !important;
	}

	/* Sostenibilidad: the link is a Button / Text of 56px (text on top, 16 under it). */
	.pa-sostenibilidad .wp-block-button.is-style-text-link > .wp-block-button__link {
		align-items: flex-start;
		min-height: var(--wp--custom--size--control);
	}

	/* Confianza: 90 over the title and 108 under the figures. */
	.pa-confianza {
		padding-block: calc(22.5 * var(--wp--preset--spacing--4)) calc(27 * var(--wp--preset--spacing--4)) !important;
	}

	/* Opiniones: 68px from the title to the cards. */
	.pa-opiniones .pa-opiniones__cards {
		margin-block-start: calc(17 * var(--wp--preset--spacing--4)) !important;
	}
}
/**
 * Text styles as block style variations (docs/sistema-estils.md §2.3).
 *
 * Paragraph: lead, small, eyebrow, title-*. Heading: light, display-editorial, subheading, metric, title-*, metric-strong.
 * Font sizes with a digit use the kebab-case variable WordPress generates (2xl → 2-xl).
 */

p.is-style-lead {
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--wp--custom--line-height--comfortable);
}

p.is-style-small {
	font-size: var(--wp--preset--font-size--sm);
	line-height: var(--wp--custom--line-height--relaxed);
}

/* Also a heading, when SEO marks the label as one (Artículos relacionados, h4). */
:is(p, .wp-block-heading).is-style-eyebrow {
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--label);
	text-transform: uppercase;
}

.wp-block-heading.is-style-light,
p.is-style-light {
	font-size: var(--wp--preset--font-size--4-xl);
	font-weight: var(--wp--custom--font-weight--regular);
	letter-spacing: var(--wp--custom--letter-spacing--tighter);
	line-height: var(--wp--custom--line-height--snug);
}

.wp-block-heading.is-style-display-editorial {
	font-size: var(--wp--preset--font-size--4-xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: 0;
	line-height: var(--wp--custom--line-height--normal);
}

.wp-block-heading.is-style-subheading {
	font-size: var(--wp--preset--font-size--2-xl);
	font-weight: var(--wp--custom--font-weight--regular);
	letter-spacing: var(--wp--custom--letter-spacing--tighter);
	line-height: var(--wp--custom--line-height--normal);
}

.wp-block-heading.is-style-metric {
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: var(--wp--custom--font-weight--light);
	letter-spacing: 0;
	line-height: var(--wp--custom--line-height--normal);
}

.wp-block-heading.is-style-metric-strong,
p.pa-metric {
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: var(--wp--custom--font-weight--semibold);
	letter-spacing: var(--wp--custom--letter-spacing--tight);
	line-height: var(--wp--custom--line-height--snug);
}

/*
 * The heading level belongs to SEO and the look to the design: these title styles, named after the
 * type scale, work on any heading level or on a paragraph that SEO does not want as a heading.
 */
.wp-block-heading.is-style-title-4xl,
p.is-style-title-4xl {
	font-size: var(--wp--preset--font-size--4-xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--tighter);
	line-height: var(--wp--custom--line-height--snug);
}

.wp-block-heading.is-style-title-xl,
p.is-style-title-xl {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: var(--wp--custom--line-height--normal);
}

.wp-block-heading.is-style-title-lg,
p.is-style-title-lg {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: normal;
	line-height: var(--wp--custom--line-height--normal);
}

.wp-block-heading.is-style-title-md,
p.is-style-title-md {
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--medium);
	letter-spacing: normal;
	line-height: var(--wp--custom--line-height--relaxed);
}

.wp-block-heading.is-style-title-sm,
p.is-style-title-sm {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--semibold);
	letter-spacing: normal;
	line-height: var(--wp--custom--line-height--comfortable);
}

/*
 * Phones and tablets (below 1024px): the type scale of the mobile Figma (ProAge / Mobile / …, 430px frames),
 * fixed sizes instead of the fluid scale, which stays larger there. From 1024px, the fluid scale.
 * Breakpoint in numbers: media queries cannot read tokens.
 */
@media (max-width: 1023px) {

	/* Mobile / Body / Base · 16/24: the text of every block that does not set its own. */
	body {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	/* Mobile / H2 · 24/30 medium. */
	h1,
	h2,
	.wp-block-heading.is-style-title-4xl,
	p.is-style-title-4xl,
	.wp-block-heading.is-style-display-editorial {
		font-size: var(--wp--custom--font-size--mobile-heading);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	/* Mobile / Display / Subheading · 24/30 regular, -0.6. */
	.wp-block-heading.is-style-light,
	p.is-style-light,
	.wp-block-heading.is-style-subheading {
		font-size: var(--wp--custom--font-size--mobile-heading);
		letter-spacing: var(--wp--custom--letter-spacing--tighter);
		line-height: var(--wp--custom--line-height--mobile-heading);
	}

	/* Mobile / Display / Metric · 26/32, -0.5. */
	.wp-block-heading.is-style-metric,
	.wp-block-heading.is-style-metric-strong,
	p.pa-metric {
		font-size: var(--wp--custom--font-size--mobile-metric);
		letter-spacing: var(--wp--custom--letter-spacing--tight);
		line-height: var(--wp--custom--line-height--mobile-metric);
	}

	/* Mobile / H3 · 18/24 medium. */
	h3,
	h4,
	.wp-block-heading.is-style-title-xl,
	p.is-style-title-xl,
	.wp-block-heading.is-style-title-lg,
	p.is-style-title-lg {
		font-size: var(--wp--custom--font-size--mobile-subtitle);
		letter-spacing: normal;
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	/* Mobile / Body / Base / Medium · 16/24. */
	h5,
	.wp-block-heading.is-style-title-md,
	p.is-style-title-md {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	/* Mobile / Action / Label / SemiBold · 14/20. */
	h6,
	.wp-block-heading.is-style-title-sm,
	p.is-style-title-sm {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
	}

	/* Mobile / Body / Lead · 16/24. */
	p.is-style-lead {
		font-size: var(--wp--preset--font-size--base);
		line-height: var(--wp--custom--line-height--label);
	}

	/* Mobile / Body / Small · 13/18. */
	p.is-style-small {
		font-size: var(--wp--preset--font-size--xs-plus);
		line-height: var(--wp--custom--line-height--mobile-small);
	}

	/* Mobile / Body / Small / Medium · 12/16 (eyebrows: PROAGING, 01 · …). */
	:is(p, .wp-block-heading).is-style-eyebrow {
		font-size: var(--wp--preset--font-size--xs);
		line-height: var(--wp--custom--line-height--mobile-compact);
	}

	/* Mobile / Action / Label / SemiBold · 14/20 (buttons keep their height). */
	.wp-block-button__link,
	.wp-element-button {
		font-size: var(--wp--preset--font-size--sm);
		line-height: var(--wp--custom--line-height--mobile-label);
	}
}

/* Links change colour softly (docs/sistema-estils.md §9); zero specificity, so any link style can override it. */
:where(a) {
	transition: color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}
/**
 * Video player of the Figma (assets/js/video-player.js; product page: the gallery video). The box takes the place and the size the video had; the play button
 * (a white triangle of 40) in the middle and, at the bottom, 12px from the edges, the line of the
 * progress (2px, white at 45 % with the part played in white) and the times at 10/15 in white.
 */

.pa-video {
	block-size: 100%;
	color: var(--wp--preset--color--surface-white);
	inline-size: 100%;
	position: relative;
}

.pa-video > video {
	block-size: 100%;
	cursor: pointer;
	display: block;
	inline-size: 100%;
}

.pa-video__toggle {
	align-items: center;
	appearance: none;
	background: transparent;
	block-size: var(--wp--custom--size--control-touch);
	border: 0;
	border-radius: var(--wp--custom--radius--999);
	color: inherit;
	cursor: pointer;
	display: flex;
	inline-size: var(--wp--custom--size--control-touch);
	inset-block-start: 50%;
	inset-inline-start: 50%;
	justify-content: center;
	padding: 0;
	position: absolute;
	transform: translate(-50%, -50%);
	transition: opacity var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-video__toggle svg {
	block-size: var(--wp--custom--size--control-small);
	filter: drop-shadow(0 0 var(--wp--preset--spacing--8) color-mix(in srgb, var(--wp--preset--color--neutral-black) 35%, transparent));
	inline-size: var(--wp--custom--size--control-small);
}

.pa-video__toggle:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
	outline-offset: var(--wp--preset--spacing--4);
}

/* While it plays, the button (pause) only shows under the pointer or with the focus. */
.pa-video.is-playing .pa-video__toggle {
	opacity: 0;
}

.pa-video.is-playing:hover .pa-video__toggle,
.pa-video.is-playing .pa-video__toggle:focus-visible {
	opacity: 1;
}

.pa-video__bar {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	inset-block-end: var(--wp--preset--spacing--12);
	inset-inline: var(--wp--preset--spacing--12);
	position: absolute;
}

/* The line: a range input without its look, 2px high and 16px tall to touch. */
.pa-video__progress {
	--pa-video-track: linear-gradient(to right, currentcolor var(--pa-video-progress, 0%), var(--wp--preset--color--surface-white-alpha-45) var(--pa-video-progress, 0%));
	appearance: none;
	background: transparent;
	block-size: var(--wp--preset--spacing--16);
	cursor: pointer;
	inline-size: 100%;
	margin: 0;
}

.pa-video__progress::-webkit-slider-runnable-track {
	background: var(--pa-video-track);
	block-size: var(--wp--custom--border-width--2);
}

.pa-video__progress::-moz-range-track {
	background: var(--pa-video-track);
	block-size: var(--wp--custom--border-width--2);
}

.pa-video__progress::-webkit-slider-thumb {
	appearance: none;
	background: currentcolor;
	block-size: var(--wp--preset--spacing--8);
	border-radius: var(--wp--custom--radius--999);
	inline-size: var(--wp--preset--spacing--8);
	margin-block-start: calc((var(--wp--preset--spacing--8) - var(--wp--custom--border-width--2)) / -2);
	opacity: 0;
	transition: opacity var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

.pa-video__progress::-moz-range-thumb {
	background: currentcolor;
	block-size: var(--wp--preset--spacing--8);
	border: 0;
	border-radius: var(--wp--custom--radius--999);
	inline-size: var(--wp--preset--spacing--8);
	opacity: 0;
}

/* The dot of the line shows only while moving it (pointer or keyboard). */
.pa-video__progress:is(:hover, :focus-visible)::-webkit-slider-thumb {
	opacity: 1;
}

.pa-video__progress:is(:hover, :focus-visible)::-moz-range-thumb {
	opacity: 1;
}

.pa-video__progress:focus-visible {
	outline: var(--wp--custom--border-width--2) solid currentcolor;
	outline-offset: var(--wp--preset--spacing--4);
}

.pa-video__times {
	display: flex;
	font-size: var(--wp--preset--font-size--2-xs);
	justify-content: space-between;
	line-height: var(--wp--custom--line-height--label);
	margin: 0;
}
/**
 * WhatsApp button (.pa-whatsapp, inc/whatsapp.php): not in the Figma. WhatsApp's green circle with
 * its white mark, so it reads as WhatsApp at a glance. The green is a token of its own
 * (custom.color.whatsapp), out of the palette: it is WhatsApp's colour, not the brand's. Fixed at the
 * bottom left, as the Joinchat button it replaces: 56px and 24px from
 * the edges from 1024px (at 1440 × 900 it clears the Home hero's buttons), 48px and 16px below.
 * Over the content but under the header, so the open mobile menu,
 * the panels and the cart toast cover it; the side panels are dialogs and go over everything.
 */
.pa-whatsapp {
	background-color: var(--wp--custom--color--whatsapp);
	block-size: var(--wp--custom--size--control);
	border-radius: var(--wp--custom--radius--999);
	box-sizing: border-box;
	display: block;
	inline-size: var(--wp--custom--size--control);
	inset-block-end: var(--wp--preset--spacing--24);
	inset-inline-start: var(--wp--preset--spacing--24);
	padding: var(--wp--preset--spacing--12);
	position: fixed;
	transition: opacity var(--wp--custom--motion--duration--base) var(--wp--custom--motion--ease--out);
	z-index: 90;
}

.pa-whatsapp:hover {
	opacity: var(--wp--custom--opacity--hover);
}

.pa-whatsapp img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
}

/* Breakpoints in numbers: media queries cannot read tokens. */
@media (max-width: 1023px) {

	.pa-whatsapp {
		block-size: var(--wp--custom--size--control-mobile);
		inline-size: var(--wp--custom--size--control-mobile);
		inset-block-end: var(--wp--preset--spacing--16);
		inset-inline-start: var(--wp--preset--spacing--16);
		padding: var(--wp--preset--spacing--8);
	}
}

@media print {

	.pa-whatsapp {
		display: none;
	}
}
