#blog-container {
	padding: 0 7% !important;
}

/* ============================================================
   Blog Custom Layout — Skin Renew / Figma
   ============================================================ */

/* --- Centrar y full width --- */
body #blog-container .row:has(.salient-blog-custom),
body .wpb_wrapper > .row:has(.post-area .salient-blog-custom) {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: 100% !important;
	margin: 0 auto !important;
	float: none !important;
}

body .post-area:has(.salient-blog-custom) {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
}

body .post-area:has(.salient-blog-custom) + #sidebar {
	display: none !important;
}

/* --- GRID DE PÁGINA --- */
body .post-area .posts-container:has(.salient-blog-custom) {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 37px;
	align-items: start;
	width: 100%;
}

body .post-area .posts-container .salient-blog-custom--featured {
	grid-column: 1 / 8;
	grid-row: 1 / 3;
}

body .post-area .posts-container .salient-blog-custom--secondary:nth-child(2) {
	grid-column: 8 / 13;
	grid-row: 1;
}

body .post-area .posts-container .salient-blog-custom--secondary:nth-child(3) {
	grid-column: 8 / 13;
	grid-row: 2;
}

body .post-area .posts-container .salient-blog-custom--grid:nth-child(3n+4) {
	grid-column: 1 / 5;
}

body .post-area .posts-container .salient-blog-custom--grid:nth-child(3n+5) {
	grid-column: 5 / 9;
}

body .post-area .posts-container .salient-blog-custom--grid:nth-child(3n+6) {
	grid-column: 9 / 13;
}

/* Reset Salient sobre articles */
body .post-area .posts-container article.salient-blog-custom {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	width: 100% !important;
	float: none !important;
}

/* --- BASE TARJETA --- */
body .salient-blog-custom__card {
	background: #ffffff;
	overflow: hidden;
	height: 100%;
}

body .salient-blog-custom__image-link {
	display: block;
	line-height: 0;
}

body .salient-blog-custom__image {
	display: block;
	width: 100%;
	object-fit: cover;
}

body .salient-blog-custom__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

body .salient-blog-custom__category {
	font-family: "Noto Sans", sans-serif;
	color: #1D3442;
	background: #FFF3DB;
	border: 1px solid #1D3442;
	border-radius: 18px;
	padding: 4px 12px;
	text-decoration: none;
	line-height: 1.3;
	white-space: nowrap;
}

body .salient-blog-custom__date {
	font-family: "Noto Sans", sans-serif;
	color: #1D3442;
}

body .salient-blog-custom__title {
	font-family: "Gilda Display", serif !important;
	color: #1D3442;
	font-weight: 400;
	margin: 0;
}

body .salient-blog-custom__title a {
	font-family: "Gilda Display", serif !important;
	color: inherit;
	text-decoration: none;
}

body .salient-blog-custom__title a:hover {
	opacity: 0.85;
}

body .salient-blog-custom__excerpt {
	font-family: "Noto Sans", sans-serif;
	color: #1D3442;
}

body .salient-blog-custom__excerpt p {
	margin: 0;
	color: inherit;
}

body .salient-blog-custom__read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Noto Sans", sans-serif;
	color: #1D3442;
	text-decoration: none;
}

body .salient-blog-custom__read-more:hover {
	text-decoration: underline;
}

body .salient-blog-custom__arrow {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-top: 2px solid #1D3442;
	border-right: 2px solid #1D3442;
	transform: rotate(45deg);
	margin-top: -2px;
}

/* --- FEATURED 714×507 --- */
body .salient-blog-custom--featured .salient-blog-custom__card {
	border-radius: 21px;
	padding: 16px 23px 28px;
}

body .salient-blog-custom--featured .salient-blog-custom__image {
	height: 240px;
	border-radius: 21px;
	margin: 0 !important;
}

body .salient-blog-custom--featured .salient-blog-custom__body--featured {
	padding-top: 21px;
}

body .salient-blog-custom--featured .salient-blog-custom__header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
}

body .salient-blog-custom--featured .salient-blog-custom__header-row .salient-blog-custom__title {
	flex: 1;
	max-width: 490px;
	font-size: 35px;
	line-height: 1.15;
	margin: 0;
}

body .salient-blog-custom--featured .salient-blog-custom__meta--column {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
	padding-top: 14px;
}

body .salient-blog-custom--featured .salient-blog-custom__category {
	font-size: 12px;
	padding: 5px 14px;
}

body .salient-blog-custom--featured .salient-blog-custom__date {
	font-size: 12px;
	text-align: right;
}

body .salient-blog-custom--featured .salient-blog-custom__excerpt {
	font-size: 18px;
	line-height: 26px;
	margin-bottom: 18px;
}

body .salient-blog-custom--featured .salient-blog-custom__read-more {
	font-size: 18px;
	line-height: 26px;
}

/* --- SECONDARY 479×239 --- */
body .salient-blog-custom--secondary .salient-blog-custom__card {
	border-radius: 13px;
	padding: 18px;
	min-height: 239px;
}

body .salient-blog-custom--secondary .salient-blog-custom__secondary-inner {
	display: flex;
	gap: 22px;
	align-items: flex-start;
}

body .salient-blog-custom--secondary .salient-blog-custom__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 203px;
}

body .salient-blog-custom--secondary .salient-blog-custom__title {
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 12px;
}

body .salient-blog-custom--secondary .salient-blog-custom__excerpt {
	font-size: 12px;
	line-height: 1.45;
	margin-bottom: auto;
	flex: 1;
}

body .salient-blog-custom--secondary .salient-blog-custom__read-more {
	font-size: 12px;
	margin-top: 12px;
}

body .salient-blog-custom--secondary .salient-blog-custom__arrow {
	width: 6px;
	height: 6px;
	border-width: 1px;
}

body .salient-blog-custom--secondary .salient-blog-custom__media {
	flex-shrink: 0;
	width: 188px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

body .salient-blog-custom--secondary .salient-blog-custom__meta--row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	width: 100%;
}

body .salient-blog-custom--secondary .salient-blog-custom__category {
	font-size: 10px;
	padding: 3px 10px;
}

body .salient-blog-custom--secondary .salient-blog-custom__date {
	font-size: 10px;
}

body .salient-blog-custom--secondary .salient-blog-custom__image-link--secondary {
	width: 188px;
	line-height: 0;
}

body .salient-blog-custom--secondary .salient-blog-custom__image {
	width: 100%;
	height: 100%;
	border-radius: 7px;
	object-fit: cover;
	margin: 0 !important;
}

/* --- GRID 404×511 --- */
body .salient-blog-custom--grid .salient-blog-custom__card {
	border-radius: 21px;
	padding: 18px 19px 24px;
}

body .salient-blog-custom--grid .salient-blog-custom__image {
	height: 186px;
	border-radius: 13px;
	margin: 0 !important;
}

body .salient-blog-custom--grid .salient-blog-custom__body {
	padding-top: 16px;
}

body .salient-blog-custom--grid .salient-blog-custom__meta {
	margin-bottom: 12px;
}

body .salient-blog-custom--grid .salient-blog-custom__category,
body .salient-blog-custom--grid .salient-blog-custom__date {
	font-size: 10px;
}

body .salient-blog-custom--grid .salient-blog-custom__title {
	font-size: 20px;
	line-height: 1.2;
	margin-bottom: 12px;
}

body .salient-blog-custom--grid .salient-blog-custom__excerpt {
	font-size: 16px;
	line-height: 24px;
	margin-bottom: 16px;
}

body .salient-blog-custom--grid .salient-blog-custom__read-more {
	font-size: 18px;
	line-height: 26px;
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */
body .post-area > #pagination {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	margin: 48px auto 24px !important;
	padding: 0 !important;
	float: none !important;
	clear: both !important;
}

body .post-area > #pagination ul.page-numbers {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

body .post-area > #pagination ul.page-numbers li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	display: inline-flex !important;
}

body .post-area > #pagination ul.page-numbers li::before,
body .post-area > #pagination ul.page-numbers li::after {
	display: none !important;
	content: none !important;
}

body .post-area > #pagination .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 6px !important;
	border-radius: 9999px !important;
	font-family: "Noto Sans", sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-sizing: border-box;
	margin: 0 !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body .post-area > #pagination a.page-numbers {
	color: #000 !important;
	background: #ffffff !important;
	border: 1px solid #D7B470 !important;
}

body .post-area > #pagination a.page-numbers:hover {
	background: #FFF3DB !important;
	color: #1D3442 !important;
}

body .post-area > #pagination span.page-numbers.current {
	background: #D7B470 !important;
	color: #ffffff !important;
	border: 1px solid #D7B470 !important;
	cursor: default;
}

body .post-area > #pagination span.page-numbers.dots {
	min-width: auto !important;
	height: auto !important;
	padding: 0 6px !important;
	background: transparent !important;
	border: none !important;
	color: #000 !important;
	font-size: 18px !important;
}

body .post-area > #pagination a.prev.page-numbers,
body .post-area > #pagination a.next.page-numbers {
	font-size: 0 !important;
	color: transparent !important;
	position: relative;
	width: 30px;
	min-width: 30px;
	padding: 0 !important;
}

body .post-area > #pagination a.prev.page-numbers::before,
body .post-area > #pagination a.next.page-numbers::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #1D3442;
	border-left: 2px solid #1D3442;
	transform: translate(-35%, -50%) rotate(-45deg);
}

body .post-area > #pagination a.next.page-numbers::before {
	transform: translate(-65%, -50%) rotate(135deg);
}

body .post-area > #pagination a.prev.page-numbers:hover,
body .post-area > #pagination a.next.page-numbers:hover {
	background: #FFF3DB !important;
}

/* ============================================================
   TABLET — colapsar grid a 1 columna
   ============================================================ */
@media (max-width: 990px) {
	body .post-area .posts-container:has(.salient-blog-custom) {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	body .post-area .posts-container .salient-blog-custom--featured,
	body .post-area .posts-container .salient-blog-custom--secondary:nth-child(2),
	body .post-area .posts-container .salient-blog-custom--secondary:nth-child(3),
	body .post-area .posts-container .salient-blog-custom--grid:nth-child(3n+4),
	body .post-area .posts-container .salient-blog-custom--grid:nth-child(3n+5),
	body .post-area .posts-container .salient-blog-custom--grid:nth-child(3n+6) {
		grid-column: 1 / -1;
		grid-row: auto;
	}
}

/* ============================================================
   MÓVIL — tarjeta única Figma 314×539
   ============================================================ */
@media (max-width: 690px) {
	body .post-area .posts-container:has(.salient-blog-custom) {
		gap: 20px;
		padding: 0;
	}

	/* Todas las tarjetas iguales */
	body .salient-blog-custom--featured .salient-blog-custom__card,
	body .salient-blog-custom--secondary .salient-blog-custom__card,
	body .salient-blog-custom--grid .salient-blog-custom__card {
		border-radius: 21px !important;
		padding: 16px 15px 24px !important;
		min-height: auto !important;
		box-shadow: 6px 11px 15px rgba(0, 0, 0, 0.10) !important;
	}

	/* Imagen */
	body .salient-blog-custom--featured .salient-blog-custom__image,
	body .salient-blog-custom--secondary .salient-blog-custom__image,
	body .salient-blog-custom--grid .salient-blog-custom__image {
		width: 100% !important;
		height: 237px !important;
		border-radius: 10px !important;
	}

	body .salient-blog-custom__image-link {
		margin-bottom: 12px;
	}

	/* Featured móvil: apilar header-row */
	body .salient-blog-custom--featured .salient-blog-custom__body--featured {
		padding-top: 0 !important;
		text-align: center;
	}

	body .salient-blog-custom--featured .salient-blog-custom__header-row {
		flex-direction: column;
		align-items: center;
	}

	body .salient-blog-custom--featured .salient-blog-custom__header-row .salient-blog-custom__title {
		max-width: 100%;
		font-size: 20px !important;
		text-align: center;
	}

	body .salient-blog-custom--featured .salient-blog-custom__meta--column {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		padding-top: 0;
		width: 100%;
	}

	/* Secondary móvil: imagen arriba con meta encima */
	body .salient-blog-custom--secondary .salient-blog-custom__secondary-inner {
		flex-direction: column;
	}

	body .salient-blog-custom--secondary .salient-blog-custom__content {
		max-width: 100%;
		min-height: auto;
		text-align: center;
		align-items: center;
	}

	body .salient-blog-custom--secondary .salient-blog-custom__media {
		width: 100%;
		align-items: center;
		order: -1;
		margin-bottom: 12px;
	}

	body .salient-blog-custom--secondary .salient-blog-custom__meta--row {
		justify-content: center;
	}

	body .salient-blog-custom--secondary .salient-blog-custom__image-link--secondary,
	body .salient-blog-custom--secondary .salient-blog-custom__image {
		width: 100% !important;
	}

	/* Grid móvil */
	body .salient-blog-custom--grid .salient-blog-custom__body {
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	/* Tipografía móvil común */
	body .salient-blog-custom--featured .salient-blog-custom__excerpt,
	body .salient-blog-custom--secondary .salient-blog-custom__excerpt,
	body .salient-blog-custom--grid .salient-blog-custom__excerpt {
		font-size: 16px !important;
		line-height: 24px !important;
		text-align: center;
	}

	body .salient-blog-custom--featured .salient-blog-custom__read-more,
	body .salient-blog-custom--secondary .salient-blog-custom__read-more,
	body .salient-blog-custom--grid .salient-blog-custom__read-more {
		font-size: 18px !important;
		justify-content: center;
		margin: 0 auto;
	}

	body .salient-blog-custom__meta {
		justify-content: center !important;
	}

	body .salient-blog-custom--secondary .salient-blog-custom__title,
	body .salient-blog-custom--grid .salient-blog-custom__title {
		font-size: 20px !important;
		text-align: center;
	}

	body .post-area > #pagination {
		margin-top: 32px !important;
	}
}