/* Gestor de Jornadas — estilos encapsulados */

.gj-wrap,
.gj-shortcode {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.gj-archivo-title,
.gj-single-title {
	margin: 0 0 20px;
	color: #1c4036;
	font-weight: 400;
	line-height: 1.25;
}

.gj-archivo-title {
	text-align: center;
	font-weight: 100;
	margin: 0 0 12px;
}

.gj-archivo-title span {
	font-weight: 900;
}

.gj-intro {
	text-align: center;
	margin: 0 0 28px;
	color: #8c8c8c;
}

.gj-intro h2 {
	margin: 0 0 12px;
	font-weight: 400;
}

.gj-filtros ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.gj-filtros li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gj-filtros li::before,
.gj-filtros li::after {
	content: none !important;
	display: none !important;
}

.gj-filtros a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 10px;
	border-radius: 16px;
	background: #efefef;
	color: #1c4036;
	text-decoration: none;
	font-size: 0.85em;
	line-height: 1.2;
}

.gj-filtros a.is-active,
.gj-filtros a:hover,
.gj-filtros a:focus {
	background: #1c4036;
	color: #fff;
}

.gj-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.jornada-item.gj-card {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4);
	border-radius: 5px;
	padding: 12px;
	margin: 0;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.jornada-item.gj-card .contenedor-imagen {
	position: relative;
	width: 100% !important;
	height: 200px !important;
	aspect-ratio: auto !important;
	overflow: hidden !important;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jornada-item.gj-card .contenedor-imagen a.jornada {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.jornada-item.gj-card .contenedor-imagen img {
	position: static !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center;
	display: block !important;
}

.jornada-item.gj-card .contenedor-imagen:has(.gj-card-noimage) {
	height: 200px !important;
	overflow: hidden !important;
}

.gj-card-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	background: #efefef;
	color: #1c4036;
	padding: 12px;
	text-align: center;
	font-weight: 600;
}

.gj-card .jornada-item-titulo {
	font-weight: bold;
	text-align: center;
	margin: 12px 0 8px;
}

.gj-card .jornada-item-fecha,
.gj-card .jornada-item-hora {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 5px 0;
}

.gj-card .material-icons,
.gj-card .gj-icon {
	font-size: 22px;
	margin-right: 3px;
	line-height: 1;
}

.gj-icon {
	display: inline-flex;
	align-items: center;
}

.gj-card .jornada-badge,
.jornada-item-tipo.jornada-badge {
	display: inline-block;
	padding: 7px 13px;
	font-size: inherit;
	font-weight: 600;
	line-height: 1;
	color: #2c2c2c;
	background: #c2c940;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: 15px;
	margin: 8px 0 2px;
	align-self: flex-start;
}

.gj-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
	gap: 32px;
	align-items: start;
}

.gj-featured {
	margin: 0 0 24px;
}

.gj-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.gj-bloque {
	margin-bottom: 28px;
}

.gj-bloque h2 {
	margin: 0 0 12px;
	color: #1c4036;
	font-size: 1.35rem;
}

.gj-richtext p:first-child {
	margin-top: 0;
}

.jornada-simple-titulo {
	background: #1c4036;
	color: #fff;
	font-weight: 400;
	padding: 6px 10px;
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.jornada-simple-titulo:first-child {
	margin-top: 0;
}

.jornada-simple-titulo .material-icons,
.jornada-simple-titulo .gj-icon {
	margin-right: 4px;
}

.jornada-simple-valor {
	background: #efefef;
	color: #8c8c8c;
	font-weight: 400;
	padding: 8px 12px;
}

.gj-enlace-inscripcion {
	color: #1c4036;
	font-weight: 700;
	text-decoration: underline;
}

.gj-enlace-inscripcion:hover,
.gj-enlace-inscripcion:focus {
	color: #16332b;
}

.gj-shortcode-portada {
	max-width: none;
	width: 100%;
	padding: 16px 0 32px;
	margin: 0;
}

.gj-portada-col,
.wpb_column:has(.gj-shortcode-portada) {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

.vc_row:has(.gj-shortcode-portada) > .wpb_column:not(:has(.gj-shortcode-portada)) {
	display: none;
}

.gj-paginacion {
	margin-top: 32px;
	text-align: center;
}

.gj-paginacion ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gj-paginacion a,
.gj-paginacion span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	background: #efefef;
	color: #1c4036;
	text-decoration: none;
	border-radius: 4px;
}

.gj-paginacion .current,
.gj-paginacion a:hover,
.gj-paginacion a:focus {
	background: #1c4036;
	color: #fff;
	box-shadow: 0 2px 0 0 #c2c940;
}

.gj-empty {
	text-align: center;
	color: #8c8c8c;
}

@media (max-width: 1024px) {
	.gj-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.gj-layout {
		grid-template-columns: 1fr;
	}

	.gj-col-side {
		order: -1;
	}
}

@media (max-width: 640px) {
	.gj-grid {
		grid-template-columns: 1fr;
	}

	.gj-wrap,
	.gj-shortcode {
		padding: 16px 12px 36px;
	}
}
