/* ========================
   NOTICIAS - Card Grid
   ======================== */

.noticia-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.noticia-card-link:hover {
	text-decoration: none;
	color: inherit;
}

.noticia-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.noticia-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card image */
.noticia-card-img-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
}

.noticia-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-card-img {
	transform: scale(1.05);
}

.noticia-card-img-placeholder {
	width: 100%;
	height: 100%;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
	font-size: 3em;
	min-height: 200px;
}

/* Card body */
.noticia-card-body {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.noticia-card-titulo {
	font-size: 1.2em;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.noticia-card-copete {
	font-size: 0.9em;
	color: #666;
	line-height: 1.5;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.noticia-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	font-size: 0.8em;
	color: #999;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #f0f0f0;
}

.noticia-card-meta i {
	margin-right: 4px;
}

/* Etiquetas (tags) */
.noticia-card-etiquetas,
.noticia-detalle-etiquetas {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.noticia-etiqueta {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.75em;
	color: #fff;
	font-weight: 500;
}

/* ========================
   NOTICIA - Detail Page
   ======================== */

.noticia-detalle-imagen img {
	width: 100%;
	max-height: 500px;
	object-fit: cover;
	border-radius: 8px;
}

.noticia-detalle-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 1em;
	color: #666;
}

.noticia-detalle-meta i {
	margin-right: 5px;
}

.noticia-detalle-copete p.lead {
	font-size: 1.15em;
	color: #555;
	line-height: 1.6;
	font-weight: 400;
	border-left: 3px solid #333;
	padding-left: 15px;
}

.noticia-detalle-contenido {
	line-height: 1.8;
	font-size: 1em;
}

/* ========================
   Responsive
   ======================== */

@media screen and (max-width: 768px) {
	.noticia-card-titulo {
		font-size: 1.1em;
	}

	.noticia-detalle-imagen img {
		max-height: 300px;
	}

	.noticia-detalle-meta {
		flex-direction: column;
		gap: 8px;
	}
}
