/* ==========================================================================
   cd4-blog.css — Componentes del blog de 4 Digital
   Paleta del tema: primario #045189 · secundario #032D52 · acento #FFAA01.
   Tipografías del tema: Montserrat (titulares) y Open Sans (texto).
   ========================================================================== */
:root {
	--cd4-azul: #045189;
	--cd4-marino: #032D52;
	--cd4-acento: #FFAA01;
	--cd4-acento-hover: #FFBC3A;
	--cd4-borde: #E3E8EE;
	--cd4-suave: #F4F7FA;
	--cd4-texto: #1A2230;
	--cd4-gris: #4A5563;
	--cd4-radio: 14px;
}

/* --- Hero del artículo ---------------------------------------------------- */
/* El hero pinta ahora un <img> real (LCP y ALT). style.css lo ocultaba con
   «.gh-hero__media .gh-hero__img { display:none }» porque el diseño anterior usaba
   background-image; se anula aquí y el paneo sigue animando el contenedor. */
.gh-hero__media { line-height: 0; }
.gh-hero__media .gh-hero__img { display: block !important; width: 100%; height: 100%; object-fit: cover; animation: none !important; }
.single-post .gh-hero { height: clamp(400px, 34vw, 500px); }
/* En móvil y tablet el sidebar no aporta a la lectura: fuera el botón flotante que lo abría
   (quedaba encima del H1). La conversión la cubre el botón flotante de WhatsApp (Chaty). */
@media (max-width: 1024px) { .single-post .wd-sidebar-opener { display: none !important; } }
/* Aviso de cookies en móvil: el botón flotante de WhatsApp queda a la derecha, encima del
   texto; se le deja ese hueco para que no tape ninguna palabra (los botones van debajo). */
/* Selector con una clase más que el de WoodMart (opt-cookies.css pone padding-right:0 en móvil
   y se carga después, así que con la misma especificidad ganaba el suyo). */
@media (max-width: 767px) { .wd-cookies-popup .wd-cookies-inner .cookies-info-text { padding-right: 64px; text-align: left; } }
.gh-crumbs {
	margin: 0 0 12px; font-family: 'Montserrat', 'Kumbh Sans', sans-serif;
	font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .85);
}
.gh-crumbs a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.gh-crumbs a:hover { text-decoration-color: #fff; }
.gh-hero__meta a { color: #fff !important; text-decoration: none; }
.gh-hero__meta a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.gh-hero__eyebrow {
	display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--cd4-acento);
	color: var(--cd4-marino); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	opacity: 1; margin-bottom: 12px;
}

/* Contraste: style.css pinta la etiqueta en blanco sobre el amarillo (1,9:1). */
.gh-hero .gh-hero__eyebrow { color: var(--cd4-marino) !important; }
.single-post .wd-page-nav .back-to-archive { color: var(--cd4-azul) !important; }
/* «Volver al blog» en una línea y con aire antes del icono; etiquetas con contraste AA. */
.single-post .wd-page-nav .back-to-archive { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; }
.single-post .wd-page-nav .wd-label { color: #5B6573; }
/* Móvil: «Volver al blog» se partía en tres líneas entre las flechas. */
@media (max-width: 575px) {
	.single-post .wd-page-nav .back-to-archive { white-space: nowrap; font-size: 14px; }
	/* En móvil quedan las flechas y «Volver al blog». Las etiquetas se ocultan solo
	   visualmente: siguen dando nombre accesible a cada flecha. */
	.single-post .wd-page-nav .wd-label {
		position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
}

/* Móvil: la imagen arriba y el texto debajo sobre fondo sólido. Con títulos largos
   el texto sobre la foto se volvía ilegible y tapaba la imagen entera. */
@media (max-width: 767px) {
	.single-post .gh-hero, .gh-hero { height: auto; background: var(--cd4-marino); border-radius: 14px; margin-bottom: 26px; }
	.gh-hero__media { position: relative; inset: auto; height: 220px; animation: none; }
	.gh-hero__scrim { display: none; }
	.gh-hero__overlay { position: relative; padding: 20px 20px 22px; }
	.gh-hero__title { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
	.gh-hero__meta { font-size: 13px; line-height: 1.6; }
	.gh-hero__nav { display: none; }
}

/* --- Botones del header (WoodMart header builder) -----------------------
   El azul claro rgb(108,152,225) con texto blanco daba contraste 3:1 (WCAG pide 4,5:1).
   Se usa el azul primario del tema, que ya era su color hover. */
.whb-lc4wr0dx7hf2iyrlz8ss .btn { background-color: var(--cd4-azul) !important; }
.whb-lc4wr0dx7hf2iyrlz8ss .btn:hover { background-color: var(--cd4-marino) !important; }
/* «Cotizar por WhatsApp» en el verde de marca de WhatsApp con texto blanco: decisión del
   cliente (10-09). Aviso: #25D366 con blanco da ~2:1 de contraste (WCAG AA pide 4,5:1).
   Alternativa accesible, si se quiere volver: #157A3A (5,4:1) o #25D366 con texto #032D52. */
:root { --cd4-verde: #25D366; --cd4-verde-hover: #1EBE5A; }
.whb-pfjuiflo1ryw95lkddxe .btn { background-color: var(--cd4-verde) !important; }
.whb-pfjuiflo1ryw95lkddxe .btn:hover { background-color: var(--cd4-verde-hover) !important; }

/* --- Footer en las entradas ------------------------------------------------
   El footer usa la clase wd-entry-content, igual que el artículo, y style.css pinta
   «.single-post .wd-entry-content p/li» en #133848 !important: en las entradas el texto del
   pie quedaba azul oscuro sobre azul marino (invisible). Se devuelve el blanco de la home. */
.single-post .wd-footer .wd-entry-content p,
.single-post .wd-footer .wd-entry-content li,
.single-post .wd-footer .wd-entry-content blockquote { color: #fff !important; }

/* --- Footer: objetivos táctiles de al menos 24 px (WCAG 2.5.8) ------------ */
.wd-footer .elementor-icon-list-item > a { display: inline-flex; align-items: center; min-height: 28px; }

/* --- Contenido: legibilidad ---------------------------------------------- */
.single-post .wd-content-area .wd-entry-content { font-size: 15px; line-height: 1.75; color: #2b3440; }
.single-post .wd-content-area .wd-entry-content p, .single-post .wd-content-area .wd-entry-content li { font-size: 15px; }

/* --- Compartir: iconos de cada red (color de marca) + texto; en móvil, solo iconos --- */
.cd4-compartir { gap: 8px; }
/* Los enlaces del artículo van subrayados; los botones de compartir no. */
.single-post .wd-content-area .wd-entry-content .cd4-compartir a.cd4-compartir__red { text-decoration: none !important; color: #002D52 !important; }
.cd4-compartir .cd4-compartir__red { gap: 8px; }
.cd4-compartir .cd4-compartir__red svg { width: 18px; height: 18px; flex: none; }
.cd4-compartir__red--wa svg { color: #25D366; }
.cd4-compartir__red--fb svg { color: #1877F2; }
.cd4-compartir__red--in svg { color: #0A66C2; }
.cd4-compartir__red--x svg { color: #0F1419; }
.cd4-compartir__red--ln svg { color: var(--cd4-azul); }
.cd4-compartir .cd4-compartir__red:hover svg { transform: scale(1.08); }
.cd4-compartir .cd4-compartir__red svg { transition: transform .15s ease; }
@media (max-width: 575px) {
	.cd4-compartir__titulo { flex-basis: 100%; }
	.cd4-compartir .cd4-compartir__red { width: 46px; height: 46px; padding: 0 !important; justify-content: center; }
	.cd4-compartir .cd4-compartir__red svg { width: 20px; height: 20px; }
	.cd4-compartir__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.single-post .wd-content-area .wd-entry-content > h2 { margin-top: 1.9em; margin-bottom: .6em; line-height: 1.3; color: var(--cd4-texto); }
.single-post .wd-content-area .wd-entry-content > h3 { margin-top: 1.5em; line-height: 1.35; }
.single-post .wd-content-area .wd-entry-content a:not(.cd4-btn) { color: var(--cd4-azul); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.single-post .wd-content-area .wd-entry-content a:not(.cd4-btn):hover { text-decoration-thickness: 2px; }
.single-post .wd-content-area .wd-entry-content figure.diagrama img { border-radius: 12px; border: 1px solid var(--cd4-borde); background: #fff; }
.single-post .wd-content-area .wd-entry-content figcaption { font-size: 14px; color: #5b6573; text-align: center; margin-top: 8px; }
@media (max-width: 767px) {
	.single-post .wd-content-area .wd-entry-content { font-size: 15px; line-height: 1.7; }
}

/* --- Puntos clave (TL;DR) -------------------------------------------------- */
.cd4-resumen {
	margin: 26px 0 28px; padding: 22px 26px 18px; border: 1px solid #D5E1EC; border-radius: var(--cd4-radio);
	background: var(--cd4-suave);
}
.single-post .wd-content-area .wd-entry-content .cd4-resumen > h2 {
	display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; color: var(--cd4-marino);
}
.cd4-resumen > h2::before { content: ''; flex: 0 0 6px; height: 22px; border-radius: 3px; background: var(--cd4-acento); }
.cd4-resumen ul { margin: 0; padding-left: 1.1em; }
.cd4-resumen li { margin: 7px 0; line-height: 1.55; }
.cd4-resumen li::marker { color: var(--cd4-azul); }

/* --- Índice dentro del artículo («En este artículo») ----------------------- */
.cd4-toc { margin: 28px 0 32px; border: 1px solid var(--cd4-borde); border-radius: var(--cd4-radio); background: #fff; }
.cd4-toc summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px;
	border-radius: var(--cd4-radio);
}
.cd4-toc summary::-webkit-details-marker { display: none; }
.cd4-toc__icono {
	flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
	background: #EAF1F8; color: var(--cd4-azul);
}
.cd4-toc__icono svg { width: 18px; height: 18px; }
.cd4-toc__titulo { font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--cd4-marino); }
.cd4-toc__n { font-size: 13px; color: #5B6573; }
.cd4-toc summary::after {
	content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--cd4-azul); border-bottom: 2px solid var(--cd4-azul);
	transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.cd4-toc details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.cd4-toc summary:focus-visible { outline: 3px solid var(--cd4-acento); outline-offset: 2px; }
.single-post .wd-content-area .wd-entry-content .cd4-toc ol {
	margin: 0; padding: 4px 20px 18px; list-style: none; counter-reset: cd4t; border-top: 1px solid var(--cd4-borde);
	columns: 2; column-gap: 28px;
}
.single-post .wd-content-area .wd-entry-content .cd4-toc li { counter-increment: cd4t; margin: 0; padding: 0; break-inside: avoid; font-size: 14.5px; }
.single-post .wd-content-area .wd-entry-content .cd4-toc a {
	display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; line-height: 1.35;
	color: var(--cd4-gris) !important; text-decoration: none !important;
}
.single-post .wd-content-area .wd-entry-content .cd4-toc a::before {
	content: counter(cd4t, decimal-leading-zero); flex: 0 0 20px; padding-top: 1px;
	font-size: 12px; font-weight: 700; color: var(--cd4-azul); font-variant-numeric: tabular-nums;
}
.single-post .wd-content-area .wd-entry-content .cd4-toc a:hover { background: var(--cd4-suave); color: var(--cd4-azul) !important; }
.single-post .wd-content-area .wd-entry-content .cd4-toc a:focus-visible { outline: 2px solid var(--cd4-azul); outline-offset: 1px; }
@media (max-width: 767px) {
	.single-post .wd-content-area .wd-entry-content .cd4-toc ol { columns: 1; padding: 4px 12px 14px; }
	.cd4-toc summary { padding: 14px 16px; }
}

/* --- CTA dentro del artículo --------------------------------------------- */
.single-post .wd-content-area .wd-entry-content .cta-articulo {
	margin: 30px 0; padding: 22px 24px; border-radius: var(--cd4-radio);
	background: var(--cd4-marino); line-height: 1.6; font-size: 15px;
}
.single-post .wd-content-area .wd-entry-content p.cta-articulo { font-size: 15px; }
/* style.css fuerza #133848 !important en todos los <p> del contenido. */
.single-post .wd-content-area .wd-entry-content p.cta-articulo { color: #E6EDF5 !important; }
.cd4-compartir button { text-transform: none; letter-spacing: 0; }
.single-post .wd-content-area .wd-entry-content .cta-articulo strong {
	display: block; margin-bottom: 4px; color: #fff; font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 18px; line-height: 1.35;
}
.single-post .wd-content-area .wd-entry-content .cta-articulo a {
	display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px; min-height: 46px; margin-top: 14px;
	padding: 11px 22px; border-radius: 999px; background: var(--cd4-acento); color: var(--cd4-marino) !important;
	font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3;
	text-decoration: none !important; transition: background .2s ease, transform .2s ease;
}
.single-post .wd-content-area .wd-entry-content .cta-articulo a::after { content: '→'; font-weight: 700; }
.single-post .wd-content-area .wd-entry-content .cta-articulo a:hover { background: var(--cd4-acento-hover); transform: translateX(2px); }
.single-post .wd-content-area .wd-entry-content .cta-articulo a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.single-post .wd-content-area .wd-entry-content .cta-articulo.cta-final {
	background: linear-gradient(135deg, var(--cd4-marino) 0%, var(--cd4-azul) 100%); padding: 26px 28px;
}
@media (max-width: 575px) {
	.single-post .wd-content-area .wd-entry-content .cta-articulo { padding: 20px; }
	.single-post .wd-content-area .wd-entry-content .cta-articulo a { width: 100%; justify-content: center; text-align: center; }
}

/* --- Tablas: nunca desbordan la página ------------------------------------ */
.single-post .wd-content-area .wd-entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.single-post .wd-content-area .wd-entry-content .wp-block-table table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.single-post .wd-content-area .wd-entry-content .wp-block-table th {
	background: var(--cd4-marino); color: #fff; text-align: left; font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 14px;
}
.single-post .wd-content-area .wd-entry-content .wp-block-table th,
.single-post .wd-content-area .wd-entry-content .wp-block-table td { padding: 11px 14px; border: 1px solid var(--cd4-borde); vertical-align: top; }
.single-post .wd-content-area .wd-entry-content .wp-block-table tbody tr:nth-child(even) td { background: #F8FAFC; }

/* --- Preguntas frecuentes ------------------------------------------------- */
.cd4-faq { margin: 34px 0 10px; }
.single-post .wd-content-area .wd-entry-content .cd4-faq > h2 { margin: 0 0 14px; }
.single-post .wd-content-area .wd-entry-content .cd4-faq > h3 {
	position: relative; margin: 14px 0 0; padding: 16px 18px 6px 50px; border: 1px solid var(--cd4-borde); border-bottom: 0;
	border-radius: 12px 12px 0 0; background: #fff; font-size: 17px; line-height: 1.4; color: var(--cd4-texto);
}
.single-post .wd-content-area .wd-entry-content .cd4-faq > h3::before {
	content: '?'; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--cd4-azul); color: #fff;
	font-size: 14px; font-weight: 700; line-height: 1;
}
.single-post .wd-content-area .wd-entry-content .cd4-faq > h3 + p {
	margin: 0; padding: 0 18px 16px 50px; border: 1px solid var(--cd4-borde); border-top: 0; border-radius: 0 0 12px 12px;
	background: #fff; font-size: 15px; line-height: 1.65;
}
@media (max-width: 575px) {
	.single-post .wd-content-area .wd-entry-content .cd4-faq > h3 { padding-left: 46px; font-size: 16px; }
	.single-post .wd-content-area .wd-entry-content .cd4-faq > h3 + p { padding-left: 18px; }
}

/* --- Caja de autor --------------------------------------------------------- */
.cd4-autor {
	display: flex; gap: 20px; align-items: flex-start; margin: 34px 0 10px; padding: 24px;
	border: 1px solid var(--cd4-borde); border-left: 4px solid var(--cd4-azul); border-radius: var(--cd4-radio); background: #fff;
}
.cd4-autor__avatar {
	flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; background: var(--cd4-suave);
	display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--cd4-borde);
}
.cd4-autor__img { width: 52px; height: 52px; object-fit: contain; }
.cd4-autor__rol { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B6573; }
.cd4-autor__nombre { margin: 2px 0 8px; font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--cd4-texto); }
.cd4-autor__bio { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: #3D4652; }
.cd4-autor__enlaces { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.cd4-autor__enlaces a { font-weight: 700; color: var(--cd4-azul) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 575px) {
	.cd4-autor { flex-direction: column; gap: 14px; padding: 20px; }
}

/* --- Relacionados ----------------------------------------------------------- */
.single-post .gh-related { margin-top: 40px; }
.single-post .gh-related .gh-section__title { font-size: 22px; margin-bottom: 20px; }

/* --- Comentarios ------------------------------------------------------------ */
.single-post .comment-respond {
	margin-top: 40px; padding: 26px; border: 1px solid var(--cd4-borde); border-radius: var(--cd4-radio); background: #fff;
}
.single-post .comment-reply-title { font-size: 20px; margin: 0 0 8px; }
.single-post .comment-respond input[type="text"],
.single-post .comment-respond input[type="email"],
.single-post .comment-respond input[type="url"],
.single-post .comment-respond textarea {
	border: 1px solid #CBD5E0; border-radius: 10px; background: #fff; font-size: 16px;
}
.single-post .comment-respond input:focus,
.single-post .comment-respond textarea:focus { border-color: var(--cd4-azul); outline: 2px solid rgba(4, 81, 137, .25); outline-offset: 1px; }
.single-post .comment-respond .submit {
	min-height: 46px; padding: 11px 26px; border-radius: 999px; background: var(--cd4-azul); color: #fff; font-weight: 700;
}
.single-post .comment-respond .submit:hover { background: var(--cd4-marino); }
@media (max-width: 575px) {
	.single-post .comment-respond { padding: 18px; }
}

/* --- Hub /blog/ y tarjetas ------------------------------------------------- */
.cvt-hub .gh-section { margin-top: 48px; }
.cvt-hub .gh-section__head { flex-wrap: wrap; margin-bottom: 10px; }
.gh-tema__desc { max-width: 760px; margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--cd4-gris); }
.gh-grid--tema { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.gh-grid--tema .gh-card, .gh-related__grid .gh-card { height: 100%; }
/* Imagen con proporción fija: todas las tarjetas miden lo mismo aunque cambie la foto. */
.gh-card__thumb img, .wd-post.gh-archive-item .gh-card__thumb img, .gh-grid--articles .gh-card__thumb img {
	height: auto; aspect-ratio: 16 / 10; object-fit: cover;
}
.gh-featured__thumb img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
/* El kit de Elementor (21510) aplica a TODOS los enlaces «.elementor-kit-21510 a» la tipografía
   de acento (13px / 500) y a los h3 15px / 500, con más especificidad que .gh-card__title.
   El enlace hereda del título y el título recupera tamaño y peso legibles. */
.gh-card .gh-card__title, .wd-post .gh-card__title, body .gh-card h3.gh-card__title {
	font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: 0;
}
body .gh-featured h3.gh-featured__title { font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; }
body .gh-card .gh-card__title a, body .gh-featured .gh-featured__title a, body .wd-post .gh-card__title a {
	font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit;
}
.gh-card__title a { -webkit-line-clamp: 3; line-clamp: 3; }
body .gh-card .gh-card__more, body .gh-featured .gh-card__more { font-size: 13px; font-weight: 700; }
@media (max-width: 575px) { .gh-card .gh-card__title, body .gh-card h3.gh-card__title { font-size: 16px; } body .gh-featured h3.gh-featured__title { font-size: 20px; } }
.gh-card .gh-card__meta { margin-top: auto; padding-top: 12px; }
.gh-card__time, .gh-card__date { color: #5B6573; }
.gh-card__time::before { filter: brightness(.7); }
.gh-card__more { font-size: 13px; }
.gh-card:focus-within { box-shadow: 0 0 0 3px var(--cd4-acento); }
.gh-card__title a:focus-visible, .gh-card__more:focus-visible, .gh-section__all:focus-visible { outline: 2px solid var(--cd4-azul); outline-offset: 2px; }
.cvt-hub .gh-section__all { font-size: 13px; }
.gh-catbar__title { font-size: 22px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .gh-card, .gh-card__thumb img, .gh-featured { transition: none !important; transform: none !important; } }
@media (max-width: 1024px) { .gh-grid--tema { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
	.gh-grid--tema, .gh-research__grid { grid-template-columns: 1fr; }
	.cvt-hub .gh-section { margin-top: 36px; }
}
/* Archivo de categoría: tarjetas en H2 con el mismo tamaño visual que en el hub. */
.wd-post.gh-archive-item .gh-card__title { font-size: 17px; margin: 0; }
.wd-post.gh-archive-item .gh-card__title a { -webkit-line-clamp: 3; line-clamp: 3; }
/* Barra de temas en móvil: una sola línea con scroll horizontal, sin partir los nombres. */
@media (max-width: 767px) {
	.gh-catbar__list { gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; }
	.gh-catbar__list > li { flex: 0 0 auto; scroll-snap-align: start; }
	.gh-catbar__list a { white-space: nowrap; flex-direction: row; gap: 8px; padding: 10px 14px; border: 1px solid var(--cd4-borde); border-radius: 999px; background: #fff; }
	.gh-catbar__name { text-align: left; }
}
/* WoodMart repite la descripción de la categoría bajo la barra: ya está en la cabecera. */
.category .archive-meta { display: none; }
.gh-arch-hero__desc p { margin: 0; color: inherit; }
@media (min-width: 768px) { .gh-arch-hero__inner { padding-left: clamp(24px, 4vw, 56px); padding-right: clamp(24px, 4vw, 56px); } }
.gh-arch-hero:not(.has-image) { background: linear-gradient(135deg, var(--cd4-marino) 0%, var(--cd4-azul) 100%); }

/* --- Sidebar del blog (widgets con shortcodes cd4_*) --------------------- */
.cd4-lateral__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B6573; }
.cd4-lateral__titulo { margin: 0 0 8px; font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--cd4-texto); }
.cd4-lateral__texto { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--cd4-gris); }
.wd-sidebar .cd4-lateral__enlace { font-weight: 700; color: var(--cd4-azul) !important; text-decoration: underline; text-underline-offset: 3px; }
.cd4-lateral--cta { padding: 20px 20px 22px; border-radius: 14px; background: var(--cd4-marino); }
.cd4-lateral--cta .cd4-lateral__titulo { color: #fff; }
.cd4-lateral--cta .cd4-lateral__texto { color: #D7E1EC; }
.wd-sidebar .cd4-lateral__btn {
	display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 10px; padding: 10px 16px;
	border-radius: 999px; font-family: 'Montserrat', 'Kumbh Sans', sans-serif; font-size: 14px; font-weight: 700; text-align: center;
	text-decoration: none; transition: background .2s ease;
}
/* Especificidad por encima de «.single-post .wd-sidebar a { color:#4a5563 !important }» de style.css. */
.single-post .wd-sidebar a.cd4-lateral__btn--wa, .wd-sidebar a.cd4-lateral__btn--wa { gap: 8px; background: var(--cd4-verde); color: #fff !important; }
.single-post .wd-sidebar a.cd4-lateral__btn--wa:hover, .wd-sidebar a.cd4-lateral__btn--wa:hover { background: var(--cd4-verde-hover); color: #fff !important; }
.wd-sidebar a.cd4-lateral__btn--wa svg { width: 18px; height: 18px; flex: none; }

/* Buscador del blog (widget nativo), primero del sidebar. */
.wd-sidebar .widget_search .searchform { position: relative; }
.wd-sidebar .widget_search input[type="text"], .wd-sidebar .widget_search input[type="search"], .wd-sidebar .widget_search input.s {
	width: 100%; height: 46px; padding: 0 48px 0 14px; border: 1px solid #CBD5E0; border-radius: 10px; background: #F8FAFC;
	font-size: 14px; color: var(--cd4-texto);
}
.wd-sidebar .widget_search input:focus { border-color: var(--cd4-azul); background: #fff; outline: 2px solid rgba(4, 81, 137, .2); outline-offset: 1px; }
.wd-sidebar .widget_search input::placeholder { color: #6B7785; }
/* El botón (lupa de WoodMart, fondo transparente) lo estiliza style.css; aquí no se toca. */
.single-post .wd-sidebar a.cd4-lateral__btn--tel, .wd-sidebar a.cd4-lateral__btn--tel { border: 1px solid rgba(255, 255, 255, .7); color: #fff !important; }
.single-post .wd-sidebar a.cd4-lateral__btn--tel:hover, .wd-sidebar a.cd4-lateral__btn--tel:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.wd-sidebar .cd4-lateral__btn:focus-visible, .wd-sidebar .cd4-indice a:focus-visible { outline: 3px solid var(--cd4-acento); outline-offset: 2px; }
/* --- Bloque fijo del sidebar: índice + CTA ----------------------------------
   Dos tarjetas independientes (antes el CTA se montaba sobre el índice con márgenes
   negativos). El widget que las contiene deja de ser tarjeta y se fija bajo el header:
   --cd4-top lo calcula el script del mu-plugin con la altura real del header fijo. */
.single-post .wd-sidebar .widget.widget_custom_html:last-child {
	background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: 0;
}
.single-post .wd-sidebar .widget:last-child .custom-html-widget { display: flex; flex-direction: column; gap: 16px; }
.cd4-indice {
	background: #fff; border: 1px solid #EEF0F2; border-radius: 14px; box-shadow: 0 2px 12px rgba(16, 24, 40, .05);
	padding: 18px 8px 10px 18px; display: flex; flex-direction: column; min-height: 0;
}
.cd4-indice .cd4-lateral__eyebrow { padding-right: 10px; }
.cd4-indice ol {
	margin: 0; padding: 0 10px 0 0; list-style: none; counter-reset: cd4i; overflow-y: auto; overscroll-behavior: contain;
	scrollbar-width: thin; scrollbar-color: #C9D3DC transparent;
}
.cd4-indice li { counter-increment: cd4i; margin: 0; }
.wd-sidebar .cd4-indice a {
	position: relative; display: flex; gap: 10px; padding: 7px 8px 7px 10px; border-radius: 8px;
	font-size: 14px; line-height: 1.35; color: var(--cd4-gris) !important; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.cd4-indice a::before { content: counter(cd4i, decimal-leading-zero); flex: 0 0 20px; font-weight: 700; color: #8A96A5; font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.wd-sidebar .cd4-indice a:hover { background: var(--cd4-suave); color: var(--cd4-azul) !important; }
.wd-sidebar .cd4-indice a.is-activo { background: #EAF1F8; color: var(--cd4-marino) !important; font-weight: 600; }
.wd-sidebar .cd4-indice a.is-activo::before { color: var(--cd4-azul); }
.wd-sidebar .cd4-indice a.is-activo::after { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--cd4-acento); }
.cd4-lateral--cta .cd4-lateral__titulo { font-size: 17px; margin-bottom: 12px; }

/* Servicios dentro del CTA, siempre visibles: etiquetas en píldora agrupadas por frente.
   El servicio relacionado con el artículo va en ámbar; el nombre del grupo enlaza al hub. */
.cd4-servicios { display: grid; gap: 12px; margin: 2px 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.cd4-servicios__bloque { display: grid; gap: 8px; }
.cd4-servicios__grupo { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wd-sidebar .cd4-servicios__grupo a { display: inline-flex; align-items: center; gap: 6px; color: #A9BCD0 !important; text-decoration: none; }
.wd-sidebar .cd4-servicios__grupo a::after { content: '→'; font-size: 12px; transition: transform .15s ease; }
.wd-sidebar .cd4-servicios__grupo a:hover { color: #fff !important; }
.wd-sidebar .cd4-servicios__grupo a:hover::after { transform: translateX(2px); }
.wd-sidebar .cd4-servicios__grupo a.is-rel { color: var(--cd4-acento) !important; }
.cd4-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* WoodMart añade margen y separadores a los <li> de los widgets. */
.wd-sidebar .cd4-chips li { margin: 0; padding: 0; border: 0; }
.wd-sidebar a.cd4-chip {
	display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
	font-size: 13px; font-weight: 600; line-height: 1.2; color: #E6EDF5 !important; text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wd-sidebar a.cd4-chip:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.wd-sidebar a.cd4-chip.is-rel { background: var(--cd4-acento); border-color: var(--cd4-acento); color: var(--cd4-marino) !important; }
.wd-sidebar a.cd4-chip.is-rel:hover { background: var(--cd4-acento-hover); }
.wd-sidebar a.cd4-chip:focus-visible, .wd-sidebar .cd4-servicios__grupo a:focus-visible { outline: 3px solid var(--cd4-acento); outline-offset: 2px; }
.cd4-servicios__leyenda { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; color: #A9BCD0; }
.cd4-servicios__leyenda span { width: 10px; height: 10px; border-radius: 50%; background: var(--cd4-acento); flex: none; }
.cd4-lateral--cta .cd4-lateral__texto { font-size: 14px; margin-bottom: 12px; }
.wd-sidebar .cd4-lateral--cta .cd4-lateral__btn { min-height: 44px; margin-top: 8px; }
/* Fijo solo si el alto de pantalla da para índice + CTA con servicios; en pantallas más bajas
   el bloque sigue el flujo normal y no se corta nada. */
/* Sin el índice, el bloque fijo es solo el CTA (~520 px): basta con 720 px de alto de
   pantalla; entre 1025 y 1359 px hace falta más porque reserva sitio para Chaty. */
@media (min-width: 1360px) and (min-height: 720px), (min-width: 1025px) and (min-height: 830px) {
	/* El sticky necesita recorrido: el contenedor de widgets ocupa todo el alto del aside. */
	.single-post .wd-sidebar .widget-area { height: 100%; }
	.single-post .wd-sidebar .widget:last-child {
		position: sticky; top: var(--cd4-top, 110px);
		max-height: calc(100vh - var(--cd4-top, 110px) - 20px);
	}
	.single-post .wd-sidebar .widget:last-child .custom-html-widget { max-height: inherit; }
	/* El índice cede alto y hace scroll propio; el CTA siempre queda entero a la vista. */
	/* El índice usa el espacio que sobra; el CTA ocupa lo suyo y, si con los servicios abiertos
	   no cabe, hace scroll propio en vez de salirse de la pantalla. */
	.single-post .wd-sidebar .widget:last-child .cd4-indice { flex: 1 3 auto; min-height: 96px; overflow: hidden; }
	.single-post .wd-sidebar .widget:last-child .cd4-lateral--cta { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	/* Con los servicios cerrados el CTA no cede nunca alto (los botones siempre enteros):
	   solo se reduce el índice. Al abrir el listado, el CTA puede hacer scroll. */
	.single-post .wd-sidebar .widget:last-child .cd4-lateral--cta:not(:has(details[open])) { flex-shrink: 0; overflow: visible; }
}
@media (min-width: 1025px) and (max-height: 760px) {
	.cd4-lateral--cta .cd4-lateral__texto { display: none; }
}
/* Por debajo de ~1360 px el sidebar llega al borde derecho, donde están el botón de Chaty y
   «volver arriba»: el bloque fijo termina por encima de ellos en lugar de quedar debajo. */
@media (min-width: 1025px) and (max-width: 1359px) {
	.single-post .wd-sidebar .widget:last-child { max-height: calc(100vh - var(--cd4-top, 110px) - 150px); }
}
/* Fundido inferior: indica que el índice sigue con scroll. */
.single-post .wd-sidebar .cd4-indice ol {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
	padding-bottom: 14px;
}
.single-post .wd-content-area .wd-entry-content h2[id] { scroll-margin-top: 110px; }
