/* ---- Dots del carrusel ---- */
.fds-ps__carousel-dots {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	margin: 0 12px;
}
.fds-ps__carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #d0d0d0;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	display: inline-block;
}
.fds-ps__carousel-dot.is-active {
	background: #002395;
	width: 24px;
	border-radius: 12px;
	transform: scale(1.0);
}
/* =============================================================
   FDS Posts Split View – Widget Styles
   ============================================================= */

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

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

.fds-ps__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-ps__filter-btn:hover {
	border-color: var(--psv-accent);
}

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

/* ---- Wrapper (los dos paneles) ---- */
.fds-ps__wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

/* ---- Panel DETALLE (izquierda) ---- */
.fds-ps__detail {
	width: 65%;
	flex-shrink: 0;
	transition: opacity 0.25s ease;
}

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

.fds-ps__detail-media {
	position: relative;
	overflow: hidden;
	background: #ddd;
	aspect-ratio: 16/8;
}

.fds-ps__detail-media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: var(--psv-radius);
}

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

.fds-ps__detail-body {
	padding: 18px 12px 8px;
}

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

.fds-ps__detail-tags,
.fds-ps__list-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

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

.fds-ps__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-ps__detail-location svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.fds-ps__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-ps__detail-tags {
	width: auto;
}

.fds-ps__detail-title {
	font-size: 32px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 10px;
	max-width: 820px;
	color: var(--psv-accent);
}

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

.fds-ps__detail-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e0e0e0;
}

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

.fds-ps__detail-author-name {
	margin-top: 12px;
	margin-bottom: 12px;
	font-weight: 600;
	font-size: 24px;
	line-height: 20px;
	color: var(--psv-accent);
}

.fds-ps__detail-author-role {
	font-size: 16px;
	line-height: 20px;
	color: var(--psv-accent);
	font-weight: 400;
}

.fds-ps__detail-more {
	margin-left: auto;
}

/* Botón "Más info" */
.fds-ps__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	font-size: 18px;
	line-height: 20px;
	font-weight: 700;
	cursor: pointer;
	color: var(--psv-accent);
	transition: opacity 0.2s;
	white-space: nowrap;
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
}

.fds-ps__more-btn:hover {
	opacity: 0.7;
}

.fds-ps__more-icon {
	transition: transform 0.25s ease;
}

.fds-ps__more-btn[aria-expanded="true"] .fds-ps__more-icon {
	transform: rotate(180deg);
}

.fds-ps__more-content {
	display: none;
	padding-top: 28px;
}

.fds-ps__more-content.is-open {
	display: block;
}

.fds-ps__impact-title {
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--psv-accent);
}

.fds-ps__impact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.fds-ps__impact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 145px;
	padding: 24px 20px;
	border-radius: 0px 36px;
	background: #1734a6;
	color: #fff;
	text-align: center;
}

.fds-ps__impact-value {
	font-size: 52px;
	line-height: 1;
	font-weight: 400;
}

.fds-ps__impact-divider {
	display: block;
	width: 20px;
	height: 3px;
	margin: 16px 0 12px;
	border-radius: 999px;
	background: currentColor;
}

.fds-ps__impact-label {
	font-size: 16px;
	line-height: 1.25;
	font-weight: 400;
}

.fds-ps__evidences-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: #1734a6;
	color: #fff;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	text-decoration: none;
}

.fds-ps__evidences-btn:hover {
	color: #fff;
	opacity: 0.92;
}

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

/* ---- Panel LISTA (derecha) ---- */
.fds-ps__list {
	width: 35%;
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 480px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

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

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

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

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

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

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

.fds-ps__list-thumb img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

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

/* Contenido del ítem */
.fds-ps__list-content {
	flex: 1;
	min-width: 0;
}

.fds-ps__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-ps__list-title {
	font-size: 14px;
	font-style: italic;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
	color: var(--psv-accent);
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

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

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.fds-ps__wrapper {
		flex-direction: column;
	}

	.fds-ps__detail,
	.fds-ps__list {
		width: 100% !important;
	}

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

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

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

	.fds-ps__impact-grid {
		grid-template-columns: 1fr;
	}
}

/* === Tarjetas tipo slider adaptadas === */
.fds-ps__card-item {
  flex: 0 0 55vw;
  min-width: 55vw;
  max-width: 900px;
  margin: 0 24px 0 0;
  position: relative;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  display: flex;
  overflow: visible;
}
.fds-ps__card-img {
  width: 100%;
  height: 41vw;
  max-height: 520px;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #e0e0e0 !important;
}
.fds-ps__card-content {
  background: #fff;
  padding: 18px 5px 0 ;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fds-ps__card-quote-text {
  font-size: 32px;
  font-style: italic;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}
.fds-ps__card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.fds-ps__card-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.fds-ps__card-author {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 0;
}
.fds-ps__card-role {
  font-size: 16px;
  color: #444;
  font-weight: 400;
}
.fds-ps__card-meta-right {
  display: flex;
  align-items: flex-end;
}
.fds-ps__card-more {
	    background-color: #002395;
    border-radius: 0px 12px 0px 12px;
  color: #fff;
  padding: 10px 22px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: background 0.2s;
  align-self: flex-end;
  font-size: 1em;
}
.fds-ps__card-more:hover {
  background: #0a1a6a;
}
.fds-ps__carousel {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  position: relative;
  align-items: stretch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fds-ps__carousel::-webkit-scrollbar {
  display: none;
}
.fds-ps__arrow {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  color: #1133ee;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  opacity: 0.92;
}
.fds-ps__carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: static;
}
