/* =============================================================
   FDS Posts Split View – Widget Styles
   ============================================================= */

.fds-psv {
	--psv-accent: #1a1a1a;
	--psv-cat-color: #555;
	--psv-border: #e0e0e0;
	--psv-radius: 6px;
	--psv-thumb-size: 80px;
	font-family: inherit;
	width: 100%;
}

/* ---- Filtros ---- */
.fds-psv__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.fds-psv__filter-btn {
	padding: 6px 16px;
	border: 1px solid var(--psv-border);
	border-radius: 20px;
	background: #fff;
	color: var(--psv-accent);
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	line-height: 1.4;
}

.fds-psv__filter-btn:hover {
	border-color: var(--psv-accent);
}

.fds-psv__filter-btn.is-active {
	background-color: #000;
	color: #fff;
	border-color: #000;
}

/* ---- Layout ---- */
.fds-psv__wrapper {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

/* ---- Detail panel ---- */
.fds-psv__detail {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	transition: opacity 0.25s ease;
}

.fds-psv__detail.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.fds-psv__detail-media {
	position: relative;
	overflow: hidden;
	background: #ddd;
	border-radius: 4px;
	aspect-ratio: 16 / 9.4;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fds-psv__detail-media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.fds-psv__detail-video,
.fds-psv__detail-video iframe,
.fds-psv__detail-video video {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	border-radius: 4px;
}

.fds-psv__detail-video {
	position: relative;
}

.fds-psv__detail-video iframe,
.fds-psv__detail-video video {
	object-fit: cover;
}

.fds-psv__detail-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform: translate(-50%, -50%);
}

.fds-psv__detail-video-play img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: contain;
}

.fds-psv__detail-video-play[hidden] {
	display: none;
}

.fds-psv__detail-media--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
}

.fds-psv__detail-body {
	padding: 16px 12px 4px;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fds-psv__detail-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.fds-psv__detail-tags,
.fds-psv__list-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fds-psv__detail-cat {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--psv-cat-color);
}

.fds-psv__detail-location {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	color: #000;
}

.fds-psv__detail-location svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.fds-psv__tag-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 24px;
	background: #f9f9f9;
	box-sizing: border-box;
	color: #000;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
}

.fds-psv__detail-tags {
	width: auto;
}

.fds-psv__detail-title {
	max-width: 760px;
	margin: 0 0 16px;
	color: #2f2f2f;
	font-family: "Open Sans", sans-serif;
	font-size: 24px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0;
}

.fds-psv__detail-excerpt {
	font-size: 0.92rem;
	line-height: 1.6;
	color: #444;
	margin: 0 0 14px;
}

.fds-psv__detail-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 0;
}

.fds-psv__detail-author {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 620px;
}

.fds-psv__detail-author-name {
	margin-top: 0;
	margin-bottom: 0;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 24px;
	letter-spacing: 0;
	color: var(--psv-accent);
}

.fds-psv__detail-author-role {
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: var(--psv-accent);
	font-weight: 400;
}

.fds-psv__detail-author-name > *:first-child,
.fds-psv__detail-author-role > *:first-child,
.fds-psv__overlay-card-value > *:first-child {
	margin-top: 0;
}

.fds-psv__detail-author-name > *:last-child,
.fds-psv__detail-author-role > *:last-child,
.fds-psv__overlay-card-value > *:last-child {
	margin-bottom: 0;
}

.fds-psv__overlay-card-value > p {
		margin: 10px 0 0;
}

.fds-psv__detail-more {
	display: flex;
	align-items: flex-end;
	margin-left: auto;
	padding-bottom: 2px;
}

/* ---- More button ---- */
.fds-psv__more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 125px;
	height: 44px;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-top-right-radius: 12px;
	border-bottom-left-radius: 12px;
	background: #1734a6;
	color: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0;
	cursor: pointer;
	white-space: nowrap;
	-webkit-user-select: none;
	user-select: none;
}

/* ---- Overlay ---- */
.fds-psv__more-icon {
	transition: transform 0.25s ease;
}

.fds-psv__detail.is-overlay-open .fds-psv__more-icon {
	transform: rotate(180deg);
}

.fds-psv__detail.is-overlay-open > .fds-psv__detail-media,
.fds-psv__detail.is-overlay-open > .fds-psv__detail-body {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.fds-psv__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: none;
	padding: 14px;
	border-radius: 16px;
	background: #f7c534;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
	box-sizing: border-box;
}

.fds-psv__overlay.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	bottom: auto;
	min-height: 100%;
}

.fds-psv__overlay-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
	padding: 52px 44px 40px;
	box-sizing: border-box;
	width: 100%;
}

.fds-psv__overlay-close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #1f2b4d;
	cursor: pointer;
	padding: 0;
}

.fds-psv__overlay-title {
	max-width: 100%;
	margin: 0 auto 42px;
	color: #2f2f2f;
	text-align: center;
	width: 100%;
}

.fds-psv__overlay-title > *:first-child {
	margin-top: 0;
}

.fds-psv__overlay-title > *:last-child {
	margin-bottom: 0;
}

.fds-psv__overlay-title h1,
.fds-psv__overlay-title h2,
.fds-psv__overlay-title h3,
.fds-psv__overlay-title h4,
.fds-psv__overlay-title h5,
.fds-psv__overlay-title h6 {
	width: 100%;
	max-width: 600px;
	margin: 0 auto 12px;
	color: #2f2f2f;
	font-family: "Open Sans", sans-serif;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0;
	text-align: center;
}

.fds-psv__overlay-title p {
	margin: 0 auto 10px;
	max-width: 650px;
	color: #2f2f2f;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	letter-spacing: 0;
	text-align: center;
}

.fds-psv__overlay-title em,
.fds-psv__overlay-title i {
	font-style: normal;
}

.fds-psv__overlay-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 42px;
}

.fds-psv__overlay-card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	align-self: flex-start;
	min-height: 125px;
	gap: 24px;
	margin-bottom: 30px;
	color: #1f2b4d;
}

.fds-psv__overlay-card-icon {
	flex: 0 0 15%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
}

.fds-psv__overlay-card-icon img {
	display: block;
	object-fit: contain;
}

.fds-psv__overlay-card-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fds-psv__overlay-card-title {
	margin: 0;
	font-family: "Aleo", serif;
	font-size: 24px;
	line-height: 120%;
	font-weight: 600;
	letter-spacing: 0;
	margin-top: 0px;
}

.fds-psv__overlay-card-value {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #111;
	white-space: pre-line;
	line-height: 1.7rem;
}

.fds-psv__read-more {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--psv-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- List panel ---- */
.fds-psv__list {
	width: 420px;
	flex: 0 0 420px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 560px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

.fds-psv__list::-webkit-scrollbar {
	width: 4px;
}

.fds-psv__list::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.fds-psv__list-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px;
	cursor: pointer;
	transition: background 0.18s;
	border-radius: var(--psv-radius);
}

.fds-psv__list-item:last-child {
	border-bottom: none;
}

.fds-psv__list-item:hover,
.fds-psv__list-item.is-active {
	background-color: #f5f5f5;
}

.fds-psv__list-item.is-hidden {
	display: none;
}

/* ---- List thumbnail ---- */
.fds-psv__list-thumb {
	width: var(--psv-thumb-size, 80px);
	height: var(--psv-thumb-size, 80px);
	flex-shrink: 0;
	overflow: hidden;
	background: #ddd;
}

.fds-psv__list-thumb img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 8px !important;
}

.fds-psv__list-video,
.fds-psv__list-video iframe,
.fds-psv__list-video video {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	border-radius: 8px !important;
	pointer-events: none;
}

.fds-psv__list-video iframe,
.fds-psv__list-video video {
	object-fit: cover;
}

.fds-psv__list-thumb--placeholder {
	background: linear-gradient(135deg, #e8e8e8, #c8c8c8);
}

/* ---- List content ---- */
.fds-psv__list-content {
	flex: 1;
	min-width: 0;
}

.fds-psv__list-cat {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--psv-cat-color);
	margin-bottom: 4px;
}

.fds-psv__list-title {
	font-family: "Open Sans", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 100%;
	margin: 0 0 8px;
	color: var(--psv-accent);
	letter-spacing: 0;

	/* Truncar a 4 líneas */
	display: -webkit-box;
	line-clamp: 4;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fds-psv__list-author {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fds-psv__list-author-name {
	color: #2f2f2f;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 700;
}

.fds-psv__list-author-role {
	color: #575757;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 100%;
	font-weight: 500;
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.fds-psv__list-author-name > *:first-child,
.fds-psv__list-author-role > *:first-child {
	margin-top: 0;
}

.fds-psv__list-author-name > *:last-child,
.fds-psv__list-author-role > *:last-child {
	margin-bottom: 0;
}

.fds-psv__list-tags {
	margin-top: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 1240px) and (min-width: 1025px) {
	.fds-psv__overlay-inner {
		padding: 32px 24px 24px;
	}
	.fds-psv__overlay-card-content {
		display: inline-flex;
	}
}

@media (max-width: 1024px) and (min-width: 641px) {
	.fds-psv__list {
		flex: 0 0 260px;
	}

	.fds-psv__list-item {
		display: block;
	}

	.fds-psv__list-thumb {
		width: 100%;
		aspect-ratio: 16 / 9;
		height: auto;
		margin-bottom: 8px;
	}

	.fds-psv__overlay-inner {
		padding: 0;
	}
	
	.fds-psv__overlay-card-value {
		line-height: 1.5em;
	}
	
	.fds-psv__overlay-card-value > p{
		margin: 8px 0 0;
	}
}

@media (max-width: 992px) {
	.fds-psv__overlay-title {
		margin: 0 auto 24px;
	}

	.fds-psv__overlay-title h1,
	.fds-psv__overlay-title h2,
	.fds-psv__overlay-title h3,
	.fds-psv__overlay-title h4,
	.fds-psv__overlay-title h5,
	.fds-psv__overlay-title h6 {
		font-size: 24px;
	}

	.fds-psv__overlay-title p {
		font-size: 12px;
		line-height: 21px;
	}

	.fds-psv__overlay-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.fds-psv__overlay-card-title {
		font-size: 18px;
	}

	.fds-psv__overlay-card-value {
		font-size: 12px;
	}
	
	.fds-psv__overlay-card-value > p{
		margin: 8px 0 0;
	}

	.fds-psv__overlay-card {
		width: auto;
		min-height: auto;
		padding: 4px 0;
	}
}

@media (max-width: 767px) {
	.fds-psv__wrapper {
		flex-wrap: wrap-reverse;
	}

	.fds-psv__detail,
	.fds-psv__list {
		max-width: 100% !important;
		flex: 1 1 100%;
	}

	.fds-psv__list {
		max-height: 320px;
	}

	.fds-psv__detail-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.fds-psv__detail-more {
		margin-left: 0;
	}

	.fds-psv__overlay {
		padding: 12px;
	}

	.fds-psv__overlay-inner {
		padding: 0;
	}

	.fds-psv__overlay-title {
		max-width: 100%;
		margin: 0 auto 12px;
	}

	.fds-psv__overlay-card {
		width: 100%;
		min-height: 0;
		padding: 12px 0;
		gap: 16px;
	}
}
