/**
 * Estilos para las tarjetas de blog
 * Diseño moderno y consistente con el sistema de diseño Xacobeos
 */

/*--------------------------------------------------------------
# Blog Section
--------------------------------------------------------------*/
.latest-blog-section {
	padding: 4rem 0;
	background: #ffffff;
}

/*--------------------------------------------------------------
# Blog Grid
--------------------------------------------------------------*/
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
	padding: 0;
}

/*--------------------------------------------------------------
# Blog Card Modern
--------------------------------------------------------------*/
.blog-card-modern {
	position: relative;
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.blog-card-modern:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.blog-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.blog-card__image {
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
}

.blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog-card-modern:hover .blog-card__image img {
	transform: scale(1.1);
}

.blog-card__image--placeholder .placeholder-gradient {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #48c6ef 0%, #6f86d6 100%);
}

.blog-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.blog-card__content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.blog-card__category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #ffd002;
	background: #fef3c7;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	margin-bottom: 0.75rem;
	width: fit-content;
}

.blog-card__title {
	font-size: 1.375rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.75rem 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__excerpt {
	font-size: 0.9375rem;
	color: #666;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
	margin-bottom: 1rem;
}

.blog-card__meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.blog-card__meta .meta-item i {
	font-size: 0.75rem;
	color: #9ca3af;
}

.blog-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
	color: #ffd002;
	font-weight: 600;
	font-size: 0.9375rem;
}

.blog-card__cta i {
	font-size: 0.875rem;
	transition: transform 0.2s;
}

.blog-card-modern:hover .blog-card__cta i {
	transform: translateX(4px);
}

/*--------------------------------------------------------------
# Section CTA
--------------------------------------------------------------*/
.section-cta {
	text-align: center;
	margin-top: 3rem;
	padding-top: 2rem;
}

/*--------------------------------------------------------------
# No Posts State
--------------------------------------------------------------*/
.no-posts {
	text-align: center;
	padding: 3rem 2rem;
	background: #f9fafb;
	border-radius: 12px;
	grid-column: 1 / -1;
}

.no-posts-icon {
	font-size: 3rem;
	color: #d1d5db;
	margin-bottom: 1rem;
}

.no-posts-text {
	color: #6b7280;
	font-size: 1.0625rem;
	margin: 0;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1024px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.latest-blog-section {
		padding: 3rem 0;
	}

	.blog-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.blog-card__image {
		height: 200px;
	}

	.blog-card__title {
		font-size: 1.25rem;
	}

	.blog-card__excerpt {
		font-size: 0.875rem;
	}
}

@media (max-width: 480px) {
	.latest-blog-section {
		padding: 2rem 0;
	}

	.blog-card__meta {
		flex-direction: column;
		gap: 0.5rem;
		align-items: flex-start;
	}
}




