/* Event cards */
.hx-event-list--cards {
	gap: 20px;
}

.hx-event-card {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	overflow: hidden;
	background: var(--hx-white);
	border: 1px solid var(--hx-stone);
	border-radius: var(--hx-r-xl);
}

.hx-event-card__media {
	position: relative;
	min-height: 280px;
	background: var(--hx-plum);
}

.hx-event-card__image {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

.hx-event-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hx-event-card__date {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: inline-flex;
	max-width: calc(100% - 40px);
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	background: var(--hx-plum);
	border-radius: var(--hx-r-lg);
	color: var(--hx-white);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

.hx-event-card__featured {
	position: absolute;
	top: 20px;
	left: 20px;
	padding: 7px 12px;
	background: var(--hx-lime);
	border-radius: 999px;
	color: var(--hx-plum);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.hx-event-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 28px 32px;
}

.hx-event-card__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hx-event-type,
.hx-event-badge {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
}

.hx-event-type {
	background: var(--hx-earth);
	color: var(--hx-ink);
}

.hx-event-type--trade-fair {
	background: var(--hx-lime);
	color: var(--hx-plum);
}

.hx-event-type--webinar {
	background: var(--hx-green-100);
	color: var(--hx-green-900);
}

.hx-event-type--online-event {
	background: var(--hx-plum);
	color: var(--hx-white);
}

.hx-event-type--in-person-event {
	background: var(--hx-stone);
	color: var(--hx-ink);
}

.hx-event-type--event {
	background: var(--hx-earth);
	color: var(--hx-ink);
}

.hx-event-badge--ultimas-plazas {
	background: var(--hx-magenta);
	color: var(--hx-white);
}

.hx-event-badge--gratuito {
	background: var(--hx-green-700);
	color: var(--hx-white);
}

.hx-event-badge--nuevo {
	background: var(--hx-magenta);
	color: var(--hx-white);
}

.hx-event-card__title {
	margin: 0;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 500;
	line-height: 1.2;
}

.hx-event-card__title a {
	color: var(--hx-ink);
	text-decoration: none;
}

.hx-event-card__title a:hover {
	color: var(--hx-green-700);
}

.hx-event-card__summary {
	margin: 0;
	color: var(--hx-grey);
	font-size: 0.95rem;
	line-height: 1.55;
}

.hx-event-card__meta {
	margin: 0;
	color: var(--hx-ink);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
}

.hx-event-card__cta {
	margin-top: auto;
}

.hx-btn--disabled {
	background: var(--hx-stone);
	border-color: var(--hx-stone);
	color: var(--hx-grey);
	opacity: 0.75;
	cursor: not-allowed;
	pointer-events: none;
}

/* Single event */
.hx-event-single__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.hx-event-lead {
	margin: 0 0 28px;
	color: var(--hx-ink-soft);
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
	line-height: 1.55;
}

.hx-event-single__cta {
	width: 100%;
	justify-content: center;
}

.hx-event-speakers {
	margin-top: clamp(40px, 6vw, 64px);
}

.hx-event-speakers h2 {
	margin: 0 0 24px;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 500;
}

.hx-event-speakers__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 24px);
}

.hx-speaker {
	margin: 0;
}

.hx-speaker__photo {
	width: 100%;
	aspect-ratio: 1;
	margin-bottom: 14px;
	border-radius: var(--hx-r-lg);
	object-fit: cover;
}

.hx-speaker h3 {
	margin: 0 0 4px;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.25;
}

.hx-speaker p {
	margin: 0;
	color: var(--hx-grey);
	font-size: 0.95rem;
	line-height: 1.45;
}

.hx-event-card__title a:focus-visible,
.hx-event-card__cta:focus-visible,
.hx-event-single__cta:focus-visible {
	outline-color: var(--hx-plum);
}

@media (max-width: 900px) {
	.hx-event-card {
		grid-template-columns: 1fr;
	}

	.hx-event-card__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.hx-event-card__body {
		padding: 24px;
	}

	.hx-event-speakers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hx-event-card__date {
		left: 16px;
		bottom: 16px;
		padding: 10px 12px;
		font-size: 0.85rem;
	}

	.hx-event-card__featured {
		top: 16px;
		left: 16px;
	}

	.hx-event-card__body {
		padding: 20px;
	}

	.hx-event-card__cta {
		width: 100%;
	}

	.hx-event-speakers__grid {
		grid-template-columns: 1fr;
	}
}
