/* Fusión Portada: portada y secciones.
   Colores del logo: verde azulado #5cabac y naranja #e77721.
   Para texto se usan tonos más oscuros (#2a7071, #c4580f) por contraste. */

.frp {
	--frp-ink: #16201f;
	--frp-soft: #44504e;
	--frp-muted: #5d6866;
	--frp-line: #eceeea;
	--frp-ground: #f4f5f2;
	--frp-teal: #5cabac;
	--frp-teal-text: #2a7071;
	--frp-tint: #e4f2f2;
	--frp-deep: #1d4f50;
	--frp-orange: #e77721;
	--frp-orange-text: #c4580f;
	--frp-head: 'Plus Jakarta Sans', 'Open Sans', system-ui, sans-serif;
	display: block;
	background: var(--frp-ground);
	color: var(--frp-ink);
	font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	padding: 28px 0 48px;
}
.frp *,
.frp *::before,
.frp *::after { box-sizing: border-box; }
.frp a { color: inherit; text-decoration: none; }
.frp .frp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.frp a:hover { color: var(--frp-teal-text); }
.frp a:focus-visible,
.frp button:focus-visible { outline: 3px solid var(--frp-orange); outline-offset: 2px; border-radius: 4px; }

.frp-wrap {
	max-width: 1188px; /* 1140 de contenido + 24 px de margen a cada lado, igual que la cabecera */
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.frp-panel {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(16, 57, 59, .06);
}
.frp .frp-h {
	margin: 0 0 4px;
	font-family: var(--frp-head);
	font-size: 18px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--frp-ink);
	text-transform: none;
	letter-spacing: 0;
}

/* ---------- Tarjeta base ---------- */
.frp-card { min-width: 0; }
.frp-card__img {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #dde3e0;
}
.frp-card__img img,
.frp-card__img .frp-noimg {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform .4s ease;
}
.frp-card__img .frp-noimg {
	background: linear-gradient(135deg, var(--frp-tint), #fdeee2);
}
.frp-card:hover .frp-card__img img { transform: scale(1.03); }
.frp-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.frp .frp-cat {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--frp-teal-text);
}
.frp .frp-cat--pill {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 12px;
	border-radius: 13px;
	background: var(--frp-tint);
}
.frp .frp-card__title {
	margin: 0;
	padding: 0;
	font-family: var(--frp-head);
	font-weight: 700;
	color: var(--frp-ink);
	text-transform: none;
	letter-spacing: -.2px;
	overflow-wrap: break-word;
}
.frp .frp-card__title a { color: inherit; }
.frp .frp-card__ex {
	margin: 0;
	color: var(--frp-soft);
	font-size: 15px;
	line-height: 1.5;
}
.frp .frp-meta {
	font-size: 13px;
	color: var(--frp-muted);
}

/* ---------- Escritorio y tableta ---------- */
@media (min-width: 768px) {
	.frp-wrap { padding: 0 24px; }

	.frp-top {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}

	/* Principal */
	.frp-d-lead {
		background: #fff;
		border-radius: 20px;
		padding: 16px 16px 26px;
		box-shadow: 0 1px 2px rgba(16, 57, 59, .06);
		display: flex;
		flex-direction: column;
		gap: 14px;
	}
	.frp-d-lead .frp-card__img { aspect-ratio: 16 / 9; border-radius: 14px; }
	.frp-d-lead .frp-card__body { padding: 0 10px; gap: 12px; }
	.frp .frp-d-lead .frp-card__title { font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -.8px; }
	.frp .frp-d-lead .frp-card__ex { font-size: 18px; line-height: 1.6; }

	/* Lista lateral: titular a la izquierda, foto a la derecha */
	.frp-side { padding: 22px 22px 8px; }
	.frp-d-list {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 104px;
		grid-template-areas: "body img";
		gap: 14px;
		padding: 18px 0;
		border-bottom: 1px solid var(--frp-line);
	}
	.frp-d-list:last-child { border-bottom: 0; }
	.frp-d-list .frp-card__img { grid-area: img; height: 80px; }
	.frp-d-list .frp-card__body { grid-area: body; }
	.frp .frp-d-list .frp-card__title { font-size: 16px; line-height: 1.35; }

	/* Fila de cuatro */
	.frp-tiles {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}
	.frp-d-tile {
		background: #fff;
		border-radius: 18px;
		padding: 10px 10px 18px;
		box-shadow: 0 1px 2px rgba(16, 57, 59, .06);
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.frp-d-tile .frp-card__img { aspect-ratio: 16 / 10; }
	.frp-d-tile .frp-card__body { padding: 0 6px; }
	.frp .frp-d-tile .frp-card__title { font-size: 17px; line-height: 1.35; }

	/* Más noticias / listado de sección: foto a la izquierda */
	.frp-more,
	.frp-list { padding: 22px 26px 26px; }
	.frp-more__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 36px;
	}
	.frp-d-row {
		display: grid;
		grid-template-columns: 180px minmax(0, 1fr);
		grid-template-areas: "img body";
		gap: 18px;
		padding: 18px 0;
		border-bottom: 1px solid var(--frp-line);
		align-items: start;
	}
	.frp-d-row .frp-card__img { grid-area: img; height: 116px; }
	.frp-d-row .frp-card__body { grid-area: body; }
	.frp .frp-d-row .frp-card__title { font-size: 18px; line-height: 1.35; }
	.frp-list .frp-d-row { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; padding: 20px 0; }
	.frp-list .frp-d-row .frp-card__img { height: 132px; }
	.frp .frp-list .frp-d-row .frp-card__title { font-size: 19px; line-height: 1.3; }
	.frp-list .frp-d-row:first-child { padding-top: 4px; }

	.frp .frp-h--desk { display: block; }
}

@media (min-width: 768px) and (max-width: 1018px) {
	.frp-top { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
	.frp .frp-d-lead .frp-card__title { font-size: 30px; }
	.frp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.frp-more__list { grid-template-columns: minmax(0, 1fr); }
	.frp-cols { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.frp { padding: 16px 0 32px; }
	.frp-wrap { padding: 0 12px; gap: 14px; }
	.frp-top,
	.frp-tiles,
	.frp-side,
	.frp-more__list,
	.frp-list {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}
	.frp-panel.frp-side,
	.frp-panel.frp-list {
		background: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
	}
	.frp-more { background: none; box-shadow: none; padding: 0; }
	.frp-more .frp-h { padding: 6px 4px 0; }
	.frp .frp-h--desk { display: none; }

	.frp-card {
		background: #fff;
		border-radius: 20px;
		box-shadow: 0 1px 2px rgba(16, 57, 59, .06);
	}
	.frp-m-lead,
	.frp-m-big {
		padding: 10px 10px 18px;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.frp-m-lead .frp-card__img { aspect-ratio: 16 / 10; border-radius: 14px; }
	.frp-m-big .frp-card__img { aspect-ratio: 16 / 9; border-radius: 14px; }
	.frp-m-lead .frp-card__body,
	.frp-m-big .frp-card__body { padding: 0 8px; gap: 8px; }
	.frp .frp-m-lead .frp-card__title { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
	.frp .frp-m-lead .frp-card__ex {
		font-size: 16px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.frp .frp-m-big .frp-card__title { font-size: 21px; line-height: 1.25; letter-spacing: -.3px; }
	.frp .frp-m-big .frp-card__ex { display: none; }

	.frp-m-small {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 96px;
		grid-template-areas: "body img";
		gap: 12px;
		padding: 14px 14px 14px 16px;
		align-items: start;
	}
	.frp-m-small .frp-card__img { grid-area: img; height: 76px; }
	.frp-m-small .frp-card__body { grid-area: body; gap: 5px; }
	.frp .frp-m-small .frp-card__title { font-size: 16px; line-height: 1.35; }
	.frp .frp-m-small .frp-card__ex { display: none; }
}

/* ---------- Publicidad ---------- */
.frp-ad:empty,
.frp-ad:not(:has(.fa-ad)) { display: none; }
.frp-ad .fa-slot { margin: 0 auto; text-align: center; }
.frp-ad img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------- Botones ---------- */
.frp .frp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-height: 48px;
	margin: 24px auto 0;
	padding: 0 30px;
	border: 0;
	border-radius: 24px;
	background: var(--frp-deep);
	color: #fff;
	font: 700 15px/1 'Open Sans', system-ui, sans-serif;
	cursor: pointer;
	transition: background .15s ease;
}
.frp .frp-btn:hover { background: #163e3f; }
.frp .frp-btn[disabled] { opacity: .7; cursor: default; }
@media (max-width: 767px) {
	.frp .frp-btn { width: 100%; margin-top: 6px; }
}

/* ---------- Sección ---------- */
.frp-shead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.frp-shead__t { display: flex; flex-direction: column; gap: 8px; }
.frp-crumbs { font-size: 13px; color: var(--frp-muted); }
.frp .frp-stitle {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--frp-head);
	font-size: 44px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -1px;
	color: var(--frp-ink);
	text-transform: none;
}
.frp-dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--frp-orange);
}
.frp .frp-sdesc { margin: 0; font-size: 15px; color: var(--frp-muted); }
.frp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.frp .frp-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #dfe3df;
	font-size: 14px;
	font-weight: 700;
	color: var(--frp-ink);
}
.frp .frp-chips a:hover { border-color: var(--frp-teal); color: var(--frp-ink); }
.frp .frp-chips a.is-current { background: var(--frp-deep); border-color: var(--frp-deep); color: #fff; }

.frp-cols {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.frp-aside { padding: 22px 22px 10px; }
.frp-rank {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: frp;
}
.frp-rank li {
	counter-increment: frp;
	display: flex;
	gap: 14px;
	padding: 14px 0;
	margin: 0;
	border-bottom: 1px solid var(--frp-line);
	font-family: var(--frp-head);
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
}
.frp-rank li:last-child { border-bottom: 0; }
.frp-rank li::before {
	content: counter(frp);
	flex: none;
	width: 22px;
	font-size: 26px;
	line-height: 1;
	font-weight: 800;
	color: var(--frp-orange-text);
}

.frp-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 24px;
}
.frp-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 22px;
	border: 1px solid #dfe3df;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: var(--frp-ink);
}
.frp-pages .page-numbers.current { background: var(--frp-deep); border-color: var(--frp-deep); color: #fff; }
.frp-pages .page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0 4px; }
.frp-empty { padding: 40px 0; font-size: 17px; color: var(--frp-muted); }

@media (max-width: 767px) {
	.frp .frp-stitle { font-size: 32px; gap: 10px; }
	.frp-dot { width: 11px; height: 11px; }
	.frp-shead { padding: 4px 4px 0; gap: 14px; }
	.frp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.frp-chips::-webkit-scrollbar { display: none; }
	.frp .frp-chips a { flex: none; }
	.frp-cols { display: flex; flex-direction: column; gap: 14px; }
	.frp-pages { justify-content: center; padding-top: 10px; }
}
