/**
 * Agenda List 01 — BEM scope (frontend + editor).
 */

.mwm-agenda-list-01 {
	position: relative;
	padding-block: clamp(3rem, 6vw, 6rem);
	overflow: visible;
}

.mwm-agenda-list-01__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 1.75rem);
}

.mwm-agenda-list-01__decoration {
	position: absolute;
	left: 0;
	top: -25%;
	width: 100%;
	pointer-events: none;
	z-index: 0;

	img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.mwm-agenda-list-01__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 48.4375rem;
	margin-inline: auto;
}

.mwm-agenda-list-01__card {
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgb(17 24 39 / 0.06);
	transition: box-shadow 0.2s ease;
}

.mwm-agenda-list-01__card:hover,
.mwm-agenda-list-01__card:focus-within {
	box-shadow: 0 8px 24px rgb(17 24 39 / 0.1);
}

.mwm-agenda-list-01__card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.mwm-agenda-list-01__card-media {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 2.85s cubic-bezier(0.19, 1, 0.22, 1);
}

.mwm-agenda-list-01__card.is-active .mwm-agenda-list-01__card-media {
	grid-template-rows: 1fr;
}

.mwm-agenda-list-01__card-media-inner {
	min-height: 0;
	overflow: hidden;
}

.mwm-agenda-list-01__card-image {
	display: block;
	width: 100%;
	max-height: 368px;
	object-fit: cover;
	transform: scale(1.04);
	transform-origin: center center;
	transition: transform 2.85s cubic-bezier(0.19, 1, 0.22, 1);

	img {
		object-fit: cover;
		width: 100%;
		height: 100%;
		object-position: center;
	}
}

.mwm-agenda-list-01__card.is-active .mwm-agenda-list-01__card-image {
	transform: scale(1);
}

.mwm-agenda-list-01__card-image--placeholder {
	min-height: 140px;
	background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.mwm-agenda-list-01__card-body {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem 1.25rem;
	justify-content: space-between;
	padding: 1.15rem 1.25rem 1.35rem;
}

.mwm-agenda-list-01__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-width: 3rem;
	flex-shrink: 0;
}

.mwm-agenda-list-01__date-month {
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 10px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #d1d5db;
	letter-spacing: 0.04em;
}

.mwm-agenda-list-01__date-day {
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.1;
	color: #111827;
}

.mwm-agenda-list-01__card-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mwm-agenda-list-01__card-title {
	font-family: Montserrat, system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
	margin: 0;
	color: #111827;
}

.mwm-agenda-list-01__card-desc {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #4b5563;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition:
		max-height 2.1s cubic-bezier(0.13, 1, 0.22, 1),
		opacity 1.5s cubic-bezier(0.13, 1, 0.22, 1);
}

.mwm-agenda-list-01__card.is-active .mwm-agenda-list-01__card-desc {
	max-height: 8rem;
	opacity: 1;
}

.mwm-agenda-list-01__card-meta {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #9ca3af;
}

.mwm-agenda-list-01__cta {
	flex-shrink: 0;
	align-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 70px;
	min-height: 33.5px;
	margin-inline-start: auto;
	padding: 0 0.25rem;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: none;
	font-family: Montserrat, system-ui, -apple-system, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	color: #00d084;
	text-align: center;
}

.mwm-agenda-list-01__footer {
	text-align: center;
	padding-top: 0.5rem;
}

.mwm-agenda-list-01__footer-link {
	font-family: var(--font-family);
	color: var(--color-white);
	font-weight: 400;
	font-size: 1rem;
	text-decoration: none;
	transition: color 0.2s ease;
	cursor: pointer;
}

a.mwm-agenda-list-01__footer-link:hover,
a.mwm-agenda-list-01__footer-link:focus {
	color: #00b371;
}

@media (max-width: 1023px) {
	.mwm-agenda-list-01__card-image {
		max-height: clamp(220px, 30vw, 320px);
	}
}

@media (max-width: 639px) {
	.mwm-agenda-list-01__card-body {
		flex-wrap: wrap;
		row-gap: 0.75rem;
	}

	.mwm-agenda-list-01__date {
		flex-direction: row;
		align-items: baseline;
		gap: 0.35rem;
		width: 100%;
		min-width: 0;
		justify-content: flex-start;
	}

	.mwm-agenda-list-01__cta {
		margin-inline-start: 0;
		margin-inline-end: auto;
		min-width: unset;
		min-height: unset;
	}
}

@media (hover: none) {
	.mwm-agenda-list-01__card.is-active .mwm-agenda-list-01__card-image {
		max-height: clamp(180px, 45vw, 280px);
	}
}

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

	.mwm-agenda-list-01__card-media {
		transition-duration: 800ms;
	}

	.mwm-agenda-list-01__card-desc,
	.mwm-agenda-list-01__card-image {
		transition-duration: 800ms;
	}
}

/* ─── Marca SVG "Preámbulo" (maqueta Figma) ─── */
.mwm-agenda-list-01__brand-stack {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-inline: auto;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	width: 100%;
	max-width: 48.4375rem;
	padding-bottom: 2.5rem;
}

.mwm-agenda-list-01__intro-description {
	margin: 0;
	width: 100%;
	max-width: 42rem;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-size: clamp(0.875rem, 1.6vw, 1rem);
	font-weight: 400;
	line-height: 1.6;
	text-align: center;
	color: #d1d5db;
}

.mwm-agenda-list-01__subscribe-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 0.75rem 2rem;
	font-family: var(--font-family), sans-serif;
	font-weight: var(--fw-bold, 700);
	font-size: var(--fs-16, 1rem);
	line-height: 1.5;
	color: var(--mwm-brand-on, var(--color-white, #fff));
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--mwm-brand-fill, var(--color-green, #00c87e));
	border: 0;
	border-radius: 624.9375rem;
	cursor: pointer;
	box-sizing: border-box;
	transition: opacity 0.2s ease;
}

.mwm-agenda-list-01__subscribe-cta:hover,
.mwm-agenda-list-01__subscribe-cta:focus-visible {
	opacity: 0.92;
}

.mwm-agenda-empty-notice {
	box-sizing: border-box;
	margin: 0 auto;
	padding: 1rem 1.25rem;
	max-width: 48.4375rem;
	background: #f3f4f6;
	border-radius: 12px;
	color: #111827;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
	text-align: center;
}

.mwm-agenda-list-01__empty.mwm-agenda-empty-notice {
	width: 100%;
	margin: 0 auto;
}

.mwm-agenda-list-01__brand-mark {
	flex-shrink: 0;
	align-self: center;
	width: min(100%, 776px);
	line-height: 0;
}

.mwm-agenda-list-01__brand-svg {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 1024px) {
	.mwm-agenda-list-01__brand-stack {
		padding-bottom: 4.375rem;
	}
}

/* Solo editor: fondo negro (frontend ya usa body oscuro). */
.editor-styles-wrapper .wp-block-mwm-agenda-list-01 {
	box-sizing: border-box;
	background-color: var(--color-black, #000);
}
/*
 * Layout «featured» (29-10-2026): el módulo «Evento destacado / Próximos
 * eventos» de la web actual, que Karla pidió recuperar. Va sobre el fondo
 * negro de la portada: el verde corporativo cumple contraste sobre negro
 * (10:1) y no sobre blanco (2,08:1), por eso no se copia el fondo blanco.
 */
.mwm-agenda-list-01__featured {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
	width: 100%;
	max-width: 70rem;
	margin-inline: auto;
	color: #fff;
}

.mwm-agenda-list-01__next {
	background-color: #1a1a1a;
	border-radius: 24px;
	padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem);
}

.mwm-agenda-list-01__column-title {
	margin: 0 0 1.5rem;
	font-family: var(--font-family), sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-green, #00ce7c);
}

.mwm-agenda-list-01__column-title--big {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.2;
}

.mwm-agenda-list-01__event {
	position: relative;
}

.mwm-agenda-list-01__event-title {
	margin: 0;
	font-family: var(--font-family), sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}

.mwm-agenda-list-01__event--featured .mwm-agenda-list-01__event-title {
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
}

.mwm-agenda-list-01__nowrap {
	white-space: nowrap;
}

.mwm-agenda-list-01__event-link {
	color: inherit;
	text-decoration: none;
}

/* El enlace cubre la tarjeta entera, como en la web actual. */
.mwm-agenda-list-01__event-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Hover solo con ratón: en móvil el :hover se queda pegado tras tocar. */
@media (hover: hover) {
	.mwm-agenda-list-01__event:hover .mwm-agenda-list-01__event-link {
		color: var(--color-green, #00ce7c);
	}

	.mwm-agenda-list-01__event--featured:hover .mwm-agenda-list-01__event-image img {
		transform: scale(1.03);
	}

	.mwm-agenda-list-01__upcoming-btn:hover {
		background-color: var(--color-green, #00ce7c);
		border-color: var(--color-green, #00ce7c);
		color: #000;
	}
}

.mwm-agenda-list-01__event-link:focus-visible {
	color: var(--color-green, #00ce7c);
}

.mwm-agenda-list-01__event-link:focus-visible {
	outline: none;
}

.mwm-agenda-list-01__event:has(.mwm-agenda-list-01__event-link:focus-visible) {
	outline: 2px solid var(--color-green, #00ce7c);
	outline-offset: 6px;
	border-radius: 4px;
}

.mwm-agenda-list-01__event-date {
	margin: 0.5rem 0 0;
	font-family: var(--font-family), sans-serif;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #c4c4c4;
}

.mwm-agenda-list-01__event-date strong {
	color: #fff;
	font-weight: 600;
}

.mwm-agenda-list-01__event-image {
	margin-top: 1.5rem;
	overflow: hidden;
	border-radius: 12px;
}

.mwm-agenda-list-01__event-image img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.mwm-agenda-list-01__upcoming-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.mwm-agenda-list-01__upcoming-list > li {
	padding-block: 1rem;
}

.mwm-agenda-list-01__upcoming-list > li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.mwm-agenda-list-01__upcoming-list > li:first-child {
	padding-top: 0;
}

.mwm-agenda-list-01__upcoming-empty {
	margin: 0;
	color: #c4c4c4;
}

.mwm-agenda-list-01__upcoming-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 2.5rem;
	padding: 0.625rem 1.5rem;
	border: 1px solid #fff;
	border-radius: 624.9375rem;
	font-family: var(--font-family), sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mwm-agenda-list-01__upcoming-btn:focus-visible {
	background-color: var(--color-green, #00ce7c);
	border-color: var(--color-green, #00ce7c);
	color: #000;
}

/* Tablet y móvil apaisado: columna centrada para que el cartel no ocupe toda la pantalla. */
@media (min-width: 600px) and (max-width: 1023px) {
	.mwm-agenda-list-01__next > *,
	.mwm-agenda-list-01__upcoming {
		max-width: 460px;
		margin-inline: auto;
	}
}

/* Móvil apaisado: que el cartel quepa entero en la altura de la pantalla. */
@media (orientation: landscape) and (max-height: 500px) {
	.mwm-agenda-list-01__event-image {
		max-width: min(460px, 75vh);
	}
}

@media (min-width: 1024px) {
	.mwm-agenda-list-01__featured {
		grid-template-columns: 1.057fr 1fr;
		align-items: start;
	}

	.mwm-agenda-list-01__next > * {
		max-width: 410px;
		margin-inline: auto;
	}

	/* Fondo negro propio: la curva decorativa pasa por detrás y no cruza el texto. */
	.mwm-agenda-list-01__upcoming {
		max-width: calc(410px + 3rem);
		width: 100%;
		margin-inline: auto;
		padding: clamp(1.75rem, 4vw, 3rem) 1.5rem 1.5rem;
		background-color: var(--color-black, #000);
		border-radius: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mwm-agenda-list-01__event-image img {
		transition: none;
	}

	.mwm-agenda-list-01__event--featured:hover .mwm-agenda-list-01__event-image img {
		transform: none;
	}
}
