/* ==========================================================
   PlantillaYa – estilos del sitio
   ========================================================== */

:root {
	--fya-primary: #3b2fd8;
	--fya-primary-dark: #2c22b0;
	--fya-primary-soft: #e8e7ff;
	--fya-primary-tint: #f2f1ff;
	--fya-coral: #ff6b57;
	--fya-coral-dark: #f0553f;
	--fya-brown: #9a4a12;
	--fya-ink: #171a3a;
	--fya-muted: #5b6081;
	--fya-line: #e3e5f4;
	--fya-bg: #f8f8ff;
	--fya-white: #fff;
	--fya-radius: 16px;
	--fya-shadow: 0 1px 2px rgba(23, 26, 58, .05), 0 8px 24px rgba(23, 26, 58, .06);
	--fya-max: 1180px;
}

/* ---------- Base ---------- */
body.fya {
	margin: 0;
	background: var(--fya-bg);
	color: var(--fya-ink);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.fya *, .fya *::before, .fya *::after { box-sizing: border-box; }
.fya a { color: inherit; text-decoration: none; }
.fya img { max-width: 100%; height: auto; display: block; }
.fya h1, .fya h2, .fya h3, .fya h4 { color: var(--fya-ink); margin: 0; line-height: 1.2; }
.fya p { margin: 0; }
.fya ul { list-style: none; margin: 0; padding: 0; }
.fya .fya-i { flex: none; vertical-align: middle; }

.fya .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.fya-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 200;
	background: var(--fya-primary); color: #fff !important; padding: 8px 14px; border-radius: 8px;
}
.fya-skip:focus { left: 8px; }

.fya-wrap { width: 100%; max-width: var(--fya-max); margin: 0 auto; padding: 0 20px; }
.fya-page, .fya-content { display: block; width: 100%; }
/* Relleno solo para páginas genéricas (las plantillas de PlantillaYa llevan su propio .fya-main). */
body.fya:not(.home) .fya-content:not(:has(.fya-main)) { max-width: var(--fya-max); margin: 0 auto; padding: 32px 20px; }

/* ---------- Botones ---------- */
.fya .fya-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
	font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
	transition: background .15s, transform .15s, box-shadow .15s;
}
.fya .fya-btn--sm { padding: 8px 16px; font-size: .88rem; border-radius: 10px; }
.fya .fya-btn--block { width: 100%; }
.fya .fya-btn--primary { background: var(--fya-primary); color: #fff; }
.fya .fya-btn--primary:hover { background: var(--fya-primary-dark); color: #fff; }
.fya .fya-btn--soft { background: var(--fya-primary-soft); color: var(--fya-primary); }
.fya .fya-btn--soft:hover { background: #dcdaff; color: var(--fya-primary); }
.fya .fya-btn--coral { background: var(--fya-coral); color: #fff; }
.fya .fya-btn--coral:hover { background: var(--fya-coral-dark); color: #fff; }
.fya .fya-btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.fya .fya-btn--ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------- Cabecera ---------- */
.fya-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--fya-line);
}
.admin-bar .fya-header { top: 32px; }
.fya-header__inner {
	max-width: 1280px; margin: 0 auto; padding: 10px 24px;
	display: flex; align-items: center; gap: 24px;
}
.fya-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--fya-primary); }
.fya-logo__text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--fya-primary); }

.fya-nav { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.fya-menu { display: flex; align-items: center; gap: 2px; }
.fya-menu a {
	display: block; padding: 7px 13px; border-radius: 999px;
	font-size: .9rem; font-weight: 500; color: var(--fya-muted); line-height: 1.2;
	transition: background .15s, color .15s;
}
.fya-menu a:hover { background: var(--fya-primary-tint); color: var(--fya-primary); }
.fya-menu .current-menu-item > a,
.fya-menu .current-menu-ancestor > a,
.fya-menu .current_page_item > a { background: var(--fya-primary-soft); color: var(--fya-primary); font-weight: 600; }

.fya-mini-search {
	margin-left: auto; display: flex; align-items: stretch;
	border: 1px solid var(--fya-line); border-radius: 10px; background: #fff; overflow: hidden;
}
.fya-mini-search input {
	border: 0; outline: 0; background: transparent; padding: 8px 12px; min-width: 190px;
	font: inherit; font-size: .88rem; color: var(--fya-ink); box-shadow: none; border-radius: 0; margin: 0;
}
.fya-mini-search input:focus { box-shadow: none; }
.fya-mini-search button {
	border: 0; background: var(--fya-primary); color: #fff; font: inherit; font-size: .85rem;
	font-weight: 600; padding: 0 16px; cursor: pointer;
}
.fya-mini-search button:hover { background: var(--fya-primary-dark); }

.fya-burger {
	display: none; margin-left: auto; width: 42px; height: 42px; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--fya-line); border-radius: 10px; color: var(--fya-ink); cursor: pointer; padding: 0;
}
.fya-burger .fya-burger__close { display: none; }
.fya-burger.is-open .fya-burger__open { display: none; }
.fya-burger.is-open .fya-burger__close { display: inline-flex; }

@media (max-width: 1060px) {
	.fya-burger { display: inline-flex; }
	.fya-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 14px;
		background: #fff; border-bottom: 1px solid var(--fya-line); padding: 16px 20px 22px;
		box-shadow: 0 16px 30px rgba(23, 26, 58, .08);
	}
	.fya-nav.is-open { display: flex; }
	.fya-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.fya-menu a { padding: 11px 14px; border-radius: 10px; font-size: 1rem; }
	.fya-mini-search { margin-left: 0; }
	.fya-mini-search input { flex: 1; min-width: 0; }
	.fya-nav .fya-btn { width: 100%; }
}
@media (max-width: 782px) { .admin-bar .fya-header { top: 46px; } }

/* ---------- Hero ---------- */
.fya-hero {
	background:
		radial-gradient(900px 380px at 50% -10%, rgba(59, 47, 216, .10), transparent 70%),
		linear-gradient(#fff, var(--fya-bg));
	padding: 72px 0 64px; text-align: center;
}
.fya-hero__inner { display: flex; flex-direction: column; align-items: center; }
.fya-pill {
	display: inline-block; background: var(--fya-primary-tint); color: var(--fya-primary);
	border: 1px solid var(--fya-primary-soft); border-radius: 999px;
	padding: 5px 14px; font-size: .78rem; font-weight: 600; margin-bottom: 22px;
}
.fya-hero h1 {
	font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -.025em; max-width: 780px;
}
.fya-hero__sub { max-width: 640px; margin-top: 18px; color: var(--fya-muted); font-size: 1.05rem; }

.fya-hero__search {
	position: relative; display: flex; align-items: center; gap: 8px;
	width: 100%; max-width: 660px; margin-top: 34px; padding: 8px 8px 8px 44px;
	background: #fff; border: 1px solid var(--fya-line); border-radius: 16px; box-shadow: var(--fya-shadow);
}
.fya-hero__search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8a8fb0; display: inline-flex; }
.fya-hero__search input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
	font: inherit; font-size: .95rem; color: var(--fya-ink); padding: 8px 0; margin: 0;
}
.fya-hero__search input:focus { box-shadow: none; }
.fya-hero__search .fya-btn { padding: 11px 18px; }

.fya-trend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.fya-trend__label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8fb0; margin-right: 4px; }
.fya-chip {
	display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--fya-line);
	border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 500; color: var(--fya-muted);
	transition: border-color .15s, color .15s;
}
.fya-chip:hover { border-color: var(--fya-primary); color: var(--fya-primary); }
.fya-chip .fya-i { color: var(--fya-primary); }

/* ---------- Secciones ---------- */
.fya-section { padding: 64px 0; }
.fya-section--tight { padding: 8px 0 24px; }
.fya-section--soft { background: var(--fya-primary-tint); background: linear-gradient(180deg, #f3f3ff, #f8f8ff); }

.fya-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.fya-eyebrow { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fya-primary); margin-bottom: 8px; }
.fya-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.fya-head__sub { margin-top: 8px; color: var(--fya-muted); font-size: .95rem; }

.fya .fya-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--fya-primary); }
.fya .fya-link:hover { color: var(--fya-primary-dark); }
.fya .fya-link--sm { font-size: .85rem; }

/* ---------- Rejillas ---------- */
.fya-grid { display: grid; gap: 24px; }
.fya-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fya-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
	.fya-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fya-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.fya-grid--3, .fya-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.fya-section { padding: 48px 0; }
}

/* ---------- Tarjeta de plantilla ---------- */
.fya-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fya-line);
	border-radius: var(--fya-radius); overflow: hidden; box-shadow: var(--fya-shadow);
	transition: transform .18s, box-shadow .18s;
}
.fya-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 26, 58, .06), 0 14px 32px rgba(23, 26, 58, .10); }
.fya-card__thumb { position: relative; display: block; height: 168px; background: var(--fya-primary-tint); overflow: hidden; }
.fya-card__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.fya-tag {
	position: absolute; left: 12px; top: 12px; background: #fff; color: var(--fya-primary);
	border-radius: 6px; padding: 3px 9px; font-size: .68rem; font-weight: 700;
	box-shadow: 0 1px 3px rgba(23, 26, 58, .12);
}
.fya-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.fya-card__body h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.fya-card__body h3 a:hover { color: var(--fya-primary); }
.fya-card__body p { color: var(--fya-muted); font-size: .88rem; }
.fya-formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fya-formats span { background: #eef0f8; color: #596087; border-radius: 6px; padding: 2px 8px; font-size: .68rem; font-weight: 700; }
.fya-card__body .fya-btn { margin-top: auto; }
.fya-card__body .fya-formats + .fya-btn { margin-top: 8px; }
.fya-card__body p { flex: 0 0 auto; }
.fya-card__body .fya-formats { margin-bottom: 6px; }

/* ---------- Mini vistas previas ---------- */
.mk { position: absolute; inset: 40px 16px 0; background: #fff; border: 1px solid var(--fya-line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 12px; font-size: .62rem; color: var(--fya-muted); overflow: hidden; }
.mk-head { color: var(--fya-ink); font-size: .66rem; margin-bottom: 10px; display: flex; gap: 4px; align-items: center; }
.mk-head b { font-weight: 700; }
.mk-head em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--fya-muted); }
.mk-head .tag { background: #ffe3de; color: #c2402c; border-radius: 4px; padding: 1px 6px; }
.mk-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-cols i { display: block; height: 42px; background: var(--fya-primary-tint); border-radius: 6px; padding: 5px; font-style: normal; }
.mk-cols b { font-size: .55rem; color: var(--fya-primary); }
.mk-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mk-line span { width: 48px; flex: none; }
.mk-seg { display: flex; gap: 3px; flex: 1; }
.mk-seg i { flex: 1; height: 8px; border-radius: 2px; background: #dfe2f3; }
.mk-seg i.on { background: var(--fya-primary); }
.mk-habits .mk-seg:nth-of-type(2) i.on { background: var(--fya-coral); }
.mk-donut__body { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.mk-donut ul li { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mk-donut ul i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mk-donut .c1 { background: var(--fya-primary); }
.mk-donut .c2 { background: var(--fya-coral); }
.mk-donut .c3 { background: #c7caef; }
.mk-ring {
	width: 62px; height: 62px; border-radius: 50%;
	background: conic-gradient(var(--fya-coral) 0 38%, var(--fya-primary) 38% 78%, #c7caef 78% 100%);
	-webkit-mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%);
	mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%);
}
.mk-item { display: flex; justify-content: space-between; align-items: center; background: var(--fya-primary-tint); border-radius: 6px; padding: 7px 8px; margin-bottom: 6px; }
.mk-item b.red { color: #d03a26; }
.mk-item b.blue { color: var(--fya-primary); }
.mk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-grid i { height: 36px; background: var(--fya-primary-tint); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; color: var(--fya-primary); }
.mk-grid i.mid { background: var(--fya-primary-soft); }
.mk-block { border-radius: 5px; padding: 6px 8px; margin-bottom: 5px; font-weight: 600; }
.mk-block.b1 { background: #dcd9ff; color: var(--fya-primary); }
.mk-block.b2 { background: #ffd9d3; color: #b83a27; }
.mk-block.b3 { background: #d9f2e4; color: #1d7a4a; }

/* ---------- Categorías ---------- */
.fya .fya-cat {
	display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--fya-radius);
	background: #fff; border: 1px solid var(--fya-line); box-shadow: var(--fya-shadow);
	transition: transform .18s, border-color .18s;
}
.fya .fya-cat:hover { transform: translateY(-3px); border-color: var(--fya-primary-soft); }
.fya-cat__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px; color: #fff; margin-bottom: 8px;
}
.fya-cat__icon.is-indigo { background: var(--fya-primary); }
.fya-cat__icon.is-coral { background: var(--fya-coral); }
.fya-cat__icon.is-brown { background: var(--fya-brown); }
.fya-cat h3 { font-size: 1.05rem; font-weight: 700; }
.fya-cat p { color: var(--fya-muted); font-size: .88rem; }
.fya-cat__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--fya-primary); }

/* ---------- Publicidad (solo diseño) ---------- */
.fya-ad {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: 110px; background: #e6eaff; border: 1px dashed #b9c2f5; border-radius: 14px; text-align: center; padding: 16px;
}
.fya-ad__label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b73a6; }
.fya-ad__text { font-size: .82rem; color: #6b73a6; }

/* ---------- Herramientas ---------- */
.fya-tool {
	display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #fff;
	border: 1px solid var(--fya-line); border-radius: var(--fya-radius); box-shadow: var(--fya-shadow);
}
.fya-tool__top { display: flex; align-items: center; justify-content: space-between; }
.fya-tool__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--fya-primary-tint); color: var(--fya-primary); }
.fya-badge { background: var(--fya-primary-tint); color: var(--fya-primary); border-radius: 999px; padding: 3px 10px; font-size: .68rem; font-weight: 700; }
.fya-tool h3 { font-size: 1.08rem; font-weight: 700; }
.fya-tool p { color: var(--fya-muted); font-size: .88rem; }
.fya-tool__preview { background: var(--fya-primary-tint); border: 1px solid var(--fya-primary-soft); border-radius: 12px; padding: 16px; margin: 4px 0 6px; }
.fya-tool .fya-btn { margin-top: auto; }

.fya-tool__preview--timer { display: flex; align-items: center; justify-content: space-between; }
.fya-tool__preview--timer strong { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--fya-ink); }
.fya-tool__preview--timer .dots { display: flex; gap: 5px; }
.fya-tool__preview--timer .dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9cdea; }
.fya-tool__preview--timer .dots i.on { background: var(--fya-coral); }

.fya-tool__preview--smart { display: flex; gap: 8px; justify-content: space-between; }
.fya-tool__preview--smart span {
	flex: 1; max-width: 44px; height: 38px; display: flex; align-items: center; justify-content: center;
	background: var(--fya-primary); color: #fff; font-weight: 800; border-radius: 8px;
}

.fya-tool__preview--matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fya-tool__preview--matrix span { padding: 8px 6px; border-radius: 6px; text-align: center; font-size: .66rem; font-weight: 700; }
.fya-tool__preview--matrix .q1 { background: #ffd9d3; color: #b83a27; }
.fya-tool__preview--matrix .q2 { background: #dcd9ff; color: var(--fya-primary); }
.fya-tool__preview--matrix .q3 { background: #fff0cc; color: #8a6200; }
.fya-tool__preview--matrix .q4 { background: #dfe7f5; color: #4b5b7c; }

/* ---------- Blog ---------- */
.fya-post {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fya-line);
	border-radius: var(--fya-radius); overflow: hidden; box-shadow: var(--fya-shadow);
	transition: transform .18s;
}
.fya-post:hover { transform: translateY(-3px); }
.fya-post__img { position: relative; display: block; height: 180px; background: linear-gradient(135deg, #dcd9ff, #f2f1ff); overflow: hidden; }
.fya-post__img > img { width: 100%; height: 100%; object-fit: cover; }
.fya-post__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a7a3f0; }
.fya-post__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.fya-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .74rem; color: #8a8fb0; }
.fya-meta span { display: inline-flex; align-items: center; gap: 5px; }
.fya-post__body h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.fya-post__body h3 a:hover { color: var(--fya-primary); }
.fya-post__body p { color: var(--fya-muted); font-size: .88rem; }
.fya-post__body .fya-link { margin-top: auto; }

/* ---------- CTA ---------- */
.fya-cta {
	text-align: center; color: #fff; border-radius: 22px; padding: 56px 24px;
	background: radial-gradient(600px 240px at 80% 0, rgba(255, 255, 255, .16), transparent 70%), linear-gradient(135deg, #3b2fd8, #2a1fb5);
	box-shadow: 0 20px 50px rgba(59, 47, 216, .28);
}
.fya-cta__pill { display: inline-block; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px 14px; font-size: .74rem; font-weight: 600; margin-bottom: 18px; }
.fya-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; max-width: 640px; margin: 0 auto; }
.fya-cta p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 16px auto 0; font-size: .98rem; }
.fya-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Pie de página ---------- */
.fya-footer { background: #fff; border-top: 1px solid var(--fya-line); padding: 56px 0 28px; margin-top: 24px; }
.fya-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.fya-footer__brand p { margin-top: 14px; max-width: 300px; font-size: .86rem; color: var(--fya-muted); }
.fya-footer__col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.fya-footer__col li { margin-bottom: 9px; }
.fya-footer__col a { font-size: .86rem; color: var(--fya-muted); }
.fya-footer__col a:hover { color: var(--fya-primary); }
.fya-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
	margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--fya-line);
	font-size: .78rem; color: #8a8fb0;
}
@media (max-width: 800px) {
	.fya-footer__grid { grid-template-columns: 1fr 1fr; }
	.fya-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.fya-footer__grid { grid-template-columns: 1fr; }
	.fya-hero { padding: 48px 0 44px; }
	.fya-hero__search { padding-left: 40px; }
	.fya-hero__search .fya-btn { padding: 10px 14px; }
}

/* ==========================================================
   Página de categoría
   ========================================================== */
.fya-catpage { padding-bottom: 56px; }

.fya-pagehead {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 40px 0 28px;
}
.fya-pagehead__text { max-width: 680px; }
.fya-pagehead h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; margin-top: 4px; }
.fya-pagehead p { margin-top: 12px; color: var(--fya-muted); font-size: 1rem; }
.fya-pill--dot { margin-bottom: 14px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.fya-pill--dot::before {
	content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
	background: var(--fya-primary); margin-right: 7px; vertical-align: 1px;
}

.fya-stat {
	display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--fya-line);
	border-radius: 14px; padding: 14px 20px; box-shadow: var(--fya-shadow);
}
.fya-stat__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border-radius: 11px; background: var(--fya-primary-tint); color: var(--fya-primary);
}
.fya-stat__text { display: flex; flex-direction: column; line-height: 1.3; }
.fya-stat__text small { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8fb0; }
.fya-stat__text strong { font-size: .95rem; font-weight: 700; }

/* Filtros */
.fya-filter {
	background: #fff; border: 1px solid var(--fya-line); border-radius: var(--fya-radius);
	padding: 20px 24px; box-shadow: var(--fya-shadow);
}
.fya-filter__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fya-filter__search {
	display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 440px;
	background: var(--fya-primary-tint); border: 1px solid var(--fya-primary-soft); border-radius: 10px;
	padding: 0 14px; color: #8a8fb0;
}
.fya-filter__search input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; box-shadow: none; margin: 0;
	font: inherit; font-size: .88rem; color: var(--fya-ink); padding: 11px 0;
}
.fya-filter__search input:focus { box-shadow: none; }
.fya-filter__sort { display: flex; align-items: center; gap: 10px; }
.fya-filter__sort label { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--fya-muted); }
.fya-select { position: relative; display: inline-flex; align-items: center; color: var(--fya-muted); }
.fya-select select {
	appearance: none; -webkit-appearance: none; border: 1px solid var(--fya-line); background: #fff;
	border-radius: 10px; padding: 8px 32px 8px 12px; font: inherit; font-size: .86rem; font-weight: 600;
	color: var(--fya-ink); cursor: pointer; margin: 0; width: auto;
}
.fya-select .fya-i { position: absolute; right: 11px; pointer-events: none; }
.fya .fya-reset {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border-radius: 10px; color: var(--fya-muted); border: 1px solid transparent;
}
.fya .fya-reset:hover { background: var(--fya-primary-tint); color: var(--fya-primary); }

.fya-filter__rows {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px;
	margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--fya-line);
}
.fya-filter__label {
	display: block; margin-bottom: 9px; font-size: .64rem; font-weight: 700;
	letter-spacing: .09em; text-transform: uppercase; color: #8a8fb0;
}
.fya-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fya .fya-fchip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
	background: #f3f4fb; border: 1px solid var(--fya-line); font-size: .8rem; font-weight: 600; color: var(--fya-muted);
	transition: background .15s, color .15s, border-color .15s;
}
.fya .fya-fchip:hover { border-color: var(--fya-primary); color: var(--fya-primary); }
.fya .fya-fchip.is-active { background: var(--fya-primary); border-color: var(--fya-primary); color: #fff; }
.fya-fchip__ico { display: inline-flex; }

/* Rejilla y tarjetas de categoría */
.fya-catgrid { margin-top: 28px; }
.fya-card--cat .fya-card__thumb { height: 156px; }
.fya-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.fya-tags .fya-tag { position: static; }
.fya-tag--badge { background: #fff1ee; color: #d6402b; }
.fya-card--cat .fya-card__body { gap: 10px; padding: 18px 20px 20px; }
.fya-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fya-card__body .fya-card__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: auto; padding-top: 14px; border-top: 1px solid var(--fya-line);
}
.fya-card__body .fya-card__foot .fya-btn { margin: 0; width: auto; }
.fya-downloads { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: #8a8fb0; }
.fya-card--cat .fya-card__body .fya-formats { margin: 0; }

.fya-ad--wide { grid-column: 1 / -1; min-height: 0; padding: 22px 16px; }

/* Paginación */
.fya-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 44px 0 8px; }
.fya .fya-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
	min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
	font-size: .86rem; font-weight: 600; color: var(--fya-muted); background: transparent; border: 0;
}
.fya .fya-pager a.page-numbers:hover { background: var(--fya-primary-soft); color: var(--fya-primary); }
.fya .fya-pager .page-numbers.current { background: var(--fya-primary); color: #fff; }
.fya .fya-pager .page-numbers.is-disabled { color: #b5b9d3; }

/* Sin resultados */
.fya-empty {
	margin-top: 28px; text-align: center; padding: 56px 20px; background: #fff;
	border: 1px solid var(--fya-line); border-radius: var(--fya-radius);
}
.fya-empty h2 { font-size: 1.3rem; font-weight: 800; }
.fya-empty p { margin-top: 10px; color: var(--fya-muted); }
.fya-empty a { color: var(--fya-primary); font-weight: 600; }

/* Texto SEO */
.fya-seo {
	margin-top: 64px; background: #fff; border: 1px solid var(--fya-line);
	border-radius: var(--fya-radius); padding: 36px 40px; box-shadow: var(--fya-shadow);
}
.fya-seo::before {
	content: ""; display: block; width: 36px; height: 3px; background: var(--fya-primary);
	border-radius: 3px; margin-bottom: 20px;
}
.fya-seo h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.fya-seo h3 { font-size: 1.08rem; font-weight: 700; margin-top: 26px; }
.fya-seo p { margin-top: 10px; color: var(--fya-muted); font-size: .95rem; line-height: 1.75; }
.fya-seo p:first-child { margin-top: 0; }

@media (max-width: 700px) {
	.fya-pagehead { padding-top: 28px; }
	.fya-filter { padding: 16px; }
	.fya-filter__search { max-width: none; flex-basis: 100%; }
	.fya-filter__sort { width: 100%; justify-content: space-between; }
	.fya-seo { padding: 26px 22px; }
}

/* ==========================================================
   Ficha de plantilla / entrada
   ========================================================== */
.fya-single {
	max-width: 896px; margin: 0 auto; padding: 24px 20px 64px;
	display: flex; flex-direction: column; gap: 40px;
}
.fya-single__head { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.fya-single h1 { font-size: clamp(2rem, 5.2vw, 3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }

/* Migas de pan */
.fya-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: var(--fya-muted); min-width: 0; }
.fya .fya-crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--fya-muted); }
.fya .fya-crumbs a:hover { color: var(--fya-primary); }
.fya-crumbs__sep { color: #c3c6e0; }
.fya-crumbs__current { font-weight: 600; color: var(--fya-ink); min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Barra de etiquetas y confianza */
.fya-mbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
	padding: 16px; background: var(--fya-primary-tint); border-radius: 12px;
}
.fya-mbar__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fya-mchip {
	display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px;
	background: #e3e6f6; color: var(--fya-muted); font-size: .75rem; font-weight: 600; line-height: 1.3;
}
.fya-mchip--primary { background: rgba(59, 47, 216, .10); color: var(--fya-primary); }
.fya-mchip--year { background: #d9deef; color: var(--fya-ink); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; font-weight: 700; }
.fya-trust { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--fya-primary); font-size: .88rem; }
.fya-trust strong { font-weight: 700; }
.fya-trust__sep { color: #b9bddb; }
.fya-trust__fmt { color: var(--fya-muted); }

/* Vista previa */
.fya-preview { display: flex; flex-direction: column; gap: 16px; }
.fya-viewer {
	display: flex; justify-content: center; align-items: center; padding: 16px;
	background: var(--fya-primary-tint); border-radius: 14px; overflow: hidden;
}
.fya-viewer__frame {
	width: 100%; max-width: 672px; background: #fff; border-radius: 10px;
	box-shadow: 0 18px 40px rgba(23, 26, 58, .16); overflow: hidden;
}
.fya-viewer__frame img { display: block; width: 100%; height: auto; }
.fya-viewer__empty {
	display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
	padding: 64px 20px; color: #a7a3f0; font-size: .85rem;
}
@media (min-width: 768px) { .fya-viewer { padding: 28px; } }

.fya-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.fya .fya-thumb {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; margin: 0;
	background: #fff; border: 1px solid var(--fya-line); border-radius: 12px; box-shadow: var(--fya-shadow);
	font: inherit; color: var(--fya-ink); text-align: left; text-transform: none; cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.fya .fya-thumb:hover { border-color: var(--fya-primary-soft); }
.fya .fya-thumb.is-active { border-color: var(--fya-primary); }
.fya-thumb img { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; background: var(--fya-primary-tint); }
.fya-thumb__text { display: flex; flex-direction: column; min-width: 0; }
.fya-thumb__t { font-size: .88rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fya-thumb__s { font-size: .74rem; color: var(--fya-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fya .fya-thumb.is-active .fya-thumb__t { color: var(--fya-primary); }

/* ---------- Contenido del editor ---------- */
.fya .fya-entry { color: var(--fya-muted); font-size: 1.05rem; line-height: 1.75; }
.fya .fya-entry > * { margin-top: 0; margin-bottom: 0; }
.fya .fya-entry > * + * { margin-top: 1.15em; }
.fya .fya-entry > .wp-block-group,
.fya .fya-entry > .fya-ad,
.fya .fya-entry > .fya-adslot { margin-top: 40px; }
.fya .fya-entry > :first-child { margin-top: 0; }

.fya .fya-entry .wp-block-group > * { margin-top: 0; margin-bottom: 0; }
.fya .fya-entry .wp-block-group > * + * { margin-top: 1em; }
.fya .fya-entry .wp-block-group > .fya-eyebrow + h2 { margin-top: 6px; }

.fya .fya-entry h2, .fya .fya-entry h3, .fya .fya-entry h4 { color: var(--fya-ink); }
.fya .fya-entry h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.fya .fya-entry h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.fya .fya-entry > h2 { margin-top: 2em; }
.fya .fya-entry > h3 { margin-top: 1.6em; }
.fya .fya-entry > :first-child { margin-top: 0; }
.fya .fya-entry strong { color: var(--fya-ink); font-weight: 600; }
.fya .fya-entry a:not(.fya-btn) { color: var(--fya-primary); text-decoration: underline; text-underline-offset: 3px; }
.fya .fya-entry a:not(.fya-btn):hover { color: var(--fya-primary-dark); }

.fya .fya-entry .fya-eyebrow { margin-bottom: 0; }

/* Tarjetas blancas (Group con la clase "fya-box") */
.fya .fya-entry .fya-box {
	background: #fff; border-radius: 12px; box-shadow: var(--fya-shadow); padding: 24px;
}
.fya .fya-entry .fya-box p { font-size: 1.08rem; line-height: 1.8; }
@media (min-width: 768px) { .fya .fya-entry .fya-box { padding: 40px; } }

/* Listas normales dentro del contenido */
.fya .fya-entry ul { list-style: disc; padding-left: 1.4em; }
.fya .fya-entry ol { list-style: decimal; padding-left: 1.4em; }
.fya .fya-entry li { margin: .4em 0; }

/* Paso a paso (lista ordenada con la clase "fya-steps") */
.fya .fya-entry ol.fya-steps {
	list-style: none; padding: 0; counter-reset: fya-step;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
}
@media (min-width: 768px) { .fya .fya-entry ol.fya-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fya .fya-entry ol.fya-steps > li {
	position: relative; margin: 0; counter-increment: fya-step;
	background: #fff; border-radius: 12px; box-shadow: var(--fya-shadow);
	padding: 24px 24px 24px 80px; font-size: .92rem; line-height: 1.65; color: var(--fya-muted);
	transition: box-shadow .18s;
}
.fya .fya-entry ol.fya-steps > li:hover { box-shadow: 0 2px 4px rgba(23, 26, 58, .06), 0 14px 32px rgba(23, 26, 58, .10); }
.fya .fya-entry ol.fya-steps > li::before {
	content: counter(fya-step); position: absolute; left: 24px; top: 24px;
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(59, 47, 216, .10); color: var(--fya-primary); font-size: 1.05rem; font-weight: 700;
}
.fya .fya-entry ol.fya-steps > li:hover::before { background: var(--fya-primary); color: #fff; }
.fya .fya-entry ol.fya-steps > li > strong:first-child { display: block; margin-bottom: 4px; font-size: 1.05rem; font-weight: 600; color: var(--fya-ink); }

/* Preguntas frecuentes (bloque Detalles) */
.fya .fya-entry details {
	background: #fff; border-radius: 12px; box-shadow: var(--fya-shadow); padding: 16px 20px;
}
.fya .fya-entry details > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	list-style: none; cursor: pointer; font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--fya-ink);
}
.fya .fya-entry details > summary::-webkit-details-marker { display: none; }
.fya .fya-entry details > summary::after {
	content: ""; flex: none; width: 20px; height: 20px; transition: transform .2s;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b2fd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fya .fya-entry details[open] > summary::after { transform: rotate(180deg); }
.fya .fya-entry details > :not(summary) { margin-top: 12px; font-size: 1rem; line-height: 1.7; }
.fya .fya-entry .wp-block-group > details + details { margin-top: 8px; }

/* Imágenes, citas y tablas dentro del contenido */
.fya .fya-entry img { max-width: 100%; height: auto; border-radius: 10px; }
.fya .fya-entry figure { margin-left: 0; margin-right: 0; }
.fya .fya-entry figcaption { margin-top: 8px; font-size: .82rem; color: #8a8fb0; text-align: center; }
.fya .fya-entry blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--fya-primary-soft); font-style: italic; }
.fya .fya-entry .wp-block-table { overflow-x: auto; }
.fya .fya-entry table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fya .fya-entry th, .fya .fya-entry td { border: 1px solid var(--fya-line); padding: 8px 12px; text-align: left; }
.fya .fya-entry th { background: var(--fya-primary-tint); color: var(--fya-ink); }

/* Variantes: página simple y artículo */
.fya .fya-entry--page {
	background: #fff; border-radius: 14px; box-shadow: var(--fya-shadow); padding: 28px 24px;
}
@media (min-width: 768px) { .fya .fya-entry--page { padding: 40px; } }
.fya .fya-entry--article { color: #3d4268; }
.fya-article-cover img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: 14px; }

/* Espacio en blanco antes de la descarga */
.fya-spacer { height: 12px; }
@media (min-width: 768px) { .fya-spacer { height: 24px; } }

/* ---------- Caja de descarga ---------- */
.fya-download {
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 32px 20px; text-align: center; background: #fff;
	border: 1px solid var(--fya-line); border-radius: 20px; box-shadow: 0 10px 30px rgba(23, 26, 58, .10);
}
@media (min-width: 768px) { .fya-download { padding: 44px 40px; } }
.fya-download::before, .fya-download::after {
	content: ""; position: absolute; width: 256px; height: 256px; border-radius: 50%; filter: blur(48px); pointer-events: none;
}
.fya-download::before { top: -96px; right: -96px; background: rgba(59, 47, 216, .08); }
.fya-download::after { bottom: -96px; left: -96px; background: rgba(255, 107, 87, .12); }
.fya-download > * { position: relative; z-index: 1; }
.fya-download__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
	border-radius: 50%; background: rgba(59, 47, 216, .10); color: var(--fya-primary);
}
.fya-download h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
.fya-download__lead { max-width: 520px; color: var(--fya-muted); }
.fya-download__btns { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; max-width: 620px; margin-top: 6px; }
@media (min-width: 640px) { .fya-download__btns { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; } }
.fya .fya-btn--pill { border-radius: 999px; padding: 14px 30px; font-weight: 700; width: 100%; }
@media (min-width: 640px) { .fya .fya-btn--pill { width: auto; } }
.fya .fya-btn--coral.fya-btn--pill { box-shadow: 0 8px 20px rgba(255, 107, 87, .35); }
.fya .fya-btn--outline { background: #fff; color: var(--fya-primary); border-color: var(--fya-primary-soft); box-shadow: 0 1px 3px rgba(23, 26, 58, .08); }
.fya .fya-btn--outline:hover { background: var(--fya-primary-tint); color: var(--fya-primary); }
.fya-download__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 6px; font-size: .78rem; color: #7a7fa3; }
.fya-download__meta span { display: inline-flex; align-items: center; gap: 6px; }
.fya-download__warn { max-width: 520px; padding: 14px 18px; background: #fff7e0; border: 1px dashed #e0b84a; border-radius: 10px; font-size: .88rem; color: #6b5200; text-align: left; }

/* Anuncio bajo la descarga: separación grande para que no se confunda con el botón */
.fya-ad--post-descarga, .fya-adslot--post-descarga { margin-top: 40px; }
.fya-adslot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 120px; padding: 12px 0; text-align: center; }
.fya-adslot .fya-ad__label { display: block; }

/* ---------- Plantillas relacionadas ---------- */
.fya-related h2 { margin-top: 4px; font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -.01em; }
.fya-related__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
@media (min-width: 768px) { .fya-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fya-rel {
	display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: var(--fya-shadow); transition: transform .18s, box-shadow .18s;
}
.fya-rel:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 26, 58, .06), 0 14px 32px rgba(23, 26, 58, .10); }
.fya-rel__thumb { position: relative; display: block; height: 176px; overflow: hidden; background: linear-gradient(135deg, #dcd9ff, #f2f1ff); }
.fya-rel__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.fya-rel__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.fya-rel__body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.fya-rel__body h3 a:hover { color: var(--fya-primary); }
.fya-rel__body p { color: var(--fya-muted); font-size: .88rem; }
.fya-rel__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.fya-rel__formats { font-size: .72rem; color: #8a8fb0; }

@media (max-width: 640px) {
	.fya-single { padding: 16px 16px 48px; gap: 32px; }
}

/* ==========================================================
   Blog: artículo editorial
   ========================================================== */
.fya-article-head { padding-bottom: 8px; }
.fya-pill--cat { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; margin-bottom: 14px; }
.fya-article-head h1 em { font-style: italic; color: var(--fya-primary); }

.fya-byline {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--fya-line);
}
.fya-byline__who { display: flex; align-items: center; gap: 12px; }
.fya-byline__text { display: flex; flex-direction: column; line-height: 1.3; }
.fya-byline__text strong { font-size: .92rem; color: var(--fya-ink); }
.fya-byline__text small { font-size: .78rem; color: var(--fya-muted); }
.fya-byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .84rem; color: var(--fya-muted); }
.fya-byline__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.fya-avatar {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 42px; height: 42px; border-radius: 50%; background: var(--fya-primary-soft); color: var(--fya-primary);
	font-weight: 700; font-size: 1rem;
}
.fya-avatar--lg { width: 64px; height: 64px; font-size: 1.5rem; }
.fya .fya-share {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600;
	color: var(--fya-primary); background: #fff; border: 1px solid var(--fya-line); border-radius: 999px; padding: 7px 14px; margin: 0;
}
.fya .fya-share:hover { background: var(--fya-primary-tint); border-color: var(--fya-primary-soft); }

figure.fya-article-cover { margin: 24px 0 0; }
.fya-article-cover figcaption { margin-top: 10px; text-align: center; font-size: .8rem; font-style: italic; color: var(--fya-muted); }

/* Índice */
.fya-toc { margin: 28px 0 0; background: #fff; border: 1px solid var(--fya-line); border-radius: 14px; box-shadow: var(--fya-shadow); }
.fya-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; color: var(--fya-ink); }
.fya-toc summary::-webkit-details-marker { display: none; }
.fya-toc__title { display: inline-flex; align-items: center; gap: 10px; }
.fya-toc__title .fya-i { color: var(--fya-primary); }
.fya-toc__chev { display: inline-flex; color: var(--fya-muted); transition: transform .2s; }
.fya-toc[open] .fya-toc__chev { transform: rotate(180deg); }
.fya-toc ol { list-style: none; margin: 0; padding: 0 20px 18px; counter-reset: toc; }
.fya-toc li { counter-increment: toc; margin: 0; }
.fya-toc li a { display: flex; gap: 12px; padding: 8px 0; color: var(--fya-muted); font-size: .94rem; border-top: 1px solid var(--fya-line); }
.fya-toc li:first-child a { border-top: 0; }
.fya-toc li a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--fya-primary); min-width: 1.6em; }
.fya-toc li a:hover { color: var(--fya-primary); }

/* Cuerpo del artículo: títulos numerados y bloques */
.fya .fya-entry--article { counter-reset: fya-h2; margin-top: 8px; font-size: 1.04rem; line-height: 1.8; }
.fya .fya-entry--article > h2 { scroll-margin-top: 90px; display: flex; align-items: baseline; gap: 12px; }
.fya .fya-entry--article > h2:not(.fya-plain) { counter-increment: fya-h2; }
.fya .fya-entry--article > h2:not(.fya-plain)::before {
	content: counter(fya-h2, decimal-leading-zero); color: var(--fya-primary); font-weight: 800; font-size: .8em; flex: 0 0 auto;
}
.fya .fya-entry--article > h2.fya-plain { display: block; margin-top: 2.2em; }

.fya .fya-entry .fya-callout {
	background: var(--fya-primary-tint); border: 1px solid var(--fya-primary-soft); border-radius: 14px;
	padding: 22px 22px 22px 64px; margin: 1.6em 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b2fd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.2 1 2V17h6v-.3c0-.8.4-1.5 1-2A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: 22px 24px;
}
.fya .fya-entry .fya-callout ul { margin-top: .6em; }

.fya .fya-entry .fya-compare { gap: 16px; margin: 1.4em 0; }
.fya .fya-entry .fya-compare .wp-block-column { background: #fff; border: 1px solid var(--fya-line); border-radius: 14px; box-shadow: var(--fya-shadow); padding: 20px 22px; }
.fya .fya-entry .fya-compare h4 { margin: 0 0 .4em; font-size: 1.05rem; color: var(--fya-primary); }
.fya .fya-entry .fya-compare p { margin: 0; font-size: .96rem; line-height: 1.65; }

.fya .fya-entry .fya-note { border-left: 4px solid var(--fya-coral); background: #fff7f5; border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 1.6em 0; }
.fya .fya-entry .fya-note > * + * { margin-top: .5em; }

.fya .fya-entry .fya-cta-box {
	background: #fff; border: 1px solid var(--fya-primary-soft); border-radius: 18px; box-shadow: var(--fya-shadow);
	padding: 28px 24px; margin: 2em 0; text-align: center;
}
.fya .fya-entry .fya-cta-box h3 { margin: 4px 0 8px; font-size: 1.3rem; }
.fya .fya-entry .fya-cta-box p { margin-left: auto; margin-right: auto; max-width: 520px; }
.fya .fya-entry .fya-cta-box .wp-block-buttons { justify-content: center; margin-top: 1.1em; }
.fya .fya-entry .wp-block-button a.wp-block-button__link {
	display: inline-flex; align-items: center; background: var(--fya-coral); color: #fff; font-weight: 700; font-size: .95rem;
	border-radius: 999px; padding: 13px 26px; text-decoration: none; box-shadow: 0 6px 16px rgba(255, 107, 87, .28);
}
.fya .fya-entry .wp-block-button a.wp-block-button__link:hover { background: var(--fya-coral-dark); color: #fff; }

.fya .fya-entry ul.fya-check { list-style: none; padding-left: 0; }
.fya .fya-entry ul.fya-check li { position: relative; padding-left: 32px; margin: .7em 0; }
.fya .fya-entry ul.fya-check li::before {
	content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%; background: var(--fya-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
	background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.fya .fya-entry .fya-box .fya-check { margin-bottom: 0; }

/* Caja de autor */
.fya-authorbox {
	display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px;
	background: #fff; border: 1px solid var(--fya-line); border-radius: 16px; box-shadow: var(--fya-shadow);
}
.fya-authorbox__body strong { display: block; font-size: 1.05rem; color: var(--fya-ink); }
.fya-authorbox__body p { margin: 6px 0 10px; font-size: .94rem; color: var(--fya-muted); }
.fya-related--blog { margin-top: 56px; }
.fya-related--blog .fya-head__sub { margin-top: 4px; color: var(--fya-muted); font-size: .94rem; }

@media (max-width: 600px) {
	.fya-authorbox { flex-direction: column; }
	.fya .fya-entry .fya-callout { padding: 60px 18px 18px; background-position: 18px 18px; }
	.fya .fya-entry--article > h2 { gap: 8px; }
}

/* ==========================================================
   Buscador, formularios y 404
   ========================================================== */
.fya-searchbar { display: flex; gap: 10px; max-width: 560px; margin-top: 22px; }
.fya-searchbar__field {
	display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
	background: #fff; border: 1px solid var(--fya-line); border-radius: 12px; padding: 0 14px; color: #8a8fb0;
}
.fya-searchbar__field:focus-within { border-color: var(--fya-primary); box-shadow: 0 0 0 3px var(--fya-primary-soft); }
.fya-searchbar__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; box-shadow: none; margin: 0; font: inherit; color: var(--fya-ink); padding: 12px 0; }
.fya-searchbar__field input:focus { box-shadow: none; }
.fya-pagehead--search .fya-pagehead__text { width: 100%; }
.fya-chips--center { justify-content: center; margin-top: 18px; }
@media (max-width: 480px) { .fya-searchbar { flex-direction: column; } }

.fya-form-wrap { margin: 24px 0 8px; }
.fya-form { display: grid; gap: 18px; }
.fya-form__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fya-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fya-field { display: flex; flex-direction: column; gap: 6px; }
.fya-field label { font-weight: 600; font-size: .9rem; color: var(--fya-ink); }
.fya .fya-field input, .fya .fya-field select, .fya .fya-field textarea {
	width: 100%; margin: 0; font: inherit; font-size: .96rem; color: var(--fya-ink); background: #fff;
	border: 1px solid var(--fya-line); border-radius: 10px; padding: 11px 14px;
}
.fya .fya-field input:focus, .fya .fya-field select:focus, .fya .fya-field textarea:focus {
	outline: 0; border-color: var(--fya-primary); box-shadow: 0 0 0 3px var(--fya-primary-soft);
}
.fya .fya-field textarea { resize: vertical; min-height: 140px; }
.fya-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fya-check-field { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--fya-muted); }
.fya-check-field input { margin-top: 4px; flex: 0 0 auto; }
.fya-form .fya-btn { justify-self: start; }
.fya-alert { padding: 12px 16px; border-radius: 10px; font-size: .92rem; font-weight: 600; margin: 0 0 16px; }
.fya-alert--ok { background: #e8f8ee; color: #1b6b3a; border: 1px solid #bfe8cd; }
.fya-alert--err { background: #fff0ee; color: #a8321f; border: 1px solid #ffd0c8; }

.fya-notfound { text-align: center; padding: 64px 0 40px; display: flex; flex-direction: column; align-items: center; }
.fya-notfound__code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; color: var(--fya-primary-soft); }
.fya-notfound h1 { margin-top: 8px; }
.fya-notfound p { color: var(--fya-muted); margin-top: 10px; max-width: 480px; }
.fya-notfound .fya-searchbar { width: 100%; margin-left: auto; margin-right: auto; }

/* Pie: sin columna de redes */
@media (min-width: 801px) { .fya-footer__grid--3 { grid-template-columns: 2fr 1fr 1fr; } }
