/* ==========================================================================
   Fajardos — hoja de estilos principal
   Todos los valores configurables llegan como variables CSS desde el
   Personalizador (ver inc/customizer-css.php). No edites colores aquí.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reinicio y bases
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--fj-body-bg);
	color: var(--fj-text);
	font-family: var(--fj-font-body);
	font-size: var(--fj-fs-base);
	line-height: var(--fj-body-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--fj-link); text-decoration: none; transition: color .18s ease; }
a:hover, a:focus { color: var(--fj-link-hover); }

:focus-visible {
	outline: 2px solid var(--fj-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fj-font-heading);
	font-weight: var(--fj-heading-weight);
	letter-spacing: var(--fj-heading-ls);
	text-transform: var(--fj-heading-tt);
	color: var(--fj-primary);
	line-height: 1.2;
	margin: 0 0 .6em;
}

h1 { font-size: var(--fj-fs-h1); }
h2 { font-size: var(--fj-fs-h2); }
h3 { font-size: var(--fj-fs-h3); }
h4 { font-size: var(--fj-fs-h4); }
h5 { font-size: var(--fj-fs-h5); }
h6 { font-size: var(--fj-fs-h6); }

p { margin: 0 0 1.15em; }

blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--fj-accent);
	font-family: var(--fj-font-heading);
	font-size: var(--fj-fs-h4);
	line-height: 1.45;
	color: var(--fj-primary);
}

hr { border: 0; border-top: 1px solid var(--fj-border); margin: 2.4em 0; }

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .92em;
}
pre {
	background: rgba(var(--fj-primary-rgb), .05);
	padding: 16px;
	overflow: auto;
	border-radius: var(--fj-card-radius);
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--fj-border); text-align: left; }
th { color: var(--fj-primary); font-weight: 600; }

/* Accesibilidad ------------------------------------------------------------ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--fj-primary);
	color: #fff;
	padding: 12px 20px;
	font-weight: 600;
}
.skip-link:focus {
	left: 6px;
	top: 6px;
	color: #fff;
}

/* --------------------------------------------------------------------------
   2. Contenedores y retícula
   -------------------------------------------------------------------------- */

.fj-container {
	width: 100%;
	max-width: var(--fj-container);
	margin: 0 auto;
	padding: 0 20px;
}

.fj-site-content { padding: 0 0 56px; }

.fj-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	padding-top: 40px;
}

.fj-content-area { flex: 1 1 auto; min-width: 0; }
.fj-sidebar { flex: 0 0 var(--fj-sidebar-w); max-width: var(--fj-sidebar-w); }

.fj-content-area.fj-sidebar-none { flex: 1 1 100%; }
body.fj-sidebar-left .fj-layout { flex-direction: row-reverse; }

@media (max-width: 900px) {
	.fj-layout { display: block; }
	.fj-sidebar { max-width: none; margin-top: 44px; }
}

/* --------------------------------------------------------------------------
   3. Barra superior
   -------------------------------------------------------------------------- */

.fj-topbar {
	background: var(--fj-topbar-bg);
	color: var(--fj-topbar-text);
	font-size: 13px;
	line-height: 1.4;
}
.fj-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 9px;
	padding-bottom: 9px;
}
.fj-topbar a { color: inherit; font-weight: 600; }
.fj-topbar a:hover { color: #fff; }
.fj-topbar__menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 700px) {
	.fj-topbar__left { display: none; }
	.fj-topbar__inner { justify-content: center; }
}

/* --------------------------------------------------------------------------
   4. Cabecera
   -------------------------------------------------------------------------- */

.fj-header {
	background: var(--fj-header-bg);
	color: var(--fj-header-text);
	border-bottom: 1px solid var(--fj-border);
	position: relative;
	z-index: 100;
}

.fj-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.fj-branding { flex: 0 0 auto; margin-right: auto; }
.fj-branding .custom-logo-link { display: block; }
.fj-branding .custom-logo { width: var(--fj-logo-w); height: auto; }

.fj-site-title {
	font-family: var(--fj-font-heading);
	font-size: var(--fj-fs-h3);
	margin: 0;
	line-height: 1.1;
}
.fj-site-title a { color: var(--fj-header-text); }
.fj-site-description {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--fj-muted);
	letter-spacing: .04em;
}

.fj-header__extras {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}
.fj-header__widget .widget { margin: 0; }
.fj-header__widget .widget-title { display: none; }

.fj-search-toggle {
	background: none;
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-btn-radius);
	color: var(--fj-header-text);
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.fj-search-toggle:hover { background: var(--fj-primary); color: #fff; border-color: var(--fj-primary); }

.fj-search-panel {
	background: var(--fj-primary);
	padding: 18px 0;
}
.fj-search-panel[hidden] { display: none; }

/* Cabecera fija ------------------------------------------------------------ */

body.fj-sticky-header .fj-header--stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 2px 14px rgba(0, 0, 0, .1);
	animation: fj-slide-down .28s ease;
}
body.fj-sticky-header .fj-header--stuck .fj-header__inner {
	padding-top: 10px;
	padding-bottom: 10px;
}
body.fj-sticky-header.fj-scrolled { padding-top: 84px; }

@keyframes fj-slide-down {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}

/* Variantes de disposición ------------------------------------------------- */

body.fj-header-logo-center .fj-header__inner {
	flex-direction: column;
	text-align: center;
}
body.fj-header-logo-center .fj-branding { margin-right: 0; }
body.fj-header-logo-center .fj-nav { width: 100%; }
body.fj-header-logo-center .fj-menu { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Menú principal
   -------------------------------------------------------------------------- */

.fj-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
	flex-wrap: wrap;
}

.fj-menu li { position: relative; }

.fj-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--fj-header-text);
	font-size: 14.5px;
	font-weight: 600;
	text-transform: var(--fj-menu-tt);
	letter-spacing: var(--fj-menu-ls);
	border-radius: var(--fj-btn-radius);
}
.fj-menu a:hover,
.fj-menu .current-menu-item > a,
.fj-menu .current_page_item > a,
.fj-menu .current-menu-ancestor > a {
	color: var(--fj-accent);
}

.fj-menu .current-menu-item > a::after,
.fj-menu .current_page_item > a::after {
	content: "";
	display: block;
	height: 2px;
	background: var(--fj-accent);
	margin-top: 4px;
}

/* Submenús */

.fj-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-card-radius);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
	list-style: none;
	margin: 0;
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 200;
}
.fj-menu li:hover > .sub-menu,
.fj-menu li.fj-focus > .sub-menu,
.fj-menu li.fj-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.fj-menu .sub-menu a {
	padding: 9px 12px;
	font-weight: 500;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
}
.fj-menu .sub-menu a:hover { background: rgba(var(--fj-primary-rgb), .06); }
.fj-menu .sub-menu .sub-menu { top: 0; left: 100%; }

.fj-submenu-toggle {
	display: none;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 10px 12px;
	font-size: 14px;
}

.fj-menu--fallback a { color: var(--fj-accent); }

/* Botón hamburguesa -------------------------------------------------------- */

.fj-menu-toggle {
	display: none;
	align-items: center;
	gap: 9px;
	background: none;
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-btn-radius);
	color: var(--fj-header-text);
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.fj-menu-toggle__bars { display: block; width: 18px; }
.fj-menu-toggle__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	margin: 3px 0;
	transition: transform .2s ease, opacity .2s ease;
}
.fj-menu-toggle[aria-expanded="true"] .fj-menu-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.fj-menu-toggle[aria-expanded="true"] .fj-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.fj-menu-toggle[aria-expanded="true"] .fj-menu-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
	.fj-menu-toggle { display: inline-flex; order: 3; }
	.fj-header__extras { order: 2; }

	.fj-nav {
		order: 4;
		flex-basis: 100%;
		display: none;
	}
	.fj-nav--open { display: block; }

	.fj-header__inner { flex-wrap: wrap; }

	.fj-menu { flex-direction: column; gap: 0; padding-top: 10px; }
	.fj-menu li { border-bottom: 1px solid var(--fj-border); }
	.fj-menu a { padding: 13px 4px; }

	.fj-submenu-toggle {
		display: block;
		position: absolute;
		right: 0;
		top: 2px;
	}
	.fj-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--fj-border);
		border-radius: 0;
		display: none;
		padding-left: 12px;
	}
	.fj-menu li.fj-open > .sub-menu { display: block; }
}

/* --------------------------------------------------------------------------
   6. Cabecera de página y migas
   -------------------------------------------------------------------------- */

.fj-page-header {
	background: var(--fj-content-bg);
	border-bottom: 1px solid var(--fj-border);
	padding: 34px 0 30px;
}
.fj-page-title {
	margin: 0 0 8px;
	font-size: var(--fj-fs-h2);
}
.fj-page-title::after {
	content: "";
	display: block;
	width: 54px;
	height: 3px;
	background: var(--fj-accent);
	margin-top: 14px;
}

.fj-breadcrumbs {
	font-size: 13px;
	color: var(--fj-muted);
	margin-top: 14px;
}
.fj-breadcrumbs a { color: var(--fj-muted); }
.fj-breadcrumbs a:hover { color: var(--fj-accent); }
.fj-breadcrumbs .fj-sep { margin: 0 8px; opacity: .5; }

/* --------------------------------------------------------------------------
   7. Botones
   -------------------------------------------------------------------------- */

.fj-btn,
.wp-block-button__link,
input[type="submit"],
button.submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--fj-btn-radius);
	font-family: var(--fj-font-body);
	font-size: 15px;
	font-weight: 600;
	text-transform: var(--fj-btn-tt);
	letter-spacing: .01em;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.fj-btn:hover { transform: translateY(-1px); }

.fj-btn--primary,
input[type="submit"],
button.submit {
	background: var(--fj-primary);
	color: #fff;
}
.fj-btn--primary:hover,
input[type="submit"]:hover {
	background: var(--fj-primary-dark);
	color: #fff;
}

.fj-btn--accent { background: var(--fj-accent); color: #fff; }
.fj-btn--accent:hover { background: var(--fj-accent); color: #fff; filter: brightness(.9); }

.fj-btn--ghost {
	background: transparent;
	color: var(--fj-primary);
	border-color: var(--fj-border);
}
.fj-btn--ghost:hover {
	background: var(--fj-primary);
	color: #fff;
	border-color: var(--fj-primary);
}

.fj-readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--fj-accent);
}
.fj-readmore span { transition: transform .18s ease; }
.fj-readmore:hover span { transform: translateX(3px); }

/* Formularios -------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="password"], input[type="search"], input[type="number"], textarea, select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-btn-radius);
	background: #fff;
	color: var(--fj-text);
	font-family: inherit;
	font-size: 15px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus, select:focus {
	border-color: var(--fj-primary);
	box-shadow: 0 0 0 3px rgba(var(--fj-primary-rgb), .12);
	outline: none;
}

.fj-searchform { display: flex; gap: 8px; }
.fj-searchform__field { flex: 1 1 auto; }
.fj-searchform__submit {
	flex: 0 0 auto;
	background: var(--fj-accent);
	color: #fff;
	border: 0;
	border-radius: var(--fj-btn-radius);
	padding: 11px 20px;
	font-weight: 600;
	cursor: pointer;
}
.fj-search-panel .fj-searchform__submit { background: var(--fj-accent); }

/* --------------------------------------------------------------------------
   8. Tarjetas y listados
   -------------------------------------------------------------------------- */

.fj-card {
	background: var(--fj-content-bg);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-card-radius);
	overflow: hidden;
	transition: box-shadow .22s ease, transform .22s ease;
}
.fj-card:hover {
	box-shadow: 0 10px 28px rgba(var(--fj-primary-rgb), .13);
	transform: translateY(-2px);
}

.fj-posts { display: grid; gap: 26px; }
body.fj-blog-grid2 .fj-posts { grid-template-columns: repeat(2, 1fr); }
body.fj-blog-grid3 .fj-posts { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
	body.fj-blog-grid3 .fj-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	body.fj-blog-grid2 .fj-posts,
	body.fj-blog-grid3 .fj-posts { grid-template-columns: 1fr; }
}

.fj-post-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fj-post-card__body { padding: 22px; }
.fj-post-card__title { font-size: var(--fj-fs-h4); margin-bottom: 10px; }
.fj-post-card__title a { color: var(--fj-primary); }
.fj-post-card__title a:hover { color: var(--fj-accent); }
.fj-post-card__type {
	margin: 0 0 6px;
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fj-muted);
}
.fj-post-card__excerpt { color: var(--fj-muted); font-size: 15px; }

body.fj-blog-list .fj-post-card {
	display: grid;
	grid-template-columns: 300px 1fr;
	align-items: stretch;
}
body.fj-blog-list .fj-post-card__media img { height: 100%; }
@media (max-width: 700px) {
	body.fj-blog-list .fj-post-card { grid-template-columns: 1fr; }
}

.fj-entry-meta {
	font-size: 13px;
	color: var(--fj-muted);
	margin: 0 0 12px;
}
.fj-entry-meta .fj-sep { margin: 0 7px; opacity: .5; }

/* Entrada ------------------------------------------------------------------ */

.fj-entry {
	background: var(--fj-content-bg);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-card-radius);
	padding: 34px;
}
.fj-entry__thumb { margin: 0 0 26px; }
.fj-entry__thumb img { width: 100%; border-radius: var(--fj-card-radius); }
.fj-entry__content > *:last-child { margin-bottom: 0; }
.fj-entry__footer {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--fj-border);
	font-size: 14px;
	color: var(--fj-muted);
}

@media (max-width: 640px) {
	.fj-entry { padding: 22px; }
}

.fj-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 30px;
}
.fj-post-nav .nav-links { display: contents; }
.fj-post-nav a {
	display: block;
	padding: 18px;
	background: var(--fj-content-bg);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-card-radius);
	font-weight: 600;
	color: var(--fj-primary);
}
.fj-post-nav .nav-next { text-align: right; }
.fj-navlabel {
	display: block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fj-muted);
	margin-bottom: 4px;
}
@media (max-width: 640px) { .fj-post-nav { grid-template-columns: 1fr; } }

/* Sin resultados y 404 ----------------------------------------------------- */

.fj-no-results, .fj-404 {
	background: var(--fj-content-bg);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-card-radius);
	padding: 44px;
	text-align: center;
}
.fj-404__code {
	font-family: var(--fj-font-heading);
	font-size: 84px;
	line-height: 1;
	color: var(--fj-accent);
	margin: 0 0 10px;
}
.fj-404__text { color: var(--fj-muted); font-size: 17px; }
.fj-404 .fj-searchform { max-width: 420px; margin: 24px auto; }
.fj-404__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Paginación --------------------------------------------------------------- */

.fj-pagination { margin-top: 34px; }
.fj-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fj-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: var(--fj-content-bg);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-btn-radius);
	color: var(--fj-primary);
	font-weight: 600;
}
.fj-pagination .page-numbers.current,
.fj-pagination .page-numbers:hover {
	background: var(--fj-primary);
	border-color: var(--fj-primary);
	color: #fff;
}

/* --------------------------------------------------------------------------
   9. Widgets
   -------------------------------------------------------------------------- */

.fj-sidebar .widget {
	background: var(--fj-content-bg);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-card-radius);
	padding: 22px;
	margin-bottom: 22px;
}
.fj-sidebar .widget:last-child { margin-bottom: 0; }

.widget-title {
	font-size: var(--fj-fs-h5);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--fj-border);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.widget ul li {
	padding: 7px 0;
	border-bottom: 1px solid rgba(var(--fj-border-rgb), .7);
	font-size: 14.5px;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul .children,
.widget ul .sub-menu {
	margin-top: 7px;
	padding-left: 14px;
	border-left: 2px solid var(--fj-border);
}
.widget ul .children li:last-child { border-bottom: 0; }

.widget img { border-radius: calc(var(--fj-card-radius) - 1px); }

.widget_media_gallery .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.widget_media_gallery .gallery-item { margin: 0 !important; width: auto !important; }

/* Franja antes del pie ----------------------------------------------------- */

.fj-before-footer {
	background: var(--fj-content-bg);
	border-top: 1px solid var(--fj-border);
	padding: 34px 0;
}
.fj-before-footer .widget { margin: 0; }

/* --------------------------------------------------------------------------
   10. Pie de página
   -------------------------------------------------------------------------- */

.fj-footer {
	background: var(--fj-footer-bg);
	color: var(--fj-footer-text);
	font-size: 14.5px;
}
.fj-footer a { color: var(--fj-footer-text); }
.fj-footer a:hover { color: #fff; }

.fj-footer__widgets { padding: 52px 0 34px; }
.fj-footer__grid {
	display: grid;
	grid-template-columns: repeat(var(--fj-footer-cols, 4), 1fr);
	gap: 36px;
	/* v1.0.2 — las columnas arrancan arriba en vez de estirarse a lo alto
	   de la fila. Sin esto, una columna corta se centraba visualmente
	   respecto a las demás. */
	align-items: start;
}
/* Los hijos de una retícula tienen min-width:auto: un mapa, una galería o
   un iframe ancho desbordaban la columna en lugar de encogerse. */
.fj-footer__col { min-width: 0; }
.fj-footer__col > :first-child { margin-top: 0; }

@media (max-width: 900px) { .fj-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fj-footer__grid { grid-template-columns: 1fr; } }

.fj-footer .widget { margin-top: 0; margin-bottom: 26px; }
.fj-footer .widget:last-child { margin-bottom: 0; }

/* Alinea el arranque del contenido aunque una columna no tenga título:
   se reserva la misma altura de cabecera en todas. */
.fj-footer .widget-title { min-height: 1.4em; }
.fj-footer .widget img,
.fj-footer .widget iframe { max-width: 100%; }
.fj-footer .widget-title {
	color: var(--fj-footer-head);
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-bottom-color: rgba(255, 255, 255, .14);
}
.fj-footer .widget ul li { border-bottom-color: rgba(255, 255, 255, .08); }

.fj-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 20px 0;
}
.fj-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 13.5px;
}
.fj-footer__copy p { margin: 0; }
.fj-footer__menu, .fj-social__menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 700px) {
	.fj-footer__bottom-inner { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   11. Comentarios
   -------------------------------------------------------------------------- */

.fj-comments {
	margin-top: 34px;
	background: var(--fj-content-bg);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-card-radius);
	padding: 30px;
}
.fj-comment-list { list-style: none; margin: 0 0 26px; padding: 0; }
.fj-comment-list .comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--fj-border);
}
.fj-comment-list .children { list-style: none; margin: 0; padding-left: 26px; }
.fj-comment-list .avatar { border-radius: 50%; float: left; margin-right: 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.comment-form p { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   12. Bloques de Gutenberg
   -------------------------------------------------------------------------- */

.fj-entry__content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.fj-entry__content .alignfull { margin-left: -34px; margin-right: -34px; max-width: none; }
@media (max-width: 980px) {
	.fj-entry__content .alignwide,
	.fj-entry__content .alignfull { margin-left: 0; margin-right: 0; }
}

.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.wp-block-image figcaption,
.wp-caption-text {
	font-size: 13px;
	color: var(--fj-muted);
	text-align: center;
	margin-top: 8px;
}

/* --------------------------------------------------------------------------
   13. Convivencia con el plugin Fajardos Enhancer
   -------------------------------------------------------------------------- */

/* El plugin usa sus propias variables; las alineamos con las del tema
   para que ambos compartan la misma paleta sin configurarla dos veces. */
:root {
	--fe-navy: var(--fj-primary);
	--fe-navy-dark: var(--fj-primary-dark);
	--fe-accent: var(--fj-accent);
	--fe-wa: var(--fj-success);
	--fe-bg: var(--fj-body-bg);
	--fe-text: var(--fj-text);
	--fe-muted: var(--fj-muted);
	--fe-border: var(--fj-border);
}

/* Si el plugin ya imprime su barra superior, ocultamos la del tema. */
body:has(.fe-topbar) .fj-topbar { display: none; }

/* El plugin inserta su stack justo después de la cabecera. */
#fe-stack { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Utilidades e impresión
   -------------------------------------------------------------------------- */

.fj-hide { display: none !important; }
body.fj-menu-open { overflow: hidden; }

@media print {
	.fj-topbar, .fj-header, .fj-footer, .fj-sidebar,
	.fj-menu-toggle, .fj-pagination, .fe-sticky, .joinchat { display: none !important; }
	.fj-layout { display: block; }
	body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
