/* =========================================================
 * Mosaico destacado
 * ========================================================= */
.nmo {
	display: grid;
	gap: 10px;
	width: 100%;
	height: 520px;
}

/* Patrón 1 + 4 */
.nmo--one-four {
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 1fr);
}
.nmo--one-four .nmo__big { grid-column: 1 / 3; grid-row: 1 / 3; }

/* Patrón 1 + 2 */
.nmo--one-two {
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
}
.nmo--one-two .nmo__big { grid-column: 1 / 2; grid-row: 1 / 3; }

/* Patrón 1 + 3 */
.nmo--one-three {
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
}
.nmo--one-three .nmo__big { grid-column: 1 / 3; grid-row: 1 / 3; }

.nmo__tile {
	position: relative;
	display: block;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #222;
	min-height: 120px;
	text-decoration: none;
	transition: transform 0.4s ease;
}

.nmo__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 65%);
	transition: background 0.3s ease;
}

.nmo__tile:hover { transform: scale(1.015); }
.nmo__tile:hover::after { background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 75%); }

.nmo__content {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: 16px;
}

.nmo__big .nmo__content { padding: 24px; }

.nmo__cat {
	display: inline-block;
	background-color: #d6263a;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 8px;
	border-radius: 3px;
	margin-bottom: 8px;
}

.nmo__title { margin: 0; color: #fff; line-height: 1.25; }
.nmo__small .nmo__title { font-size: 0.95rem; }
.nmo__big .nmo__title { font-size: 1.6rem; }
.nmo__title a { color: inherit; text-decoration: none; }

.nmo__meta {
	display: block;
	margin-top: 6px;
	font-size: 0.78rem;
	color: rgba(255,255,255,0.85);
}

@media ( max-width: 767px ) {
	.nmo {
		display: flex !important;
		flex-direction: column;
		height: auto !important;
	}
	.nmo__tile { min-height: 200px; }
	.nmo__big .nmo__title { font-size: 1.3rem; }
}

.nmo-empty { padding: 20px; text-align: center; border: 1px dashed #c4c4c4; border-radius: 8px; color: #777; }
