/* ESTB Rejilla Filtrable v1.0.0 */
.estb-fg {
	--estb-fg-head-gap: 40px;
	--estb-fg-lift: 0px;
	color: #123A4A;
}

/* ---------- Encabezado + filtros ---------- */
.estb-fg__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-bottom: var(--estb-fg-head-gap);
}
.estb-fg__heading {
	margin: 0;
	flex: 1 1 380px;
	min-width: 0;
	line-height: 1.15;
}
.estb-fg__heading-main {
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: #123A4A;
}
.estb-fg__heading-sub {
	font-size: 26px;
	font-weight: 400;
	color: #4C6670;
	margin-left: .25em;
	display: inline-block;
}

.estb-fg__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}
.estb-fg .estb-fg__filter {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: .35em;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid #C9D9DD;
	border-radius: 999px;
	background-color: transparent;
	color: #123A4A;
	font-family: inherit;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.estb-fg .estb-fg__filter:hover { border-color: #123A4A; background-color: transparent; color: #123A4A; }
.estb-fg .estb-fg__filter.is-active { background-color: #123A4A; border-color: #123A4A; color: #FFFFFF; }
.estb-fg .estb-fg__filter:focus-visible { outline: 2px solid #E1464E; outline-offset: 2px; }

/* ---------- Rejilla ---------- */
.estb-fg__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}
.estb-fg .estb-fg__card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 260px;
	padding: 40px;
	background-color: #FFFFFF;
	border: 1px solid #E8E9E4;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.estb-fg .estb-fg__card:hover { transform: translateY(var(--estb-fg-lift)); }
.estb-fg .estb-fg__card.is-link:hover { border-color: #C9D9DD; }
.estb-fg .estb-fg__card.is-link:focus-visible { outline: 2px solid #E1464E; outline-offset: 2px; }
.estb-fg .estb-fg__card[hidden] { display: none !important; }

.estb-fg__card.is-entering { animation: estb-fg-in .35s ease both; }
.estb-fg[data-anim="fade"] .estb-fg__card.is-entering { animation-name: estb-fg-fade; }
.estb-fg[data-anim="none"] .estb-fg__card.is-entering { animation: none; }
@keyframes estb-fg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes estb-fg-fade { from { opacity: 0; } to { opacity: 1; } }

.estb-fg__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 8px;
}
.estb-fg__num {
	font-size: 20px;
	font-weight: 600;
	color: #E1464E;
	font-variant-numeric: tabular-nums;
}
.estb-fg__badge {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #4C6670;
	text-align: right;
}
.estb-fg__title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.22;
	color: #123A4A;
}
.estb-fg__sub {
	font-size: 18px;
	line-height: 1.35;
	color: #4C6670;
	margin-bottom: 4px;
}
.estb-fg__text {
	margin: 0;
	font-size: 20px;
	line-height: 1.6;
	color: #123A4A;
}
.estb-fg__text-en {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #4C6670;
}

.estb-fg__live {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.estb-fg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.estb-fg__heading-main { font-size: 36px; }
	.estb-fg__heading-sub { font-size: 21px; }
	.estb-fg .estb-fg__card { padding: 32px; }
	.estb-fg__title { font-size: 26px; }
	.estb-fg__text { font-size: 18px; }
}
@media (max-width: 767px) {
	.estb-fg__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.estb-fg__head { flex-direction: column; align-items: stretch; min-width: 0; }
	.estb-fg { min-width: 0; max-width: 100%; }
	.estb-fg__filters { justify-content: flex-start; }
	.estb-fg__heading { flex-basis: auto; }
	.estb-fg__heading-main { font-size: 30px; }
	.estb-fg__heading-sub { display: block; margin-left: 0; margin-top: 6px; font-size: 18px; }
	.estb-fg__heading-sub > span[aria-hidden] { display: none; }
	.estb-fg .estb-fg__filter { min-height: 44px; padding: 0 18px; font-size: 15px; }
	.estb-fg-mscroll-yes .estb-fg__filters {
		flex-wrap: nowrap;
		justify-content: flex-start !important;
		overflow-x: auto;
		min-width: 0;
		max-width: 100%;
		padding: 2px 0 6px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.estb-fg-mscroll-yes .estb-fg__filters::-webkit-scrollbar { display: none; }
	.estb-fg .estb-fg__card { min-height: 0; padding: 28px 24px; }
	.estb-fg__title { font-size: 24px; }
	.estb-fg__text { font-size: 17px; }
	.estb-fg__num { font-size: 17px; }
	.estb-fg__badge { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.estb-fg .estb-fg__card, .estb-fg .estb-fg__filter { transition: none !important; }
	.estb-fg .estb-fg__card:hover { transform: none; }
	.estb-fg__card.is-entering { animation: none !important; }
}
