/* GP Eventos — measured from the original Elementor sections on INICIO. */
.gpe {
	--gpe-accent: var(--ast-global-color-0, #ff6210);
	--gpe-pill: #ff7800;
	--gpe-text: rgba(255, 255, 255, 0.8);
	--gpe-head: #fff;
	--gpe-font-head: "Fjalla One", sans-serif;
	--gpe-font-card: "Abel", sans-serif;
	--gpe-font-body: Roboto, sans-serif;
	box-sizing: border-box;
	width: 100%;
}
.gpe *,
.gpe *::before,
.gpe *::after {
	box-sizing: border-box;
}
.gpe-empty {
	margin: 0;
	padding: 40px 20px;
	text-align: center;
	font-size: 20px;
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- Grid (Eventos Activos) ---------- */
.gpe-grid {
	max-width: 1351px;
	margin: 0 auto;
}
.gpe-grid__row {
	display: grid;
	grid-template-columns: repeat(var(--gpe-cols, 3), minmax(0, 1fr));
	column-gap: 10px;
	padding: 20px 0;
}
.gpe-card {
	padding-bottom: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.gpe-card__media {
	display: block;
	width: 100%;
	margin-bottom: 15px;
	aspect-ratio: 625 / 400;
	background: #1c1c1c;
}
.gpe-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}
.gpe-hover-grow .gpe-card:hover .gpe-card__media img {
	transform: scale(1.1);
}
.gpe-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font: 64px var(--gpe-font-head);
	color: var(--gpe-accent);
}
.gpe .gpe-card__title {
	margin: 0 0 15px;
	font-family: var(--gpe-font-card);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: capitalize;
	letter-spacing: normal;
}
.gpe-card__title a {
	color: var(--gpe-accent);
	text-decoration: none;
}
.gpe .gpe-card__desc {
	margin: 0 !important; /* page-level "p" margins must not push the button down */
	font-family: var(--gpe-font-body);
	font-size: 18px;
	line-height: 1.65;
	color: var(--gpe-text);
}
.gpe .gpe-pill {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 20px;
	border-radius: 30px;
	background: var(--gpe-pill);
	color: #fff !important;
	font: 700 18px/29px var(--gpe-font-body);
	text-decoration: none !important;
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.gpe .gpe-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 120, 0, 0.35);
}
.gpe-divider {
	display: flex;
	justify-content: center;
	padding: 10px 0;
}
.gpe-divider span {
	display: block;
	width: 50%;
	height: 8px;
	background: repeating-linear-gradient(90deg, #f8f8f8 0 2px, transparent 2px 6px);
	opacity: 0.9;
}

/* ---------- List (Próximos Eventos) ---------- */
.gpe-list {
	padding: 10px 0 0;
}
.gpe-row {
	display: flex;
	align-items: center;
	min-height: 102px;
	margin-bottom: 30px;
	background: #000;
	box-shadow: 0 0 45px rgba(24, 24, 24, 0.98);
	transition: box-shadow 0.3s;
}
.gpe-row:hover {
	box-shadow: 0 0 45px rgba(24, 24, 24, 0.98), inset 4px 0 0 var(--gpe-accent);
}
.gpe-row__inner {
	display: grid;
	grid-template-columns: 130px 184px minmax(0, 1fr) 232px;
	align-items: center;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 20px 0;
	text-align: center;
}
.gpe-row__date,
.gpe-row__time,
.gpe .gpe-row__title {
	margin: 0;
	font-family: var(--gpe-font-head);
	font-weight: 400;
	line-height: 30px;
	text-transform: uppercase;
	letter-spacing: normal;
}
.gpe-row__date {
	font-size: 25px;
	color: var(--gpe-accent);
}
.gpe-row__time,
.gpe .gpe-row__title {
	font-size: 24px;
	color: var(--gpe-head);
}
.gpe .gpe-btn {
	display: inline-block;
	padding: 12px 30px;
	border: 2px solid var(--gpe-accent);
	background: transparent;
	color: var(--gpe-accent) !important;
	font: 400 14px/1 var(--gpe-font-body);
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color 0.3s, color 0.3s;
}
.gpe .gpe-btn:hover {
	background: var(--gpe-accent);
	color: #000 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	/* Rows are chunked for desktop; below it the whole grid reflows as one. */
	.gpe-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 16px;
		padding: 20px;
	}
	.gpe-grid__row {
		display: contents;
	}
	.gpe-divider {
		display: none;
	}
	.gpe-row__inner {
		grid-template-columns: 110px 120px minmax(0, 1fr) 190px;
		padding: 20px;
	}
}
@media (max-width: 767px) {
	.gpe-grid {
		grid-template-columns: 1fr;
	}
	.gpe-row__inner {
		grid-template-columns: 1fr 1fr;
		row-gap: 10px;
		padding: 24px 20px;
	}
	.gpe .gpe-row__title {
		grid-column: 1 / -1;
		order: -1;
	}
	.gpe-row__cta {
		grid-column: 1 / -1;
		margin-top: 6px;
	}
}

/* ---------- Scroll animations (enabled by JS; content stays visible without it) ---------- */
.gpe-js [data-gpe-anim] .gpe-item {
	opacity: 0;
	transition:
		opacity var(--gpe-duration, 700ms) cubic-bezier(0.22, 1, 0.36, 1) var(--gpe-delay, 0ms),
		transform var(--gpe-duration, 700ms) cubic-bezier(0.22, 1, 0.36, 1) var(--gpe-delay, 0ms);
	will-change: opacity, transform;
}
.gpe-js [data-gpe-anim="fade-up"] .gpe-item {
	transform: translateY(40px);
}
.gpe-js [data-gpe-anim="zoom-in"] .gpe-item {
	transform: scale(0.85);
}
.gpe-js [data-gpe-anim="slide-left"] .gpe-item {
	transform: translateX(60px);
}
.gpe-js [data-gpe-anim="slide-right"] .gpe-item {
	transform: translateX(-60px);
}
.gpe-js [data-gpe-anim="flip-up"] .gpe-item {
	transform: perspective(800px) rotateX(35deg) translateY(30px);
	transform-origin: center bottom;
}
.gpe-js [data-gpe-anim] .gpe-item.is-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.gpe-js [data-gpe-anim] .gpe-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
