/**
 * Estilos generales de Comunidad FME sobre BuddyX.
 *
 * Esta carpeta se mantiene fuera de assets/css porque BuddyX reserva esa ruta
 * para resolver sus propios recursos desde el tema padre.
 */

:root {
	--fme-color-primary: #08a5a8;
	--fme-color-primary-hover: #078b8e;
	--fme-color-education: #662d8f;
	--fme-color-education-hover: #552578;
	--fme-color-social: #e73459;
	--fme-color-social-hover: #c92b4d;
	--fme-color-sidebar: #e9f5f5;
	--fme-color-heading: #172238;
	--fme-header-height: 88px;
	--fme-sidebar-width: clamp(300px, 23vw, 390px);

	/* Color primario global de BuddyX y BuddyBoss Platform. */
	--bx-color-accent: #08a5a8;
	--bx-color-accent-hover: #078b8e;
	--bx-color-accent-active: #06777a;
	--bx-color-accent-bg: #e5f6f6;
	--bx-color-accent-bg-strong: #c9ecec;
	--bx-color-accent-border: #08a5a8;
	--bx-color-accent-fill: #08a5a8;
	--bx-color-accent-focus: rgba(8, 165, 168, .22);
	--bx-color-link-hover: #078b8e;
	--bx-color-menu-hover: #08a5a8;
	--bx-color-menu-active: #08a5a8;
	--bx-color-button-bg: #08a5a8;
	--bx-color-button-bg-hover: #078b8e;
	--bx-color-button-border: #08a5a8;
	--bx-color-button-border-hover: #078b8e;
	--bx-color-input-focus-border: #08a5a8;
	--color-theme-primary: #08a5a8;
	--button-background-color: #08a5a8;
	--button-background-hover-color: #078b8e;
	--button-border-color: #08a5a8;
	--button-border-hover-color: #078b8e;
	--bb-rl-primary-color: #08a5a8;
	--bb-rl-brand-primary-color: #08a5a8;
	--bb-rl-background-brand-primary-color: #08a5a8;
	--bb-rl-background-brand-primary-hover-color: #078b8e;
	--bb-rl-border-brand-primary-color: #08a5a8;
	--bb-rl-text-brand-primary-color: #08a5a8;
	--bb-rl-icon-brand-primary-color: #08a5a8;
}

/* Respaldo para componentes antiguos de BuddyBoss que fijan el rojo del tema. */
body.fme-portal-layout #buddypress input[type="submit"],
body.fme-portal-layout #buddypress input[type="button"],
body.fme-portal-layout #buddypress button.button,
body.fme-portal-layout #buddypress a.button,
body.fme-portal-layout .activity-list .load-more a,
body.fme-portal-layout .activity-list .load-newest a,
body.fme-portal-layout .search-form .search-submit {
	border-color: var(--fme-color-primary) !important;
	background-color: var(--fme-color-primary) !important;
	color: #fff !important;
}

body.fme-portal-layout #buddypress input[type="submit"]:hover,
body.fme-portal-layout #buddypress input[type="button"]:hover,
body.fme-portal-layout #buddypress button.button:hover,
body.fme-portal-layout #buddypress a.button:hover,
body.fme-portal-layout .activity-list .load-more a:hover,
body.fme-portal-layout .activity-list .load-newest a:hover,
body.fme-portal-layout .search-form .search-submit:hover {
	border-color: var(--fme-color-primary-hover) !important;
	background-color: var(--fme-color-primary-hover) !important;
}

body.fme-portal-layout input:focus,
body.fme-portal-layout textarea:focus,
body.fme-portal-layout select:focus {
	border-color: var(--fme-color-primary) !important;
	box-shadow: 0 0 0 2px rgba(8, 165, 168, .18) !important;
	outline: 0;
}

/* Acciones de cada publicación: conserva dos botones separados. */
body.fme-portal-layout .activity-list .activity-item .activity-content > .activity-meta.action {
	gap: 10px;
}

body.fme-portal-layout .activity-list.bp-list .activity-item .activity-content > .activity-meta.action .generic-button {
	margin-right: 0;
}

/* Pie del editor actualizado de BuddyBoss. */
body.fme-portal-layout #activity-form-submit-wrapper {
	gap: 14px;
}

body.fme-portal-layout #whats-new-form.activity-form.has-draft #discard-draft-activity,
body.fme-portal-layout #buddypress input#aw-whats-new-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	height: 34px;
	min-height: 34px;
	padding: 0 20px !important;
	box-sizing: border-box;
	font-size: 14px !important;
	font-weight: 500;
	line-height: 1 !important;
}

body.fme-portal-layout #whats-new-form.activity-form.has-draft #discard-draft-activity {
	border: 1px solid var(--fme-color-primary) !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--fme-color-primary) !important;
	white-space: nowrap;
}

body.fme-portal-layout #whats-new-form.activity-form.has-draft #discard-draft-activity:hover,
body.fme-portal-layout #whats-new-form.activity-form.has-draft #discard-draft-activity:focus {
	background: #eef9f9 !important;
	border-color: var(--fme-color-primary-hover) !important;
	color: var(--fme-color-primary-hover) !important;
}

/* Estructura general */
body.fme-portal-layout {
	background: #f7f9fc;
	color: #172238;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 27px !important;
}

body.fme-portal-layout .activity-list .activity-content,
body.fme-portal-layout .activity-list .activity-content p,
body.fme-portal-layout .activity-list .activity-inner {
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
}

body.fme-portal-layout button,
body.fme-portal-layout input,
body.fme-portal-layout select,
body.fme-portal-layout textarea {
	font-family: Roboto, Arial, sans-serif;
}

body.fme-menu-open {
	overflow: hidden;
}

.fme-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid #edf0f4;
	box-shadow: 0 2px 10px rgba(23, 34, 56, .035);
}

.admin-bar .fme-header {
	top: 32px;
}

.fme-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.3vw, 44px);
	min-height: var(--fme-header-height);
	padding: 0 clamp(22px, 3.4vw, 64px);
}

.fme-header__logo {
	display: block;
	width: clamp(250px, 20vw, 350px);
	flex: 0 0 auto;
}

.fme-header__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.fme-top-nav {
	min-width: 0;
	flex: 1 1 auto;
}

.fme-top-menu,
.fme-mobile-top-menu,
.fme-section-menu,
.fme-section-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fme-top-menu {
	display: flex;
	align-items: stretch;
	gap: clamp(34px, 2.25vw, 46px);
}

.fme-top-menu > li {
	position: relative;
}

.fme-top-menu > li > a {
	display: flex;
	align-items: center;
	min-height: var(--fme-header-height);
	color: #182237;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.fme-top-menu > li.menu-item-has-children > a::before {
	order: 2;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 11px;
	border-right: 2px solid #8a9098;
	border-bottom: 2px solid #8a9098;
	content: "";
	transform: rotate(45deg);
	transition: border-color .2s ease, transform .2s ease;
}

.fme-top-menu > li.menu-item-has-children:hover > a::before,
.fme-top-menu > li.menu-item-has-children:focus-within > a::before {
	border-color: currentColor;
	transform: translateY(3px) rotate(225deg);
}

.fme-top-menu > .current-menu-item > a,
.fme-top-menu > .current-menu-ancestor > a,
.fme-top-menu > li > a:hover,
.fme-top-menu > li > a:focus-visible {
	color: #087f82;
}

.fme-top-menu > .current-menu-item > a::after,
.fme-top-menu > .current-menu-ancestor > a::after {
	position: absolute;
	right: 0;
	bottom: 15px;
	left: 0;
	height: 3px;
	border-radius: 3px;
	background: #087f82;
	content: "";
}

.fme-top-menu .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% - 10px);
	left: -18px;
	z-index: 4;
	width: 270px;
	min-width: 0;
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 10px;
	list-style: none;
	border: 1px solid #e6ebef;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 32px rgba(23, 34, 56, .12);
}

.fme-top-menu .sub-menu li,
.fme-top-menu .sub-menu li::marker {
	margin: 0;
	padding: 0;
	list-style: none;
	content: "";
}

.fme-top-menu .sub-menu li::before,
.fme-top-menu .sub-menu li::after {
	display: none !important;
	content: none !important;
}

.fme-top-menu li:hover > .sub-menu,
.fme-top-menu li:focus-within > .sub-menu {
	display: block;
}

.fme-top-menu .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 7px;
	color: #263247;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.fme-top-menu .sub-menu a:hover {
	background: #eef8f8;
	color: #087f82;
}

.fme-header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 0 0 auto;
}

.fme-search-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: clamp(170px, 18vw, 285px);
	height: 46px;
	padding: 0 17px;
	border: 1px solid #e5e9ee;
	border-radius: 24px;
	background: #fafbfc;
	color: #9ba2aa;
	font-size: 13px;
	font-weight: 400;
	box-shadow: 0 3px 10px rgba(23, 34, 56, .04);
}

.fme-search-toggle svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.fme-header__profile {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #5b6169;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.fme-header__profile img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.fme-login {
	padding: 11px 20px;
	border-radius: 7px;
	background: var(--fme-color-primary);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.fme-header-search {
	position: absolute;
	right: 40px;
	top: calc(100% + 8px);
	width: min(560px, calc(100vw - 32px));
	padding: 14px;
	border: 1px solid #e4e9ee;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(23, 34, 56, .15);
}

.fme-header-search .search-form {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.fme-header-search .search-form input[type="search"] {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

.fme-header-search .search-form input[type="submit"],
.fme-header-search .search-form button[type="submit"] {
	flex: 0 0 72px;
	width: 72px;
	margin: 0;
}

.fme-app-shell {
	display: grid;
	grid-template-columns: var(--fme-sidebar-width) minmax(0, 1fr);
	min-height: calc(100vh - var(--fme-header-height));
}

.fme-sidebar {
	position: relative;
	z-index: 3;
	background: var(--fme-color-sidebar);
	border-right: 1px solid #dce8e9;
}

.fme-sidebar .fme-section-nav {
	position: sticky;
	top: var(--fme-header-height);
	max-height: none;
	overflow: visible;
	padding: 30px clamp(22px, 3vw, 58px) 46px;
}

.admin-bar .fme-sidebar .fme-section-nav {
	top: calc(var(--fme-header-height) + 32px);
	max-height: none;
}

.fme-section-menu > li {
	margin: 0 0 26px;
}

.fme-section-menu > li + li {
	padding-top: 26px;
	border-top: 1px solid #d4e1e2;
}

.fme-section-menu > li > a {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
	color: var(--fme-color-education);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	text-transform: uppercase;
	text-decoration: none;
}

.fme-section-menu > li:nth-child(2) > a {
	color: var(--fme-color-social);
}

.fme-section-menu > li > a .fme-nav-icon {
	display: none;
}

.fme-section-menu .sub-menu li {
	margin: 2px 0;
}

.fme-section-menu .sub-menu a,
.fme-submenu-toggle {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	min-height: 58px;
	padding: 10px 14px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #30383e;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.fme-section-menu .sub-menu a:hover,
.fme-submenu-toggle:hover {
	background: rgba(102, 45, 143, .075);
	color: var(--fme-color-education);
}

.fme-section-menu > li:nth-child(2) .sub-menu a:hover,
.fme-section-menu > li:nth-child(2) .fme-submenu-toggle:hover {
	background: rgba(231, 52, 89, .08);
	color: var(--fme-color-social);
}

.fme-section-menu .current-menu-item > a,
.fme-section-menu .current-menu-ancestor > .fme-submenu-toggle {
	position: relative;
	background: rgba(102, 45, 143, .09);
	color: var(--fme-color-education);
}

.fme-section-menu > li:nth-child(2) .current-menu-item > a,
.fme-section-menu > li:nth-child(2) .current-menu-ancestor > .fme-submenu-toggle {
	background: rgba(231, 52, 89, .09);
	color: var(--fme-color-social);
}

.fme-section-menu .current-menu-item > a::before {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 0;
	width: 5px;
	border-radius: 0 5px 5px 0;
	background: currentColor;
	content: "";
}

.fme-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	min-width: 32px;
	height: 32px;
}

.fme-nav-icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fme-chevron {
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.fme-section-menu .sub-menu .sub-menu {
	display: none;
	padding-left: 20px;
}

.fme-section-menu .is-open > .sub-menu {
	display: block;
}

.fme-section-menu .is-open > .fme-submenu-toggle .fme-chevron {
	transform: rotate(225deg);
}

.fme-main-stage {
	min-width: 0;
	padding: 28px clamp(18px, 2.5vw, 46px) 50px;
}

.fme-content-container.container {
	width: 100%;
	max-width: 1500px;
	padding: 0;
}

.fme-content-container > .site-wrapper {
	margin-top: 0;
}

.fme-community-home .fme-content-container > .site-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
	gap: 28px;
}

.fme-community-home .fme-content-container #primary {
	grid-column: 1;
	min-width: 0;
}

.fme-community-home .fme-content-container #secondary {
	grid-column: 2;
	min-width: 0;
}

.fme-community-home #secondary .sticky-sidebar {
	position: static;
	max-height: none;
	overflow: visible;
}

.fme-community-home #widget-recent-posts-in-category-4 {
	padding: 18px 18px 20px;
	border: 1px solid #edf0f2;
	border-radius: 18px;
	box-shadow: 0 3px 12px rgba(22, 35, 63, .08);
}

.fme-community-home #widget-recent-posts-in-category-4 .widget-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: #15233f;
	font-size: 18px;
	font-weight: 700;
}

.fme-community-home #widget-recent-posts-in-category-4 .widget-title::before {
	content: "";
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	background: #09aeb1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Cpath d='M18 19h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3v5a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M6 19H5a2 2 0 0 1-2-2v-5h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2Z'/%3E%3C/svg%3E") center / 26px no-repeat;
	border-radius: 50%;
}

.fme-community-home #widget-recent-posts-in-category-4 ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fme-community-home #widget-recent-posts-in-category-4 li {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	min-height: 58px;
	margin: 0 0 14px;
	padding: 0;
	clear: none;
}

.fme-community-home #widget-recent-posts-in-category-4 li:last-child {
	margin-bottom: 0;
}

.fme-community-home #widget-recent-posts-in-category-4 li > a:first-child,
.fme-community-home #widget-recent-posts-in-category-4 li img {
	display: block;
	width: 58px;
	height: 58px;
}

.fme-community-home #widget-recent-posts-in-category-4 li img {
	float: none;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 10px;
}

.fme-community-home #widget-recent-posts-in-category-4 li > a:last-child {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	color: #15233f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.fme-community-home article.page > .entry-header {
	display: none;
}

.fme-footer {
	padding: 18px 30px;
	background: #fff;
	border-top: 1px solid #e7ecef;
	color: #6b7480;
	text-align: center;
}

.fme-footer p {
	margin: 0;
}

.fme-menu-toggle,
.fme-mobile-drawer,
.fme-drawer-backdrop {
	display: none;
}

/* Portátiles: se conserva el menú; el buscador se reduce al icono. */
@media (max-width: 1320px) {
	.fme-header__inner {
		gap: 18px;
		padding-right: 24px;
		padding-left: 24px;
	}

	.fme-header__logo {
		width: 260px;
	}

	.fme-search-toggle {
		justify-content: center;
		width: 46px;
		padding: 0;
	}

	.fme-search-toggle span {
		display: none;
	}

	.fme-header__profile span {
		display: none;
	}

	.fme-community-home .fme-content-container > .site-wrapper {
		grid-template-columns: minmax(0, 1fr) 260px;
	}
}

@media (max-width: 1050px) {
	:root {
		--fme-header-height: 72px;
	}

	.admin-bar .fme-header {
		top: 46px;
	}

	.fme-header__inner {
		min-height: var(--fme-header-height);
	}

	.fme-header__logo {
		width: min(270px, calc(100vw - 190px));
	}

	.fme-top-nav {
		display: none;
	}

	.fme-header__actions {
		margin-left: auto;
	}

	.fme-menu-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 42px;
		height: 42px;
		padding: 9px;
		border: 0;
		border-radius: 50%;
		background: var(--fme-color-primary);
	}

	.fme-menu-toggle span {
		display: block;
		width: 100%;
		height: 2px;
		background: #fff;
	}

	.fme-app-shell {
		display: block;
	}

	.fme-sidebar {
		display: none;
	}

	.fme-mobile-drawer {
		display: block;
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1200;
		width: min(390px, 88vw);
		overflow-y: auto;
		background: #fff;
		box-shadow: 12px 0 32px rgba(23, 34, 56, .16);
		transform: translateX(-105%);
		transition: transform .25s ease;
	}

	.fme-mobile-drawer.is-open {
		transform: translateX(0);
	}

	.fme-mobile-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20px 24px;
		border-bottom: 1px solid #edf0f3;
	}

	.fme-menu-close {
		border: 0;
		background: transparent;
		color: #606872;
		font-size: 34px;
		line-height: 1;
	}

	.fme-drawer-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1100;
		background: rgba(18, 28, 43, .38);
	}

	.fme-mobile-top-menu {
		padding: 14px 16px;
		border-bottom: 1px solid #e6ecee;
	}

	.fme-mobile-top-menu a {
		display: flex;
		align-items: center;
		gap: 14px;
		min-height: 50px;
		padding: 8px 10px;
		border-radius: 7px;
		color: #223148;
		font-weight: 650;
		text-decoration: none;
	}

	.fme-mobile-top-menu .sub-menu {
		margin: 0;
		padding-left: 26px;
		list-style: none !important;
	}

	.fme-mobile-top-menu li,
	.fme-mobile-top-menu li::marker,
	.fme-mobile-top-menu .sub-menu li,
	.fme-mobile-top-menu .sub-menu li::marker {
		list-style: none !important;
		content: "";
	}

	.fme-mobile-top-menu li::before,
	.fme-mobile-top-menu li::after,
	.fme-mobile-top-menu .sub-menu li::before,
	.fme-mobile-top-menu .sub-menu li::after {
		display: none !important;
		content: none !important;
	}

	.fme-section-nav--mobile {
		padding: 22px 24px 40px;
		background: var(--fme-color-sidebar);
	}

	.fme-main-stage {
		padding: 22px 20px 40px;
	}

	.fme-community-home .fme-content-container > .site-wrapper {
		display: block;
	}

	.fme-community-home .fme-content-container #secondary {
		margin-top: 26px;
	}
}

@media (max-width: 600px) {
	.admin-bar .fme-header {
		top: 0;
	}

	.fme-header-search {
		right: 16px;
		left: 16px;
		width: auto;
	}

	.fme-header__inner {
		padding: 0 14px;
	}

	.fme-header__logo {
		width: min(215px, calc(100vw - 160px));
	}

	.fme-header__profile {
		display: none;
	}

	.fme-main-stage {
		padding-right: 12px;
		padding-left: 12px;
	}

	.fme-community-home .fme-content-container #secondary {
		display: none;
	}
}

/* ==========================================================
   PÁGINAS INTERIORES CREADAS CON ELEMENTOR
   La plantilla conserva el slug usado por el tema BuddyBoss anterior.
   ========================================================== */
body.page-template-page-fullwidth-content .fme-main-stage {
	padding: 0;
}

body.page-template-page-fullwidth-content .fme-content-container.container {
	max-width: none;
}

body.page-template-page-fullwidth-content .fme-elementor-main,
body.page-template-page-fullwidth-content .fme-elementor-page,
body.page-template-page-fullwidth-content .fme-elementor-page > .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.page-template-page-fullwidth-content .fme-elementor-page > .entry-content::before,
body.page-template-page-fullwidth-content .fme-elementor-page > .entry-content::after {
	display: none;
}

/* Cabecera reutilizable configurada dentro de Elementor. */
body .elementor .fme-page-heading {
	box-sizing: border-box;
	width: 100%;
	padding: 20px 24px 24px !important;
	background: #fafbfc !important;
	color: #172238;
	font-family: inherit;
}

body .elementor .fme-page-heading > .elementor-container {
	max-width: none;
}

body .elementor .fme-page-heading__breadcrumb {
	margin: 0;
}

body .elementor .fme-page-heading__breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	color: #626b76;
	font-size: 14px;
	line-height: 1.4;
	list-style: none;
}

body .elementor .fme-page-heading__breadcrumb li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

body .elementor .fme-page-heading__breadcrumb li + li::before {
	margin: 0 10px;
	color: #7b8490;
	content: "\203A";
	font-size: 20px;
	line-height: 1;
}

body .elementor .fme-page-heading__breadcrumb a {
	color: #626b76;
	text-decoration: none;
}

body .elementor .fme-page-heading__breadcrumb a:hover,
body .elementor .fme-page-heading__breadcrumb a:focus-visible {
	color: #3210c7;
}

body .elementor .fme-page-heading__title {
	margin: 14px 0 8px;
}

body .elementor .fme-page-heading__title .elementor-heading-title {
	color: #172238 !important;
	font-family: inherit;
	font-size: clamp(36px, 3vw, 44px);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.12;
}

body .elementor .fme-page-heading__accent {
	margin-bottom: 10px;
}

body .elementor .fme-page-heading__accent .elementor-divider {
	padding: 0;
	text-align: left;
}

body .elementor .fme-page-heading__accent .elementor-divider-separator {
	display: block;
	width: 96px !important;
	border-top-width: 4px !important;
	border-top-color: #3210c7 !important;
	border-radius: 3px;
}

body .elementor .fme-page-heading--social .fme-page-heading__accent .elementor-divider-separator {
	border-top-color: var(--fme-color-social) !important;
}

body .elementor .fme-page-heading__description {
	margin: 0;
}

body .elementor .fme-page-heading__description .elementor-widget-container,
body .elementor .fme-page-heading__description p {
	margin: 0;
	color: #5f6873;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

/* Filtros tipo píldora de las dos bibliotecas de recursos. */
body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu,
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 0 24px !important;
	padding: 12px 16px !important;
	background: #fff;
	border: 1px solid #e7e9ee;
	border-radius: 12px !important;
	box-shadow: 0 4px 16px rgba(23, 34, 56, .06) !important;
	text-align: left !important;
}

body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu .filter-item,
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0 !important;
	padding: 9px 14px !important;
	background: #f2f3f6 !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #273247 !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: none !important;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu .filter-item:hover,
body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu .filter-item:focus-visible {
	background: #e5e1f3 !important;
	color: #3210c7 !important;
	transform: translateY(-1px);
}

body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item.current,
body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item.active,
body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item.selected,
body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item[aria-selected="true"] {
	background-color: #3210c7 !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: 0 5px 12px rgba(50, 16, 199, .2) !important;
}

body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item[data-filter=".cos-2025"],
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item[data-filter=".noticias"],
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item[data-filter=".somos-2025"],
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item[data-filter=".somos-sp-2025"] {
	display: none !important;
}

body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item:hover,
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item:focus-visible {
	background: #f8dce3 !important;
	color: #c32648 !important;
	transform: translateY(-1px);
}

body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item.current,
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item.active,
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item.selected,
body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu li.filter-item[aria-selected="true"] {
	background-color: var(--fme-color-social) !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: 0 5px 12px rgba(231, 52, 89, .2) !important;
}

/* Mantiene cada miniatura dentro de su tarjeta cuando el filtro recalcula la grilla. */
body.page-id-23956 .exad-filterable-item,
body.page-id-887 .exad-filterable-item {
	overflow: hidden;
	isolation: isolate;
}

body.page-id-23956 .exad-filterable-item .exad-post-grid-container,
body.page-id-887 .exad-filterable-item .exad-post-grid-container,
body.page-id-23956 .exad-filterable-item .exad-post-grid-thumbnail,
body.page-id-887 .exad-filterable-item .exad-post-grid-thumbnail {
	overflow: hidden;
}

body.page-id-23956 .exad-filterable-item .exad-post-grid-thumbnail,
body.page-id-887 .exad-filterable-item .exad-post-grid-thumbnail {
	width: 100%;
	height: auto !important;
	aspect-ratio: 6 / 5;
}

body.page-id-23956 .exad-filterable-item .exad-post-grid-thumbnail > a,
body.page-id-887 .exad-filterable-item .exad-post-grid-thumbnail > a,
body.page-id-23956 .exad-filterable-item .exad-post-grid-thumbnail img,
body.page-id-887 .exad-filterable-item .exad-post-grid-thumbnail img {
	display: block;
	width: 100%;
	height: 100% !important;
}

body.page-id-23956 .exad-filterable-item .exad-post-grid-thumbnail img,
body.page-id-887 .exad-filterable-item .exad-post-grid-thumbnail img {
	object-fit: cover;
}

@media (max-width: 767px) {
	body.page-template-page-fullwidth-content .fme-main-stage {
		padding: 0;
	}

	body .elementor .fme-page-heading {
		padding: 18px 18px 22px !important;
	}

	body .elementor .fme-page-heading__title .elementor-heading-title {
		font-size: 32px;
	}

	body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu,
	body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu {
		gap: 7px;
		padding: 10px 12px !important;
	}

	body.page-id-23956 .elementor-element-6e53bdf .exad-filterable-menu .filter-item,
	body.page-id-887 .elementor-element-6e53bdf .exad-filterable-menu .filter-item {
		min-height: 38px;
		padding: 8px 11px !important;
		font-size: 14px;
	}
}

/* ================================================================
   Ficha individual de recursos (Gutenberg y Elementor)
   ================================================================ */

.fme-resource-single .single-post-main-wrapper {
	width: min(100%, 1180px);
	max-width: 1180px;
	margin: -20px auto 0;
	padding: 0 20px 64px;
}

.fme-resource-single .buddyx-post-section {
	--fme-resource-accent: #08a5a8;
	margin: -36px 0 22px !important;
	padding: 22px 0 18px !important;
	border: 0;
	min-height: 0 !important;
}

.fme-resource-program-education .buddyx-post-section {
	--fme-resource-accent: #3f22c7;
}

.fme-resource-program-social .buddyx-post-section {
	--fme-resource-accent: #e83263;
}

.fme-resource-breadcrumb {
	margin: 0 0 6px;
	padding-top: 14px;
}

.fme-resource-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	color: #626b76;
	font-size: 14px;
	line-height: 1.4;
	list-style: none;
}

.fme-resource-breadcrumb li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.fme-resource-breadcrumb li + li::before {
	margin: 0 10px;
	color: #7b8490;
	content: "\203A";
	font-size: 20px;
	line-height: 1;
}

.fme-resource-breadcrumb a {
	color: #626b76;
	text-decoration: none;
}

.fme-resource-breadcrumb a:hover,
.fme-resource-breadcrumb a:focus-visible {
	color: var(--fme-resource-accent, #08a5a8);
}

.fme-resource-single .buddyx-post-section .entry-media-image,
.fme-resource-single .buddyx-post-section .buddyx-breadcrumbs,
.fme-resource-single .buddyx-post-section [class*="breadcrumb"],
.fme-resource-single .buddyx-post-section .entry-meta,
.fme-resource-single article > .entry-header,
.fme-resource-single article .entry-thumbnail,
.fme-resource-single article .post-thumbnail,
.fme-resource-single .post-navigation {
	display: none !important;
}

.fme-resource-single .buddyx-post-section .entry-header {
	margin: 0;
	padding: 0;
}

.fme-resource-single .buddyx-post-section .entry-title {
	margin: 0;
	color: #15233f;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.fme-resource-single .buddyx-post-section .entry-title::after {
	display: block;
	width: 94px;
	height: 4px;
	margin-top: 18px;
	background: var(--fme-resource-accent);
	border-radius: 999px;
	content: "";
}

.fme-resource-single .single-post-main-wrapper > .site-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px !important;
	align-items: start;
	gap: 30px;
	margin: -34px 0 0 !important;
}

.fme-resource-single #primary,
.fme-resource-single #secondary {
	width: 100%;
	min-width: 0;
	max-width: none;
	margin: 0;
}

.fme-resource-single article.entry {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.fme-resource-single article .entry-content {
	margin: 0;
	padding: 0;
}

/* La ficha empieza por el visor: no se repite la imagen de la grilla. */
.single-recursos.fme-resource-single article .entry-media,
.single-recursos.fme-resource-single article .wp-post-image,
.single-recursos.fme-resource-single article figure.post-thumbnail,
.single-recursos.fme-resource-single article .entry-thumbnail {
	display: none !important;
}

.fme-resource-single article .entry-content iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	border: 0;
}

/* Keep the PDF action in the document flow so it clears the post footer. */
.fme-resource-single article .entry-content [id="2026-taller-cos-unidos"] {
	position: static;
	width: auto;
	margin-top: 16px;
}

/* Let the resource sidebar use the page scroll instead of an inner scrollbar. */
.fme-resource-single #secondary .sticky-sidebar {
	position: static !important;
	top: auto !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	transform: none !important;
}

.single-recursos.fme-resource-single article .entry-content iframe {
	height: min(72vh, 760px);
	min-height: 560px;
}

.single-recursos.fme-resource-single article .entry-content .pdfjs-iframe {
	border: 1px solid #dfe4e8;
	border-radius: 8px;
	background: #fff;
}

.single-recursos.fme-resource-single article .entry-content > .wp-block-buttons,
.single-recursos.fme-resource-single article .entry-content > .wp-block-button,
.single-recursos.fme-resource-single article .entry-content > p:has(> a[href$=".pdf"]) {
	margin-top: 18px;
}

.single-recursos.fme-resource-single article .entry-content .wp-block-button__link,
.single-recursos.fme-resource-single article .entry-content > p > a[href$=".pdf"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	background: #08a5a8;
	border: 1px solid #08a5a8;
	border-radius: 6px;
}

.single-recursos.fme-resource-single article .elementor-button {
	background-color: #07b3b5;
	border-radius: 3px;
}

.fme-resource-single article .entry-footer {
	margin-top: 0;
	padding: 24px 0;
	border-top: 1px solid #e1e5e9;
	border-bottom: 1px solid #e1e5e9;
	background: transparent;
}

.fme-resource-single #secondary .widget {
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 10px;
	box-shadow: none;
	padding: 20px;
}

.fme-resource-single #secondary .widget-title {
	margin: -20px -20px 18px;
	padding: 20px;
	font-size: 22px;
	font-weight: 700;
}

.fme-resource-single #secondary .widget_recent_entries li,
.fme-resource-single #secondary [class*="widget-recent-posts"] li {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	clear: none;
	min-height: 58px;
	margin: 0 0 14px;
	padding: 0;
	font-size: 13px;
	line-height: 1.35;
}

.fme-resource-single #secondary [class*="widget-recent-posts"] ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fme-resource-single #secondary .widget_recent_entries img,
.fme-resource-single #secondary [class*="widget-recent-posts"] img {
	display: block;
	float: none;
	width: 58px;
	height: 58px;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 8px;
}

.fme-resource-single #secondary .widget_recent_entries a,
.fme-resource-single #secondary [class*="widget-recent-posts"] a {
	min-width: 0;
	color: #15233f;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.35 !important;
	text-decoration: none;
}

@media (max-width: 959px) {
	.fme-resource-single .single-post-main-wrapper > .site-wrapper {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.fme-resource-single #secondary {
		margin-top: 20px;
	}
}

@media (max-width: 767px) {
	.fme-resource-single .single-post-main-wrapper {
		margin-top: 0;
		padding: 0 16px 48px;
	}

	.fme-resource-single .buddyx-post-section {
		margin: -20px 0 18px !important;
		padding: 18px 0 16px !important;
	}

	.fme-resource-single .single-post-main-wrapper > .site-wrapper {
		margin-top: -22px !important;
	}

	.fme-resource-single .buddyx-post-section .entry-title {
		font-size: 32px;
	}

	.fme-resource-breadcrumb {
		padding-top: 10px;
	}

	.fme-resource-breadcrumb li[aria-current="page"] {
		display: none;
	}

	.fme-resource-single .buddyx-post-section .entry-title::after {
		width: 72px;
		height: 4px;
		margin-top: 16px;
	}

	.fme-resource-single article .entry-content iframe {
		height: min(70vh, 560px) !important;
		min-height: 420px;
	}
}

/* ================================================================
   Ficha individual de podcast
   ================================================================ */

.podcast-template-default .single-post-main-wrapper {
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 20px 64px;
}

.podcast-template-default .single-post-main-wrapper > .site-sub-header {
	background: transparent;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	position: static;
	inset: auto;
}

.podcast-template-default .site-sub-header .container {
	max-width: none;
	padding: 0;
}

.podcast-template-default .site-sub-header .entry-title {
	margin: 0 0 28px;
	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.15;
	font-weight: 500;
}

.podcast-template-default .site-sub-header .buddyx-breadcrumbs,
.podcast-template-default .site-sub-header [class*="breadcrumb"] {
	display: none !important;
}

.podcast-template-default .single-post-main-wrapper > .site-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	align-items: start;
	gap: 30px;
	width: 100%;
}

.podcast-template-default #primary,
.podcast-template-default #secondary {
	width: 100%;
	min-width: 0;
	max-width: none;
	margin: 0;
}

/* El reproductor ya contiene la portada; se evita duplicarla sobre este. */
.podcast-template-default article > .entry-header,
.podcast-template-default article .entry-media,
.podcast-template-default article .entry-thumbnail,
.podcast-template-default article .post-thumbnail {
	display: none !important;
}

.podcast-template-default article.entry {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.podcast-template-default article .entry-content {
	margin: 0;
	padding: 0;
}

.podcast-template-default .castos-player,
.podcast-template-default .castos-player .player,
.podcast-template-default .castos-player .player__main {
	width: 100%;
}

.podcast-template-default .castos-player .player {
	height: 280px !important;
	overflow: hidden;
	border-radius: 4px;
}

.podcast-template-default .castos-player .player__main {
	grid-template-columns: 280px minmax(0, 1fr) !important;
	height: 280px;
}

.podcast-template-default .castos-player .player__artwork,
.podcast-template-default .castos-player .player__artwork img {
	width: 280px !important;
	height: 280px !important;
	margin: 0 !important;
	object-fit: cover;
}

.podcast-template-default .castos-player .player__body {
	padding-top: 80px !important;
}

.podcast-template-default #bbpress-forums {
	margin-top: 30px;
}

.podcast-template-default #subscription-toggle,
.podcast-template-default .bb-topic-favorite-link-wrap,
.podcast-template-default #favorite-toggle,
.podcast-template-default #bbpress-forums .bbp-header,
.podcast-template-default #bbpress-forums .bbp-footer,
.podcast-template-default #bbpress-forums .bbp-topic-header,
.podcast-template-default #bbpress-forums .bbp-topic-author {
	display: none !important;
}

.podcast-template-default #bbpress-forums .bbp-lead-topic {
	float: left;
	width: calc(100% - 190px);
	margin: 0 0 28px;
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 10px;
	overflow: hidden;
}

.podcast-template-default #bbpress-forums .bbp-lead-topic .bbp-body > div[id^="post-"] {
	min-height: 125px;
	padding: 26px 30px;
	background: #fff;
}

.podcast-template-default #bbpress-forums .bbp-lead-topic .bbp-topic-content {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

.podcast-template-default .fme-podcast-topic-title {
	margin: 0 0 14px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
}

.podcast-template-default .fme-podcast-comment-link {
	float: right;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	min-height: 48px;
	margin: 0 0 28px;
	padding: 10px 18px;
	background: #08a5a8;
	border-radius: 6px;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}

.podcast-template-default .fme-podcast-comment-link:hover,
.podcast-template-default .fme-podcast-comment-link:focus-visible {
	background: #078f92;
}

.podcast-template-default #bbpress-forums .bbp-reply-form {
	clear: both;
}

.podcast-template-default #secondary .widget {
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 10px;
	box-shadow: none;
	padding: 20px;
}

.podcast-template-default #secondary .widget-title {
	margin: -20px -20px 18px;
	padding: 20px;
	font-size: 22px;
	font-weight: 700;
}

.podcast-template-default #secondary .widget_recent_entries li,
.podcast-template-default #secondary [class*="widget-recent-posts"] li {
	clear: both;
	min-height: 58px;
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.35;
}

.podcast-template-default #secondary .widget_recent_entries img,
.podcast-template-default #secondary [class*="widget-recent-posts"] img {
	float: left;
	width: 50px;
	height: 50px;
	margin: 0 8px 8px 0;
	object-fit: cover;
}

.podcast-template-default #secondary .widget_recent_entries a,
.podcast-template-default #secondary [class*="widget-recent-posts"] a {
	font-size: 13px !important;
	line-height: 1.35 !important;
}

@media (max-width: 959px) {
	.podcast-template-default .single-post-main-wrapper > .site-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	.podcast-template-default #secondary {
		margin-top: 10px;
	}
}

@media (max-width: 767px) {
	.podcast-template-default .single-post-main-wrapper {
		padding: 20px 16px 48px;
	}

	.podcast-template-default .site-sub-header .entry-title {
		margin-bottom: 20px;
		font-size: 30px;
	}

	.podcast-template-default .castos-player .player {
		height: 430px !important;
		overflow: visible !important;
	}

	.podcast-template-default .castos-player .player__main {
		grid-template-columns: 1fr !important;
		grid-template-rows: 280px auto !important;
		height: 430px;
	}

	.podcast-template-default .castos-player .player__artwork {
		width: 100% !important;
		background: #e73459;
		text-align: center;
	}

	.podcast-template-default .castos-player .player__artwork img {
		display: inline-block;
	}

	.podcast-template-default .castos-player .player__body {
		padding-top: 20px !important;
	}

	.podcast-template-default #bbpress-forums .bbp-lead-topic,
	.podcast-template-default .fme-podcast-comment-link {
		float: none;
		width: 100%;
	}

	.podcast-template-default .fme-podcast-comment-link {
		margin-top: -12px;
	}
}

