/**
 * Tarjetas de blog: home, sección .blogInterno en páginas VC, etc.
 */

.cont-blog-home {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 20px;
	width: 100%;
	margin: 20px auto 10px;
}

.cont-blog-home .blog-home {
	flex: 1 1 calc(50% - 10px);
	max-width: calc(50% - 10px);
	margin: 0;
}

.cont-blog-home .blog-home > a {
	display: block;
	height: 100%;
	text-decoration: none;
}

.cont-blog-home .blog-home .cont-img {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
}

.cont-blog-home .blog-home .cont-img img {
	display: block;
	width: 100%;
	height: 250px;
	min-height: 250px;
	object-fit: cover;
}

.cont-blog-home .blog-home .fecha {
	position: absolute;
	top: 131px;
	left: -33px;
	background-color: var(--primary, #8cc43e);
	padding: 6px 22px;
	border-top-right-radius: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	transform: rotate(270deg);
	transform-origin: 0 0;
	z-index: 2;
}

.cont-blog-home .blog-home .cat {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--grey, #707070);
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	margin: 14px 0 8px;
}

.cont-blog-home .blog-home .cat::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background: url(/wp-content/uploads/2022/07/categoria.svg) center/contain no-repeat;
	flex-shrink: 0;
}

.cont-blog-home .blog-home h3 {
	color: var(--sucess, #2b2a29);
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 8px;
}

.cont-blog-home .blog-home,
.cont-blog-home .blog-home .cont-img img {
	transition: 0.4s ease;
}

.cont-blog-home .blog-home:hover {
	margin-top: -10px;
}

.cont-blog-home .blog-home:hover .cont-img img {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Home: 3 columnas */
body.home .cont-blog-home .blog-home {
	flex: 0 0 calc(33.333% - 14px);
	max-width: calc(33.333% - 14px);
}

/* Sección blog en páginas de asesoría (VC el_class blogInterno) */
.blogInterno .cont-blog-home .blog-home {
	flex: 0 0 45%;
	max-width: 45%;
}

/* Evitar párrafo vacío si VC envuelve el shortcode */
.wpb_text_column .cont-blog-home {
	margin-top: 0;
}

@media (max-width: 991px) {
	.cont-blog-home {
		justify-content: center;
	}

	body.home .cont-blog-home .blog-home,
	.blogInterno .cont-blog-home .blog-home,
	.cont-blog-home .blog-home {
		flex: 0 0 100%;
		max-width: 400px;
	}
}
