/* =========================================================
   Novedades para Elementor — estilos base
   Todo lo que sigue se puede sobrescribir desde los controles
   de estilo del widget en Elementor.
   ========================================================= */
.nov {
	--nov-cols: var(--nov-cols-d, 3);
	--nov-gap-x: 30px;
	--nov-gap-y: 30px;
	--nov-radius: 12px;
	--nov-ratio: 0.86;
	--nov-zoom: 1.05;
	--nov-img-w: 42%;
	box-sizing: border-box;
	background: #f5f5f8;
	color: #6d6d6d;
	position: relative;
}
.nov *, .nov *::before, .nov *::after { box-sizing: border-box; }

/* Ancho completo de pantalla (el JS ajusta el valor exacto) */
.nov--full {
	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.nov__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 60px 24px;
}

/* ---------- Cabecera ---------- */
.nov__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.nov__heading { margin: 0; padding: 0; font-size: 15px; line-height: 1.3; font-weight: 400; color: #1a1b1e; }
.nov__label { display: inline-block; }
.nov-head--pill .nov__label {
	background: #333336;
	color: #fff;
	border-radius: 10px;
	padding: 4px 20px;
}
.nov-head--line .nov__heading {
	font-size: 28px;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 3px solid currentColor;
}
.nov-head--plain .nov__heading { font-size: 32px; font-weight: 700; }
.nov__all {
	color: #1a1b1e;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}
.nov__all:hover { text-decoration: underline; }

/* ---------- Grilla ---------- */
.nov__grid {
	display: grid;
	grid-template-columns: repeat(var(--nov-cols), minmax(0, 1fr));
	column-gap: var(--nov-gap-x);
	row-gap: var(--nov-gap-y);
}

/* ---------- Tarjeta ---------- */
.nov-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--nov-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.nov-card__media {
	position: relative;
	aspect-ratio: 1 / var(--nov-ratio);
	overflow: hidden;
	border-radius: var(--nov-radius);
	background: #e4e4ea;
	flex: none;
}
.nov-card__imglink, .nov-card__placeholder { position: absolute; inset: 0; display: block; }
.nov-card__media img,
.nov-card__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	transition: transform .5s ease, filter .3s ease;
}
.nov-card:hover .nov-card__img { transform: scale(var(--nov-zoom)); }

.nov-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 16px 22px;
	flex: 1 1 auto;
}

/* Etiquetas de categoría */
.nov-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nov-chips--image-bottom, .nov-chips--image-top {
	position: absolute;
	left: 20px;
	right: 20px;
	z-index: 2;
	pointer-events: none;
}
.nov-chips--image-bottom { bottom: 18px; }
.nov-chips--image-top { top: 18px; }
.nov-chip {
	pointer-events: auto;
	display: inline-block;
	padding: 10px;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .04em;
	white-space: nowrap;
	color: #000;
	background: rgba(255, 255, 255, .53);
	-webkit-backdrop-filter: blur(25px);
	backdrop-filter: blur(25px);
	border-radius: 10px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
a.nov-chip:hover { background: rgba(255, 255, 255, .85); color: #000; }
.nov-card__body .nov-chip { background: #ececf1; }

.nov-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; line-height: 1.4; color: #6d6d6d; }
.nov-card__author::before { content: "·"; margin-right: 14px; }
.nov-card__date + .nov-card__author::before { display: inline; }
.nov-card__author:first-child::before { display: none; }

.nov-card__title {
	margin: 0;
	padding: 0;
	font-size: 24px;
	line-height: 1.33;
	font-weight: 400;
	color: #1b1d21;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nov-title-lines, 3);
	overflow: hidden;
}
.nov-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.nov-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta es cliqueable */
.nov-card__title a:hover { color: #000; }
.nov-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nov-excerpt-lines, 4);
	overflow: hidden;
}
.nov-card__more {
	position: relative;
	z-index: 2;
	margin-top: auto;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	color: #1a1b1e;
	text-decoration: none;
}
.nov-card__more:hover { text-decoration: underline; }
.nov-card__chips, .nov-chip { position: relative; z-index: 2; }
.nov-chips--image-bottom, .nov-chips--image-top { position: absolute; }

/* ---------- Diseño: texto sobre imagen ---------- */
.nov--overlay .nov-card { background: #111; min-height: 0; }
.nov--overlay .nov-card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.nov--overlay .nov-card::before {
	content: "";
	display: block;
	padding-top: calc(100% * var(--nov-ratio));
}
.nov--overlay .nov-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}
.nov--overlay .nov-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	background: transparent;
	pointer-events: none;
}
.nov--overlay .nov-card__body a { pointer-events: auto; }
.nov--overlay .nov-card__title,
.nov--overlay .nov-card__title a,
.nov--overlay .nov-card__meta,
.nov--overlay .nov-card__excerpt,
.nov--overlay .nov-card__more { color: #fff; }
.nov--overlay .nov-chips--image-bottom { top: 18px; bottom: auto; }

/* ---------- Diseño: horizontal (imagen al costado) ---------- */
.nov--horizontal .nov-card { flex-direction: row; align-items: stretch; }
.nov--horizontal .nov-card__media { width: var(--nov-img-w); aspect-ratio: auto; min-height: 180px; }
.nov--horizontal .nov-card__body { justify-content: center; }

/* ---------- Primera entrada destacada ---------- */
.nov-featured-yes .nov-card:first-child {
	grid-column: span var(--nov-feat-cols, 2);
	grid-row: span var(--nov-feat-rows, 2);
}
.nov-featured-yes .nov--classic .nov-card:first-child .nov-card__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 260px; }
.nov-featured-yes .nov--overlay .nov-card:first-child::before { display: none; }
.nov-featured-yes .nov--overlay .nov-card:first-child { min-height: 360px; }
.nov-featured-yes .nov-card:first-child .nov-card__title { font-size: 1.35em; }

/* ---------- Pie y paginación ---------- */
.nov__empty { text-align: center; padding: 30px; }
.nov__footer { display: flex; justify-content: center; margin-top: 36px; }
.nov__button {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 10px;
	background: #333336;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: background .2s, color .2s;
}
.nov__button:hover { background: #000; color: #fff; }
.nov__pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; scroll-margin-top: 120px; }
.nov-page {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #fff;
	color: #1a1b1e;
	text-decoration: none;
	font-size: 14px;
}
a.nov-page:hover { background: #e4e4ea; }
.nov-page.is-current { background: #333336; color: #fff; }
.nov-page--dots { background: transparent; }

/* ---------- Responsive por defecto (shortcode) ---------- */
@media (max-width: 1024px) {
	.nov { --nov-cols: var(--nov-cols-t, 2); }
	.nov-featured-yes .nov-card:first-child { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767px) {
	.nov { --nov-cols: var(--nov-cols-m, 1); --nov-gap-y: 20px; }
	.nov__inner { padding: 40px 16px; }
	.nov-card__title { font-size: 20px; }
	.nov--horizontal .nov-card { flex-direction: column; }
	.nov--horizontal .nov-card__media { width: 100%; aspect-ratio: 1 / var(--nov-ratio); min-height: 0; }
}
