/* Sendero y constelación de logros */

.lgs21-sendero-section {
	background-image:
		radial-gradient(circle at 15% 25%, rgba(255, 200, 20, 0.18) 0, rgba(255, 200, 20, 0.18) 2px, transparent 3px),
		radial-gradient(circle at 75% 15%, rgba(255, 200, 20, 0.12) 0, rgba(255, 200, 20, 0.12) 2px, transparent 3px),
		radial-gradient(circle at 40% 85%, rgba(255, 200, 20, 0.15) 0, rgba(255, 200, 20, 0.15) 2px, transparent 3px),
		radial-gradient(circle at 90% 70%, rgba(255, 200, 20, 0.1) 0, rgba(255, 200, 20, 0.1) 2px, transparent 3px),
		radial-gradient(circle at 60% 45%, rgba(255, 200, 20, 0.12) 0, rgba(255, 200, 20, 0.12) 2px, transparent 3px);
	background-repeat: no-repeat;
}

.lgs21-sendero {
	position: relative;
	padding: 2rem 0;
}

.lgs21-sendero::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	background-image: linear-gradient(to bottom, #ffc814 0%, #ffc814 55%, transparent 55%);
	background-size: 3px 18px;
	background-repeat: repeat-y;
}

.lgs21-hito {
	position: relative;
	width: 44%;
	margin-bottom: 3rem;
}

.lgs21-hito:nth-child(odd) {
	margin-right: auto;
	text-align: right;
}

.lgs21-hito:nth-child(even) {
	margin-left: auto;
	text-align: left;
}

.lgs21-hito::before {
	content: "";
	position: absolute;
	top: 0.3rem;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffc814;
	box-shadow: 0 0 0 5px #000000, 0 0 14px 2px rgba(255, 200, 20, 0.8);
}

.lgs21-hito:nth-child(odd)::before {
	right: -33px;
}

.lgs21-hito:nth-child(even)::before {
	left: -33px;
}

.lgs21-hito-numero {
	display: inline-block;
	color: #ffc814;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
}

/* WordPress core no incluye regla CSS para el alineado "justificado" */

.has-text-align-justify {
	text-align: justify;
}

/* Título del header centrado entre el logo y el menú */

.lgs21-header-title {
	flex: 1 1 240px;
	justify-content: center;
	text-align: center;
}

/* Tarjetas de noticias: sombra suave en vez de marco duro */

.lgs21-card {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lgs21-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Submenú de navegación: icono a la derecha del texto y feedback de hover */

.wp-block-navigation .has-child > .wp-block-navigation-item__content {
	order: 1;
}

.wp-block-navigation .has-child > .wp-block-navigation-submenu__toggle {
	order: 2;
	margin-left: 0.35em;
	cursor: pointer;
}

.wp-block-navigation .has-child {
	cursor: pointer;
}

.wp-block-navigation .wp-block-navigation__submenu-icon svg {
	transition: transform 0.2s ease;
}

.wp-block-navigation .has-child:hover > .wp-block-navigation-submenu__toggle svg,
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	left: -1px !important;
	right: auto !important;
}

@media (max-width: 781px) {
	.lgs21-sendero::before {
		left: 18px;
	}

	.lgs21-hito {
		width: 100% !important;
		margin-left: 45px !important;
		margin-right: 0 !important;
		text-align: left !important;
	}

	.lgs21-hito::before {
		left: -33px !important;
		right: auto !important;
	}
}
