/*!
 * PDFcrea Blog — estilos aislados.
 * Todo cuelga de .pdfcb-root (especificidad doble) para que el tema o Elementor
 * no cambien fuentes, tamaños ni colores del blog, y para no afectar al resto del sitio.
 */
.pdfcb-root {
	--pdfcb-primary: #dc2626;
	--pdfcb-dark: #1f2937;
	--pdfcb-font: 'PDFcrea Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--pdfcb-text: #374151;
	--pdfcb-muted: #6b7280;
	--pdfcb-line: #e5e7eb;
	--pdfcb-soft: #f3f4f6;
	--pdfcb-tint: #fef2f2;
	--pdfcb-radius: 16px;
	--pdfcb-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .06);
	--pdfcb-shadow-hover: 0 2px 4px rgba(17, 24, 39, .06), 0 16px 36px rgba(17, 24, 39, .12);
}

/* ---------- Base / reset dentro del blog ---------- */
.pdfcb-root.pdfcb-root {
	font-family: var(--pdfcb-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--pdfcb-text);
	letter-spacing: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}
.pdfcb-root.pdfcb-root *,
.pdfcb-root.pdfcb-root *::before,
.pdfcb-root.pdfcb-root *::after { box-sizing: border-box; }
.pdfcb-root.pdfcb-root :is(h1, h2, h3, h4, p, ul, ol, li, figure, table, blockquote, form, nav, input, button) {
	font-family: var(--pdfcb-font);
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}
.pdfcb-root.pdfcb-root img { max-width: 100%; height: auto; border: 0; box-shadow: none; border-radius: 0; }
.pdfcb-root.pdfcb-root a { text-decoration: none; box-shadow: none; }
.pdfcb-root.pdfcb-root svg { display: inline-block; vertical-align: middle; }

/* ---------- Cabecera del listado ---------- */
.pdfcb-root.pdfcb-root .pdfcb-hero {
	text-align: center;
	padding: 48px 20px 36px;
	margin: 0 0 8px;
	background: none;
	border: 0;
}
.pdfcb-root.pdfcb-root .pdfcb-hero__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: clamp(30px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.12;
	color: var(--pdfcb-dark);
}
.pdfcb-root.pdfcb-root .pdfcb-hero__sub {
	margin: 0 auto;
	max-width: 620px;
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.55;
	color: var(--pdfcb-muted);
}

/* ---------- Barra: buscador + categorías ---------- */
.pdfcb-root.pdfcb-root .pdfcb-toolbar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin: 0 0 32px;
}
.pdfcb-root.pdfcb-root .pdfcb-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 560px;
	margin: 0;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--pdfcb-line);
	border-radius: 999px;
	box-shadow: var(--pdfcb-shadow);
}
.pdfcb-root.pdfcb-root .pdfcb-search:focus-within { border-color: var(--pdfcb-primary); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.pdfcb-root.pdfcb-root .pdfcb-search__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--pdfcb-muted); line-height: 0; pointer-events: none; }
.pdfcb-root.pdfcb-root .pdfcb-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px 0 44px;
	font-size: 16px;
	font-weight: 400;
	line-height: 44px;
	color: var(--pdfcb-dark);
	background: transparent;
	border: 0;
	border-radius: 999px;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.pdfcb-root.pdfcb-root .pdfcb-search__input::placeholder { color: #9ca3af; opacity: 1; }
.pdfcb-root.pdfcb-root .pdfcb-search__input::-webkit-search-cancel-button { cursor: pointer; }
.pdfcb-root.pdfcb-root .pdfcb-search__btn {
	flex: 0 0 auto;
	height: 44px;
	margin: 0;
	padding: 0 22px;
	font-size: 15px;
	font-weight: 700;
	line-height: 44px;
	color: #fff;
	background: var(--pdfcb-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	transition: filter .15s ease, transform .15s ease;
}
.pdfcb-root.pdfcb-root .pdfcb-search__btn:hover { filter: brightness(.92); }
.pdfcb-root.pdfcb-root .pdfcb-search__btn:active { transform: translateY(1px); }

.pdfcb-root.pdfcb-root .pdfcb-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.pdfcb-root.pdfcb-root .pdfcb-chip {
	display: inline-flex;
	align-items: center;
	height: 38px;
	margin: 0;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--pdfcb-text);
	background: #fff;
	border: 1px solid var(--pdfcb-line);
	border-radius: 999px;
	white-space: nowrap;
	transition: all .15s ease;
}
.pdfcb-root.pdfcb-root .pdfcb-chip:hover { color: var(--pdfcb-primary); border-color: var(--pdfcb-primary); background: var(--pdfcb-tint); }
.pdfcb-root.pdfcb-root .pdfcb-chip.is-active { color: #fff; background: var(--pdfcb-primary); border-color: var(--pdfcb-primary); }

.pdfcb-root.pdfcb-root .pdfcb-results {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: -12px 0 24px;
	font-size: 15px;
	color: var(--pdfcb-muted);
}
.pdfcb-root.pdfcb-root .pdfcb-results__clear { color: var(--pdfcb-primary); font-weight: 600; }
.pdfcb-root.pdfcb-root .pdfcb-empty {
	margin: 0;
	padding: 48px 20px;
	text-align: center;
	font-size: 17px;
	color: var(--pdfcb-muted);
	background: var(--pdfcb-soft);
	border-radius: var(--pdfcb-radius);
}

/* ---------- Rejilla de tarjetas ---------- */
.pdfcb-root.pdfcb-root .pdfcb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
}
.pdfcb-root.pdfcb-root .pdfcb-grid--1 { grid-template-columns: minmax(0, 1fr); }
.pdfcb-root.pdfcb-root .pdfcb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdfcb-root.pdfcb-root .pdfcb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pdfcb-root.pdfcb-root .pdfcb-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--pdfcb-line);
	border-radius: var(--pdfcb-radius);
	box-shadow: var(--pdfcb-shadow);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pdfcb-root.pdfcb-root .pdfcb-card:hover { transform: translateY(-4px); box-shadow: var(--pdfcb-shadow-hover); border-color: #fecaca; }
.pdfcb-root.pdfcb-root .pdfcb-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--pdfcb-soft);
	line-height: 0;
}
.pdfcb-root.pdfcb-root .pdfcb-card__media .pdfcb-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform .35s ease;
}
.pdfcb-root.pdfcb-root .pdfcb-card:hover .pdfcb-img { transform: scale(1.035); }
.pdfcb-root.pdfcb-root .pdfcb-img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--pdfcb-soft), #fee2e2);
}
.pdfcb-root.pdfcb-root .pdfcb-img--empty span {
	padding: 8px 14px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: var(--pdfcb-primary);
	border-radius: 8px;
}
.pdfcb-root.pdfcb-root .pdfcb-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 22px 22px;
}
.pdfcb-root.pdfcb-root .pdfcb-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--pdfcb-muted);
}
.pdfcb-root.pdfcb-root .pdfcb-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	color: var(--pdfcb-primary);
	background: var(--pdfcb-tint);
	border-radius: 999px;
}
.pdfcb-root.pdfcb-root a.pdfcb-badge:hover { color: #fff; background: var(--pdfcb-primary); }
.pdfcb-root.pdfcb-root .pdfcb-card__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pdfcb-dark);
}
.pdfcb-root.pdfcb-root .pdfcb-card__title a { color: var(--pdfcb-dark); background: none; }
.pdfcb-root.pdfcb-root .pdfcb-card__title a:hover { color: var(--pdfcb-primary); }
.pdfcb-root.pdfcb-root .pdfcb-card__excerpt {
	flex: 1 1 auto;
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--pdfcb-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pdfcb-root.pdfcb-root .pdfcb-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--pdfcb-soft);
	font-size: 13px;
	color: var(--pdfcb-muted);
}
.pdfcb-root.pdfcb-root .pdfcb-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pdfcb-primary);
	white-space: nowrap;
}
.pdfcb-root.pdfcb-root .pdfcb-link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Paginación ---------- */
.pdfcb-root.pdfcb-root .pdfcb-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 44px 0 8px;
}
.pdfcb-root.pdfcb-root .pdfcb-pager__nums { display: flex; flex-wrap: wrap; gap: 6px; }
.pdfcb-root.pdfcb-root .pdfcb-pager__num,
.pdfcb-root.pdfcb-root .pdfcb-pager__btn,
.pdfcb-root.pdfcb-root .pdfcb-pager__dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: var(--pdfcb-text);
	background: #fff;
	border: 1px solid var(--pdfcb-line);
	border-radius: 12px;
	transition: all .15s ease;
}
.pdfcb-root.pdfcb-root .pdfcb-pager__dots { border-color: transparent; background: none; min-width: 20px; padding: 0 4px; }
.pdfcb-root.pdfcb-root a.pdfcb-pager__num:hover,
.pdfcb-root.pdfcb-root a.pdfcb-pager__btn:hover { color: var(--pdfcb-primary); border-color: var(--pdfcb-primary); }
.pdfcb-root.pdfcb-root .pdfcb-pager__num.is-current { color: #fff; background: var(--pdfcb-primary); border-color: var(--pdfcb-primary); }
.pdfcb-root.pdfcb-root .pdfcb-pager__btn.is-disabled { opacity: .45; cursor: default; }

/* ---------- Últimos artículos ---------- */
.pdfcb-root.pdfcb-root.pdfcb-recent { margin-top: 24px; margin-bottom: 24px; }
.pdfcb-root.pdfcb-root .pdfcb-recent__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 22px;
}
.pdfcb-root.pdfcb-root .pdfcb-recent__title,
.pdfcb-root.pdfcb-root .pdfcb-related__title {
	margin: 0;
	padding: 0;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--pdfcb-dark);
}

/* ---------- Artículo individual ---------- */
.pdfcb-root.pdfcb-article { max-width: 820px; color: var(--pdfcb-text); }
/* En temas de bloques se respeta el ancho de contenido del tema. */
.is-layout-constrained > .pdfcb-root.pdfcb-article { max-width: var(--wp--style--global--content-size, 820px); }
.pdfcb-root.pdfcb-root .pdfcb-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 28px;
	padding: 0 0 20px;
	font-size: 14px;
	color: var(--pdfcb-muted);
	border-bottom: 1px solid var(--pdfcb-line);
}
.pdfcb-root.pdfcb-root .pdfcb-dot { color: #d1d5db; }
.pdfcb-root.pdfcb-root .pdfcb-article__body { font-size: 17.5px; line-height: 1.75; color: var(--pdfcb-text); }
.pdfcb-root.pdfcb-root .pdfcb-article__body > :first-child { margin-top: 0; }
.pdfcb-root.pdfcb-root .pdfcb-article__body p { margin: 0 0 1.15em; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.pdfcb-root.pdfcb-root .pdfcb-article__body h2 {
	margin: 1.9em 0 .6em;
	padding: 0;
	font-size: clamp(23px, 2.6vw, 28px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--pdfcb-dark);
	border: 0;
	background: none;
}
.pdfcb-root.pdfcb-root .pdfcb-article__body h3 {
	margin: 1.5em 0 .5em;
	padding: 0;
	font-size: clamp(19px, 2vw, 21px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--pdfcb-dark);
}
.pdfcb-root.pdfcb-root .pdfcb-article__body strong { font-weight: 700; color: var(--pdfcb-dark); }
.pdfcb-root.pdfcb-root .pdfcb-article__body em { font-style: italic; }
.pdfcb-root.pdfcb-root .pdfcb-article__body a {
	color: var(--pdfcb-primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	background: none;
}
.pdfcb-root.pdfcb-root .pdfcb-article__body a:hover { text-decoration-thickness: 2px; }
.pdfcb-root.pdfcb-root .pdfcb-article__body ul,
.pdfcb-root.pdfcb-root .pdfcb-article__body ol { margin: 0 0 1.3em; padding: 0 0 0 1.4em; }
.pdfcb-root.pdfcb-root .pdfcb-article__body ul { list-style: none; padding-left: 0; }
.pdfcb-root.pdfcb-root .pdfcb-article__body ol { list-style: decimal outside; }
.pdfcb-root.pdfcb-root .pdfcb-article__body li { margin: 0 0 .55em; padding: 0; font-size: inherit; line-height: 1.65; }
.pdfcb-root.pdfcb-root .pdfcb-article__body ul > li { position: relative; padding-left: 1.6em; }
.pdfcb-root.pdfcb-root .pdfcb-article__body ul > li::before {
	content: '';
	position: absolute;
	left: .35em;
	top: .62em;
	width: 8px;
	height: 8px;
	background: var(--pdfcb-primary);
	border-radius: 2px;
	transform: rotate(45deg);
}
.pdfcb-root.pdfcb-root .pdfcb-article__body ol > li::marker { color: var(--pdfcb-primary); font-weight: 800; }
.pdfcb-root.pdfcb-root .pdfcb-article__body ol > li { padding-left: .3em; }

.pdfcb-root.pdfcb-root .pdfcb-article__body .wp-block-table { margin: 1.4em 0 1.8em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pdfcb-root.pdfcb-root .pdfcb-article__body table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15.5px;
	line-height: 1.5;
	background: #fff;
	border: 1px solid var(--pdfcb-line);
	border-radius: 12px;
	overflow: hidden;
}
.pdfcb-root.pdfcb-root .pdfcb-article__body th,
.pdfcb-root.pdfcb-root .pdfcb-article__body td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--pdfcb-line);
}
.pdfcb-root.pdfcb-root .pdfcb-article__body thead th {
	font-weight: 700;
	color: #fff;
	background: var(--pdfcb-dark);
	border-bottom: 0;
}
.pdfcb-root.pdfcb-root .pdfcb-article__body tbody tr:nth-child(even) td { background: #f9fafb; }
.pdfcb-root.pdfcb-root .pdfcb-article__body tbody tr:last-child td { border-bottom: 0; }
.pdfcb-root.pdfcb-root .pdfcb-article__body td:first-child { font-weight: 600; color: var(--pdfcb-dark); }

.pdfcb-root.pdfcb-root .pdfcb-article__body .pdfcb-tip {
	position: relative;
	margin: 1.6em 0;
	padding: 18px 20px 18px 56px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--pdfcb-dark);
	background: var(--pdfcb-tint);
	border: 1px solid #fecaca;
	border-left: 4px solid var(--pdfcb-primary);
	border-radius: 12px;
}
.pdfcb-root.pdfcb-root .pdfcb-article__body .pdfcb-tip::before {
	content: 'i';
	position: absolute;
	left: 18px;
	top: 18px;
	width: 24px;
	height: 24px;
	font: 800 14px/24px var(--pdfcb-font);
	text-align: center;
	color: #fff;
	background: var(--pdfcb-primary);
	border-radius: 50%;
}

/* Caja de llamada a la acción */
.pdfcb-root.pdfcb-root .pdfcb-cta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 40px 0 8px;
	padding: 24px 26px;
	color: #fff;
	background: linear-gradient(135deg, var(--pdfcb-dark) 0%, #374151 100%);
	border-radius: 18px;
}
.pdfcb-root.pdfcb-root .pdfcb-cta__icon {
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	color: #fff;
	background: var(--pdfcb-primary);
	border-radius: 14px;
}
.pdfcb-root.pdfcb-root .pdfcb-cta__text { flex: 1 1 auto; min-width: 0; }
.pdfcb-root.pdfcb-root .pdfcb-cta__title { margin: 0 0 4px; font-size: 19px; font-weight: 800; line-height: 1.3; color: #fff; }
.pdfcb-root.pdfcb-root .pdfcb-cta__desc { margin: 0; font-size: 15px; line-height: 1.5; color: #d1d5db; }
.pdfcb-root.pdfcb-root .pdfcb-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 46px;
	padding: 0 22px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--pdfcb-primary);
	border-radius: 999px;
	white-space: nowrap;
	transition: filter .15s ease;
}
.pdfcb-root.pdfcb-root .pdfcb-btn:hover { color: #fff; filter: brightness(1.08); }

.pdfcb-root.pdfcb-root .pdfcb-related { margin: 48px 0 0; padding: 36px 0 0; border-top: 1px solid var(--pdfcb-line); }
.pdfcb-root.pdfcb-root .pdfcb-related .pdfcb-related__title { margin-bottom: 22px; }
.pdfcb-root.pdfcb-article .pdfcb-related .pdfcb-card__title { font-size: 17px; }
.pdfcb-root.pdfcb-root .pdfcb-back { margin: 32px 0 0; }

/* La imagen de respaldo del tema conserva proporción */
img.pdfcb-fallback-img { height: auto; max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.pdfcb-root.pdfcb-root .pdfcb-grid--3,
	.pdfcb-root.pdfcb-root .pdfcb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
	.pdfcb-root.pdfcb-root .pdfcb-grid,
	.pdfcb-root.pdfcb-root .pdfcb-grid--2,
	.pdfcb-root.pdfcb-root .pdfcb-grid--3,
	.pdfcb-root.pdfcb-root .pdfcb-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.pdfcb-root.pdfcb-root .pdfcb-hero { padding: 28px 4px 22px; }
	.pdfcb-root.pdfcb-root .pdfcb-cats { flex-wrap: nowrap; justify-content: flex-start; width: 100%; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.pdfcb-root.pdfcb-root .pdfcb-cats::-webkit-scrollbar { display: none; }
	.pdfcb-root.pdfcb-root .pdfcb-search__btn { padding: 0 16px; }
	.pdfcb-root.pdfcb-root .pdfcb-card__body { padding: 18px; }
	.pdfcb-root.pdfcb-root .pdfcb-card__title { font-size: 18px; }
	.pdfcb-root.pdfcb-root .pdfcb-article__body { font-size: 16.5px; }
	.pdfcb-root.pdfcb-root .pdfcb-article__body th,
	.pdfcb-root.pdfcb-root .pdfcb-article__body td { padding: 10px 12px; font-size: 14.5px; }
	.pdfcb-root.pdfcb-root .pdfcb-article__body table { min-width: 520px; }
	.pdfcb-root.pdfcb-root .pdfcb-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
	.pdfcb-root.pdfcb-root .pdfcb-pager__btn { padding: 0 12px; }
	.pdfcb-root.pdfcb-root .pdfcb-pager { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.pdfcb-root.pdfcb-root * { transition: none !important; }
}
