/*
Theme Name: Twenty Twenty-Five Vulnity
Theme URI: https://vulnity.io
Description: WordPress Security News — Child theme de Twenty Twenty-Five. Estilo periódico digital moderno.
Author: Vulnity
Template: twentytwentyfive
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: twentytwentyfive-vulnity
*/

/* ===========================
   GOOGLE FONTS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
	/* Colores principales */
	--c-white:      #FFFFFF;
	--c-black:      #0A0A0A;
	--c-near-black: #111111;

	/* Grises */
	--c-gray-50:    #F9FAFB;
	--c-gray-100:   #F3F4F6;
	--c-gray-200:   #E5E7EB;
	--c-gray-300:   #D1D5DB;
	--c-gray-400:   #9CA3AF;
	--c-gray-500:   #6B7280;
	--c-gray-600:   #4B5563;
	--c-gray-700:   #374151;
	--c-gray-800:   #1F2937;
	--c-gray-900:   #111827;

	/* Morado */
	--c-purple:     #895af6;
	--c-purple-d:   #7040e0;
	--c-purple-dd:  #5a2fc0;
	--c-purple-l:   #f0ebff;
	--c-purple-ll:  #f8f5ff;

	/* Tipografía */
	--font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono:    'JetBrains Mono', 'Fira Code', monospace;

	/* Radios */
	--r-sm:  4px;
	--r-md:  6px;
	--r-lg:  10px;

	/* Sombras */
	--shadow-sm:  0 1px 2px rgba(0,0,0,0.06);
	--shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
	--shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.04);

	/* Layout */
	--max-w:       1200px;
	--content-w:   780px;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: var(--font-sans);
	background: var(--c-white);
	color: var(--c-gray-900);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
	font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===========================
   LAYOUT HELPERS
   =========================== */
.wsn-container {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
}
.wsn-container-narrow {
	max-width: var(--content-w);
	margin: 0 auto;
	padding: 0 20px;
}

/* ===========================
   HEADER — BARRA SUPERIOR NEGRA
   =========================== */
.wsn-header {
	background: #0A0A0A;
	position: sticky;
	top: 0;
	z-index: 200;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	box-shadow: 0 1px 0 var(--c-purple);
	transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.wsn-header--scrolled {
	background: rgba(10,10,10,0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(137,90,246,0.4);
}

.wsn-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 58px;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px;
}

/* Logo */
.wsn-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}

.wsn-logo-img {
	height: 38px;
	width: auto;
	max-width: 140px;
	display: block;
	object-fit: contain;
}

.wsn-logo-acronym {
	font-size: 22px;
	font-weight: 900;
	color: var(--c-purple);
	letter-spacing: -0.04em;
	line-height: 1;
}

.wsn-logo-text {
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	border-left: 2px solid var(--c-purple);
	padding-left: 10px;
}

/* Nav desktop */
.wsn-nav {
	display: flex;
	align-items: center;
	gap: 0;
}

.wsn-nav a {
	color: rgba(255,255,255,0.55);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 6px 14px;
	position: relative;
	white-space: nowrap;
	transition: color 0.15s;
}

.wsn-nav a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 14px;
	right: 14px;
	height: 2px;
	background: var(--c-purple);
	transform: scaleX(0);
	transition: transform 0.2s ease;
	border-radius: 2px;
}

.wsn-nav a:hover {
	color: #ffffff;
}

.wsn-nav a.wsn-active {
	color: #ffffff;
	font-weight: 600;
}

.wsn-nav a.wsn-active::after {
	transform: scaleX(1);
}

/* Separador visual antes del botón Vulnity */
.wsn-nav a.wsn-nav-live {
	background: var(--c-purple);
	color: #ffffff !important;
	font-weight: 600;
	font-size: 13px;
	padding: 7px 16px;
	border-radius: 6px;
	margin-left: 12px;
	letter-spacing: 0.02em;
	transition: opacity 0.15s, transform 0.15s;
	box-shadow: 0 0 0 1px rgba(137,90,246,0.4), 0 2px 8px rgba(137,90,246,0.25);
}

.wsn-nav a.wsn-nav-live::after { display: none; }

.wsn-nav a.wsn-nav-live:hover {
	color: #ffffff !important;
	opacity: 0.88;
	transform: translateY(-1px);
}

/* Language switcher */
.wsn-lang-sw {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: 10px;
	flex-shrink: 0;
}

.wsn-lang-btn {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255,255,255,0.35);
	padding: 3px 7px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
	line-height: 1;
}

.wsn-lang-btn:hover {
	color: rgba(255,255,255,0.8);
}

.wsn-lang-btn.wsn-lang-active {
	color: #ffffff;
	background: rgba(137,90,246,0.2);
}

.wsn-lang-sep {
	color: rgba(255,255,255,0.15);
	font-size: 11px;
	line-height: 1;
	user-select: none;
}

/* Mobile toggle */
.wsn-mobile-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(255,255,255,0.6);
	padding: 8px;
	border-radius: 4px;
	transition: color 0.15s;
}
.wsn-mobile-btn:hover { color: #ffffff; }

/* Mobile nav open */
@media (max-width: 768px) {
	.wsn-nav { display: none; }
	.wsn-mobile-btn { display: flex; align-items: center; }
	.wsn-nav.wsn-nav-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		top: 58px;
		left: 0; right: 0;
		background: #0A0A0A;
		border-top: 1px solid rgba(255,255,255,0.06);
		border-bottom: 1px solid var(--c-purple);
		padding: 8px 16px 16px;
		gap: 0;
	}
	.wsn-nav.wsn-nav-open a {
		padding: 10px 8px;
		border-bottom: 1px solid rgba(255,255,255,0.05);
		color: rgba(255,255,255,0.7);
	}
	.wsn-nav.wsn-nav-open a:last-child {
		border-bottom: none;
	}
	.wsn-nav.wsn-nav-open a::after { display: none; }
	.wsn-nav.wsn-nav-open a.wsn-nav-live {
		margin-left: 0;
		margin-top: 8px;
		text-align: center;
		border-bottom: none;
	}
}

/* ===========================
   BREAKING BAR
   =========================== */
.wsn-breaking {
	background: var(--c-purple);
	padding: 6px 0;
	overflow: hidden;
}

.wsn-breaking-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.wsn-breaking-label {
	background: var(--c-white);
	color: var(--c-purple);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 2px;
	white-space: nowrap;
	flex-shrink: 0;
}

.wsn-breaking-text {
	font-size: 13px;
	color: rgba(255,255,255,0.92);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wsn-breaking-text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ===========================
   FECHA / META BAR
   =========================== */
.wsn-datebar {
	background: var(--c-white);
	border-bottom: 1px solid var(--c-gray-200);
	padding: 8px 0;
}

.wsn-datebar-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wsn-datebar-date {
	font-size: 12px;
	color: var(--c-gray-500);
	font-weight: 500;
}

.wsn-datebar-tag {
	font-size: 12px;
	color: var(--c-purple);
	font-weight: 600;
}

/* ===========================
   BADGES / ETIQUETAS
   =========================== */
.wsn-tag {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 2px;
	text-decoration: none;
}

.wsn-tag-purple { background: var(--c-purple-l); color: var(--c-purple-d); }
.wsn-tag-red    { background: #FEE2E2; color: #B91C1C; }
.wsn-tag-green  { background: #DCFCE7; color: #15803D; }
.wsn-tag-gray   { background: var(--c-gray-100); color: var(--c-gray-600); }
.wsn-tag-black  { background: var(--c-gray-900); color: var(--c-white); }

/* ===========================
   HOMEPAGE LAYOUT
   =========================== */
.wsn-main {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
}

.wsn-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	padding: 32px 0 48px;
}

@media (max-width: 900px) {
	.wsn-layout { grid-template-columns: 1fr; gap: 0; }
}

/* ===========================
   HERO — POST DESTACADO
   =========================== */
.wsn-hero {
	background: var(--c-gray-50);
	border-bottom: 1px solid var(--c-gray-200);
	margin-bottom: 24px;
	padding: 20px 0;
}

.wsn-hero-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	min-height: 300px;
}

@media (max-width: 900px) {
	.wsn-hero-inner { grid-template-columns: 1fr; }
}

.wsn-hero-content {
	padding: 36px 40px 36px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	border-right: 1px solid var(--c-gray-200);
}

@media (max-width: 900px) {
	.wsn-hero-content { border-right: none; padding: 28px 0 24px; }
}

.wsn-hero-img {
	overflow: hidden;
	background: var(--c-gray-100);
	border-radius: 8px;
}

.wsn-hero-img img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.wsn-hero-placeholder {
	width: 100%; height: 100%;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--c-purple-l) 0%, var(--c-gray-100) 100%);
	font-size: 64px;
}

.wsn-hero-title {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--c-black);
}

.wsn-hero-title a { color: inherit; }
.wsn-hero-title a:hover { color: var(--c-purple); }

.wsn-hero-excerpt {
	font-size: 15px;
	color: var(--c-gray-600);
	line-height: 1.65;
}

.wsn-hero-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: var(--c-gray-400);
	font-weight: 500;
}

.wsn-hero-readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-purple);
	margin-top: 4px;
}

.wsn-hero-readmore:hover { color: var(--c-purple-d); }
.wsn-hero-readmore svg { transition: transform 0.15s; }
.wsn-hero-readmore:hover svg { transform: translateX(3px); }

/* ===========================
   ARTICLES FEED — LISTA PRINCIPAL
   =========================== */
.wsn-feed {}

.wsn-section-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-gray-400);
	border-bottom: 1px solid var(--c-gray-200);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

/* Artículo en feed */
.wsn-article {
	display: grid;
	grid-template-columns: 1fr 96px;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--c-gray-200);
	align-items: start;
}

.wsn-article:last-child { border-bottom: none; }

.wsn-article-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wsn-article-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wsn-article-date {
	font-size: 12px;
	color: var(--c-gray-400);
	font-weight: 500;
}

.wsn-article-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--c-black);
}

.wsn-article-title a { color: inherit; }
.wsn-article-title a:hover { color: var(--c-purple); }

.wsn-article-excerpt {
	font-size: 14px;
	color: var(--c-gray-500);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wsn-article-footer {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wsn-read-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--c-purple);
	display: flex;
	align-items: center;
	gap: 4px;
}

.wsn-read-link:hover { color: var(--c-purple-d); }

.wsn-read-time {
	font-size: 12px;
	color: var(--c-gray-400);
}

/* Thumbnail en feed */
.wsn-article-thumb {
	width: 96px;
	height: 72px;
	border-radius: var(--r-md);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--c-gray-100);
}

.wsn-article-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.25s;
}

.wsn-article:hover .wsn-article-thumb img { transform: scale(1.04); }

.wsn-thumb-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: var(--c-purple-ll);
	font-size: 24px;
}

/* ===========================
   SIDEBAR
   =========================== */
@media (max-width: 900px) {
	.wsn-sidebar {
		border-top: 1px solid var(--c-gray-200);
		padding-top: 32px;
		margin-top: 8px;
	}
}

.wsn-sidebar-block {
	margin-bottom: 32px;
}

.wsn-sidebar-title {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-gray-400);
	border-bottom: 1px solid var(--c-gray-200);
	padding-bottom: 10px;
	margin-bottom: 16px;
}

/* Sidebar: categorías */
.wsn-sidebar-cats {}

.wsn-sidebar-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--c-gray-100);
	font-size: 14px;
	font-weight: 500;
	color: var(--c-gray-700);
	text-decoration: none;
	transition: color 0.15s;
}

.wsn-sidebar-cat:hover { color: var(--c-purple); }
.wsn-sidebar-cat:last-child { border-bottom: none; }

.wsn-sidebar-cat-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--c-gray-400);
}

/* Sidebar: mini artículo */
.wsn-sidebar-post {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--c-gray-100);
	align-items: start;
}

.wsn-sidebar-post:last-child { border-bottom: none; }

.wsn-sidebar-post-thumb {
	width: 60px; height: 48px;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--c-gray-100);
	flex-shrink: 0;
}

.wsn-sidebar-post-thumb img {
	width: 100%; height: 100%; object-fit: cover;
}

.wsn-sidebar-post-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: var(--c-purple-ll);
	font-size: 18px;
}

.wsn-sidebar-post-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--c-gray-800);
}

.wsn-sidebar-post-title a { color: inherit; }
.wsn-sidebar-post-title a:hover { color: var(--c-purple); }

.wsn-sidebar-post-date {
	font-size: 11px;
	color: var(--c-gray-400);
	margin-top: 3px;
	font-weight: 500;
}

/* Sidebar: Vulnity promo sutil */
.wsn-sidebar-promo {
	background: var(--c-purple-ll);
	border: 1px solid var(--c-purple-l);
	border-radius: var(--r-lg);
	padding: 18px;
}

.wsn-sidebar-promo-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.wsn-sidebar-promo-logo {
	height: 16px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

.wsn-sidebar-promo-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--c-black);
	margin-bottom: 0;
}

.wsn-sidebar-promo-desc {
	font-size: 13px;
	color: var(--c-gray-600);
	line-height: 1.55;
	margin-bottom: 14px;
}

.wsn-promo-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-purple);
	text-decoration: none;
}

.wsn-promo-link:hover { color: var(--c-purple-d); }

/* ===========================
   PAGINATION
   =========================== */
.wsn-pager {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--c-gray-200);
}

.wsn-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	border-radius: var(--r-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--c-gray-600);
	border: 1px solid var(--c-gray-200);
	transition: all 0.15s;
	text-decoration: none;
}

.wsn-pager .page-numbers:hover {
	border-color: var(--c-purple);
	color: var(--c-purple);
}

.wsn-pager .current {
	background: var(--c-purple);
	border-color: var(--c-purple);
	color: var(--c-white);
}

/* ===========================
   ARCHIVE HEADER
   =========================== */
.wsn-archive-hdr {
	background: var(--c-black);
	padding: 40px 0;
	border-bottom: 2px solid var(--c-purple);
}

.wsn-archive-hdr-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
}

.wsn-archive-hdr-title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 800;
	color: var(--c-white);
	letter-spacing: -0.03em;
	margin: 10px 0 6px;
}

.wsn-archive-hdr-desc {
	font-size: 15px;
	color: rgba(255,255,255,0.55);
	max-width: 500px;
	line-height: 1.6;
}

/* ===========================
   SINGLE POST
   =========================== */
.wsn-post-hdr {
	background: var(--c-white);
	border-bottom: 1px solid var(--c-gray-200);
	padding: 36px 0 32px;
}

.wsn-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--c-gray-400);
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.wsn-breadcrumb a { color: var(--c-gray-400); }
.wsn-breadcrumb a:hover { color: var(--c-purple); }
.wsn-breadcrumb-sep { color: var(--c-gray-300); }

.wsn-post-title {
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--c-black);
	margin: 14px 0;
}

.wsn-post-byline {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--c-gray-500);
	margin-top: 12px;
}

.wsn-post-byline-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.wsn-reading-badge {
	background: var(--c-purple-l);
	color: var(--c-purple-d);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
}

/* Featured image */
.wsn-post-img-wrap {
	background: var(--c-white);
	padding: 24px 0 0;
}

.wsn-post-img {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0,0,0,0.10);
	line-height: 0;
}

.wsn-post-img img {
	width: 100%;
	max-height: 500px;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

/* Summary box */
.wsn-post-summary {
	background: var(--c-gray-50);
	border-left: 3px solid var(--c-purple);
	border-radius: 0 8px 8px 0;
	padding: 18px 22px;
	margin-bottom: 28px;
}

.wsn-post-summary-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-purple);
	margin-bottom: 6px;
}

.wsn-post-summary-text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--c-gray-700);
	margin: 0;
}

/* Table of Contents */
.wsn-toc {
	background: var(--c-gray-50);
	border: 1px solid var(--c-gray-200);
	border-radius: 8px;
	padding: 18px 22px 20px;
	margin-bottom: 36px;
}

.wsn-toc-title {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-gray-500);
	margin-bottom: 12px;
}

.wsn-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
}

.wsn-toc-list li {
	counter-increment: toc;
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 5px 0;
	border-bottom: 1px solid var(--c-gray-100);
	font-size: 14px;
	line-height: 1.4;
}

.wsn-toc-list li:last-child { border-bottom: none; }

.wsn-toc-list li::before {
	content: counter(toc, decimal-leading-zero);
	font-size: 11px;
	font-weight: 700;
	color: var(--c-purple);
	flex-shrink: 0;
	min-width: 22px;
}

.wsn-toc-list li a {
	color: var(--c-gray-700);
	font-weight: 500;
	transition: color 0.15s;
}

.wsn-toc-list li a:hover { color: var(--c-purple); }

.wsn-toc-list .wsn-toc-sub {
	padding-left: 32px;
	font-size: 13px;
}

.wsn-toc-list .wsn-toc-sub::before {
	content: '—';
	color: var(--c-gray-300);
	font-weight: 400;
}

/* Content */
.wsn-post-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--c-gray-800);
	padding: 32px 0 48px;
}

.wsn-post-content h2 {
	font-size: clamp(20px, 2.5vw, 24px);
	font-weight: 700;
	color: var(--c-black);
	letter-spacing: -0.02em;
	margin: 2.5em 0 0.7em;
	padding-top: 0.5em;
	border-top: 2px solid var(--c-gray-200);
}

.wsn-post-content h3 {
	font-size: clamp(17px, 2vw, 20px);
	font-weight: 700;
	color: var(--c-black);
	margin: 2em 0 0.6em;
}

.wsn-post-content p { margin-bottom: 1.5em; }

.wsn-post-content a {
	color: var(--c-purple);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wsn-post-content a:hover { color: var(--c-purple-d); }

.wsn-post-content ul,
.wsn-post-content ol {
	margin: 0 0 1.5em 1.5em;
}

.wsn-post-content li { margin-bottom: 0.4em; }

.wsn-post-content blockquote {
	margin: 2em 0;
	padding: 20px 24px;
	border-left: 3px solid var(--c-purple);
	background: var(--c-purple-ll);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	font-style: italic;
	color: var(--c-gray-700);
}

.wsn-post-content code {
	background: var(--c-gray-100);
	border: 1px solid var(--c-gray-200);
	border-radius: 3px;
	padding: 1px 5px;
	font-size: 0.85em;
	font-family: var(--font-mono);
	color: var(--c-purple-d);
}

.wsn-post-content pre {
	background: var(--c-gray-900);
	border-radius: var(--r-lg);
	padding: 20px;
	overflow-x: auto;
	margin: 1.5em 0;
}

.wsn-post-content pre code {
	background: none;
	border: none;
	color: #e2e8f0;
	padding: 0;
	font-size: 14px;
}

.wsn-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin: 1.5em 0;
}

.wsn-post-content th {
	background: var(--c-gray-50);
	border: 1px solid var(--c-gray-200);
	padding: 10px 14px;
	text-align: left;
	font-weight: 700;
}

.wsn-post-content td {
	border: 1px solid var(--c-gray-200);
	padding: 10px 14px;
}

.wsn-post-content tr:nth-child(even) td {
	background: var(--c-gray-50);
}

/* ===========================
   CTA INLINE (SUTIL)
   =========================== */
.wsn-cta-inline {
	margin: 2.5em 0;
	background: var(--c-purple-ll);
	border: 1px solid var(--c-purple-l);
	border-left: 3px solid var(--c-purple);
	border-radius: var(--r-md);
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.wsn-cta-inline-text {
	flex: 1;
}

.wsn-cta-inline-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-purple);
	margin-bottom: 4px;
}

.wsn-cta-inline-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--c-black);
	margin-bottom: 4px;
}

.wsn-cta-inline-desc {
	font-size: 13px;
	color: var(--c-gray-600);
	line-height: 1.5;
}

.wsn-cta-inline-btn {
	background: var(--c-purple);
	color: var(--c-white);
	font-size: 13px;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: var(--r-md);
	white-space: nowrap;
	transition: background 0.15s;
	flex-shrink: 0;
}

.wsn-cta-inline-btn:hover { background: var(--c-purple-d); color: var(--c-white); }

/* CTA final — muy sutil, estilo editorial */
.wsn-cta-final {
	border-top: 1px solid var(--c-gray-200);
	margin-top: 40px;
	padding-top: 28px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.wsn-cta-final-icon {
	height: 22px;
	width: auto;
	display: block;
	flex-shrink: 0;
	margin-top: 2px;
}

.wsn-cta-final-body {}

.wsn-cta-final-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-purple);
	margin-bottom: 5px;
}

.wsn-cta-final-text {
	font-size: 15px;
	color: var(--c-gray-700);
	line-height: 1.6;
	margin-bottom: 10px;
}

.wsn-cta-final-text a {
	color: var(--c-purple) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/* ===========================
   TAGS / POST FOOTER
   =========================== */
.wsn-post-footer {
	padding: 32px 0 48px;
	border-top: 1px solid var(--c-gray-200);
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wsn-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wsn-tag-pill {
	background: var(--c-gray-100);
	color: var(--c-gray-600);
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 20px;
	text-decoration: none;
}

.wsn-tag-pill:hover { background: var(--c-purple-l); color: var(--c-purple-d); }

.wsn-share {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wsn-share-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--c-gray-400);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.wsn-share-btn {
	font-size: 12px;
	font-weight: 600;
	color: var(--c-gray-600);
	border: 1px solid var(--c-gray-200);
	padding: 5px 12px;
	border-radius: var(--r-sm);
	text-decoration: none;
	transition: all 0.15s;
}

.wsn-share-btn:hover { border-color: var(--c-purple); color: var(--c-purple); }

/* ===========================
   RELATED POSTS
   =========================== */
.wsn-related {
	background: var(--c-gray-50);
	border-top: 1px solid var(--c-gray-200);
	padding: 40px 0;
}

.wsn-related-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 20px;
}

.wsn-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 20px;
}

@media (max-width: 768px) {
	.wsn-related-grid { grid-template-columns: 1fr; }
}

.wsn-related-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wsn-related-thumb {
	height: 140px;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--c-gray-100);
}

.wsn-related-thumb img {
	width: 100%; height: 100%; object-fit: cover;
}

.wsn-related-thumb-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: var(--c-purple-ll);
	font-size: 32px;
}

.wsn-related-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--c-black);
}

.wsn-related-title a { color: inherit; }
.wsn-related-title a:hover { color: var(--c-purple); }

.wsn-related-date {
	font-size: 12px;
	color: var(--c-gray-400);
}

/* ===========================
   FOOTER
   =========================== */
.wsn-footer {
	background: var(--c-near-black);
	border-top: 1px solid rgba(255,255,255,0.06);
}

/* -- CTA Band -- */
.wsn-footer-cta {
	background: linear-gradient(135deg, #1a0f3a 0%, #2a1060 50%, #1a0f3a 100%);
	border-top: 2px solid var(--c-purple);
	border-bottom: 1px solid rgba(137,90,246,0.2);
}

.wsn-footer-cta-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 36px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.wsn-footer-cta-icon {
	flex-shrink: 0;
	line-height: 1;
}

.wsn-footer-cta-logo-img {
	height: 40px;
	width: auto;
	display: block;
}

.wsn-footer-cta-body {
	flex: 1;
	min-width: 200px;
}

.wsn-footer-cta-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--c-white);
	margin-bottom: 6px;
	letter-spacing: -0.02em;
}

.wsn-footer-cta-desc {
	font-size: 14px;
	color: rgba(255,255,255,0.55);
	line-height: 1.55;
}

.wsn-footer-cta-btn {
	display: inline-block;
	flex-shrink: 0;
	background: var(--c-purple);
	color: var(--c-white);
	font-size: 14px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 8px;
	white-space: nowrap;
	transition: background 0.18s, transform 0.12s;
}
.wsn-footer-cta-btn:hover {
	background: var(--c-purple-d);
	transform: translateY(-1px);
}

/* -- Main grid -- */
.wsn-footer-main {
	border-bottom: 1px solid rgba(255,255,255,0.07);
}

.wsn-footer-main-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 48px 24px 40px;
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 48px;
}

/* Brand column */
.wsn-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wsn-footer-brand-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wsn-footer-brand-img {
	height: 28px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.wsn-footer-brand-acronym {
	font-size: 18px;
	font-weight: 900;
	color: var(--c-purple);
	letter-spacing: -0.04em;
}

.wsn-footer-brand-name {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,0.75);
	letter-spacing: -0.01em;
}

.wsn-footer-brand-desc {
	font-size: 13px;
	color: rgba(255,255,255,0.38);
	line-height: 1.6;
	max-width: 280px;
}

.wsn-footer-lang {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.wsn-footer-lang span {
	color: rgba(255,255,255,0.2);
	font-size: 12px;
}

.wsn-footer-lang-btn {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.35);
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid rgba(255,255,255,0.1);
	transition: color 0.15s, border-color 0.15s;
}
.wsn-footer-lang-btn:hover,
.wsn-footer-lang-btn.is-active {
	color: var(--c-purple);
	border-color: rgba(137,90,246,0.5);
}

/* Nav columns */
.wsn-footer-col {
	min-width: 120px;
}

.wsn-footer-col-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.3);
	margin-bottom: 16px;
}

.wsn-footer-col ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wsn-footer-col ul li a {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	transition: color 0.15s;
}
.wsn-footer-col ul li a:hover {
	color: var(--c-white);
}

/* -- Bottom bar -- */
.wsn-footer-bottom {
	background: rgba(0,0,0,0.25);
}

.wsn-footer-bottom-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.wsn-footer-copy {
	font-size: 12px;
	color: rgba(255,255,255,0.22);
}

.wsn-footer-powered a {
	color: rgba(255,255,255,0.35);
	transition: color 0.15s;
}
.wsn-footer-powered a:hover {
	color: var(--c-white);
}

/* Footer responsive */
@media (max-width: 768px) {
	.wsn-footer-cta-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.wsn-footer-main-inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 36px 20px 32px;
	}
	.wsn-footer-brand-desc { max-width: 100%; }
	.wsn-footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===========================
   UTILS
   =========================== */
.wsn-divider {
	border: none;
	border-top: 1px solid var(--c-gray-200);
}

.wsn-reading-progress {
	position: absolute;
	top: 0; left: 0;
	height: 2px;
	background: var(--c-purple);
	width: 0;
	transition: width 0.1s linear;
	z-index: 10;
}
