/* The Postdom: página de artículo (v1.30.1). Negro, blanco y rojo; esquinas rectas; Montserrat + Titillium Web. */
body.single-post { --pd-rojo: #f00; --pd-tinta: #111; --pd-gris: #6b6b6b; --pd-linea: #e6e6e6; --pd-suave: #f5f5f5; }
html.pd-dark body.single-post { --pd-tinta: #f2f2f2; --pd-gris: #a3a3a3; --pd-linea: #2a2a2a; --pd-suave: #1a1a1a; }

/* Fuera los botones viejos del tema (columna de redes y barra del celular) */
body.single-post #mvp-post-soc-wrap, body.single-post #mvp-mob-soc-wrap { display: none !important; }
body.single-post .mvp-post-soc-in { margin-left: 0 !important; }

/* ---- Cabecera ---- */
body.single-post #mvp-article-head2 { margin-bottom: 22px; }
body.single-post #mvp-article-head2 h3.mvp-post-cat { margin-bottom: 14px; }
body.single-post #mvp-article-head2 span.mvp-post-cat {
	background: var(--pd-rojo); color: #fff; padding: 5px 10px 4px; font: 700 11px/1 'Montserrat', sans-serif;
	letter-spacing: .12em; text-transform: uppercase;
}
body.single-post #mvp-article-head2 h1.mvp-post-title {
	font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 42px !important; line-height: 1.12;
	letter-spacing: -.02em; color: var(--pd-tinta); text-wrap: balance;
}
.pd-art-meta {
	clear: both; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	padding: 16px 0 0; margin-top: 18px; border-top: 1px solid var(--pd-linea);
}
.pd-art-datos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--pd-gris); font: 400 15px/1.3 'Titillium Web', sans-serif; }
.pd-art-datos > * + *::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; background: var(--pd-rojo); }
.pd-art-autor strong { color: var(--pd-tinta); font-weight: 700; }

/* ---- Botón Compartir ---- */
.pd-share-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 8px; border: 2px solid var(--pd-tinta, #111);
	background: transparent; color: var(--pd-tinta, #111); cursor: pointer; border-radius: 0;
	font-size: 12px; line-height: 1; font-weight: 700; font-family: 'Montserrat', sans-serif !important; letter-spacing: .1em; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s;
}
.pd-share-btn:hover, .pd-share-btn:focus-visible { background: var(--pd-rojo, #f00); border-color: var(--pd-rojo, #f00); color: #fff; outline: none; }
.pd-share-btn svg { flex: 0 0 auto; }
.pd-share-btn span { color: inherit !important; font: inherit !important; }
.pd-share-btn-lg { padding: 13px 22px 12px; background: var(--pd-rojo, #f00); border-color: var(--pd-rojo, #f00); color: #fff; }
.pd-share-btn-lg:hover, .pd-share-btn-lg:focus-visible { background: var(--pd-tinta, #111); border-color: var(--pd-tinta, #111); }

/* ---- Foto principal ---- */
body.single-post #mvp-post-feat-img img { width: 100%; height: auto; display: block; }

/* ---- Texto ---- */
body.single-post #mvp-content-main p { font-size: 19px; line-height: 1.75; color: var(--pd-tinta); opacity: .88; }
html.pd-dark body.single-post #mvp-content-main p { opacity: .9; }
body.single-post #mvp-content-main p.pd-art-lead { font-size: 22px; line-height: 1.6; font-weight: 600; opacity: 1; }
body.single-post #mvp-content-main h2 {
	font: 800 26px/1.2 'Montserrat', sans-serif; letter-spacing: -.01em; color: var(--pd-tinta);
	margin: 38px 0 14px; padding-left: 14px; border-left: 5px solid var(--pd-rojo);
}
/* Subtítulos medianos (H3): misma barra roja que los H2, un poco más pequeños. */
body.single-post #mvp-content-main h3 { font: 800 22px/1.25 'Montserrat', sans-serif; letter-spacing: -.01em; color: var(--pd-tinta); margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--pd-rojo); }
body.single-post #mvp-content-main h4 { font: 700 19px/1.3 'Montserrat', sans-serif; color: var(--pd-tinta); margin: 26px 0 10px; }
body.single-post #mvp-content-main a { color: var(--pd-tinta); text-decoration: underline; text-decoration-color: var(--pd-rojo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.single-post #mvp-content-main a:hover { color: var(--pd-rojo); }
body.single-post #mvp-content-main blockquote {
	position: relative; margin: 30px 0; padding: 6px 0 6px 56px; border: 0; background: none;
	font: 600 22px/1.45 'Titillium Web', sans-serif; color: var(--pd-tinta);
}
body.single-post #mvp-content-main blockquote::before {
	content: '\201C'; position: absolute; left: 0; top: -14px; color: var(--pd-rojo); font: 800 72px/1 'Montserrat', sans-serif;
}
body.single-post #mvp-content-main figure img, body.single-post #mvp-content-main p img { max-width: 100%; height: auto; }
body.single-post #mvp-content-main figcaption { color: var(--pd-gris); font-size: 14px; margin-top: 6px; }

/* ---- Final del texto: invitación a compartir ---- */
.pd-art-fin {
	clear: both; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin: 34px 0 26px; padding: 20px 22px; background: var(--pd-suave); border-left: 5px solid var(--pd-rojo);
}
.pd-art-fin > div > strong { display: block; color: var(--pd-tinta); font: 800 19px/1.2 'Montserrat', sans-serif; }
.pd-art-fin > div > span { color: var(--pd-gris); font: 400 15px/1.4 'Titillium Web', sans-serif; }

/* ---- Temas relacionados ---- */
body.single-post .mvp-post-tags { margin-top: 8px; }
body.single-post .mvp-post-tags-header { font: 700 11px/1 'Montserrat', sans-serif !important; letter-spacing: .12em; text-transform: uppercase; color: var(--pd-gris) !important; background: none !important; padding: 0 !important; display: block !important; float: none !important; position: static !important; margin: 0 0 10px !important; }
body.single-post .mvp-post-tags a {
	display: inline-block; margin: 0 6px 6px 0 !important; padding: 7px 12px 6px !important; border: 1px solid var(--pd-linea) !important;
	background: transparent !important; color: var(--pd-tinta) !important; font: 600 13px/1 'Titillium Web', sans-serif !important; text-transform: none !important; text-decoration: none !important;
}
body.single-post .mvp-post-tags a:hover { border-color: var(--pd-rojo) !important; color: var(--pd-rojo) !important; }

/* ---- Barra de progreso de lectura (debajo del menú) ---- */
.pd-art-prog { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none; z-index: 5; }
.pd-art-prog span { display: block; height: 100%; background: var(--pd-rojo, #f00); transform: scaleX(0); transform-origin: 0 50%; }

/* ---- Ventanita de compartir ---- */
.pd-sh[hidden] { display: none; }
.pd-sh { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.pd-sh-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.pd-sh-panel {
	position: relative; width: 420px; max-width: calc(100% - 32px); background: #fff; color: #111; border-top: 6px solid #f00;
	padding: 18px 22px 22px; transform: translateY(16px); opacity: 0; transition: transform .2s, opacity .2s; box-sizing: border-box;
}
.pd-sh-on .pd-sh-fondo { opacity: 1; }
.pd-sh-on .pd-sh-panel { transform: none; opacity: 1; }
.pd-sh-cab { display: flex; align-items: center; justify-content: space-between; }
.pd-sh-cab strong { font: 800 18px/1 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.pd-sh-cerrar { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.pd-sh-cerrar:hover { color: #f00; }
.pd-sh-tit { margin: 8px 0 16px; color: #6b6b6b; font: 400 14px/1.4 'Titillium Web', sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-sh-ops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-sh-op {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid #e6e6e6;
	background: none; color: #111 !important; text-decoration: none !important; cursor: pointer; border-radius: 0;
	font: 600 13px/1 'Titillium Web', sans-serif; transition: border-color .15s, background .15s;
}
.pd-sh-op:hover, .pd-sh-op:focus-visible { border-color: #111; background: #f5f5f5; outline: none; }
.pd-sh-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #fff; font-size: 20px; background: #111; }
.pd-sh-whatsapp .pd-sh-ic { background: #25d366; }
.pd-sh-facebook .pd-sh-ic { background: #1877f2; }
.pd-sh-x .pd-sh-ic { background: #000; }
.pd-sh-telegram .pd-sh-ic { background: #229ed9; }
.pd-sh-correo .pd-sh-ic { background: #6b6b6b; }
.pd-sh-copiar .pd-sh-ic { background: #f00; }
.pd-sh-ok .pd-sh-ic { background: #1a8f3a; }
.pd-sh-link { margin-top: 14px; }
.pd-sh-link input { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #e6e6e6; background: #f5f5f5; color: #6b6b6b; font: 400 13px/1.2 'Titillium Web', sans-serif; border-radius: 0; }
html.pd-sh-abierto, html.pd-sh-abierto body { overflow: hidden; }
html.pd-dark .pd-sh-panel { background: #141414; color: #f2f2f2; }
html.pd-dark .pd-sh-op { color: #f2f2f2 !important; border-color: #2a2a2a; }
html.pd-dark .pd-sh-op:hover { background: #1f1f1f; border-color: #f2f2f2; }
html.pd-dark .pd-sh-link input { background: #1f1f1f; border-color: #2a2a2a; color: #a3a3a3; }

/* ---- Celular ---- */
@media (max-width: 767px) {
	body.single-post #mvp-article-head2 h1.mvp-post-title { font-size: 28px !important; line-height: 1.15; }
	.pd-art-meta { gap: 12px; }
	.pd-art-datos { font-size: 13px; }
	.pd-art-datos > * + *::before { margin: 0 7px 3px; }
	.pd-art-meta .pd-share-btn { width: 100%; justify-content: center; padding: 12px 16px 11px; }
	body.single-post #mvp-content-main p { font-size: 18px; line-height: 1.7; }
	body.single-post #mvp-content-main p.pd-art-lead { font-size: 20px; }
	body.single-post #mvp-content-main h2 { font-size: 22px; }
	body.single-post #mvp-content-main h3 { font-size: 20px; }
	.pd-art-fin { padding: 18px; }
	.pd-art-fin .pd-share-btn { width: 100%; justify-content: center; }
	/* En el celular la ventanita sale desde abajo */
	.pd-sh { align-items: flex-end; }
	.pd-sh-panel { width: 100%; max-width: 100%; transform: translateY(100%); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
	.pd-sh-fondo, .pd-sh-panel { transition: none; }
}
