/**
 * Seven Pixels — the editorial language.
 *
 * The shared vocabulary of the editorial look (the `neutral` pack's default;
 * the `alps` pack carries the same structure with its own identity):
 *
 *   .adv-eyebrow--spaced   small caps label, very open tracking
 *   .adv-statement         serif display headline; <em> is the italic voice
 *     --xl                 the page-wide sentence   --strong  700
 *   .adv-lead              the muted paragraph under a statement
 *   .adv-btn--outline      square outlined button, spaced caps, arrow
 *     --quiet              no arrow
 *   .adv-btn-arrow         round arrow button (floats on an image)
 *   .adv-media-arrow       an image link that grows that button in a corner
 *   .adv-card--line        rounded card with a hairline
 *   .adv-space, -lg, -xl   vertical rhythm of a section (80 / 120 / 160 px)
 *   .adv-band-gradient     dark band: a soft colour field built from kit tones
 *   .adv-hero--sin-foto    a hero with no photo yet takes that field (PHP adds it)
 *
 * Every class works on a plain element (`<a class="adv-btn--outline">`) and on
 * the Elementor widget that carries it in «Avanzado → Clases CSS» (heading,
 * text editor, button, image, container).
 *
 * Colour: only tokens. Ink and surfaces are the plugin's design tokens
 * (`--adv-ink`, `--adv-ink-muted`, `--adv-line`, `--adv-surface*`,
 * `--adv-on-primary`, `--adv-focus`, `--adv-shadow`), with the kit's globals
 * as fallback where the dark-mode module is off. A band redefines the
 * `--adv-ed-*` tokens for what sits on it, so nothing inside names a colour.
 *
 * Specificity: at most three classes, below Elementor's per-element rules
 * (four), so whatever an editor sets in the panel wins. The generated
 * templates leave colour and typography unset where this sheet speaks.
 *
 * Loaded on every front-end request after chrome.css
 * (Elementor\Widgets\Editorial\Module); inert without these classes.
 */

/* ------------------------------------------------------------------ tokens */

/* On <body>: the kit's globals are declared on `.elementor-kit-N` (the body),
   so a token that falls back to them cannot be resolved on :root. */
body {
	--adv-ed-ink: var(--adv-ink, var(--e-global-color-text, #16181a));
	--adv-ed-muted: var(--adv-ink-muted, color-mix(in srgb, var(--adv-ed-ink) 72%, transparent));
	--adv-ed-line: var(--adv-line, color-mix(in srgb, var(--adv-ed-ink) 16%, transparent));
	--adv-ed-surface: var(--adv-surface, #fff);
	--adv-ed-raised: var(--adv-surface-raised, var(--adv-ed-surface));
	--adv-ed-ring: var(--adv-focus, var(--adv-ed-ink));
	--adv-ed-shade: var(--adv-shadow, #000);

	/* The theme's display serif first (advent-lite: --adv-font-display), then
	   the kit's serif family. */
	--adv-ed-serif: var(--adv-font-display, var(--e-global-typography-alps_serif-font-family, "Noto Serif"), "Noto Serif", Georgia, "Times New Roman", serif);
	/* The italic voice: the theme's accent serif when it has one. */
	--adv-ed-serif-em: var(--adv-font-serif, var(--adv-ed-serif));
	--adv-ed-em-scale: 1;

	--adv-ed-tracking: 0.3em;
	--adv-ed-radius: 0.875rem;
	--adv-ed-btn-radius: 0.1875rem;
	--adv-ed-measure: 34rem;

	--adv-space: clamp(3.5rem, 2rem + 4.2vw, 5rem);
	--adv-space-lg: clamp(4rem, 2rem + 6.2vw, 7.5rem);
	--adv-space-xl: clamp(4.5rem, 2rem + 8.4vw, 10rem);

	/* Dark fills that stay dark in dark mode (the kit's secondary is
	   lightened there to read as text) and the light ink that goes on them:
	   never --adv-on-primary, which turns dark in dark mode. */
	--adv-ed-dark: var(--e-global-color-secondary, #1f2f35);
	--adv-ed-light: color-mix(in srgb, var(--e-global-color-accent, #fff) 5%, #fff);
	/* The deepest field of the band: the kit's text tone (dark in light mode). */
	--adv-ed-deep: var(--e-global-color-text, #0d1417);

	/* One heading voice for every adv-* widget title (see «consistency»). */
	--adv-heading-ink: var(--adv-ink, var(--e-global-color-text, #16181a));
	--adv-heading-font: var(--e-global-typography-primary-font-family, inherit), "Noto Sans", system-ui, sans-serif;
	--adv-heading-weight: var(--e-global-typography-primary-font-weight, 700);

	--adv-ed-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 17.5 17.5 6.5M8 6.5h9.5V16'/%3E%3C/svg%3E");
}

html[data-adv-theme="dark"] body {
	--adv-ed-dark: color-mix(in srgb, var(--e-global-color-secondary, #1f2f35) 30%, var(--adv-surface-2, #171b1e));
	--adv-ed-deep: var(--adv-surface, #0e1113);
}

@media (prefers-color-scheme: dark) {
	html[data-adv-theme="auto"] body {
		--adv-ed-dark: color-mix(in srgb, var(--e-global-color-secondary, #1f2f35) 30%, var(--adv-surface-2, #171b1e));
		--adv-ed-deep: var(--adv-surface, #0e1113);
	}
}

/* advent-lite ships its accent serif (EB Garamond) in italic only: a touch
   larger, as the theme sets it, to sit on the upright's x-height. */
body.adv-lite {
	--adv-ed-em-scale: 1.1;
}

/* The ALPS pack: same pieces, the ALPS voice (tighter tracking, the kit's
   sans for section headlines; the serif stays for the long sentences). */
.adv-ed--alps {
	--adv-ed-tracking: 0.16em;
}

/* ----------------------------------------------------------------- eyebrow */

.adv-eyebrow--spaced:not(.elementor-widget),
.elementor-widget.adv-eyebrow--spaced .elementor-heading-title {
	color: var(--adv-ed-muted);
	font-size: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
	font-style: normal;
	font-weight: 600;
	letter-spacing: var(--adv-ed-tracking);
	line-height: 1.4;
	margin: 0;
	/* The tracking after the last letter would push a centred label left. */
	margin-inline-end: calc(var(--adv-ed-tracking) * -1);
	overflow-wrap: anywhere;
	text-transform: uppercase;
}

/* --------------------------------------------------------------- statement */

.adv-statement:not(.elementor-widget),
.elementor-widget.adv-statement .elementor-heading-title {
	color: var(--adv-ed-ink);
	font-family: var(--adv-ed-serif);
	font-size: clamp(2.2rem, 1.15rem + 3vw, 4.5rem);
	font-style: normal;
	font-weight: 400;
	letter-spacing: -0.022em;
	line-height: 1.06;
	margin: 0;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.adv-statement:not(.elementor-widget) em,
.elementor-widget.adv-statement .elementor-heading-title em {
	font-family: var(--adv-ed-serif-em);
	font-size: calc(1em * var(--adv-ed-em-scale));
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 0.9;
}

.adv-statement--xl:not(.elementor-widget),
.elementor-widget.adv-statement--xl .elementor-heading-title {
	font-size: clamp(2.375rem, 0.9rem + 5.6vw, 5.75rem);
	font-weight: 300;
	letter-spacing: -0.035em;
	line-height: 1.04;
}

.adv-statement--strong:not(.elementor-widget),
.elementor-widget.adv-statement--strong .elementor-heading-title {
	font-weight: 700;
	letter-spacing: -0.015em;
}

/* The ALPS voice: section headlines in the kit's heavy sans. */
.adv-ed--alps .elementor-widget.adv-statement:not(.adv-statement--xl) .elementor-heading-title,
.adv-ed--alps .adv-statement:not(.elementor-widget, .adv-statement--xl) {
	font-family: var(--e-global-typography-primary-font-family, inherit), sans-serif;
	font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem);
	font-weight: var(--e-global-typography-primary-font-weight, 800);
	letter-spacing: -0.02em;
	line-height: 1.08;
}

/* -------------------------------------------------------------------- lead */

.adv-lead:not(.elementor-widget),
.elementor-widget.adv-lead :is(.elementor-widget-container, p) {
	color: var(--adv-ed-muted);
	font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.3125rem);
	line-height: 1.6;
	margin: 0;
	text-wrap: pretty;
}

.elementor-widget.adv-lead p + p,
.adv-lead:not(.elementor-widget) + .adv-lead {
	margin-block-start: 1em;
}

.adv-lead:not(.elementor-widget),
.elementor-widget.adv-lead {
	max-inline-size: min(100%, var(--adv-ed-measure));
}

/* ----------------------------------------------------------------- buttons */

:is(a, button).adv-btn--outline,
.elementor-widget.adv-btn--outline .elementor-button {
	--adv-btn-ink: var(--adv-ed-ink);
	--adv-btn-on: var(--adv-ed-surface);
	align-items: center;
	background: transparent;
	border: 1px solid var(--adv-btn-ink);
	border-radius: var(--adv-ed-btn-radius);
	box-shadow: none;
	color: var(--adv-btn-ink);
	cursor: pointer;
	display: inline-flex;
	fill: currentColor;
	font-size: 0.8125rem;
	font-style: normal;
	font-weight: 700;
	gap: 0.9em;
	justify-content: center;
	letter-spacing: 0.2em;
	line-height: 1.3;
	max-inline-size: 100%;
	min-block-size: 3.5rem;
	overflow-wrap: anywhere;
	padding: 0.9rem 1.9rem;
	text-align: start;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.elementor-widget.adv-btn--outline .elementor-button-content-wrapper {
	align-items: center;
	gap: 0.9em;
}

/* On an Elementor widget the class sits on the wrapper too, where a theme
   that shares the vocabulary (advent-lite) would draw a second button. */
.elementor-widget.adv-btn--outline.adv-btn--outline {
	background: none;
	border: 0;
	border-radius: 0;
	color: inherit;
	display: block;
	letter-spacing: normal;
	min-block-size: 0;
	padding: 0;
	text-transform: none;
}

@media (max-width: 479px) {
	:is(a, button).adv-btn--outline,
	.elementor-widget.adv-btn--outline .elementor-button {
		letter-spacing: 0.14em;
		padding-inline: 1.25rem;
	}
}

/* The arrow, unless the button brings its own icon or asks for none. */
:is(a, button).adv-btn--outline:not(.adv-btn--quiet)::after,
.elementor-widget.adv-btn--outline:not(.adv-btn--quiet) .elementor-button:not(:has(.elementor-button-icon))::after {
	background: currentColor;
	block-size: 1.15em;
	content: "";
	flex: 0 0 auto;
	inline-size: 1.15em;
	-webkit-mask: var(--adv-ed-arrow) center / contain no-repeat;
	mask: var(--adv-ed-arrow) center / contain no-repeat;
	transition: transform 0.25s ease;
}

:is(a, button).adv-btn--outline:is(:hover, :focus-visible),
.elementor-widget.adv-btn--outline .elementor-button:is(:hover, :focus-visible) {
	background: var(--adv-btn-ink);
	border-color: var(--adv-btn-ink);
	color: var(--adv-btn-on);
}

:is(a, button).adv-btn--outline:is(:hover, :focus-visible)::after,
.elementor-widget.adv-btn--outline .elementor-button:is(:hover, :focus-visible)::after {
	transform: translate(2px, -2px);
}

:is(a, button).adv-btn--outline:focus-visible,
.elementor-widget.adv-btn--outline .elementor-button:focus-visible,
.adv-btn-arrow:focus-visible,
.adv-media-arrow a:focus-visible {
	outline: 2px solid var(--adv-ed-ring);
	outline-offset: 3px;
}

/* ---- The round arrow button. */

.adv-btn-arrow,
.adv-media-arrow a::after {
	--adv-arrow-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem);
	-webkit-backdrop-filter: blur(10px) saturate(1.2);
	backdrop-filter: blur(10px) saturate(1.2);
	background: color-mix(in srgb, var(--adv-ed-shade) 42%, transparent);
	block-size: var(--adv-arrow-size);
	border: 1px solid color-mix(in srgb, var(--adv-ed-light) 55%, transparent);
	border-radius: 50%;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--adv-ed-shade) 60%, transparent);
	color: var(--adv-ed-light);
	flex: 0 0 auto;
	inline-size: var(--adv-arrow-size);
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.adv-btn-arrow {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	padding: 0;
	text-decoration: none;
}

/* The glyph: drawn here unless the element holds its own <svg>. */
.adv-btn-arrow:not(:has(svg))::before {
	background: currentColor;
	block-size: 42%;
	content: "";
	inline-size: 42%;
	-webkit-mask: var(--adv-ed-arrow) center / contain no-repeat;
	mask: var(--adv-ed-arrow) center / contain no-repeat;
}

.adv-btn-arrow > svg {
	block-size: 42%;
	inline-size: 42%;
}

.adv-btn-arrow:is(:hover, :focus-visible),
.adv-media-arrow a:is(:hover, :focus-visible)::after {
	background-color: color-mix(in srgb, var(--adv-ed-shade) 64%, transparent);
	transform: translate(2px, -2px);
}

/* An image whose link shows the round button in its corner (Image widget
   with a link, or any `<a>` around an <img>). */
.adv-media-arrow a {
	border-radius: inherit;
	display: block;
	position: relative;
}

.adv-media-arrow a::after {
	content: "";
	inset-block-end: clamp(0.875rem, 4%, 2rem);
	inset-inline-end: clamp(0.875rem, 5%, 2rem);
	position: absolute;
}

/* Its glyph: a second pseudo-element, masked. */
.adv-media-arrow a::before {
	--adv-arrow-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem);
	background: var(--adv-ed-light);
	block-size: var(--adv-arrow-size);
	content: "";
	inline-size: var(--adv-arrow-size);
	inset-block-end: clamp(0.875rem, 4%, 2rem);
	inset-inline-end: clamp(0.875rem, 5%, 2rem);
	-webkit-mask: var(--adv-ed-arrow) center / 42% no-repeat;
	mask: var(--adv-ed-arrow) center / 42% no-repeat;
	pointer-events: none;
	position: absolute;
	transition: transform 0.3s ease;
	z-index: 1;
}

.adv-media-arrow a:is(:hover, :focus-visible)::before {
	transform: translate(2px, -2px);
}

/* -------------------------------------------------------------------- card */

.adv-card--line {
	background: var(--adv-ed-raised);
	border: 1px solid var(--adv-ed-line);
	border-radius: var(--adv-ed-radius);
	overflow: clip;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

a.adv-card--line,
.adv-card--line:has(> a:only-child) {
	color: inherit;
	text-decoration: none;
}

.adv-card--line:is(:hover, :focus-within) {
	border-color: color-mix(in srgb, var(--adv-ed-ink) 38%, transparent);
	box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--adv-ed-shade) 55%, transparent);
}

/* ----------------------------------------------------------------- spacing */

/* Doubled: Elementor pads a container through `.e-con` (one class). */
.adv-space.adv-space {
	padding-block: var(--adv-space);
}

.adv-space-lg.adv-space-lg {
	padding-block: var(--adv-space-lg);
}

.adv-space-xl.adv-space-xl {
	padding-block: var(--adv-space-xl);
}

.adv-space--flush-top.adv-space--flush-top {
	padding-block-start: 0;
}

.adv-space--flush-bottom.adv-space--flush-bottom {
	padding-block-end: 0;
}

/* -------------------------------------------------------------------- band */

/* A dark band: the base tone (the container's own background colour, or the
   kit's secondary) under soft fields of the kit's other tones. Radial
   gradients, no blur filter: nothing to repaint on scroll. What sits on it
   reads the `--adv-ed-*` tokens, redefined here. */
.adv-band-gradient {
	--adv-band-base: var(--adv-band-tone, var(--adv-ed-dark));
	--adv-band-deep: var(--adv-ed-deep);
	--adv-band-a: var(--e-global-color-primary, var(--adv-band-base));
	--adv-band-b: var(--e-global-color-accent, var(--adv-band-a));

	--adv-ed-ink: var(--adv-ed-light);
	--adv-ed-muted: color-mix(in srgb, var(--adv-ed-ink) 88%, transparent);
	--adv-ed-line: color-mix(in srgb, var(--adv-ed-ink) 28%, transparent);
	--adv-ed-surface: var(--adv-band-base);
	--adv-ed-ring: var(--adv-ed-ink);

	background-color: var(--adv-band-base);
	background-image:
		radial-gradient(52% 85% at 0% 100%, color-mix(in srgb, var(--adv-band-deep) 82%, transparent), transparent 72%),
		radial-gradient(46% 78% at 100% 0%, color-mix(in srgb, var(--adv-band-a) 42%, transparent), transparent 74%),
		radial-gradient(38% 62% at 84% 108%, color-mix(in srgb, var(--adv-band-b) 16%, transparent), transparent 72%),
		radial-gradient(44% 70% at 30% -8%, color-mix(in srgb, var(--adv-band-a) 26%, transparent), transparent 76%);
	color: var(--adv-ed-ink);
}

/* ============================================================== sections */

.adv-ed {
	container-type: normal;
}

/* The text stack of an editorial block: eyebrow, statement, lead, button. */
.adv-ed-copy.adv-ed-copy {
	--gap: 0px;
	gap: 0;
	row-gap: 0;
}

/* Doubled: Elementor zeroes a widget's block-end margin (`:not(:last-child)`). */
.adv-ed-copy.adv-ed-copy > .adv-eyebrow--spaced {
	margin-block-end: clamp(1rem, 0.7rem + 1vw, 1.75rem);
}

.adv-ed-copy.adv-ed-copy > .adv-lead {
	margin-block-start: clamp(1.25rem, 0.9rem + 1.2vw, 2.25rem);
}

.adv-ed-copy.adv-ed-copy > :is(.adv-btn--outline, .adv-ed-actions, .adv-cover-fan, .elementor-widget-adv-cover-fan) {
	margin-block-start: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
}

.adv-ed-copy--centre > * {
	margin-inline: auto;
	text-align: center;
}

.adv-ed-copy--centre > .adv-lead {
	max-inline-size: min(100%, 44rem);
}

.adv-ed-actions.adv-ed-actions {
	gap: 0.75rem 1rem;
}

/* ---- Split: text beside a collage. */

.adv-ed-split .adv-ed-split__row {
	align-items: center;
	gap: clamp(2rem, 1rem + 5vw, 6.5rem);
}

.adv-ed-split .elementor-widget.adv-statement:not(.adv-statement--xl) .elementor-heading-title {
	font-size: clamp(2.2rem, 1.3rem + 2.5vw, 3.75rem);
}

@media (max-width: 1024px) {
	.adv-ed-split .adv-ed-split__row {
		flex-wrap: wrap;
	}

	.adv-ed-split .adv-ed-split__row > .e-con {
		inline-size: 100%;
	}
}

/* ---- Banda destacada: a band with a tall card rising over its top edge. */

.adv-ed-feature {
	--adv-ed-rise: clamp(2.5rem, 1rem + 5.5vw, 6.5rem);
	--adv-ed-band-pad: clamp(2.5rem, 1.5rem + 3.5vw, 5.5rem);
	margin-block-start: calc(var(--adv-ed-rise) + var(--adv-space));
}

.adv-ed-feature.adv-ed-feature {
	padding-block: var(--adv-ed-band-pad);
}

.adv-ed-feature .adv-ed-feature__row {
	align-items: center;
	gap: clamp(2rem, 1rem + 5vw, 7rem);
}

.adv-ed-feature .adv-ed-feature__media {
	align-self: flex-start;
	margin-block-start: calc((var(--adv-ed-band-pad) + var(--adv-ed-rise)) * -1);
}

.adv-ed-feature .adv-ed-feature__media :is(.elementor-widget-image, .elementor-widget-container, a) {
	border-radius: var(--adv-ed-radius);
	inline-size: 100%;
}

.adv-ed-feature .adv-ed-feature__media img {
	aspect-ratio: 13 / 19;
	block-size: auto;
	border-radius: var(--adv-ed-radius);
	box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--adv-ed-shade) 70%, transparent);
	display: block;
	inline-size: 100%;
	max-inline-size: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.adv-ed-feature {
		--adv-ed-rise: 2.5rem;
	}

	.adv-ed-feature .adv-ed-feature__row {
		flex-direction: column;
	}

	.adv-ed-feature .adv-ed-feature__row > .e-con {
		inline-size: 100%;
	}

	.adv-ed-feature .adv-ed-feature__media {
		max-inline-size: 22rem;
	}

	.adv-ed-feature .adv-ed-feature__media img {
		aspect-ratio: 4 / 5;
	}
}

/* ---- Recursos destacados: eyebrow, fan, sentence, then the cards. */

.adv-ed-resources.adv-ed-resources {
	row-gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.adv-ed-resources .adv-ed-copy.adv-ed-copy > .elementor-widget-adv-cover-fan {
	margin-block: clamp(1rem, 0.5rem + 2vw, 2.5rem) clamp(2rem, 1rem + 3vw, 4rem);
}

.adv-ed-resources .adv-ed-actions {
	margin-block-start: calc(clamp(2.5rem, 1.5rem + 3vw, 4.5rem) * -0.4);
}

/* In dark mode the kit's secondary is a text tone: the band and the page
   hero's scrim take the dark fill instead (beats Elementor's per-element
   background rule: four classes and the attribute). */
html[data-adv-theme="dark"] .adv-band-gradient.adv-band-gradient.adv-band-gradient.adv-band-gradient,
html[data-adv-theme="dark"] .adv-hero-pagina.adv-hero-pagina.adv-hero-pagina.adv-hero-pagina::before {
	background-color: var(--adv-ed-dark);
}

@media (prefers-color-scheme: dark) {
	html[data-adv-theme="auto"] .adv-band-gradient.adv-band-gradient.adv-band-gradient.adv-band-gradient,
	html[data-adv-theme="auto"] .adv-hero-pagina.adv-hero-pagina.adv-hero-pagina.adv-hero-pagina::before {
		background-color: var(--adv-ed-dark);
	}
}

/* ---- CTA: the closing band, a rounded card inside the page grid. */

.adv-ed-cta .adv-ed-cta__band {
	border-radius: clamp(0.875rem, 0.6rem + 0.8vw, 1.25rem);
	padding: clamp(2.5rem, 1.25rem + 6vw, 7rem) clamp(1.25rem, 0.5rem + 4vw, 5rem);
}

/* ---- Statement block. */

.adv-ed-statement .adv-ed-copy--centre > .adv-statement {
	max-inline-size: min(100%, 68rem);
}

/* ---- Page hero: a centred title over a photo, inside the six columns. */

.adv-hero-pagina {
	--adv-ed-ink: var(--adv-ed-light);
	/* Full ink: over a light photo the 90 % muted eyebrow and lead fell under AA. */
	--adv-ed-muted: var(--adv-ed-ink);
	--adv-ed-surface: var(--adv-ed-dark);
	color: var(--adv-ed-ink);
}

.adv-hero-pagina .adv-hero-content {
	text-shadow: 0 1px 18px color-mix(in srgb, var(--adv-ed-shade) 35%, transparent);
}

/* The scrim alone (the kit's secondary at 0.6) leaves the light ink at about
   2.8:1 over the white of a photo. Each line of words gets a soft field of
   the kit's deepest tone at 50 % right behind it, feathered into the photo:
   with both, a pure white pixel still gives 6.1:1 or more on every bundled
   palette (7:1 under the older 0.72 scrim), and the rest of the photo keeps
   the lighter scrim.
   The widget hugs its words, so the field covers only them. */
.adv-hero-pagina .adv-hero-content > .elementor-widget {
	--adv-hero-scrim: color-mix(in srgb, var(--adv-ed-deep) 50%, transparent);
	inline-size: fit-content;
	max-inline-size: 100%;
	background-color: var(--adv-hero-scrim);
	/* Spread above half the blur: full strength at the box edge, no step. */
	box-shadow: 0 0 clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.25rem, 1rem + 1.25vw, 2.25rem) var(--adv-hero-scrim);
	border-radius: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.adv-hero-pagina.adv-hero-pagina {
	min-block-size: clamp(18rem, 12rem + 24vw, 34rem);
}

.adv-hero-pagina .adv-hero-content > * {
	margin-inline: auto;
	text-align: center;
}

.adv-hero-pagina .elementor-widget.adv-statement .elementor-heading-title {
	font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem);
}

.adv-hero-pagina .elementor-widget.adv-lead {
	max-inline-size: min(100%, 40rem);
}

/* ---- A hero with no photo of its own (Editorial\Hero_Fallback drops
   Elementor's placeholder and the scrim): the gradient band's brand field,
   with the band's light ink. Two classes; Elementor prints no background
   for it, so nothing competes. */

.adv-hero.adv-hero--sin-foto {
	--adv-band-base: var(--adv-band-tone, var(--adv-ed-dark));
	--adv-band-deep: var(--adv-ed-deep);
	--adv-band-a: var(--e-global-color-primary, var(--adv-band-base));
	--adv-band-b: var(--e-global-color-accent, var(--adv-band-a));
	--adv-ed-ink: var(--adv-ed-light);
	--adv-ed-surface: var(--adv-band-base);
	--adv-ed-ring: var(--adv-ed-ink);

	background-color: var(--adv-band-base);
	background-image:
		radial-gradient(52% 85% at 0% 100%, color-mix(in srgb, var(--adv-band-deep) 82%, transparent), transparent 72%),
		radial-gradient(46% 78% at 100% 0%, color-mix(in srgb, var(--adv-band-a) 42%, transparent), transparent 74%),
		radial-gradient(38% 62% at 84% 108%, color-mix(in srgb, var(--adv-band-b) 16%, transparent), transparent 72%),
		radial-gradient(44% 70% at 30% -8%, color-mix(in srgb, var(--adv-band-a) 26%, transparent), transparent 76%);
	color: var(--adv-ed-ink);
}

/* No photo to lift the words off: no shadow and no field either. */
.adv-hero--sin-foto .adv-hero-content {
	text-shadow: none;
}

.adv-hero--sin-foto .adv-hero-content > .elementor-widget {
	background-color: transparent;
	box-shadow: none;
}

/* =============================================================== widgets */

/* Size containers have no intrinsic width: say it (see chrome.css). */
.elementor-widget:is(.elementor-widget-adv-collage, .elementor-widget-adv-cover-fan, .elementor-widget-adv-directory-teaser) {
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
}

/* ---- adv-collage: one image and up to three floating thumbnails. */

.adv-collage {
	--adv-collage-ratio: 1 / 1;
	--adv-collage-radius: var(--adv-ed-radius);
	aspect-ratio: var(--adv-collage-ratio);
	border-radius: var(--adv-collage-radius);
	container-type: inline-size;
	inline-size: 100%;
	margin: 0;
	position: relative;
}

/* `img` in the selectors: Elementor resets `.elementor img` (height, radius). */
.adv-collage img.adv-collage__main {
	block-size: 100%;
	border-radius: var(--adv-collage-radius);
	display: block;
	inline-size: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
}

.adv-collage__thumb {
	aspect-ratio: 3 / 2;
	border-radius: clamp(0.25rem, 1.2cqi, 0.5rem);
	box-shadow:
		0 1px 2px color-mix(in srgb, var(--adv-ed-shade) 22%, transparent),
		0 22px 44px -14px color-mix(in srgb, var(--adv-ed-shade) 55%, transparent);
	inline-size: 27%;
	overflow: hidden;
	position: absolute;
}

.adv-collage .adv-collage__thumb img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	object-fit: cover;
}

.adv-collage__thumb--1 {
	inset-block-start: 22%;
	inset-inline-start: 18%;
}

.adv-collage__thumb--2 {
	inset-block-start: 73%;
	inset-inline-start: 6%;
}

.adv-collage__thumb--3 {
	inset-block-start: 61%;
	inset-inline-start: 64%;
}

/* Mirrored: the thumbnails change sides with the layout. */
.adv-collage--mirror .adv-collage__thumb--1 {
	inset-inline: auto 18%;
}

.adv-collage--mirror .adv-collage__thumb--2 {
	inset-inline: auto 6%;
}

.adv-collage--mirror .adv-collage__thumb--3 {
	inset-inline: auto 64%;
}

/* ---- adv-cover-fan: five overlapping covers, the middle one on top. */

.adv-cover-fan {
	--adv-fan-step: 15.5%;
	aspect-ratio: 2.7 / 1;
	container-type: inline-size;
	display: block;
	inline-size: min(100%, 54rem);
	margin-inline: auto;
	position: relative;
}

.adv-cover-fan__link {
	color: inherit;
	display: block;
	inset: 0;
	position: absolute;
}

.adv-cover-fan__link:focus-visible {
	border-radius: 0.5rem;
	outline: 2px solid var(--adv-ed-ring);
	outline-offset: 0.75rem;
}

.adv-cover-fan--glow::before {
	background:
		radial-gradient(closest-side, color-mix(in srgb, var(--e-global-color-accent, var(--adv-ed-ink)) 30%, transparent), transparent),
		radial-gradient(closest-side at 50% 78%, color-mix(in srgb, var(--e-global-color-primary, var(--adv-ed-ink)) 22%, transparent), transparent);
	content: "";
	filter: blur(clamp(1rem, 4cqi, 2.5rem));
	inset: -22% -10% -30%;
	pointer-events: none;
	position: absolute;
}

.adv-cover-fan__card {
	--a: max(var(--i), calc(var(--i) * -1));
	background: var(--adv-ed-raised);
	block-size: calc(100% - var(--a) * 8.5%);
	border-radius: clamp(0.2rem, 0.9cqi, 0.4rem);
	box-shadow:
		0 1px 2px color-mix(in srgb, var(--adv-ed-shade) 25%, transparent),
		0 18px 36px -16px color-mix(in srgb, var(--adv-ed-shade) 60%, transparent);
	inline-size: calc(54% - var(--a) * 13.5%);
	inset-block-start: 50%;
	inset-inline-start: calc(50% + var(--i) * var(--adv-fan-step));
	overflow: hidden;
	position: absolute;
	transform: translate(-50%, -50%);
	transition: inset-inline-start 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
	z-index: calc(5 - var(--a));
}

[dir="rtl"] .adv-cover-fan__card {
	transform: translate(50%, -50%);
}

.adv-cover-fan .adv-cover-fan__card img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	object-fit: cover;
}

@media (hover: hover) {
	.adv-cover-fan:hover,
	.adv-cover-fan:focus-within {
		--adv-fan-step: 17.5%;
	}
}

.adv-cover-fan__icon {
	color: var(--adv-ed-light);
	filter: drop-shadow(0 2px 10px color-mix(in srgb, var(--adv-ed-shade) 55%, transparent));
	inline-size: 16%;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	pointer-events: none;
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 6;
}

.adv-cover-fan__icon svg {
	block-size: auto;
	display: block;
	inline-size: 100%;
}

/* ---- adv-directory-teaser: a statement and the directory's numbers. */

.adv-dir-teaser {
	container-type: inline-size;
}

.adv-dir-teaser__inner {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 3.5rem);
	grid-template-columns: minmax(0, 1fr);
}

.adv-dir-teaser__copy > .adv-eyebrow--spaced.adv-eyebrow--spaced {
	margin-block-end: clamp(1rem, 0.7rem + 1vw, 1.75rem);
}

.adv-dir-teaser__copy > .adv-btn--outline {
	margin-block-start: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
}

.adv-dir-teaser__counts {
	border-block-start: 1px solid var(--adv-ed-line);
	display: grid;
	gap: 0 clamp(1.25rem, 3cqi, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-dir-teaser__count {
	border-block-end: 1px solid var(--adv-ed-line);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding-block: clamp(1rem, 0.8rem + 1cqi, 1.75rem);
}

.adv-dir-teaser__n {
	color: var(--adv-ed-ink);
	font-family: var(--adv-ed-serif);
	font-size: clamp(2.5rem, 1.6rem + 4cqi, 4.25rem);
	font-variant-numeric: lining-nums tabular-nums;
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1;
}

.adv-dir-teaser__label {
	color: var(--adv-ed-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.3;
	overflow-wrap: anywhere;
	text-transform: uppercase;
}

@container (min-width: 56rem) {
	.adv-dir-teaser__inner {
		align-items: end;
		display: grid;
		gap: clamp(2rem, 6cqi, 6rem);
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}
}

/* ====================================== the neutral pack's own sections */

/* The sections generated before this language (sections.py: `adv-section-head`
   with `adv-kicker` + `adv-section-title`) adopt it on any theme but ALPS,
   without being regenerated. Typography only: their colours stay the ones
   each section sets (some sit on dark fills). The selectors are doubled to
   win Elementor's per-element typography rule (four classes). */

body:not(.alps-elementor) .adv-section-head .adv-kicker.adv-kicker .elementor-heading-title {
	font-size: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
	gap: 0;
	letter-spacing: 0.3em;
	line-height: 1.4;
}

body:not(.alps-elementor) .adv-section-head .adv-kicker.adv-kicker .elementor-heading-title::before {
	content: none;
}

/* Legibility of the kicker and the «see all» link those sections paint with
   `globals/colors?id=accent`: in the ALPS palettes the accent is the light
   tone (2.2:1 on white). On a section with no fill of its own, the accent is
   pointed at a step of itself towards the ink (AA on white with any palette;
   a band that redefines --adv-ed-ink keeps it light). The mix is taken on the
   head, so the widget's redefinition does not reference itself. */
.adv-section:not([data-settings*="background_background"]),
.adv-section:not([data-settings*="background_background"]) .adv-section-head:not([data-settings*="background_background"]) {
	--adv-kicker-accent: color-mix(in srgb, var(--e-global-color-accent) 40%, var(--adv-ed-ink));
}

.adv-section:not([data-settings*="background_background"]) .adv-section-head:not([data-settings*="background_background"]) .elementor-widget:is(.adv-kicker, .adv-section-link),
.adv-section:not([data-settings*="background_background"]) > .elementor-widget:is(.adv-kicker, .adv-section-link),
.adv-section:not([data-settings*="background_background"]) > .e-con-inner > .elementor-widget:is(.adv-kicker, .adv-section-link) {
	--e-global-color-accent: var(--adv-kicker-accent);
}

/* ---- One headline voice (R3-5): page titles and section titles.

   The serif of `.adv-statement` (token, weight 400, tracking) and the ink,
   for the Elementor headlines of the pack: section titles (`adv-section-title`
   of sections.py, h2), archive titles (`theme-archive-title` and its Free
   twin `adv-archive-title`), the contact title and the h1 of the singles
   (`theme-post-title`). Not eyebrows, card titles (h3) or the footer.

   1. On the widget, the kit's own variables are pointed at that voice: the
      generated widgets read `globals/typography?id=primary` and
      `globals/colors?id=primary` (Elementor prints them as
      `var(--e-global-…-primary…)` in the element's own rule), so they speak
      in the serif and the ink, while a colour or typography the editor sets
      on the widget (another global, or a value of its own) still wins. A
      title painted white on a dark section keeps its white.
   2. A fallback (0,3,1) for a title with no kit typography: above the
      theme's and chrome.css's rules, below the element's own (0,4,0).
   3. Sizes, tracking and leading: forced as before, doubled.

   Scope: any theme but ALPS (the pack follows the theme), never inside an
   ALPS-pack section (`.adv-ed--alps`) or the landing kit (`.adv-lp-section`,
   its own display voice). ALPS prints `alps-elementor` only on pages built
   with Elementor: its Theme Builder archives and singles carry
   `alps-elementor-tb-header` (or nothing but core's `wp-theme-alps…`), hence
   the three markers. Weight 300 of `.adv-statement--xl` (the page-wide
   sentence) is that modifier's own and stays. */
body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) .elementor-widget:is(.adv-section-title, .adv-contact-title, .elementor-widget-theme-archive-title, .elementor-widget-adv-archive-title, .elementor-widget-theme-post-title:has(h1), .elementor-widget-theme-page-title:has(h1)):not(:is(.adv-ed--alps, .adv-lp-section) *) {
	--e-global-color-primary: var(--adv-ed-ink);
	--e-global-typography-primary-font-family: var(--adv-ed-serif);
	--e-global-typography-primary-font-weight: 400;
	--e-global-typography-primary-font-style: normal;
	--e-global-typography-primary-text-transform: none;
}

body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) :is(.adv-section-title, .adv-contact-title, .elementor-widget-theme-archive-title, .elementor-widget-theme-post-title, .elementor-widget-theme-page-title) h1.elementor-heading-title,
body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) .adv-section-title:not(:is(.adv-ed--alps, .adv-lp-section) *) h2.elementor-heading-title,
body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) .elementor-widget-adv-archive-title .adv-archive-title__title {
	font-family: var(--adv-ed-serif);
	font-weight: 400;
}

/* Section titles (h2): the 52 px of the section header, for every section
   title (the centred intros were 40 px in the kit's heavy sans). */
body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) .elementor-widget.adv-section-title.adv-section-title:not(.adv-archive-heading, :is(.adv-ed--alps, .adv-lp-section) *) .elementor-heading-title {
	font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
	letter-spacing: -0.022em;
	line-height: 1.1;
}

/* Archive titles (h1): the size of the projects and resources index titles
   (assets/projects/projects.css `.adv-pj__title`). */
body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) .elementor-widget:is(.adv-archive-heading, .elementor-widget-theme-archive-title, .elementor-widget-adv-archive-title).elementor-widget:not(.adv-ed--alps *) :is(.elementor-heading-title, .adv-archive-title__title) {
	font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5rem);
	letter-spacing: -0.022em;
	line-height: 1.06;
	text-wrap: balance;
}

/* The contact title and the singles' h1 keep their sizes; the statement's
   tracking and leading (editorial-chrome.css sets the contact one at 0,3,0). */
body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) .adv-contact-head .adv-contact-title.adv-contact-title .elementor-heading-title {
	letter-spacing: -0.022em;
	line-height: 1.06;
}

body:not(.alps-elementor, [class*="alps-elementor-"], [class*="wp-theme-alps"]) .elementor-widget-theme-post-title.elementor-widget-theme-post-title:not(.adv-ed--alps *) h1.elementor-heading-title {
	letter-spacing: -0.022em;
	line-height: 1.15;
}

/* The section-header title as it was before R3-5, kept only where it has
   always reached on ALPS: Theme Builder pages, which lack `alps-elementor`
   (e.g. archive-directiva). The ALPS pack stays exactly as it was. */
body:not(.alps-elementor):is([class*="alps-elementor-"], [class*="wp-theme-alps"]) .adv-section-head.adv-section-head .adv-section-title.adv-section-title .elementor-heading-title {
	font-family: var(--adv-ed-serif);
	font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.08;
}

body:not(.alps-elementor) .adv-section-head .adv-section-head__text.adv-section-head__text {
	gap: 0.9rem;
}

body:not(.alps-elementor) .adv-section-head .adv-section-lead p {
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.6;
}

body:not(.alps-elementor) .adv-section-head {
	margin-block-end: clamp(0.75rem, 0.4rem + 1.4vw, 1.75rem);
}

/* More air between page sections (heros and page headers keep their own).
   One side per rule, each skipping its .adv-space--flush-* utility, so the
   utilities win without having to outweigh this (0,5,1) selector. */
body:not(.alps-elementor) .e-con.adv-section--page:not(.adv-hero, .adv-ed, .adv-space--flush-top) {
	padding-block-start: clamp(3rem, 1.75rem + 4vw, 5rem);
}

body:not(.alps-elementor) .e-con.adv-section--page:not(.adv-hero, .adv-ed, .adv-space--flush-bottom) {
	padding-block-end: clamp(3rem, 1.75rem + 4vw, 5rem);
}

/* =========================================================== consistency */

/* The plugin's newer widgets print their own titles (directory, people,
   ministry header, event row and the event page, the download and post
   cards). On any theme but ALPS they take the kit's heading family and one
   heading ink, like the Elementor headings of the neutral pack. Family and
   colour only: each widget keeps its sizes. (0,4,1): above the widgets' own
   doubled selectors. */
body:not(.alps-elementor) :is(.adv-dir, .adv-evhero, .adv-evsec, .adv-evlib, .adv-evcard-wrap, .adv-lib-scope, .adv-dlp, .adv-posts, .adv-downloads) :is(.adv-dir-title, .adv-dir-subtitle, .adv-mhead__title, .adv-person__name, .adv-entity__name, .adv-coll__title, .adv-evhero__title, .adv-evsec__heading, .adv-evrow__title, .adv-evcard__title, .adv-event-details__title, .adv-download__title, .adv-post-card__title):is(h1, h2, h3, h4, p, div, span) {
	color: var(--adv-heading-ink);
	font-family: var(--adv-heading-font);
}

body:not(.alps-elementor) :is(.adv-dir, .adv-evhero, .adv-evsec, .adv-evlib, .adv-evcard-wrap, .adv-lib-scope, .adv-dlp, .adv-posts, .adv-downloads) :is(.adv-dir-title, .adv-mhead__title, .adv-evhero__title, .adv-evsec__heading):is(h1, h2, h3, h4, p, div, span) {
	font-weight: var(--adv-heading-weight);
}

/* No pure black anywhere: the event widgets fall back to CanvasText when
   the dark-mode tokens are not printed; give them the kit's ink. Their dark
   number cards («6 días faltan») take the dark fill and the light ink. */
body {
	--adv-ev-ink: var(--adv-ink, var(--e-global-color-text, #16181a));
	--adv-evstat-bg: var(--adv-ed-dark);
	--adv-evstat-ink: var(--adv-ed-light);
}

/* The hero's first button: a solid kit fill with its own ink (the neutral
   pack's pale accent fill with a blue label was below AA on some palettes). */
body:not(.alps-elementor) .adv-hero .adv-hero-actions > .elementor-widget-button:first-child .elementor-button.elementor-button.elementor-button {
	background-color: var(--e-global-color-primary);
	color: var(--e-global-color-adv_on_primary, var(--adv-on-primary, #fff));
	fill: currentColor;
}

body:not(.alps-elementor) .adv-hero .adv-hero-actions > .elementor-widget-button:first-child .elementor-button.elementor-button.elementor-button:is(:hover, :focus-visible) {
	background-color: var(--e-global-color-text);
	color: var(--adv-surface, #fff);
}

/* adv-feature-cards: a row that wraps instead of a fixed grid, so 3, 5 or 6
   cards never leave holes in a row of four; the last row shares the width. */
.adv-lp .adv-lp-features__list.adv-lp-features__list {
	display: flex;
	flex-wrap: wrap;
}

.adv-lp .adv-lp-features__list.adv-lp-features__list > * {
	flex: 1 1 max(min(100%, 14rem), calc((100% - (var(--adv-lp-cols, 4) - 1) * 24px) / var(--adv-lp-cols, 4)));
	min-inline-size: 0;
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
	:is(a, button).adv-btn--outline,
	:is(a, button).adv-btn--outline::after,
	.elementor-widget.adv-btn--outline .elementor-button,
	.elementor-widget.adv-btn--outline .elementor-button::after,
	.adv-btn-arrow,
	.adv-media-arrow a::before,
	.adv-media-arrow a::after,
	.adv-card--line,
	.adv-cover-fan__card {
		transition: none;
	}

	:is(a, button).adv-btn--outline:is(:hover, :focus-visible)::after,
	.elementor-widget.adv-btn--outline .elementor-button:is(:hover, :focus-visible)::after,
	.adv-btn-arrow:is(:hover, :focus-visible),
	.adv-media-arrow a:is(:hover, :focus-visible)::before,
	.adv-media-arrow a:is(:hover, :focus-visible)::after {
		transform: none;
	}

	.adv-cover-fan:hover,
	.adv-cover-fan:focus-within {
		--adv-fan-step: 15.5%;
	}
}

@media (forced-colors: active) {
	:is(a, button).adv-btn--outline::after,
	.elementor-widget.adv-btn--outline .elementor-button::after,
	.adv-btn-arrow::before,
	.adv-media-arrow a::before {
		background: CanvasText;
	}
}
