/*
 * serviNec: Blog — listado (home.php / archive.php) y entrada (single.php)
 * assets/css/blog.css · mismo lenguaje que la tienda (fondo #f9f9f9, tarjetas blancas, azul #1565e8).
 */

.snec-blogp,
.snec-post {
	--bl-blue: #1565e8;
	--bl-blue-h: #0f55c9;
	--bl-ink: #111827;
	--bl-soft: #4b5563;
	--bl-mute: #6b7280;
	--bl-line: #e7e8eb;
	--bl-tint: #e8f0fd;
	background: #f9f9f9;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--bl-ink);
}

.snec-blogp .screen-reader-text,
.snec-post .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.snec-blogp__wrap,
.snec-post__wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 16px 72px;
	box-sizing: border-box;
}

/* ── Migas ───────────────────────────────────────────────────────────────── */
.snec-blogp__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a8f98;
}

.snec-blogp__crumbs li + li::before {
	content: "|";
	margin: 0 10px;
	color: #b4b8c0;
}

.snec-blogp__crumbs a {
	color: inherit;
	text-decoration: none;
}

.snec-blogp__crumbs a:hover {
	color: var(--bl-blue);
}

/* ══ Listado ═════════════════════════════════════════════════════════════════ */
.snec-blogp__head {
	max-width: 680px;
	margin-bottom: 24px;
}

.snec-blogp__title {
	margin: 0 0 10px;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.snec-blogp__lead {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--bl-mute);
}

.snec-blogp__lead p {
	margin: 0;
}

/* Píldoras de categorías */
.snec-blogp__cats {
	margin-bottom: 28px;
}

.snec-blogp__cats ul {
	position: relative;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0 0 2px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.snec-blogp__cats ul::-webkit-scrollbar {
	display: none;
}

.snec-blogp__cats li {
	flex: none;
}

.snec-blogp__pill {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1px solid var(--bl-line);
	border-radius: 999px;
	background: #ffffff;
	font-size: 13px;
	font-weight: 500;
	color: var(--bl-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}

.snec-blogp__pill:hover {
	border-color: var(--bl-tint);
	background: var(--bl-tint);
	color: var(--bl-blue);
}

.snec-blogp__pill[aria-current="page"] {
	border-color: var(--bl-blue);
	background: var(--bl-blue);
	color: #ffffff;
}

/* Rejilla */
.snec-blogp__featured {
	margin-bottom: 20px;
}

.snec-blogp__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-blogp__grid > li {
	display: flex;
	min-width: 0;
}

/* Paginación */
.snec-blogp__pages {
	margin-top: 36px;
}

.snec-blogp__pages ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-blogp__pages .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #ffffff;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--bl-ink);
	text-decoration: none;
}

.snec-blogp__pages a.page-numbers:hover {
	background: var(--bl-tint);
	color: var(--bl-blue);
}

.snec-blogp__pages .page-numbers.current {
	background: var(--bl-blue);
	color: #ffffff;
}

.snec-blogp__pages .page-numbers.dots {
	background: none;
}

.snec-blogp__empty {
	padding: 48px 20px;
	border-radius: 14px;
	background: #ffffff;
	text-align: center;
}

.snec-blogp__empty-title {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 600;
}

.snec-blogp__btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--bl-blue);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* ── Tarjeta de entrada ──────────────────────────────────────────────────── */
.snec-bcard {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--bl-line);
	border-radius: 10px;
	background: #ffffff;
	transition: box-shadow .2s, border-color .2s;
}

.snec-bcard:hover {
	border-color: #d9dde3;
	box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .12);
}

.snec-bcard__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #eef2f8;
}

.snec-bcard__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.snec-bcard:hover .snec-bcard__img {
	transform: scale(1.04);
}

/* Sin imagen destacada: fondo de marca con icono. */
.snec-bcard__ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 70% 30%, rgba(21, 101, 232, .12) 0, transparent 55%),
		linear-gradient(135deg, #eef3fb 0%, #e3ebf8 100%);
	color: #9db8e8;
}

.snec-bcard__ph svg {
	width: 22%;
	max-width: 64px;
	height: auto;
}

.snec-bcard__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.snec-bcard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 11.5px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--bl-mute);
}

.snec-bcard__meta a {
	color: inherit;
	text-decoration: none;
}

.snec-bcard__meta a:hover {
	color: var(--bl-blue);
}

.snec-bcard__title {
	margin: 0 0 6px;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--bl-ink);
}

.snec-bcard__title a {
	color: inherit;
	text-decoration: none;
}

.snec-bcard__title a:hover {
	color: var(--bl-blue);
}

.snec-bcard__excerpt {
	display: -webkit-box;
	margin: 0 0 18px;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--bl-mute);
}

.snec-bcard__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: auto;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--bl-blue);
	text-decoration: none;
}

.snec-bcard__more > span {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.snec-bcard__more svg {
	width: 13px;
	height: 13px;
	color: var(--bl-ink);
	transition: transform .15s;
}

.snec-bcard__more:hover svg {
	transform: translateX(3px);
}

.snec-bcard__title a:focus-visible,
.snec-bcard__more:focus-visible,
.snec-bcard__meta a:focus-visible,
.snec-blogp__pill:focus-visible,
.snec-blogp__pages a:focus-visible {
	outline: 2px solid var(--bl-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Destacada: horizontal */
.snec-bcard--big {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.snec-bcard--big .snec-bcard__media {
	aspect-ratio: auto;
	min-height: 320px;
}

.snec-bcard--big .snec-bcard__body {
	justify-content: center;
	padding: 36px 40px;
}

.snec-bcard--big .snec-bcard__title {
	margin-bottom: 12px;
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.snec-bcard--big .snec-bcard__excerpt {
	margin-bottom: 26px;
	font-size: 14.5px;
}

.snec-bcard--big .snec-bcard__more {
	margin-top: 0;
}

/* ══ Entrada ═════════════════════════════════════════════════════════════════ */
.snec-post__head {
	max-width: 820px;
	margin: 8px auto 28px;
	text-align: center;
}

.snec-post__cat {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var(--bl-tint);
	font-size: 12px;
	font-weight: 600;
	color: var(--bl-blue);
	text-decoration: none;
}

.snec-post__cat:hover {
	background: #d7e5fb;
}

.snec-post__title {
	margin: 0 0 16px;
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.snec-post__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin: 0;
	font-size: 13px;
	color: var(--bl-mute);
}

.snec-post__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.snec-post__meta svg {
	width: 16px;
	height: 16px;
	color: var(--bl-blue);
}

.snec-post__hero {
	max-width: 1068px;
	margin: 0 auto 32px;
}

.snec-post__hero-img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 14px;
}

.snec-post__hero figcaption {
	margin-top: 8px;
	font-size: 12.5px;
	text-align: center;
	color: var(--bl-mute);
}

.snec-post__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
	max-width: 1068px;
	margin: 0 auto;
}

.snec-post__card {
	min-width: 0;
	padding: 40px 48px 32px;
	border: 1px solid #f0f1f4;
	border-radius: 14px;
	background: #ffffff;
}

/* Texto del artículo */
.snec-post__prose {
	font-size: 16px;
	line-height: 1.75;
	color: #374151;
}

.snec-post__prose > :first-child {
	margin-top: 0;
}

.snec-post__prose > :last-child {
	margin-bottom: 0;
}

.snec-post__prose p {
	margin: 0 0 18px;
}

.snec-post__prose h2 {
	margin: 36px 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--bl-ink);
	scroll-margin-top: 140px;
}

.snec-post__prose h3 {
	margin: 28px 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bl-ink);
	scroll-margin-top: 140px;
}

.snec-post__prose ul,
.snec-post__prose ol {
	margin: 0 0 18px;
	padding-left: 24px;
}

.snec-post__prose li {
	margin-bottom: 6px;
}

.snec-post__prose li::marker {
	color: var(--bl-blue);
}

.snec-post__prose a {
	color: var(--bl-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.snec-post__prose a:hover {
	color: var(--bl-blue-h);
}

.snec-post__prose strong {
	font-weight: 600;
	color: var(--bl-ink);
}

.snec-post__prose img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.snec-post__prose figure {
	margin: 24px 0;
}

.snec-post__prose figcaption {
	margin-top: 8px;
	font-size: 13px;
	text-align: center;
	color: var(--bl-mute);
}

.snec-post__prose blockquote {
	margin: 24px 0;
	padding: 18px 22px;
	border-left: 3px solid var(--bl-blue);
	border-radius: 0 10px 10px 0;
	background: #f4f7fd;
	font-size: 16.5px;
	color: var(--bl-ink);
}

.snec-post__prose blockquote p:last-child {
	margin-bottom: 0;
}

.snec-post__prose table {
	width: 100%;
	margin: 0 0 18px;
	border-collapse: collapse;
	font-size: 14px;
}

.snec-post__prose th,
.snec-post__prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--bl-line);
	text-align: left;
}

.snec-post__prose code {
	padding: 2px 6px;
	border-radius: 4px;
	background: #f3f4f6;
	font-size: .9em;
}

.snec-post__parts {
	margin-top: 24px;
	font-size: 14px;
}

/* Pie del artículo: etiquetas y compartir */
.snec-post__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid var(--bl-line);
}

.snec-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-post__tags a {
	display: inline-flex;
	padding: 5px 12px;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 12.5px;
	color: var(--bl-soft);
	text-decoration: none;
}

.snec-post__tags a:hover {
	background: var(--bl-tint);
	color: var(--bl-blue);
}

.snec-post__share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.snec-post__share-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--bl-mute);
}

.snec-post__share ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-post__share a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bl-tint);
	color: var(--bl-blue);
	transition: background .15s, color .15s;
}

.snec-post__share a:hover {
	background: var(--bl-blue);
	color: #ffffff;
}

.snec-post__share svg {
	width: 17px;
	height: 17px;
}

/* Lateral: índice y tarjeta hacia la tienda */
.snec-post__side {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.snec-post__toc {
	padding: 20px;
	border: 1px solid #f0f1f4;
	border-radius: 14px;
	background: #ffffff;
}

.snec-post__side-title {
	margin: 0 0 12px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--bl-mute);
}

.snec-post__toc ol {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.snec-post__toc li {
	counter-increment: toc;
}

.snec-post__toc a {
	display: block;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--bl-soft);
	text-decoration: none;
}

.snec-post__toc a::before {
	content: counter(toc) ".";
	margin-right: 6px;
	color: #9ca3af;
}

.snec-post__toc a:hover {
	background: var(--bl-tint);
	color: var(--bl-blue);
}

.snec-post__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px;
	border: 1px solid #84aef1;
	border-radius: 14px;
	background: #f2f6fd;
}

.snec-post__cta-ico {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	border-radius: 10px;
	background: #d5e1f9;
	color: var(--bl-blue);
}

.snec-post__cta-ico svg {
	width: 20px;
	height: 20px;
}

.snec-post__cta-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: var(--bl-ink);
}

.snec-post__cta-text {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bl-mute);
}

.snec-post__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 42px;
	border-radius: 999px;
	background: var(--bl-blue);
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}

.snec-post__cta-btn svg {
	width: 13px;
	height: 13px;
}

.snec-post__cta-btn:hover {
	background: var(--bl-blue-h);
	color: #ffffff;
}

.snec-post__cta-link {
	align-self: center;
	margin-top: 12px;
	font-size: 13px;
	color: var(--bl-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.snec-post__cta-link:hover {
	color: var(--bl-blue);
}

/* Anterior / siguiente */
.snec-post__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	max-width: 1068px;
	margin: 28px auto 0;
}

.snec-post__nav-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px;
	border: 1px solid #f0f1f4;
	border-radius: 12px;
	background: #ffffff;
	color: var(--bl-ink);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}

.snec-post__nav-link--next {
	grid-column: 2;
	align-items: flex-end;
	text-align: right;
}

.snec-post__nav-link:hover {
	border-color: #c9daf8;
	box-shadow: 0 8px 22px -12px rgba(15, 23, 42, .18);
}

.snec-post__nav-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--bl-blue);
}

.snec-post__nav-label svg {
	width: 13px;
	height: 13px;
}

.snec-post__nav-title {
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.4;
}

/* Relacionadas */
.snec-post__related {
	background: #ffffff;
}

.snec-post__related .snec-post__wrap {
	padding-top: 48px;
	padding-bottom: 64px;
}

.snec-post__related-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.snec-post__related-title {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.snec-post__related-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--bl-blue);
	text-decoration: none;
}

.snec-post__related-all svg {
	width: 12px;
	height: 12px;
}

.snec-post__related .snec-bcard {
	background: #f9f9f9;
}

.snec-post__cat:focus-visible,
.snec-post__tags a:focus-visible,
.snec-post__share a:focus-visible,
.snec-post__toc a:focus-visible,
.snec-post__cta-btn:focus-visible,
.snec-post__cta-link:focus-visible,
.snec-post__nav-link:focus-visible,
.snec-post__related-all:focus-visible,
.snec-post__prose a:focus-visible {
	outline: 2px solid var(--bl-blue);
	outline-offset: 3px;
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
	.snec-blogp__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.snec-post__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.snec-post__side {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}

/* ── Móvil ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.snec-blogp__wrap,
	.snec-post__wrap {
		padding: 22px 16px 56px;
	}

	.snec-blogp__head {
		margin-bottom: 18px;
	}

	.snec-blogp__title {
		font-size: 28px;
	}

	/* Las píldoras se deslizan hasta el borde. */
	.snec-blogp__cats {
		margin: 0 -16px 22px;
	}

	.snec-blogp__cats ul {
		padding: 0 16px 2px;
	}

	.snec-blogp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.snec-bcard--big {
		display: flex;
	}

	.snec-bcard--big .snec-bcard__media {
		aspect-ratio: 3 / 2;
		min-height: 0;
	}

	.snec-bcard--big .snec-bcard__body {
		padding: 20px;
	}

	.snec-bcard--big .snec-bcard__title {
		font-size: 19px;
	}

	.snec-bcard__body {
		padding: 20px 20px 22px;
	}

	.snec-bcard__meta {
		margin-bottom: 18px;
		font-size: 12.5px;
	}

	.snec-bcard__title {
		font-size: 15px;
		font-weight: 500;
	}

	.snec-bcard__more {
		font-size: 14px;
	}

	.snec-post__head {
		margin-bottom: 22px;
		text-align: left;
	}

	.snec-post__meta {
		justify-content: flex-start;
	}

	.snec-post__title {
		font-size: 27px;
	}

	.snec-post__hero {
		margin: 0 -16px 22px;
	}

	.snec-post__hero-img {
		max-height: 300px;
		border-radius: 0;
	}

	.snec-post__card {
		padding: 24px 20px;
	}

	.snec-post__prose {
		font-size: 15.5px;
		line-height: 1.7;
	}

	.snec-post__prose h2 {
		margin-top: 28px;
		font-size: 20px;
	}

	.snec-post__foot {
		flex-direction: column;
		align-items: flex-start;
	}

	.snec-post__share {
		margin-left: 0;
	}

	.snec-post__nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.snec-post__nav-link--next {
		grid-column: auto;
	}

	.snec-post__related .snec-post__wrap {
		padding-top: 36px;
		padding-bottom: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.snec-bcard,
	.snec-bcard__img,
	.snec-bcard__more svg,
	.snec-blogp__pill,
	.snec-post__share a,
	.snec-post__nav-link {
		transition: none;
	}

	.snec-bcard:hover .snec-bcard__img {
		transform: none;
	}
}

/* ══ Ficha de autor (template-parts/blog/autor.php, author.php) ═════════════ */
.snec-post__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.snec-autor {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 26px 28px;
	border: 1px solid #f0f1f4;
	border-radius: 14px;
	background: #ffffff;
}

.snec-autor__avatar {
	position: relative;
	flex: none;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--bl-tint);
}

.snec-autor__avatar--lg {
	width: 112px;
	height: 112px;
	box-shadow: 0 0 0 6px var(--bl-tint);
}

.snec-autor__avatar--xs {
	display: inline-block;
	width: 28px;
	height: 28px;
	box-shadow: none;
	vertical-align: middle;
}

.snec-autor__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Iniciales (debajo de la foto/Gravatar; se ven si no hay imagen). */
.snec-autor__ini {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8f0fd 0%, #d5e1f9 100%);
	font-size: 26px;
	font-weight: 700;
	color: var(--bl-blue);
}

.snec-autor__ini--marca {
	background: var(--bl-blue);
	font-size: 22px;
	letter-spacing: -0.04em;
	color: #ffffff;
}

.snec-autor__avatar--lg .snec-autor__ini {
	font-size: 40px;
}

.snec-autor__avatar--xs .snec-autor__ini {
	font-size: 11px;
}

.snec-autor__body {
	min-width: 0;
}

.snec-autor__label {
	margin: 0 0 2px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--bl-mute);
}

.snec-autor__name {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bl-ink);
}

.snec-autor__role {
	margin: 2px 0 0;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--bl-blue);
}

.snec-autor__bio {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--bl-soft);
}

.snec-autor__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 14px;
}

.snec-autor__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--bl-blue);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.snec-autor__link svg {
	width: 12px;
	height: 12px;
	color: var(--bl-ink);
}

.snec-autor__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-autor__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--bl-tint);
	font-size: 13px;
	font-weight: 500;
	color: var(--bl-blue);
	text-decoration: none;
}

.snec-autor__social a:hover {
	background: var(--bl-blue);
	color: #ffffff;
}

.snec-autor__social svg {
	width: 16px;
	height: 16px;
}

.snec-autor__link:focus-visible,
.snec-autor__social a:focus-visible,
.snec-post__by a:focus-visible {
	outline: 2px solid var(--bl-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

.snec-autor__count {
	font-size: 13px;
	color: var(--bl-mute);
}

/* Firma en la cabecera de la entrada */
.snec-post__meta .snec-post__by {
	gap: 8px;
	font-weight: 500;
	color: var(--bl-ink);
}

.snec-post__by a {
	color: inherit;
	text-decoration: none;
}

.snec-post__by a:hover {
	color: var(--bl-blue);
}

/* Página de autor */
.snec-autor--page {
	align-items: center;
	gap: 32px;
	margin-bottom: 36px;
	padding: 36px 40px;
}

.snec-autor--page .snec-autor__name {
	font-size: clamp(24px, 2.8vw, 32px);
	letter-spacing: -0.02em;
}

.snec-autor--page .snec-autor__bio {
	max-width: 680px;
	font-size: 15px;
}

.snec-autor__posts-title {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

@media (max-width: 768px) {
	.snec-autor {
		gap: 16px;
		padding: 20px;
	}

	.snec-autor__avatar {
		width: 56px;
		height: 56px;
	}

	.snec-autor__avatar--xs {
		width: 26px;
		height: 26px;
	}

	.snec-autor__ini {
		font-size: 20px;
	}

	.snec-autor__ini--marca {
		font-size: 17px;
	}

	.snec-autor__name {
		font-size: 17px;
	}

	.snec-autor__bio {
		font-size: 13.5px;
	}

	.snec-autor--page {
		flex-direction: column;
		align-items: center;
		gap: 18px;
		padding: 28px 20px;
		text-align: center;
	}

	.snec-autor--page .snec-autor__avatar--lg {
		width: 96px;
		height: 96px;
	}

	.snec-autor--page .snec-autor__foot {
		justify-content: center;
	}
}
