/* ViralMente Home Categories
   Bloque "Explora por categoria" en la home. Grid de cards con thumbnail,
   nombre, descripcion, contador y link "Ver todos ->".
   Refuerza las paginas de categoria como candidatas a sitelinks.
*/

/* H1 + tagline del home son sr-only (clase screen-reader-text de
   GeneratePress). Mantenidos en el HTML para SEO + accesibilidad, pero
   invisibles visualmente. No requieren estilos propios aqui. */

.vm-home-cats {
	margin: 1em 0 0;
}

.vm-home-cats-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 0.25em;
	color: var(--vm-ink, #1a1a1a);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.vm-home-cats-subtitle {
	font-size: 1rem;
	color: #666;
	margin: 0 0 2em;
}

.vm-home-cats-grid {
	display: grid;
	gap: 1.25em;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.vm-home-cats-card {
	display: flex;
	flex-direction: column;
	background: var(--vm-surface, #fff);
	border-radius: var(--vm-radius, 8px);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vm-home-cats-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.vm-home-cats-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f0;
}

.vm-home-cats-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm-home-cats-body {
	padding: 1em 1.25em 1.25em;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.vm-home-cats-name {
	font-size: 1.125rem;
	margin: 0 0 0.5em;
	line-height: 1.25;
}

.vm-home-cats-name a {
	color: var(--vm-ink, #1a1a1a);
	text-decoration: none;
}

.vm-home-cats-name a:hover {
	color: var(--vm-accent-ink, #c0392b);
}

.vm-home-cats-desc {
	font-size: 0.875rem;
	color: #555;
	line-height: 1.45;
	margin: 0 0 0.75em;
	flex-grow: 1;
}

.vm-home-cats-meta {
	font-size: 0.75rem;
	color: var(--vm-muted, #999);
	margin: 0 0 0.5em;
}

.vm-home-cats-latest {
	font-size: 0.8125rem;
	color: #666;
	margin: 0 0 1em;
	line-height: 1.4;
}

.vm-home-cats-latest .vm-home-cats-label {
	font-weight: 600;
	color: var(--vm-ink, #1a1a1a);
}

.vm-home-cats-latest a {
	color: var(--vm-ink, #1a1a1a);
	text-decoration: none;
}

.vm-home-cats-latest a:hover {
	color: var(--vm-accent-ink, #c0392b);
	text-decoration: underline;
}

.vm-home-cats-cta {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--vm-accent-ink, #c0392b);
	text-decoration: none;
	margin-top: auto;
}

.vm-home-cats-cta:hover {
	text-decoration: underline;
}
