/*LAYOUT*/
.blog-page {
	width: 100%;
}
.blog-title {
	text-align: center;
	margin-bottom: 32px;
}

/*CARRUSEL*/
.blog-carrusel {
	width: 100%;
	padding: 0 2%;
	overflow-x: auto;
	overflow-y: hidden;
}

.blog-carrusel-track {
	display: flex;
	gap: 20px;
	width: max-content;
	align-items: stretch;
}

.blog-carrusel-item {
	flex: 0 0 400px;
	display: flex;
}

/*CARD*/
.blog-card {
	background: #010238;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex: 1;
	border-radius: 28px 0 28px 0;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease;
}
.blog-card:hover {
	transform: translateY(-6px);
}
.blog-card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.blog-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.blog-card-body h3 {
	color: #a0e60a;
	font-size: 18px;
	margin-bottom: 10px;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: calc(1.2em * 3);
}
.blog-card-body p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.blog-card-meta {
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	font-size: 14px;
}
.blog-card-link {
	text-decoration: none;
	display: block;
}

/* FORZAR ALTURA UNIFORME */
.blog-carrusel-track {
	align-items: stretch;
}

/* ALTURA CONSISTENTE */
.blog-card {
	height: 100%;
	min-height: 460px;
}

/* CONTROL DE TEXTO */
.blog-card-body h3 {
	min-height: unset;
}

.blog-card-body p {
	min-height: unset;
}

/* META SIEMPRE ABAJO */
.blog-card-meta {
	margin-top: auto;
}
/*HIGHLIGHT*/
.blog-highlight {
	width: 100%;
	padding: 80px 6%;
	background: #d9d9d9;
}
.blog-highlight-row {
	width: 100%;
}
.blog-highlight-click {
	display: block;
	width: 100%;
	cursor: pointer;
}

.blog-highlight-inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 60px;
	align-items: center;
	width: 100%;

	max-width: 1200px;
	margin: 0 auto;
}

.blog-highlight-inner.reverse {
	grid-template-columns: 1fr 1.5fr;
}

/*TEXTO*/
.blog-highlight-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	max-width: 100%;
}
.blog-highlight-text h2 {
	font-size: 32px;
	margin-bottom: 16px;
	line-height: 1.2;
	color: #010238;
}
.blog-highlight-text p {
	font-size: 16px;
	color: #7f7f7f;
	line-height: 1.6;
	margin-bottom: 10px;
	text-align: justify;
}

/*META*/
.blog-highlight-meta {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

/*FIX DERECHA REAL*/
.blog-highlight-inner.reverse .blog-highlight-meta {
	align-items: flex-start;
}

.blog-highlight-inner.reverse .blog-highlight-meta small,
.blog-highlight-inner.reverse .blog-highlight-meta a {
	margin-left: auto;
	text-align: right;
}

/*TEXT EXTRA*/
.blog-highlight-text small {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	color: #7f7f7f;
}
.blog-highlight-text a {
	display: inline-block;
	margin-top: 12px;
	color: #a0e60a;
	font-weight: 600;
	text-decoration: none;
}

/*IMG*/
.blog-highlight-img {
	width: 100%;
}
.blog-highlight-img img {
	width: 100%;
	height: 520px;
	object-fit: cover;
	border-radius: 12px;
}

.blog-highlight-toggle {
	display: none;
}
.blog-highlight-arrow {
	display: none;
}

/*FIX REVERSE TEXTO*/
.blog-highlight-inner.reverse .blog-highlight-text {
	align-items: flex-start;
	text-align: left;
}

/*LARGE*/
@media (min-width: 1400px) {
	.blog-highlight-inner {
		gap: 100px;
		max-width: 1300px;
	}
	.blog-highlight-text h2 {
		font-size: 36px;
	}
}
@media (min-width: 1800px) {
	.blog-highlight-inner {
		gap: 140px;
		max-width: 1400px;
	}
	.blog-highlight-text h2 {
		font-size: 42px;
	}
	.blog-highlight-img img {
		height: 680px;
	}
}

/*MOBILE HIGHLIGHT*/
.blog-highlight-mobile {
	display: none;
}

/*MOBILE*/
@media (max-width: 768px) {
	.blog-title {
		text-align: left;
		font-size: 22px;
		padding: 0 16px;
	}

	.blog-carrusel {
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding: 0;
		margin-bottom: 30px;
	}

	.blog-carrusel-track {
		display: flex;
		gap: 0;
		width: auto;
		align-items: stretch;
		justify-content: flex-start;
	}

	.blog-carrusel-item {
		flex: 0 0 100%;
		display: flex;
		scroll-snap-align: start;
		padding: 0 12px;
		box-sizing: border-box;
	}

	.blog-card {
		display: flex;
		flex-direction: column;
		flex: 1;
		height: 100%;
		min-height: 300px;
	}

	.blog-card-image {
		width: 100%;
		height: 200px;
		object-fit: cover;
		flex-shrink: 0;
	}

	.blog-card-body {
		padding: 16px;
		display: flex;
		flex-direction: column;
		flex: 1;
	}

	.blog-card-body h3 {
		font-size: 20px;
		line-height: 1.2;
		margin-bottom: 10px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		height: calc(1.2em * 3);
	}

	.blog-card-body p {
		display: -webkit-box;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		line-height: 1.5;
		height: calc(1.5em * 4);
	}

	.blog-card-meta {
		margin-top: auto;
		font-size: 13px;
	}

	.blog-highlight {
		display: none;
	}

	.blog-highlight-mobile {
		display: block;
		padding: 0 20px;
	}

	.blog-highlight-mobile-toggle {
		display: none;
	}

	.blog-highlight-mobile-card {
		display: block;
		background: #d9d9d9;
		border-radius: 14px;
		margin-bottom: 20px;
		overflow: hidden;
		cursor: pointer;
	}

	.blog-highlight-mobile-header {
		display: grid;
		grid-template-columns: 24px 1fr 110px;
		align-items: center;
		gap: 12px;
		padding: 18px;
	}

	.blog-highlight-mobile-header h3 {
		font-size: 18px;
		line-height: 1.3;
		color: #010238;
		margin: 0;
	}

	.blog-highlight-mobile-header img {
		width: 100%;
		height: 90px;
		object-fit: cover;
		border-radius: 8px;
	}

	.blog-highlight-mobile-arrow {
		width: 0;
		height: 0;
		border-left: 9px solid transparent;
		border-right: 9px solid transparent;
		border-top: 12px solid #a0e60a;
		transition: transform 0.2s ease;
	}

	.blog-highlight-mobile-body {
		display: none;
		padding: 0 18px 18px;
	}

	.blog-highlight-mobile-body p {
		font-size: 14px;
		line-height: 1.5;
		color: #7f7f7f;
		margin-bottom: 10px;
	}

	.blog-highlight-mobile-body a {
		display: inline-block;
		color: #a0e60a;
		font-weight: 600;
		margin-bottom: 8px;
		text-decoration: none;
		font-size: 14px;
	}

	.blog-highlight-mobile-body small {
		display: block;
		font-size: 12px;
		color: #7f7f7f;
	}

	.blog-highlight-mobile-toggle:checked
		+ .blog-highlight-mobile-card
		.blog-highlight-mobile-body {
		display: block;
	}

	.blog-highlight-mobile-toggle:checked
		+ .blog-highlight-mobile-card
		.blog-highlight-mobile-arrow {
		transform: rotate(180deg);
	}
}
