/**
 * Seven Pixels — Eventos: biblioteca de eventos (`adv-events-library`),
 * tarjeta (`adv-event-card`), cabecera (`adv-event-hero`) y secciones
 * (`adv-event-sections`) de la página de un evento.
 *
 * Colour: every surface and ink is a design token (`--adv-surface*`,
 * `--adv-ink*`, `--adv-line`, `--adv-shadow`, `--adv-on-primary`,
 * `--adv-focus`), so light and dark need no rule here; the accent is the
 * kit's primary. The fallbacks (system colours) only apply on a site where
 * the tokens are not printed. The one literal is the documented overlay
 * shadow fallback.
 *
 * Layout: each block is a size container; type and spacing scale with
 * `cqi`, grids wrap by themselves, rows stack under ~40rem.
 */

.adv-evlib,
.adv-evhero,
.adv-evsec,
.adv-evcard-wrap {
	--ev-accent: var(--adv-ev-accent, var(--e-global-color-primary, currentColor));
	--ev-on-accent: var(--adv-on-primary, #fff);
	--ev-surface: var(--adv-surface, Canvas);
	--ev-panel: var(--adv-ev-panel, var(--adv-surface-2, color-mix(in srgb, CanvasText 5%, Canvas)));
	--ev-card: var(--adv-ev-card, var(--adv-surface-raised, Canvas));
	--ev-ink: var(--adv-ev-ink, var(--adv-ink, CanvasText));
	--ev-muted: var(--adv-ink-muted, color-mix(in srgb, var(--ev-ink) 70%, var(--ev-surface)));
	--ev-line: var(--adv-line, color-mix(in srgb, var(--ev-ink) 16%, transparent));
	--ev-shadow: var(--adv-shadow, rgba(0, 0, 0, 0.12));
	--ev-focus: var(--adv-focus, var(--ev-accent));
	--ev-tint: color-mix(in srgb, var(--ev-accent) 13%, var(--ev-surface));
	--ev-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	box-sizing: border-box;
	color: var(--ev-ink);
	container-type: inline-size;
	overflow-wrap: anywhere;
}

/* Text on the accent: white or black from the accent itself (WCAG crossover
   luminance 0.179), whatever the «Acento» control or the dark mode puts
   there; the token above without relative colours. */
@supports (color: color(from red xyz-d65 x y z)) {
	.adv-evlib,
	.adv-evhero,
	.adv-evsec,
	.adv-evcard-wrap {
		--ev-on-accent: color(from var(--ev-accent) xyz-d65 calc(0.9505 * clamp(0, (0.179 - y) * 100000, 1)) clamp(0, (0.179 - y) * 100000, 1) calc(1.089 * clamp(0, (0.179 - y) * 100000, 1)) / 1);
	}
}

/* A size container has no intrinsic width. In a flex container that may
   wrap (every Elementor container does below 768 px) an item is measured
   before it is stretched: at 0 px wide, so its text stacks letter by letter
   and the page comes out several times too tall. A definite width on the
   widget's own box makes the browser measure it at its real width. */
.elementor-widget:is(.elementor-widget-adv-event-card, .elementor-widget-adv-events-library, .elementor-widget-adv-event-hero, .elementor-widget-adv-event-sections) {
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
}

:is(.adv-evlib, .adv-evhero, .adv-evsec, .adv-evcard-wrap) *,
:is(.adv-evlib, .adv-evhero, .adv-evsec, .adv-evcard-wrap) *::before,
:is(.adv-evlib, .adv-evhero, .adv-evsec, .adv-evcard-wrap) *::after {
	box-sizing: border-box;
}

:is(.adv-evlib, .adv-evhero, .adv-evsec, .adv-evcard-wrap) :is(h1, h2, h3, h4, p, ul, li, fieldset, legend) {
	margin: 0;
	padding: 0;
}

:is(.adv-evlib, .adv-evhero, .adv-evsec, .adv-evcard-wrap) :is(ul, li) {
	list-style: none;
}

:is(.adv-evlib, .adv-evhero, .adv-evsec, .adv-evcard-wrap) li::before {
	content: none;
}

:is(.adv-evlib, .adv-evhero, .adv-evsec, .adv-evcard-wrap) :is(a, button, summary, input, [tabindex]):focus-visible {
	outline: 2px solid var(--ev-focus);
	outline-offset: 2px;
}

.adv-ev-icon {
	aspect-ratio: 1;
	block-size: 1.25em;
	flex: 0 0 auto;
	inline-size: 1.25em;
}

/* =============================================================== Library */

.adv-evlib {
	margin: var(--adv-ev-margin, 0 auto);
	max-inline-size: min(100%, var(--adv-ev-max, 100%));
}

.adv-evlib__shell {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* ---- Sidebar: a row that scrolls sideways, then a column from 48rem. ----
   The buttons carry three classes and the element on purpose: themes style
   `button` with their palette class in front (ALPS: `.u-theme--x .u-theme--dark button`). */

.adv-evlib__side {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-inline-size: 0;
	padding-block: 0.25rem 0.75rem;
}

.adv-evlib__group {
	color: var(--ev-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	padding-inline: 0.25rem;
}

.adv-evlib__list {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 2px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.adv-evlib__list::-webkit-scrollbar {
	display: none;
}

.adv-evlib__list > li {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.adv-evlib .adv-evlib__shell button.adv-evlib__link {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid var(--ev-line);
	border-radius: 0.5rem;
	box-shadow: none;
	color: var(--ev-ink);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	gap: 0.625rem;
	inline-size: 100%;
	letter-spacing: 0;
	line-height: 1.5;
	min-block-size: 2.75rem;
	padding: 0.5rem 1rem;
	text-align: start;
	text-transform: none;
	transition: background-color 0.2s;
	white-space: nowrap;
}

.adv-evlib .adv-evlib__shell button.adv-evlib__link--all {
	align-self: flex-start;
	font-weight: 700;
	inline-size: auto;
	max-inline-size: 100%;
	white-space: normal;
}

.adv-evlib .adv-evlib__shell button.adv-evlib__link:hover {
	background: color-mix(in srgb, var(--ev-ink) 6%, transparent);
	color: var(--ev-ink);
}

.adv-evlib .adv-evlib__shell button.adv-evlib__link[aria-pressed="true"] {
	background: var(--ev-tint);
	border-color: color-mix(in srgb, var(--ev-accent) 45%, var(--ev-surface));
	color: var(--ev-ink);
	font-weight: 600;
}

.adv-evlib__label {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.adv-evlib__num {
	color: var(--ev-muted);
	flex: 0 0 auto;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

/* ---- Panel ---- */

.adv-evlib__panel {
	--evl-pad: 1.25rem;
	background: var(--ev-panel);
	border-radius: 1rem;
	flex: 1 1 auto;
	min-inline-size: 0;
}

.adv-evlib__head {
	align-items: stretch;
	background: var(--ev-panel);
	border-block-end: 2px solid var(--ev-surface);
	border-radius: 1rem 1rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: var(--evl-pad) var(--evl-pad) 1rem;
	position: relative;
	transition: padding 0.3s ease, box-shadow 0.3s ease;
	z-index: 5;
}

.adv-evlib__intro {
	max-inline-size: 45.5rem;
	min-inline-size: 0;
}

.adv-evlib__eyebrow {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin-block-end: 0.75rem;
}

.adv-evlib .adv-evlib__title {
	color: var(--ev-ink);
	font-size: clamp(1.5rem, 1.1rem + 2.6cqi, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin-block-end: 1rem;
	text-wrap: balance;
}

/* Editorial voice: in the neutral pack the page and section
   titles speak in the display serif of `.adv-statement` (editorial.css).
   The Theme Builder templates of events and downloads have no `.adv-ed`
   wrapper, so the pack is told by the theme: `body.adv-lite` (the pack
   follows the theme, Pack_Selector::detect; same scope as directory.css and
   stories/hero.css). Not `body:not(.alps-elementor)`: ALPS prints that class
   only on Elementor pages, never on Theme Builder singles and archives.
   `.adv-ed--neutral` / `.adv-editorial` cover the widget dropped inside an
   editorial section. ALPS keeps the kit's sans.
   (0,3,3): above editorial.css (0,3,2), below a typography control set in
   the panel (`{{WRAPPER}} …`, 0,4,0). The line height follows the size:
   1.06 at 72px, 1.15 at 34px. Ink stays the widget's own. */
html :is(.adv-ed--neutral, .adv-editorial, body.adv-lite) .adv-evlib .adv-evlib__title:is(h1, h2, h3, h4, p, div, span) {
	font-family: var(--adv-ed-serif, var(--adv-font-display, serif));
	font-weight: 400;
	letter-spacing: -0.022em;
	line-height: calc(0.98em + 0.36rem);
}

.adv-evlib__desc {
	font-size: clamp(1rem, 0.9rem + 0.6cqi, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
}

.adv-evlib__count {
	color: var(--ev-muted);
	white-space: nowrap;
}

.adv-evlib__head.is-compact {
	box-shadow: 0 8px 16px -12px var(--ev-shadow);
	padding-block: 0.75rem;
}

.adv-evlib__head.is-compact :is(.adv-evlib__eyebrow, .adv-evlib__desc) {
	display: none;
}

.adv-evlib__head.is-compact .adv-evlib__title {
	font-size: 1.5rem;
	margin: 0;
}

/* ---- Tools: search and filters (only with JavaScript). ---- */

.adv-evlib__tools {
	align-items: center;
	display: none;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: flex-end;
	position: relative;
}

.adv-evlib.is-js .adv-evlib__tools {
	display: flex;
}

.adv-evlib:not(.is-js) .adv-evlib__side {
	display: none;
}

.adv-evlib .adv-evlib__shell button.adv-evlib__tool {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0.5rem;
	box-shadow: none;
	color: var(--ev-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	gap: 0.375rem;
	letter-spacing: 0;
	line-height: 1.5;
	min-block-size: 2.75rem;
	padding: 0.25rem 0.75rem;
	text-transform: none;
}

.adv-evlib .adv-evlib__shell button.adv-evlib__tool:hover,
.adv-evlib .adv-evlib__shell button.adv-evlib__tool[aria-expanded="true"] {
	background: color-mix(in srgb, var(--ev-ink) 8%, transparent);
	color: var(--ev-ink);
}

.adv-evlib__tool--filter .adv-ev-icon {
	transition: transform 0.2s;
}

.adv-evlib__tool--filter[aria-expanded="true"] .adv-ev-icon {
	transform: rotate(180deg);
}

.adv-evlib__search {
	align-items: center;
	background: var(--ev-card);
	border: 1px solid var(--ev-line);
	border-radius: 0.5rem;
	display: flex;
	flex: 1 1 12rem;
	gap: 0.375rem;
	max-inline-size: 100%;
	min-block-size: 2.75rem;
	padding-inline: 0.625rem;
}

.adv-evlib__search:focus-within {
	border-color: var(--ev-focus);
	outline: 2px solid var(--ev-focus);
	outline-offset: 1px;
}

.adv-evlib .adv-evlib__shell :is(.adv-evlib__search, .adv-evlib__menu, .adv-evlib__empty, .adv-evlib__item, .adv-evlib__tool)[hidden] {
	display: none;
}

.adv-evlib .adv-evlib__search input {
	appearance: none;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--ev-ink);
	flex: 1 1 auto;
	font: inherit;
	font-size: 1rem;
	min-block-size: 2.5rem;
	min-inline-size: 0;
	outline: 0;
	padding: 0;
}

.adv-evlib__menu {
	background: var(--ev-card);
	border: 1px solid var(--ev-line);
	border-radius: 0.75rem;
	box-shadow: 0 12px 32px var(--ev-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	inline-size: min(17rem, 100cqi - 2.5rem);
	inset-block-start: calc(100% + 0.5rem);
	inset-inline-end: 0;
	max-block-size: min(24rem, 70vh);
	overflow-y: auto;
	padding: 0.75rem;
	position: absolute;
	z-index: 20;
}

.adv-evlib .adv-evlib__set {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-inline-size: 0;
}

.adv-evlib .adv-evlib__set legend {
	color: var(--ev-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0 0.5rem 0.25rem;
}

.adv-evlib__check {
	align-items: center;
	border-radius: 0.375rem;
	cursor: pointer;
	display: flex;
	font-size: 0.9375rem;
	font-weight: 400;
	gap: 0.625rem;
	line-height: 1.4;
	min-block-size: 2.75rem;
	padding: 0.25rem 0.5rem;
}

.adv-evlib__check:hover {
	background: color-mix(in srgb, var(--ev-ink) 6%, transparent);
}

.adv-evlib__check input {
	accent-color: var(--ev-accent);
	aspect-ratio: 1;
	block-size: 1.125rem;
	flex: 0 0 auto;
	inline-size: 1.125rem;
	margin: 0;
}

/* ---- Grid ---- */

.adv-evlib__content {
	padding: 1.5rem var(--evl-pad) var(--evl-pad);
}

.adv-evlib .adv-evlib__grid {
	--evl-gap: 1.5rem;
	display: grid;
	gap: clamp(1rem, 2.4cqi, 2rem) var(--evl-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(12.5rem, (100% - (var(--adv-evlib-cols, 3) - 1) * var(--evl-gap)) / var(--adv-evlib-cols, 3))), 1fr));
}

.adv-evlib__item {
	display: flex;
	min-inline-size: 0;
}

.adv-evlib__empty {
	color: var(--ev-ink);
	font-size: 1.125rem;
	line-height: 1.5;
	padding: clamp(2rem, 8cqi, 4rem) 1rem;
	text-align: center;
	text-wrap: balance;
}

.adv-evlib.is-loading .adv-evlib__grid {
	opacity: 0.5;
}

@container (min-width: 48rem) {
	.adv-evlib__shell {
		flex-direction: row;
		gap: 0;
	}

	.adv-evlib__side {
		flex: 0 0 12rem;
		gap: 0.25rem;
		padding: 1.25rem 1rem 0 0;
	}

	.adv-evlib__group {
		margin-block-start: 0.75rem;
		padding-inline: 1rem;
	}

	.adv-evlib__list {
		flex-direction: column;
		gap: 0.25rem;
		overflow: visible;
	}

	.adv-evlib .adv-evlib__shell button.adv-evlib__link {
		border-color: transparent;
		white-space: normal;
	}

	.adv-evlib .adv-evlib__shell button.adv-evlib__link--all {
		align-self: stretch;
		inline-size: 100%;
	}

	.adv-evlib__panel {
		--evl-pad: 1.5rem;
	}

	.adv-evlib__content {
		padding-block-start: 2rem;
	}

	.elementor-widget.adv-evlib-scroll-yes .adv-evlib__shell {
		max-block-size: var(--adv-evlib-h, min(92vh, 64rem));
	}

	.elementor-widget.adv-evlib-scroll-yes :is(.adv-evlib__side, .adv-evlib__panel) {
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.elementor-widget.adv-evlib-scroll-yes .adv-evlib__head {
		inset-block-start: 0;
		position: sticky;
	}
}

@container (min-width: 64rem) {
	.adv-evlib__side {
		flex-basis: 19rem;
	}

	.adv-evlib__panel {
		--evl-pad: 2rem;
	}

	.adv-evlib__head {
		align-items: flex-end;
		flex-direction: row;
		justify-content: space-between;
		padding-block-end: 1.5rem;
	}

	.adv-evlib__tools {
		flex: 0 0 auto;
		flex-wrap: nowrap;
	}

	.adv-evlib__search {
		flex: 0 0 15rem;
	}

	.adv-evlib__content {
		padding-block-start: 2.5rem;
	}
}

/* ================================================================== Card */

/* One composition at every width: image with the date box over its corner,
   then chip, title (two lines), summary (three), place and time, and a
   quiet «Añadir al calendario» pinned to the bottom edge. The card is a
   flex column that fills whatever its grid cell gives it, so a row of
   cards shares one height and one line of actions. */

.adv-evcard-wrap {
	block-size: 100%;
	display: flex;
}

/* Inside an Elementor loop (Loop Grid, adv-posts): pass the cell's height
   down to the card. */
:is(.e-loop-item, .adv-post-card--template):has(> .adv-loop-evento, > .elementor > .adv-loop-evento) {
	display: flex;
	flex-direction: column;
}

:is(.e-loop-item, .adv-post-card--template) > .elementor:has(> .adv-loop-evento) {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.adv-loop-evento.adv-loop-evento {
	flex: 1 1 auto;
}

.adv-loop-evento > .elementor-widget-adv-event-card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.adv-loop-evento > .elementor-widget-adv-event-card > .elementor-widget-container {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.adv-loop-evento .adv-evcard-wrap {
	flex: 1 1 auto;
}

.adv-evcard {
	animation: adv-ev-in 0.5s var(--ev-ease) both;
	animation-delay: calc(var(--adv-i, 0) * 50ms);
	background: var(--ev-card);
	border: 1px solid var(--ev-line);
	border-radius: 1rem;
	color: var(--ev-ink);
	container-type: inline-size;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	inline-size: 100%;
	min-inline-size: 0;
	position: relative;
	transition: border-color 0.2s var(--ev-ease), box-shadow 0.2s var(--ev-ease);
}

.adv-evcard:hover,
.adv-evcard:focus-within {
	border-color: color-mix(in srgb, var(--ev-accent) 45%, var(--ev-line));
	box-shadow: 0 10px 28px var(--ev-shadow);
}

.adv-evcard:has(.adv-atc[open]) {
	z-index: 4;
}

@keyframes adv-ev-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.adv-evcard__media {
	aspect-ratio: 16 / 10;
	background: var(--ev-tint);
	border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
}

.adv-evcard .adv-evcard__img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	max-inline-size: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ev-ease);
}

.adv-evcard:hover .adv-evcard__img {
	transform: scale(1.04);
}

.adv-evcard__ph {
	align-items: baseline;
	block-size: 100%;
	color: color-mix(in srgb, var(--ev-accent) 62%, var(--ev-ink));
	display: flex;
	gap: 0.4em;
	justify-content: center;
	padding: 0 1rem;
	place-items: center;
}

.adv-evcard__ph-day {
	font-size: clamp(2.75rem, 26cqi, 5rem);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.adv-evcard__ph-month {
	font-size: clamp(1rem, 7cqi, 1.5rem);
	font-weight: 600;
}

.adv-evcard__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1.125rem 1.125rem 0.75rem;
}

/* The date. Without an image it is a line above the title: the day as a
   numeral, month and weekday beside it. */
.adv-evcard__date {
	align-items: baseline;
	column-gap: 0.4rem;
	display: flex;
	flex-wrap: wrap;
	line-height: 1.1;
}

.adv-evcard__day {
	color: var(--ev-ink);
	font-size: 1.75rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	white-space: nowrap;
}

.adv-evcard__dash {
	/* The day's ink, lighter in weight only: at 60 % opacity it fell to
	   2.7:1 on the tinted card (text, even if large, needs 3:1). */
	font-weight: 400;
}

.adv-evcard__month {
	font-size: 0.9375rem;
	font-weight: 700;
}

.adv-evcard__weekday {
	color: var(--ev-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

/* With an image the date is a box over its top corner; the weekday stays
   for assistive tech (the time row below says the hours). */
.adv-evcard:has(> .adv-evcard__media:not(.adv-evcard__media--empty)) .adv-evcard__date {
	align-items: center;
	background: var(--ev-card);
	border-radius: 0.75rem;
	box-shadow: 0 4px 14px var(--ev-shadow);
	flex-direction: column;
	flex-wrap: nowrap;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	min-inline-size: 3.5rem;
	padding: 0.5rem 0.625rem 0.45rem;
	pointer-events: none;
	position: absolute;
	row-gap: 0.125rem;
	text-align: center;
	z-index: 1;
}

.adv-evcard:has(> .adv-evcard__media:not(.adv-evcard__media--empty)) .adv-evcard__day {
	font-size: 1.5rem;
}

.adv-evcard:has(> .adv-evcard__media:not(.adv-evcard__media--empty)) .adv-evcard__month {
	color: var(--ev-accent);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* The placeholder already draws the date large: do not print it twice. */
.adv-evcard:has(> .adv-evcard__media) .adv-evcard__weekday,
.adv-evcard:has(> .adv-evcard__media--empty) .adv-evcard__date {
	block-size: 1px;
	clip-path: inset(50%);
	inline-size: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
}

.adv-evcard__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.5rem;
	min-inline-size: 0;
}

.adv-evcard__chips {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.adv-evcard__chip {
	align-items: center;
	background: color-mix(in srgb, var(--ev-ink) 7%, transparent);
	border-radius: 999px;
	color: var(--ev-ink);
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 600;
	gap: 0.375rem;
	line-height: 1.4;
	padding: 0.1875rem 0.625rem;
}

.adv-evcard__chip::before {
	aspect-ratio: 1;
	background: var(--adv-chip, var(--ev-accent));
	border-radius: 50%;
	content: "";
	flex: 0 0 auto;
	inline-size: 0.5rem;
}

.adv-evcard .adv-evcard__title {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--ev-ink);
	display: -webkit-box;
	font-size: clamp(1.0625rem, 0.9rem + 1.6cqi, 1.25rem);
	font-weight: 700;
	letter-spacing: -0.005em;
	line-clamp: 2;
	line-height: 1.3;
	overflow: hidden;
	text-transform: none;
	text-wrap: balance;
}

.adv-evcard .adv-evcard__title a {
	color: inherit;
	text-decoration: none;
}

.adv-evcard .adv-evcard__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* The whole card is the link's target; the calendar menu stays above it. */
.adv-evcard .adv-evcard__title a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.adv-evcard .adv-evcard__title a:focus-visible {
	outline: none;
}

.adv-evcard .adv-evcard__title a:focus-visible::after {
	border-radius: 1rem;
	outline: 2px solid var(--ev-focus);
	outline-offset: 2px;
}

.adv-evcard__excerpt {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--ev-muted);
	display: -webkit-box;
	font-size: 0.9375rem;
	font-weight: 400;
	line-clamp: 3;
	line-height: 1.5;
	overflow: hidden;
}

.adv-evcard__meta {
	color: var(--ev-ink);
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	font-weight: 400;
	gap: 0.25rem;
	line-height: 1.4;
	margin-block-start: auto;
	padding-block-start: 0.375rem;
}

.adv-evcard__meta li {
	align-items: flex-start;
	display: flex;
	font-weight: 400;
	gap: 0.5rem;
}

.adv-evcard__meta .adv-ev-icon {
	block-size: 1.125rem;
	color: var(--ev-muted);
	inline-size: 1.125rem;
	margin-block-start: 0.05em;
}

/* Actions: a text button on a hairline, the same line in every card. */
.adv-evcard__actions {
	border-block-start: 1px solid var(--ev-line);
	margin-inline: 1.125rem;
	padding: 0.25rem 0 0.375rem;
	position: relative;
	z-index: 2;
}

.adv-evcard .adv-atc--evcard {
	display: block;
}

.adv-evcard .adv-atc--evcard .adv-atc__toggle {
	background: transparent;
	border: 0;
	border-radius: 0.5rem;
	color: var(--ev-accent);
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 600;
	inline-size: auto;
	justify-content: flex-start;
	margin-inline-start: -0.5rem;
	min-block-size: 2.75rem;
	padding: 0.25rem 0.5rem;
}

.adv-evcard .adv-atc--evcard .adv-atc__icon {
	block-size: 0.95em;
	border-width: 1.5px;
	border-top-width: 3.5px;
	inline-size: 0.95em;
}

.adv-evcard .adv-atc--evcard .adv-atc__toggle:hover,
.adv-evcard .adv-atc--evcard[open] > .adv-atc__toggle {
	background: var(--ev-tint);
	color: color-mix(in srgb, var(--ev-accent) 80%, var(--ev-ink));
	filter: none;
}

:is(.adv-evcard, .adv-evopt) .adv-atc__menu {
	background: var(--ev-card);
	border-color: var(--ev-line);
	box-shadow: 0 8px 24px var(--ev-shadow);
	color: var(--ev-ink);
	inset-inline: 0;
	min-inline-size: 0;
}

/* In a card the menu opens upward: the card is the last thing in its row. */
.adv-evcard .adv-atc__menu {
	inset-block: auto 100%;
	margin: 0 0 0.25rem;
}

:is(.adv-evcard, .adv-evopt) .adv-atc__link {
	min-block-size: 2.75rem;
	padding-block: 0.7rem;
}

.adv-evcard--cancelado :is(.adv-evcard__date, .adv-evcard__time) {
	text-decoration: line-through;
}

/* ================================================================== Hero */

.adv-evhero {
	--adv-evhero-align: center;
	--adv-evhero-justify: center;
	background: var(--ev-surface);
}

.elementor-widget.adv-evhero-bg-degradado .adv-evhero {
	background: linear-gradient(270deg, var(--ev-surface) 50%, var(--ev-tint) 100%);
}

.elementor-widget.adv-evhero-bg-ninguno .adv-evhero {
	background: transparent;
}

.adv-evhero__inner {
	margin: var(--adv-ev-margin, 0 auto);
	max-inline-size: min(100%, var(--adv-ev-max, 80rem));
	padding: clamp(3rem, 10cqi, 7rem) clamp(1rem, 5cqi, 3rem) clamp(2.5rem, 6cqi, 5.5rem);
}

.adv-evhero__head {
	align-items: var(--adv-evhero-justify);
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2cqi, 1.5rem);
	margin-block-end: clamp(2rem, 4cqi, 3rem);
	text-align: var(--adv-evhero-align);
}

.adv-evhero__eyebrow {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 1rem;
	font-weight: 700;
	gap: 0.5rem;
	justify-content: var(--adv-evhero-justify);
	line-height: 1.4;
}

.adv-evhero .adv-evhero__title {
	color: var(--ev-ink);
	font-size: clamp(2rem, 1.1rem + 4.6cqi, 4.5rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.1;
	max-inline-size: 22ch;
	text-transform: none;
	text-wrap: balance;
}

/* Editorial voice (R3-5): see `.adv-evlib__title`. */
html :is(.adv-ed--neutral, .adv-editorial, body.adv-lite) .adv-evhero .adv-evhero__title:is(h1, h2, h3, h4, p, div, span) {
	font-family: var(--adv-ed-serif, var(--adv-font-display, serif));
	font-weight: 400;
	letter-spacing: -0.022em;
	line-height: calc(0.98em + 0.36rem);
}

.adv-evhero__lead {
	font-size: clamp(1rem, 0.9rem + 0.6cqi, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	max-inline-size: 60ch;
}

.adv-evhero__meta {
	display: flex;
	flex-wrap: wrap;
	font-size: clamp(1rem, 0.95rem + 0.3cqi, 1.125rem);
	font-weight: 400;
	gap: 0.5rem 1.5rem;
	justify-content: var(--adv-evhero-justify);
	line-height: 1.4;
}

.adv-evhero__meta li {
	align-items: flex-start;
	display: flex;
	gap: 0.5rem;
	text-align: start;
}

.adv-evhero__meta .adv-ev-icon {
	color: var(--ev-accent);
	margin-block-start: 0.05em;
}

.adv-evhero--cancelado .adv-evhero__meta time {
	text-decoration: line-through;
}

.adv-evhero__options {
	align-items: stretch;
	display: grid;
	gap: clamp(0.75rem, 1.4cqi, 1rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
	margin-inline: auto;
}

.adv-evhero__options[data-count="1"] {
	max-inline-size: 26rem;
}

.adv-evhero__options[data-count="2"] {
	max-inline-size: 53rem;
}

.adv-evopt {
	background: var(--ev-card);
	border: 1px solid var(--ev-line);
	border-radius: 0.5rem;
	padding: 0.625rem;
	position: relative;
	transition: transform 0.35s var(--ev-ease), box-shadow 0.35s;
}

.adv-evopt:hover {
	box-shadow: 0 24px 48px color-mix(in srgb, var(--ev-accent) 12%, transparent);
	transform: translateY(-4px);
}

.adv-evopt:has(.adv-atc[open]) {
	z-index: 4;
}

.adv-evopt__in {
	block-size: 100%;
	border-radius: 0.4rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 1.5rem 1rem;
}

.adv-evopt.is-featured {
	border-color: color-mix(in srgb, var(--ev-accent) 55%, var(--ev-surface));
}

.adv-evopt.is-featured .adv-evopt__in {
	background: linear-gradient(180deg, var(--ev-tint) 0%, var(--ev-card) 65%);
}

.adv-evopt__top {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.75rem;
}

.adv-evopt__tag {
	align-items: center;
	color: var(--ev-ink);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	font-weight: 600;
	gap: 0.5rem;
	line-height: 1.4;
}

.adv-evopt__tag .adv-ev-icon {
	color: var(--ev-accent);
}

.adv-evopt__badge {
	background: var(--ev-accent);
	border-radius: 0.25rem;
	color: var(--ev-on-accent);
	font-size: 0.8125rem;
	font-weight: 600;
	margin-inline-start: auto;
	padding: 0.125rem 0.5rem;
}

.adv-evhero .adv-evopt__title {
	color: var(--ev-ink);
	font-size: clamp(1.375rem, 1.2rem + 0.8cqi, 1.75rem);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
}

.adv-evopt__text {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
}

.adv-evopt__action {
	margin-block-start: auto;
	padding-block-start: 1rem;
}

.adv-evhero .adv-evopt__button,
.adv-evopt .adv-atc--evopt .adv-atc__toggle {
	align-items: center;
	background: transparent;
	border: 1px solid var(--ev-ink);
	border-radius: 0.5rem;
	color: var(--ev-ink);
	display: flex;
	font-size: clamp(1.0625rem, 1rem + 0.4cqi, 1.25rem);
	font-weight: 500;
	gap: 0.5rem;
	inline-size: 100%;
	justify-content: center;
	line-height: 1.3;
	min-block-size: 3.75rem;
	padding: 0.5rem 1rem;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.adv-evopt .adv-atc--evopt {
	display: block;
}

.adv-evhero .adv-evopt.is-featured .adv-evopt__button,
.adv-evopt.is-featured .adv-atc--evopt .adv-atc__toggle,
.adv-evhero .adv-evopt__button:hover,
.adv-evopt .adv-atc--evopt .adv-atc__toggle:hover,
.adv-evopt .adv-atc--evopt[open] > .adv-atc__toggle {
	background: var(--ev-accent);
	border-color: var(--ev-accent);
	color: var(--ev-on-accent);
	filter: none;
}

.adv-evhero .adv-evopt.is-featured .adv-evopt__button:hover,
.adv-evopt.is-featured .adv-atc--evopt .adv-atc__toggle:hover {
	background: color-mix(in srgb, var(--ev-accent) 86%, var(--ev-ink));
	border-color: color-mix(in srgb, var(--ev-accent) 86%, var(--ev-ink));
}

.adv-evopt__checks {
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	font-weight: 400;
	gap: 0.3rem;
	line-height: 1.4;
}

.adv-evopt__checks li {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	min-block-size: 1.625rem;
}

.adv-evopt__checks .adv-ev-icon {
	block-size: 1.5rem;
	inline-size: 1.5rem;
}

.adv-evopt__checks .is-no {
	color: var(--ev-muted);
}

/* ============================================================== Sections */

.adv-evsec {
	display: flex;
	flex-direction: column;
	gap: var(--adv-evsec-gap, clamp(3rem, 8cqi, 6rem));
}

.adv-evsec__part {
	inline-size: 100%;
	margin: var(--adv-ev-margin, 0 auto);
	max-inline-size: min(100%, var(--adv-ev-max, 80rem));
}

.adv-evsec .adv-evsec__heading {
	color: var(--ev-ink);
	font-size: clamp(1.5rem, 1rem + 3.2cqi, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin-block-end: clamp(1rem, 2.4cqi, 1.5rem);
	text-transform: none;
	text-wrap: balance;
}

/* Editorial voice (R3-5): see `.adv-evlib__title`. */
html :is(.adv-ed--neutral, .adv-editorial, body.adv-lite) .adv-evsec .adv-evsec__heading:is(h1, h2, h3, h4, p, div, span) {
	font-family: var(--adv-ed-serif, var(--adv-font-display, serif));
	font-weight: 400;
	letter-spacing: -0.022em;
	line-height: calc(0.98em + 0.36rem);
}

.adv-evsec__intro {
	font-size: clamp(1rem, 0.9rem + 0.6cqi, 1.25rem);
	line-height: 1.5;
	max-inline-size: 65ch;
}

.adv-evsec__intro > * + *,
.adv-evrow__text > * + * {
	margin-block-start: 0.75em;
}

.adv-evrow {
	align-items: center;
	display: grid;
	gap: clamp(1.5rem, 5cqi, 5rem);
	grid-template-columns: minmax(0, 1fr);
	padding-block: clamp(1.5rem, 4cqi, 3rem);
}

.adv-evrow + .adv-evrow {
	border-block-start: 1px solid var(--ev-line);
}

.adv-evrow__media {
	aspect-ratio: 604 / 418;
	background: var(--ev-panel);
	border-radius: 1rem;
	overflow: hidden;
}

.adv-evrow .adv-evrow__img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	max-inline-size: 100%;
	object-fit: cover;
}

.adv-evrow__copy {
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2cqi, 1.5rem);
	max-inline-size: 65ch;
	min-inline-size: 0;
}

.adv-evsec .adv-evrow__title {
	color: var(--ev-ink);
	font-size: clamp(1.375rem, 1.1rem + 1.6cqi, 2rem);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
}

.adv-evrow__text {
	font-size: clamp(1rem, 0.9rem + 0.6cqi, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
}

.adv-evsec :is(.adv-evrow__text, .adv-evsec__intro, .adv-evqa__a) :is(p, li) {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.adv-evrow__text :is(ul, ol) {
	padding-inline-start: 1.25em;
}

.adv-evrow__text ul > li {
	list-style: disc;
}

.adv-evrow__text ol > li {
	list-style: decimal;
}

.adv-evrow__text :is(img, video, iframe) {
	block-size: auto;
	max-inline-size: 100%;
}

.adv-evrow__text a,
.adv-evqa__a a,
.adv-evfaq__lead a {
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@container (min-width: 40rem) {
	.adv-evrow:not(.adv-evrow--text) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.adv-evrow--rev .adv-evrow__media,
	.elementor-widget.adv-evsec-first-texto .adv-evrow:not(.adv-evrow--rev) .adv-evrow__media {
		order: 2;
	}

	.elementor-widget.adv-evsec-first-texto .adv-evrow--rev .adv-evrow__media {
		order: 0;
	}
}

/* ---- Cifras ---- */

.adv-evstats {
	display: grid;
	gap: clamp(0.75rem, 1.6cqi, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.adv-evsec .adv-evstat {
	background: var(--adv-evstat-bg, var(--ev-ink));
	border-radius: 1rem;
	color: var(--adv-evstat-ink, var(--ev-surface));
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	justify-content: space-between;
	min-block-size: clamp(13rem, 26cqi, 22rem);
	padding: 1.5rem;
}

.adv-evstat__num {
	align-items: baseline;
	display: flex;
	gap: 0.25rem;
	line-height: 1.1;
}

.adv-evstat__num b {
	font-size: clamp(3.5rem, 2rem + 5cqi, 5.5rem);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.adv-evstat__num span {
	font-size: clamp(1.75rem, 1rem + 2.4cqi, 3rem);
	font-weight: 400;
}

.adv-evstat__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	margin-block-end: 0.5rem;
}

.adv-evstat__text {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
}

/* ---- Preguntas ---- */

.adv-evfaq {
	display: flex;
	flex-direction: column;
	gap: 1.5rem 2.5rem;
}

.adv-evfaq__lead {
	font-size: clamp(1rem, 0.9rem + 0.6cqi, 1.25rem);
	line-height: 1.4;
}

.adv-evfaq__list {
	border-block-start: 1px solid var(--ev-line);
	flex: 1 1 auto;
	min-inline-size: 0;
}

.adv-evqa {
	border-block-end: 1px solid var(--ev-line);
}

.adv-evsec .adv-evqa__q {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: clamp(1.0625rem, 1rem + 0.5cqi, 1.25rem);
	font-weight: 600;
	gap: 1rem;
	justify-content: space-between;
	line-height: 1.4;
	list-style: none;
	min-block-size: 3.5rem;
	padding-block: 1rem;
}

.adv-evqa__q::-webkit-details-marker {
	display: none;
}

.adv-evqa__icon {
	aspect-ratio: 1;
	flex: 0 0 auto;
	inline-size: 1.25rem;
	position: relative;
}

.adv-evqa__icon::before,
.adv-evqa__icon::after {
	background: currentColor;
	block-size: 2px;
	content: "";
	inline-size: 100%;
	inset-block-start: calc(50% - 1px);
	inset-inline-start: 0;
	position: absolute;
	transition: transform 0.25s var(--ev-ease);
}

.adv-evqa__icon::after {
	transform: rotate(90deg);
}

.adv-evqa[open] .adv-evqa__icon::after {
	transform: rotate(0deg);
}

.adv-evqa__a {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	max-inline-size: 65ch;
	padding-block-end: 1.25rem;
}

.adv-evqa__a > * + * {
	margin-block-start: 0.75em;
}

@container (min-width: 60rem) {
	.adv-evfaq {
		flex-direction: row;
	}

	.adv-evfaq__intro {
		flex: 0 0 min(25rem, 34%);
	}
}

@media (hover: none) {
	.adv-evcard:hover .adv-evcard__img,
	.adv-evopt:hover {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adv-evcard {
		animation: none;
	}

	.adv-evlib *,
	.adv-evhero *,
	.adv-evsec *,
	.adv-evcard * {
		transition: none !important;
	}

	.adv-evopt:hover,
	.adv-evcard:hover .adv-evcard__img {
		transform: none;
	}
}
