/* Visión de Negocios — estilos de la portada (home). Etapa 2: esqueleto visual. */

.vn-home {
	display: flex;
	width: 100%;
	min-width: 0;
	flex-direction: column;
	gap: clamp(2rem, 4vw, 3rem);
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(1rem, 3vw, 2rem);
}
.vn-hero, .vn-secondary, .vn-section { width: 100%; min-width: 0; }

/* Tarjeta de noticia reutilizable (Bloque 1, Bloque 2 y secciones editoriales). */
.vn-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	background-color: var(--vn-color-white);
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vn-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.vn-card__media-link {
	display: block;
}

.vn-card__image-placeholder,
.vn-card__image-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.vn-card__image-placeholder {
	background-color: var(--vn-color-border);
}

.vn-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vn-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.1rem 1.25rem 1.4rem;
}

.vn-card__category {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.3rem 0.7rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--vn-color-white);
	background-color: var(--vn-color-accent);
	border-radius: 0;
	text-decoration: none;
}

.vn-card__category:hover {
	background-color: var(--vn-color-accent-dark);
}

.vn-card__title {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--vn-color-text);
	overflow-wrap: anywhere;
}

.vn-card__title-link {
	color: inherit;
	text-decoration: none;
}

.vn-card__title-link:hover {
	color: var(--vn-color-accent);
	text-decoration: none;
}

/* Bloque 1: Nota 1 (2/3) + Nota 2 y Nota 3 apiladas (1/3). */
.vn-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	height: clamp(520px, 42vw, 580px);
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* Nota 1 (apertura): imagen de fondo completa con texto superpuesto. */
.vn-card--hero .vn-card__hero-link {
	display: flex;
	flex: 1;
	position: relative;
	min-height: 100%;
	color: var(--vn-color-white);
	text-decoration: none;
}

.vn-card--hero .vn-card__image-wrap,
.vn-card--hero .vn-card__image-placeholder {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.vn-card__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.9rem;
	width: 100%;
	padding: 1.75rem;
	background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0) 75%);
}

.vn-card__title--overlay {
	max-width: 25ch;
	color: var(--vn-color-white);
	font-size: clamp(1.75rem, 2.6vw, 2.2rem);
	line-height: 1.18;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.vn-card__byline {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.vn-card__byline-avatar {
	display: inline-flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: .8rem;
	font-weight: 800;
	line-height: 1;
	text-align: center;
}

.vn-card__byline-text {
	font-size: 0.9rem;
	line-height: 1.3;
}

.vn-hero-grid__side {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* Las dos notas laterales conservan la misma composición visual de la apertura. */
.vn-card--side { position: relative; flex: 1 1 0; min-height: 0; background: #000; }
.vn-card--side .vn-card__media-link { position: absolute; inset: 0; }
.vn-card--side .vn-card__image-wrap,
.vn-card--side .vn-card__image-placeholder { height: 100%; aspect-ratio: auto; }
.vn-card--side .vn-card__body { position: relative; z-index: 1; justify-content: flex-end; height: 100%; padding: 1.1rem; background: linear-gradient(to top, rgba(10,10,10,.88) 0%, rgba(10,10,10,.45) 48%, transparent 78%); pointer-events: none; }
.vn-card--side .vn-card__body a { pointer-events: auto; }
.vn-card--side .vn-card__title { color: #fff; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.24; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.vn-card--side .vn-card__title-link:hover { text-decoration: none; color: #fff; }

/* Bloque 2 y secciones editoriales: grid de 3 columnas iguales. */
.vn-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}
.vn-section .vn-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vn-section .vn-card__body { padding: 1rem 1.05rem 1.2rem; }
.vn-section .vn-card__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: clamp(.98rem, 1.15vw, 1.08rem);
	line-height: 1.32;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.vn-cards-grid > *, .vn-hero-grid > *, .vn-hero-grid__side > * { min-width: 0; }

.vn-section__title {
	font-size: 1.4rem;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--vn-color-accent);
}

.vn-listing__header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 3px solid var(--vn-color-accent); }
.vn-listing__header h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
.vn-listing__description { max-width: 65ch; color: var(--vn-color-text-muted); }
.vn-pagination { margin-top: 2.5rem; }
.vn-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.vn-pagination .page-numbers { min-width: 40px; padding: .5rem .75rem; border: 1px solid var(--vn-color-border); color: var(--vn-color-text); text-align: center; text-decoration: none; }
.vn-pagination .current, .vn-pagination a:hover { border-color: var(--vn-color-accent); background: var(--vn-color-accent); color: #fff; }
.vn-empty-state { max-width: 650px; padding: 2rem; background: var(--vn-color-bg-muted); }
