/* =========================================================================
   FRIKIS DE LA BICI v2 — Hoja de estilos principal
   Identidad: magenta #FF00CE + azul marino #000099 (colores exactos del logo)
   Mobile-first · variables CSS · modo claro/oscuro · sin frameworks
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------------------- */
:root {
	/* Marca (los sobrescribe el Personalizador) */
	--fdlb-magenta: #FF00CE;
	--fdlb-navy:    #000099;
	--fdlb-cyan:    #00E5FF;
	--fdlb-ink:     #05061F;

	/* Variantes accesibles derivadas */
	--fdlb-magenta-dk: #C2009C;  /* magenta legible sobre fondo claro */
	--fdlb-blue-lt:    #6C6CFF;  /* azul legible sobre fondo oscuro  */

	/* Radios */
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 22px;
	--r-full: 999px;

	/* Tipografía */
	--font-body: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Ritmo */
	--gap: clamp(1rem, 3vw, 1.75rem);
	--section-y: clamp(2.5rem, 6vw, 4.5rem);

	/* Contenedores */
	--wrap: 1180px;
	--wrap-wide: 1360px;
	--prose: 42rem;
	--pad-x: clamp(1rem, 4vw, 2rem);

	/* CABECERA COMPACTA: 56 px en lugar de los 64-80 habituales */
	--header-h: 56px;
	--logo-h: 34px;
	--mobile-bar-h: 60px;

	--t-fast: 140ms cubic-bezier(.2, .7, .3, 1);
	--t: 240ms cubic-bezier(.2, .7, .3, 1);
	--focus: 3px solid var(--fdlb-cyan);
}

/* --- OSCURO (por defecto) --- */
:root,
[data-scheme="dark"] {
	--bg:        var(--fdlb-ink);
	--bg-elev:   #0B0D30;
	--bg-elev-2: #151A44;
	--line:      #262C63;
	--line-soft: rgba(255, 255, 255, .09);
	--text:      #EDECFF;
	--text-soft: #A7ABD9;
	--text-dim:  #7C82B5;
	--accent:     var(--fdlb-magenta);
	--accent-ink: var(--fdlb-ink);
	--link:       var(--fdlb-magenta);
	--shadow:    0 2px 4px rgba(0, 0, 0, .34), 0 18px 48px rgba(0, 0, 0, .5);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .3);
	--header-bg: rgba(5, 6, 31, .84);
	color-scheme: dark;
}

/* --- CLARO --- */
[data-scheme="light"] {
	--bg:        #F7F6FD;
	--bg-elev:   #FFFFFF;
	--bg-elev-2: #EFEDF9;
	--line:      #E0DDF0;
	--line-soft: rgba(5, 6, 31, .09);
	--text:      #05061F;
	--text-soft: #4B4F80;
	--text-dim:  #7378A5;
	--accent:     var(--fdlb-navy);
	--accent-ink: #FFFFFF;
	--link:       var(--fdlb-magenta-dk);
	--shadow:    0 2px 4px rgba(5, 6, 31, .06), 0 18px 48px rgba(5, 6, 31, .11);
	--shadow-sm: 0 1px 2px rgba(5, 6, 31, .05), 0 8px 20px rgba(5, 6, 31, .07);
	--header-bg: rgba(247, 246, 253, .88);
	color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. RESET Y BASE
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: clamp(1rem, .97rem + .14vw, 1.0625rem);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color var(--t), color var(--t);
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
/* Titulares deliberadamente contenidos */
h1 { font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1.1vw, 1.875rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--fdlb-magenta); }

ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap) 0; }

::selection { background: var(--fdlb-magenta); color: #fff; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; top: -100px; left: 12px; z-index: 999;
	background: var(--fdlb-magenta); color: #fff;
	padding: .7em 1.2em; border-radius: var(--r-sm);
	font-weight: 700; text-decoration: none; transition: top var(--t);
}
.skip-link:focus { top: 12px; }

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

/* -------------------------------------------------------------------------
   3. CONTENEDORES
   ---------------------------------------------------------------------- */
.wrap {
	width: 100%; max-width: var(--wrap);
	margin-inline: auto; padding-inline: var(--pad-x);
}
.wrap--wide { max-width: var(--wrap-wide); }

.site-main { display: block; min-height: 46vh; }

.layout { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.layout__main { min-width: 0; }
@media (min-width: 1000px) {
	body:not(.has-no-sidebar) .layout { grid-template-columns: minmax(0, 1fr) 310px; }
}
.sticky-aside { position: sticky; top: calc(var(--header-h) + 18px); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.section--alt { background: var(--bg-elev); }

.section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 1rem; flex-wrap: wrap; margin-bottom: var(--gap);
}
.section-title {
	font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
	margin: 0 0 .2em; position: relative; padding-left: .9rem;
}
.section-title::before {
	content: ""; position: absolute; left: 0; top: .2em; bottom: .2em;
	width: 4px; border-radius: var(--r-full);
	background: linear-gradient(180deg, var(--fdlb-magenta), var(--fdlb-navy));
}
.section-link { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--text-soft); white-space: nowrap; }
.section-link:hover { color: var(--fdlb-magenta); }

.eyebrow {
	font-size: .75rem; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--fdlb-magenta); margin: 0 0 .5rem;
}
[data-scheme="light"] .eyebrow { color: var(--fdlb-magenta-dk); }

/* -------------------------------------------------------------------------
   4. CABECERA COMPACTA
   ---------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 90;
	background: var(--header-bg);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line-soft);
	transition: transform var(--t), box-shadow var(--t);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-stuck  { box-shadow: var(--shadow-sm); }

/* Sin padding vertical extra: la altura la marca min-height */
.site-header__inner {
	display: flex; align-items: center; gap: .75rem;
	min-height: var(--header-h);
}

/* --- Marca: logotipo pequeño + nombre discreto --- */
.brand { display: flex; align-items: center; margin-right: auto; min-width: 0; }
.brand__text { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; min-width: 0; }
.brand__logo,
.brand img,
.custom-logo {
	height: var(--logo-h); width: auto; max-height: var(--logo-h);
	flex: none; border-radius: 0;
}
/* Nombre del sitio contenido: 0,95 rem, no un titular */
.brand__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: -.01em;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis;
	max-width: 11ch;
}
@media (min-width: 480px) { .brand__name { max-width: 22ch; font-size: 1rem; } }
@media (min-width: 1000px) { .brand__name { max-width: none; } }

/* Menú de escritorio */
.nav-primary { display: none; }
@media (min-width: 1000px) { .nav-primary { display: block; } }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.menu li { position: relative; }
.menu__link,
.menu a {
	display: inline-flex; align-items: center;
	padding: .45rem .75rem; border-radius: var(--r-full);
	text-decoration: none; font-weight: 600; font-size: .92rem;
	color: var(--text-soft);
	transition: color var(--t-fast), background-color var(--t-fast);
}
.menu a:hover { color: var(--text); background: var(--bg-elev-2); }

.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current-menu-ancestor > a,
.menu .current-post-ancestor > a,
.menu a[aria-current="page"] {
	color: var(--text);
	background: var(--bg-elev-2);
	box-shadow: inset 0 -2px 0 var(--fdlb-magenta);
}

.menu__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .3rem; color: inherit; }
@media (min-width: 1000px) {
	.menu .sub-menu {
		position: absolute; top: 100%; left: 0; z-index: 20;
		min-width: 210px; margin: 0; padding: .35rem;
		list-style: none; border-radius: var(--r-md);
		background: var(--bg-elev); border: 1px solid var(--line);
		box-shadow: var(--shadow); display: block;
	}
	.menu .sub-menu[hidden] { display: none; }
	.menu .sub-menu a { display: flex; width: 100%; border-radius: var(--r-sm); }
	.menu .has-dropdown > .menu__link::after {
		content: ""; margin-left: .35rem;
		border: 4px solid transparent; border-top-color: currentColor;
		transform: translateY(2px);
	}
	.menu .has-dropdown:hover > .sub-menu,
	.menu .has-dropdown:focus-within > .sub-menu { display: block; }
}

/* Acciones: botones de 38 px para no engordar la barra */
.site-header__actions { display: flex; align-items: center; gap: .3rem; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 38px; height: 38px; flex: none;
	border: 1px solid var(--line); border-radius: var(--r-full);
	background: transparent; color: var(--text);
	cursor: pointer; transition: all var(--t-fast);
}
.icon-btn:hover { background: var(--bg-elev-2); border-color: var(--fdlb-magenta); }

.icon { width: 19px; height: 19px; display: block; background: currentColor; }
.icon--search { -webkit-mask: var(--m-search) center/contain no-repeat; mask: var(--m-search) center/contain no-repeat; }
.icon--scheme { -webkit-mask: var(--m-scheme) center/contain no-repeat; mask: var(--m-scheme) center/contain no-repeat; }
.icon--close  { -webkit-mask: var(--m-close) center/contain no-repeat;  mask: var(--m-close) center/contain no-repeat; }

:root {
	--m-search: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M20 20l-3.5-3.5"/></svg>');
	--m-scheme: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="4.5"/><path d="M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"/></svg>');
	--m-close:  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg>');
	--m-dot:    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="8"/></svg>');
}

.burger {
	display: inline-grid; place-items: center; gap: 5px;
	width: 38px; height: 38px; flex: none; padding: 0;
	border: 1px solid var(--line); border-radius: var(--r-full);
	background: transparent; cursor: pointer;
}
.burger span {
	display: block; width: 17px; height: 2px; border-radius: 2px;
	background: var(--text); transition: transform var(--t), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1000px) { .burger { display: none; } }

.searchbar {
	border-top: 1px solid var(--line-soft);
	padding-block: .7rem; background: var(--bg-elev);
	animation: slideDown var(--t);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

.searchform { display: flex; gap: .5rem; }
.searchform__input {
	flex: 1; min-width: 0; padding: .75em 1.05em;
	border: 1px solid var(--line); border-radius: var(--r-full);
	background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.searchform__input:focus { outline: var(--focus); outline-offset: 1px; border-color: transparent; }
.searchform__submit {
	display: inline-grid; place-items: center;
	width: 48px; flex: none; border: 0; cursor: pointer;
	border-radius: var(--r-full);
	background: var(--fdlb-magenta); color: #fff;
}
.searchform__submit:hover { background: var(--fdlb-navy); }

/* -------------------------------------------------------------------------
   5. MENÚ DESLIZANTE
   ---------------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }

.drawer__backdrop {
	position: absolute; inset: 0;
	background: rgba(5, 6, 31, .62); backdrop-filter: blur(3px);
	animation: fade var(--t);
}
@keyframes fade { from { opacity: 0; } }

.drawer__panel {
	position: absolute; inset: 0 0 0 auto;
	width: min(88vw, 370px); height: 100%;
	overflow-y: auto; overscroll-behavior: contain;
	background: var(--bg-elev); border-left: 1px solid var(--line);
	padding: 1rem var(--pad-x) calc(1.5rem + env(safe-area-inset-bottom));
	animation: slideIn var(--t);
	display: flex; flex-direction: column; gap: 1.15rem;
}
@keyframes slideIn { from { transform: translateX(100%); } }

.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.menu--drawer { flex-direction: column; align-items: stretch; gap: .1rem; }
.menu--drawer li { border-bottom: 1px solid var(--line-soft); }
.menu--drawer > li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.menu--drawer a { flex: 1; padding: .9rem .4rem; border-radius: var(--r-sm); font-size: 1.02rem; color: var(--text); }
.menu--drawer .menu__toggle {
	display: grid; place-items: center; width: 44px; height: 44px;
	border-radius: var(--r-sm); border: 1px solid var(--line);
}
.menu--drawer .chev {
	width: 10px; height: 10px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t);
}
.menu--drawer .menu__toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-3px, -3px); }
.menu--drawer .sub-menu {
	list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .9rem; width: 100%;
	border-left: 2px solid var(--fdlb-magenta);
}
.menu--drawer .sub-menu a { font-size: .96rem; color: var(--text-soft); }

.drawer__social { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-soft); }

/* -------------------------------------------------------------------------
   6. REDES
   ---------------------------------------------------------------------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; flex-wrap: wrap; }
.social--header { display: none; }
@media (min-width: 1240px) { .social--header { display: flex; } }

.social__link {
	display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: var(--r-full);
	border: 1px solid var(--line); color: var(--text-soft);
	text-decoration: none; transition: all var(--t-fast);
}
.social__link:hover {
	color: #fff; background: var(--fdlb-magenta);
	border-color: var(--fdlb-magenta); transform: translateY(-2px);
}
.social__icon {
	width: 17px; height: 17px; background: currentColor;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.social__icon[data-icon="youtube"]  { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 12s0-3.9-.5-5.8a3 3 0 0 0-2.1-2.1C18.5 3.6 12 3.6 12 3.6s-6.5 0-8.4.5a3 3 0 0 0-2.1 2.1C1 8.1 1 12 1 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.5 8.4.5 8.4.5s6.5 0 8.4-.5a3 3 0 0 0 2.1-2.1C23 15.9 23 12 23 12zM9.8 15.6V8.4l6.2 3.6-6.2 3.6z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 12s0-3.9-.5-5.8a3 3 0 0 0-2.1-2.1C18.5 3.6 12 3.6 12 3.6s-6.5 0-8.4.5a3 3 0 0 0-2.1 2.1C1 8.1 1 12 1 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.5 8.4.5 8.4.5s6.5 0 8.4-.5a3 3 0 0 0 2.1-2.1C23 15.9 23 12 23 12zM9.8 15.6V8.4l6.2 3.6-6.2 3.6z"/></svg>'); }
.social__icon[data-icon="twitch"]   { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 2 2 6v14h5v3h3l3-3h4l5-5V2H4zm16 11-3 3h-5l-3 3v-3H5V4h15v9zM11 7h2v5h-2V7zm5 0h2v5h-2V7z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 2 2 6v14h5v3h3l3-3h4l5-5V2H4zm16 11-3 3h-5l-3 3v-3H5V4h15v9zM11 7h2v5h-2V7zm5 0h2v5h-2V7z"/></svg>'); }
.social__icon[data-icon="spotify"]  { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.6 14.4a.8.8 0 0 1-1.1.3c-3-1.8-6.7-2.2-11.1-1.2a.8.8 0 1 1-.3-1.5c4.8-1.1 8.9-.6 12.2 1.4.4.2.5.7.3 1zm1.2-2.9a1 1 0 0 1-1.3.3c-3.4-2.1-8.6-2.7-12.6-1.5a1 1 0 1 1-.6-1.9c4.6-1.4 10.3-.7 14.2 1.7.4.3.6.9.3 1.4zm.1-3c-4.1-2.4-10.8-2.7-14.7-1.5a1.2 1.2 0 1 1-.7-2.3C7 5.3 14.4 5.7 19.1 8.5a1.2 1.2 0 0 1-1.2 2z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.6 14.4a.8.8 0 0 1-1.1.3c-3-1.8-6.7-2.2-11.1-1.2a.8.8 0 1 1-.3-1.5c4.8-1.1 8.9-.6 12.2 1.4.4.2.5.7.3 1zm1.2-2.9a1 1 0 0 1-1.3.3c-3.4-2.1-8.6-2.7-12.6-1.5a1 1 0 1 1-.6-1.9c4.6-1.4 10.3-.7 14.2 1.7.4.3.6.9.3 1.4zm.1-3c-4.1-2.4-10.8-2.7-14.7-1.5a1.2 1.2 0 1 1-.7-2.3C7 5.3 14.4 5.7 19.1 8.5a1.2 1.2 0 0 1-1.2 2z"/></svg>'); }
.social__icon[data-icon="telegram"] { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.9 4.3 18.8 19c-.2 1-.9 1.3-1.7.8l-4.7-3.5-2.3 2.2c-.3.3-.5.5-1 .5l.3-4.8 8.8-8c.4-.3-.1-.5-.6-.2L6.9 13.1 2.2 11.6c-1-.3-1-1 .2-1.5l18.2-7c.9-.3 1.6.2 1.3 1.2z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.9 4.3 18.8 19c-.2 1-.9 1.3-1.7.8l-4.7-3.5-2.3 2.2c-.3.3-.5.5-1 .5l.3-4.8 8.8-8c.4-.3-.1-.5-.6-.2L6.9 13.1 2.2 11.6c-1-.3-1-1 .2-1.5l18.2-7c.9-.3 1.6.2 1.3 1.2z"/></svg>'); }
.social__icon[data-icon="instagram"]{ -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2.2c3.2 0 3.6 0 4.9.1 1.2.1 1.8.2 2.2.4.6.2 1 .5 1.4.9.4.4.7.8.9 1.4.2.4.4 1 .4 2.2.1 1.3.1 1.7.1 4.9s0 3.6-.1 4.9c-.1 1.2-.2 1.8-.4 2.2-.2.6-.5 1-.9 1.4-.4.4-.8.7-1.4.9-.4.2-1 .4-2.2.4-1.3.1-1.7.1-4.9.1s-3.6 0-4.9-.1c-1.2-.1-1.8-.2-2.2-.4-.6-.2-1-.5-1.4-.9-.4-.4-.7-.8-.9-1.4-.2-.4-.4-1-.4-2.2C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.9c.1-1.2.2-1.8.4-2.2.2-.6.5-1 .9-1.4.4-.4.8-.7 1.4-.9.4-.2 1-.4 2.2-.4 1.3-.1 1.7-.1 4.8-.1zm0 3.2A6.6 6.6 0 1 0 18.6 12 6.6 6.6 0 0 0 12 5.4zm0 10.9A4.3 4.3 0 1 1 16.3 12 4.3 4.3 0 0 1 12 16.3zm6.9-11.1a1.5 1.5 0 1 1-1.5-1.5 1.5 1.5 0 0 1 1.5 1.5z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2.2c3.2 0 3.6 0 4.9.1 1.2.1 1.8.2 2.2.4.6.2 1 .5 1.4.9.4.4.7.8.9 1.4.2.4.4 1 .4 2.2.1 1.3.1 1.7.1 4.9s0 3.6-.1 4.9c-.1 1.2-.2 1.8-.4 2.2-.2.6-.5 1-.9 1.4-.4.4-.8.7-1.4.9-.4.2-1 .4-2.2.4-1.3.1-1.7.1-4.9.1s-3.6 0-4.9-.1c-1.2-.1-1.8-.2-2.2-.4-.6-.2-1-.5-1.4-.9-.4-.4-.7-.8-.9-1.4-.2-.4-.4-1-.4-2.2C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.9c.1-1.2.2-1.8.4-2.2.2-.6.5-1 .9-1.4.4-.4.8-.7 1.4-.9.4-.2 1-.4 2.2-.4 1.3-.1 1.7-.1 4.8-.1zm0 3.2A6.6 6.6 0 1 0 18.6 12 6.6 6.6 0 0 0 12 5.4zm0 10.9A4.3 4.3 0 1 1 16.3 12 4.3 4.3 0 0 1 12 16.3zm6.9-11.1a1.5 1.5 0 1 1-1.5-1.5 1.5 1.5 0 0 1 1.5 1.5z"/></svg>'); }
.social__icon[data-icon="strava"]   { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.8 2 3.5 14.2h3.7L9.8 9l2.6 5.2h3.7L9.8 2zm6.3 12.2-1.8 3.5-1.8-3.5h-2.8l4.6 8.8 4.6-8.8h-2.8z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.8 2 3.5 14.2h3.7L9.8 9l2.6 5.2h3.7L9.8 2zm6.3 12.2-1.8 3.5-1.8-3.5h-2.8l4.6 8.8 4.6-8.8h-2.8z"/></svg>'); }
.social__icon[data-icon="x"]        { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.2 2h3.3l-7.2 8.3L22.7 22h-6.6l-5.2-6.8L4.9 22H1.6l7.7-8.8L1.3 2H8l4.7 6.2L18.2 2zm-1.2 18h1.8L7.1 3.8H5.2L17 20z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.2 2h3.3l-7.2 8.3L22.7 22h-6.6l-5.2-6.8L4.9 22H1.6l7.7-8.8L1.3 2H8l4.7 6.2L18.2 2zm-1.2 18h1.8L7.1 3.8H5.2L17 20z"/></svg>'); }
.social__icon[data-icon="apple"],
.social__icon[data-icon="ivoox"]    { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7v3a7 7 0 0 0 4 6.3V21H7v2h10v-2h-2v-2.7A7 7 0 0 0 19 12V9a7 7 0 0 0-7-7zm0 2a5 5 0 0 1 5 5v3a5 5 0 0 1-10 0V9a5 5 0 0 1 5-5z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7v3a7 7 0 0 0 4 6.3V21H7v2h10v-2h-2v-2.7A7 7 0 0 0 19 12V9a7 7 0 0 0-7-7zm0 2a5 5 0 0 1 5 5v3a5 5 0 0 1-10 0V9a5 5 0 0 1 5-5z"/></svg>'); }

/* -------------------------------------------------------------------------
   7. BOTONES
   ---------------------------------------------------------------------- */
.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .8em 1.5em;
	border: 1px solid transparent; border-radius: var(--r-full);
	font-family: var(--font-body); font-weight: 700; font-size: .95rem;
	text-decoration: none; cursor: pointer;
	transition: transform var(--t-fast), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
	background: var(--fdlb-magenta); color: #fff;
	box-shadow: 0 6px 22px rgba(255, 0, 206, .32);
}
.btn--primary:hover {
	background: var(--fdlb-navy); color: #fff;
	box-shadow: 0 8px 26px rgba(0, 0, 153, .4);
}

.btn--ghost {
	background: rgba(255, 255, 255, .07); color: #fff;
	border-color: rgba(255, 255, 255, .3);
	backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--fdlb-magenta); background: rgba(255, 0, 206, .16); }
[data-scheme="light"] .section .btn--ghost,
[data-scheme="light"] .prose .btn--ghost { color: var(--text); border-color: var(--line); background: transparent; }

.is-style-outline .wp-block-button__link { background: transparent; color: currentColor; border: 2px solid currentColor; }

/* -------------------------------------------------------------------------
   8. HERO COMPACTO CON IMAGEN DE FONDO
   ---------------------------------------------------------------------- */
.hero {
	position: relative; isolation: isolate;
	display: flex; align-items: center;
	/* Altura acotada: ni banda gigante ni hueco vacío */
	min-height: clamp(300px, 46vh, 440px);
	padding-block: clamp(2rem, 5vw, 3.25rem);
	background: var(--fdlb-ink);
	overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; border-radius: 0; }

/* Velo para garantizar legibilidad del texto en cualquier imagen */
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(5, 6, 31, .94) 0%, rgba(5, 6, 31, .82) 34%, rgba(5, 6, 31, .34) 64%, rgba(5, 6, 31, .12) 100%),
		linear-gradient(180deg, rgba(5, 6, 31, .5) 0%, rgba(5, 6, 31, 0) 40%, rgba(5, 6, 31, .58) 100%);
}
@media (max-width: 720px) {
	.hero::before {
		background: linear-gradient(180deg, rgba(5, 6, 31, .74) 0%, rgba(5, 6, 31, .56) 45%, rgba(5, 6, 31, .9) 100%);
	}
}

.hero__inner {
	display: flex; flex-direction: column;
	gap: clamp(1.25rem, 3vw, 2rem);
	width: 100%;
}
.hero__text { max-width: 40rem; color: #fff; }
.hero .eyebrow { color: var(--fdlb-magenta); }

/* TITULAR CONTENIDO: máximo 2,6 rem en escritorio */
.hero__title {
	font-size: clamp(1.6rem, 1.15rem + 2.1vw, 2.6rem);
	line-height: 1.14;
	margin: 0 0 .5rem;
	color: #fff;
	text-shadow: 0 2px 24px rgba(5, 6, 31, .6);
	max-width: 20ch;
}
.hero__lead {
	font-size: clamp(.98rem, .95rem + .3vw, 1.125rem);
	color: rgba(255, 255, 255, .84);
	max-width: 44ch; margin-bottom: 1.35rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Métricas en línea, sin generar hueco muerto */
.hero__stats {
	display: flex; flex-wrap: wrap;
	gap: clamp(1.25rem, 4vw, 2.75rem);
	margin: 0; padding-top: 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__stat { margin: 0; }
.hero__stat-num {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
	color: var(--fdlb-magenta); line-height: 1;
}
.hero__stat-lab { margin: .3rem 0 0; font-size: .8rem; color: rgba(255, 255, 255, .7); }

.hero__media .yt-facade { border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* -------------------------------------------------------------------------
   9. FACADE DE YOUTUBE
   ---------------------------------------------------------------------- */
.yt-facade {
	position: relative; display: block; width: 100%;
	aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--r-md); cursor: pointer;
	background: #000; isolation: isolate;
}
.yt-facade__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform var(--t), filter var(--t); }
.yt-facade:hover .yt-facade__img { transform: scale(1.04); filter: brightness(.78); }
.yt-facade__play {
	position: absolute; inset: 0; margin: auto;
	width: 66px; height: 66px; border-radius: var(--r-full);
	background: var(--fdlb-magenta);
	box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
	transition: transform var(--t), background-color var(--t);
}
.yt-facade__play::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 0; height: 0;
	border-left: 19px solid #fff;
	border-top: 12px solid transparent; border-bottom: 12px solid transparent;
	transform: translateX(3px);
}
.yt-facade:hover .yt-facade__play { transform: scale(1.1); background: var(--fdlb-navy); }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------------------
   10. TARJETAS
   ---------------------------------------------------------------------- */
.cards { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3, .cards--front { grid-template-columns: repeat(3, 1fr); } }

.card {
	display: flex; flex-direction: column;
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--r-lg); overflow: hidden;
	transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); border-color: var(--fdlb-magenta); box-shadow: var(--shadow); }

.card__media { position: relative; display: block; text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-elev-2); }
.thumb__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 400ms cubic-bezier(.2,.7,.3,1); }
.card:hover .thumb__img { transform: scale(1.05); }
.thumb--placeholder {
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--fdlb-navy), var(--fdlb-magenta));
	font-family: var(--font-display); font-weight: 700; letter-spacing: .3em;
	color: rgba(255, 255, 255, .82); font-size: 1.05rem;
}

.card__badge {
	position: absolute; top: .65rem; left: .65rem;
	padding: .28em .65em; border-radius: var(--r-full);
	font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	background: var(--fdlb-magenta); color: #fff;
}
.card__badge--audio { background: var(--fdlb-cyan); color: var(--fdlb-ink); }

.card__body { padding: clamp(.95rem, 2.2vw, 1.25rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__title { font-size: 1.08rem; margin: 0; line-height: 1.28; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--fdlb-magenta); }
[data-scheme="light"] .card__title a:hover { color: var(--fdlb-magenta-dk); }
.card__excerpt { color: var(--text-soft); font-size: .92rem; margin: 0; flex: 1; }
.card__meta { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-dim); }

@media (min-width: 1000px) {
	.card--feature { grid-column: span 3; flex-direction: row; }
	.card--feature .card__media { flex: 0 0 56%; }
	.card--feature .thumb { height: 100%; aspect-ratio: auto; min-height: 300px; }
	.card--feature .card__body { justify-content: center; padding: clamp(1.4rem, 3vw, 2.25rem); gap: .8rem; }
	.card--feature .card__title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); }
	.card--feature .card__excerpt { font-size: 1.02rem; }
}

.pill {
	align-self: flex-start; display: inline-block;
	padding: .26em .75em; border-radius: var(--r-full);
	background: color-mix(in srgb, var(--fdlb-magenta) 16%, transparent);
	border: 1px solid color-mix(in srgb, var(--fdlb-magenta) 42%, transparent);
	color: var(--fdlb-magenta);
	font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	text-decoration: none;
}
[data-scheme="light"] .pill { color: var(--fdlb-magenta-dk); }
.pill:hover { background: var(--fdlb-magenta); color: #fff; }

/* -------------------------------------------------------------------------
   11. TEMAS
   ---------------------------------------------------------------------- */
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 600px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .topics { grid-template-columns: repeat(3, 1fr); } }

.topic {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1rem 1.15rem; min-height: 62px;
	background: var(--bg); border: 1px solid var(--line);
	border-radius: var(--r-md); text-decoration: none;
	transition: all var(--t-fast);
}
.topic:hover { border-color: var(--fdlb-magenta); transform: translateX(4px); }
.topic__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.topic__count { font-size: .78rem; color: var(--text-dim); white-space: nowrap; }

/* -------------------------------------------------------------------------
   12. CABECERA DE PÁGINA Y MIGAS
   ---------------------------------------------------------------------- */
.page-header { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 2.5vw, 1.5rem); }
.page-header__title { margin: 0; }
.page-header__desc { color: var(--text-soft); max-width: 60ch; margin-top: .6rem; }

.crumbs { margin-bottom: .85rem; font-size: .82rem; color: var(--text-dim); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--fdlb-magenta); }
.crumbs__sep { margin-left: .35rem; opacity: .5; }

/* -------------------------------------------------------------------------
   13. ENTRADA
   ---------------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.progress__bar {
	display: block; height: 100%; width: 0%;
	background: linear-gradient(90deg, var(--fdlb-magenta), var(--fdlb-cyan));
	transition: width 80ms linear;
}

.entry__header { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(.85rem, 2.5vw, 1.35rem); }
.entry__title { margin: .5rem 0 .45rem; font-size: clamp(1.7rem, 1.25rem + 2.3vw, 2.75rem); }
.entry__subtitle { font-size: clamp(1rem, .97rem + .35vw, 1.2rem); color: var(--text-soft); max-width: 58ch; }

.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; color: var(--text-dim); margin-top: .9rem; }
.entry__meta a { color: var(--text-soft); text-decoration: none; }
.entry__meta a:hover { color: var(--fdlb-magenta); }
.dot { opacity: .5; }

.entry__cover { margin: 0 0 clamp(1.35rem, 3.5vw, 2.25rem); }
.entry__cover-img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.entry__cover figcaption { margin-top: .55rem; font-size: .8rem; color: var(--text-dim); text-align: center; }
.entry__video { margin-bottom: clamp(1.35rem, 3.5vw, 2.25rem); }

.podcast-player {
	display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
	padding: 1rem 1.25rem; margin-bottom: 1.75rem;
	background: var(--bg-elev); border: 1px solid var(--line);
	border-left: 4px solid var(--fdlb-cyan); border-radius: var(--r-md);
}
.podcast-player__label { margin: 0; font-weight: 700; font-family: var(--font-display); }
.podcast-player audio { flex: 1; min-width: 240px; height: 40px; }

.prose { max-width: var(--prose); }
.entry--full .prose, .front-content { max-width: none; }
.front-content { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.prose > * { margin-block: 0 1.1em; }
.prose > h2 { margin-top: 2em; }
.prose > h3 { margin-top: 1.6em; }
.prose img, .prose figure { border-radius: var(--r-md); }
.prose figcaption { font-size: .8rem; color: var(--text-dim); text-align: center; margin-top: .45rem; }
.prose a { color: var(--link); text-decoration-color: var(--fdlb-magenta); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--fdlb-navy); }
[data-scheme="dark"] .prose a:hover { color: var(--fdlb-cyan); }
.prose li { margin-bottom: .35em; }
.prose blockquote {
	margin-inline: 0; padding-left: 1.2rem;
	border-left: 4px solid var(--fdlb-magenta);
	font-size: 1.1rem; color: var(--text-soft); font-style: italic;
}
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { padding: .65em .85em; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-elev); font-family: var(--font-display); }
.prose pre {
	background: var(--fdlb-ink); color: var(--fdlb-cyan);
	padding: 1rem; border-radius: var(--r-md);
	overflow-x: auto; font-family: var(--font-mono); font-size: .86rem;
}
.prose code { font-family: var(--font-mono); font-size: .9em; }
.prose :not(pre) > code { background: var(--bg-elev-2); padding: .15em .45em; border-radius: 6px; }

.entry__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.25rem 0 1.35rem; }
.entry__tags-label { font-size: .83rem; color: var(--text-dim); font-weight: 600; }
.entry__tags a {
	padding: .28em .75em; border-radius: var(--r-full);
	background: var(--bg-elev-2); border: 1px solid var(--line);
	font-size: .8rem; text-decoration: none; color: var(--text-soft);
}
.entry__tags a:hover { border-color: var(--fdlb-magenta); color: var(--text); }

.share {
	display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
	padding: 1rem 0; margin: 1.35rem 0; border-block: 1px solid var(--line);
}
.share__label { font-weight: 700; font-family: var(--font-display); font-size: .92rem; }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.share__btn {
	display: inline-flex; align-items: center; min-height: 40px;
	padding: .38em .95em; border-radius: var(--r-full);
	background: var(--bg-elev-2); border: 1px solid var(--line);
	font-size: .83rem; font-weight: 600; color: var(--text-soft);
	text-decoration: none; cursor: pointer; font-family: inherit;
	transition: all var(--t-fast);
}
.share__btn:hover { background: var(--fdlb-magenta); color: #fff; border-color: var(--fdlb-magenta); }
.share__btn.is-copied { background: var(--fdlb-cyan); color: var(--fdlb-ink); }

.author-box {
	display: flex; gap: 1.1rem; align-items: flex-start;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--r-lg); margin: 1.75rem 0;
}
.author-box__avatar { border-radius: var(--r-full); flex: none; width: 62px; height: 62px; }
.author-box__name { font-size: 1.02rem; margin: 0 0 .28rem; }
.author-box__bio { font-size: .9rem; color: var(--text-soft); margin: 0 0 .45rem; }
.author-box__link { font-size: .86rem; font-weight: 600; color: var(--link); text-decoration: none; }

.post-nav { display: grid; gap: .75rem; margin: 2.25rem 0; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__item {
	display: flex; flex-direction: column; gap: .3rem;
	padding: 1rem 1.15rem; min-height: 84px;
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--r-md); text-decoration: none; transition: all var(--t-fast);
}
.post-nav__item:hover { border-color: var(--fdlb-magenta); }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: .74rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.post-nav__title { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }

.related { margin-top: 3rem; }
.related .cards { margin-top: var(--gap); }

/* -------------------------------------------------------------------------
   14. WIDGETS
   ---------------------------------------------------------------------- */
.widget {
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--r-lg); padding: 1.15rem; margin-bottom: 1.15rem;
}
.widget__title {
	font-size: .98rem; margin: 0 0 .8rem; padding-bottom: .5rem;
	border-bottom: 2px solid var(--fdlb-magenta); display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; color: var(--text-soft); }
.widget a:hover { color: var(--fdlb-magenta); }

/* -------------------------------------------------------------------------
   15. COMENTARIOS
   ---------------------------------------------------------------------- */
.comments { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.comments__title { font-size: 1.25rem; margin-bottom: 1.15rem; }
.comments__list { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.comments__list .children { list-style: none; padding-left: clamp(.85rem, 3vw, 2rem); }
.comment-body {
	padding: 1rem; margin-bottom: .9rem;
	background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
}
.comment-author { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .93rem; }
.comment-author img { border-radius: var(--r-full); }
.comment-meta { font-size: .78rem; color: var(--text-dim); margin-bottom: .55rem; }
.comment-reply-link { font-size: .83rem; font-weight: 600; color: var(--link); text-decoration: none; }

.comment-form { display: grid; gap: .9rem; }
.comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: .75em 1em;
	border: 1px solid var(--line); border-radius: var(--r-md);
	background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.comment-form textarea { resize: vertical; }
.comments__notes { font-size: .86rem; color: var(--text-dim); }

/* -------------------------------------------------------------------------
   16. PAGINACIÓN, 404, SIN RESULTADOS
   ---------------------------------------------------------------------- */
.pagination { margin-top: 2.25rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.page-numbers {
	display: inline-grid; place-items: center;
	min-width: 46px; min-height: 46px; padding: 0 .8em;
	border: 1px solid var(--line); border-radius: var(--r-full);
	text-decoration: none; font-weight: 600; color: var(--text-soft);
	transition: all var(--t-fast);
}
.page-numbers:hover { border-color: var(--fdlb-magenta); color: var(--text); }
.page-numbers.current { background: var(--fdlb-magenta); color: #fff; border-color: var(--fdlb-magenta); }

.error404 { padding-block: clamp(2.5rem, 7vw, 4.5rem); text-align: center; }
.error404__code {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(4rem, 15vw, 9rem); line-height: 1; margin: 0;
	background: linear-gradient(120deg, var(--fdlb-magenta), var(--fdlb-navy));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-scheme="dark"] .error404__code { background: linear-gradient(120deg, var(--fdlb-magenta), var(--fdlb-cyan)); -webkit-background-clip: text; background-clip: text; }
.error404__title { margin-top: .4rem; }
.error404__text { color: var(--text-soft); max-width: 46ch; margin-inline: auto; }
.error404__search { max-width: 470px; margin: 1.5rem auto; }
.error404__actions { margin-bottom: 2.75rem; }
.error404 .section-title { text-align: left; }

.no-results { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; }
.no-results__title { margin-bottom: .45rem; }
.no-results__text { color: var(--text-soft); max-width: 46ch; margin: 0 auto 1.35rem; }
.no-results .searchform { max-width: 450px; margin-inline: auto; }
.search-again { margin-bottom: 1.75rem; max-width: 520px; }

/* -------------------------------------------------------------------------
   17. PIE
   ---------------------------------------------------------------------- */
.site-footer {
	position: relative; margin-top: var(--section-y);
	padding-block: clamp(2.25rem, 5vw, 3.5rem) calc(1.35rem + env(safe-area-inset-bottom));
	background: var(--bg-elev); border-top: 1px solid var(--line);
}
body.has-mobile-bar .site-footer { padding-bottom: calc(var(--mobile-bar-h) + 1.35rem + env(safe-area-inset-bottom)); }
@media (min-width: 800px) { body.has-mobile-bar .site-footer { padding-bottom: calc(1.35rem + env(safe-area-inset-bottom)); } }

.site-footer__grid { display: grid; gap: clamp(1.5rem, 3.5vw, 2.75rem); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1060px) { .site-footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; } }

.site-footer__about { color: var(--text-soft); font-size: .92rem; margin: .9rem 0 1.1rem; max-width: 42ch; }
.site-footer__note {
	margin-top: 1.75rem; padding: .85rem 1.05rem;
	background: var(--bg); border: 1px dashed var(--line);
	border-radius: var(--r-md); font-size: .8rem; color: var(--text-dim);
}
.site-footer__bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem; margin-top: 1.75rem; padding-top: 1.35rem;
	border-top: 1px solid var(--line-soft);
	font-size: .83rem; color: var(--text-dim);
}
.copyright { margin: 0; }
.menu--footer, .menu--legal { flex-direction: column; align-items: flex-start; gap: 0; }
.menu--legal { flex-direction: row; flex-wrap: wrap; gap: .2rem; }
.menu--footer a, .menu--legal a { padding: .3rem 0; font-size: .88rem; }
.menu--legal a { padding-inline: .55rem; }

.to-top {
	position: fixed; right: 1rem; z-index: 80;
	bottom: calc(1rem + env(safe-area-inset-bottom));
	width: 46px; height: 46px; border-radius: var(--r-full);
	border: 1px solid var(--line); background: var(--bg-elev); color: var(--text);
	cursor: pointer; box-shadow: var(--shadow-sm);
	font-size: 1.1rem; display: grid; place-items: center;
	transition: opacity var(--t), transform var(--t);
}
body.has-mobile-bar .to-top { bottom: calc(var(--mobile-bar-h) + 1rem + env(safe-area-inset-bottom)); }
@media (min-width: 800px) { body.has-mobile-bar .to-top { bottom: calc(1rem + env(safe-area-inset-bottom)); } }
.to-top:hover { background: var(--fdlb-magenta); color: #fff; border-color: var(--fdlb-magenta); }

/* -------------------------------------------------------------------------
   18. BARRA INFERIOR MÓVIL
   ---------------------------------------------------------------------- */
.mobile-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
	background: var(--header-bg);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-top: 1px solid var(--line);
	padding-bottom: env(safe-area-inset-bottom);
	transition: transform var(--t);
}
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 800px) { .mobile-bar { display: none; } }

.mobile-bar__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; height: var(--mobile-bar-h); }
.mobile-bar__menu li { flex: 1; display: flex; }
.mobile-bar__menu a {
	flex: 1; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: .18rem;
	text-decoration: none; color: var(--text-soft);
	font-size: .68rem; font-weight: 600; line-height: 1.1;
	text-align: center; padding: .3rem .2rem;
	transition: color var(--t-fast);
}
.mobile-bar__menu a::before {
	content: ""; width: 21px; height: 21px; display: block; background: currentColor;
	-webkit-mask: var(--m-dot) center/contain no-repeat; mask: var(--m-dot) center/contain no-repeat;
}
.mobile-bar__menu .current-menu-item a,
.mobile-bar__menu a[aria-current="page"] { color: var(--fdlb-magenta); }

/* -------------------------------------------------------------------------
   19. ESTILOS DE BLOQUE
   ---------------------------------------------------------------------- */
.is-style-fdlb-card,
.fdlb-card-block {
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--r-lg); padding: clamp(1rem, 2.5vw, 1.6rem);
}
.is-style-fdlb-frame img {
	border: 2px solid var(--fdlb-magenta);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--fdlb-magenta) 14%, transparent);
}
.is-style-fdlb-check { list-style: none; padding-left: 0; }
.is-style-fdlb-check li { position: relative; padding-left: 1.85rem; margin-bottom: .55em; }
.is-style-fdlb-check li::before {
	content: ""; position: absolute; left: 0; top: .35em;
	width: 1.1rem; height: 1.1rem; border-radius: var(--r-full);
	background: var(--fdlb-magenta);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
}
.is-style-fdlb-underline {
	display: inline;
	background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--fdlb-magenta) 45%, transparent) 62%);
	background-size: 100% 100%;
}

.fdlb-note {
	background: color-mix(in srgb, var(--fdlb-cyan) 10%, var(--bg-elev));
	border-left: 4px solid var(--fdlb-cyan);
	padding: 1rem 1.25rem;
}
.fdlb-cta { text-align: center; }
.fdlb-stats { text-align: center; }
.fdlb-stats .wp-block-column { padding: 1rem .5rem; border-radius: var(--r-md); background: var(--bg-elev); }

.wp-block-details {
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--r-md); padding: .95rem 1.2rem; margin-bottom: .8rem;
}
.wp-block-details summary {
	cursor: pointer; font-family: var(--font-display); font-weight: 700;
	list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.35rem; color: var(--fdlb-magenta); line-height: 1; flex: none; }
.wp-block-details[open] summary::after { content: "−"; }

.alignwide { max-width: var(--wrap-wide); margin-inline: auto; }
.alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.prose .alignwide { width: calc(100% + 10vw); max-width: calc(100vw - 2rem); margin-left: -5vw; }
@media (max-width: 860px) { .prose .alignwide { width: 100%; margin-left: 0; } }

/* -------------------------------------------------------------------------
   20. IMPRESIÓN
   ---------------------------------------------------------------------- */
@media print {
	.site-header, .site-footer, .mobile-bar, .share, .to-top,
	.post-nav, .related, .comments, .drawer, .progress, .hero__bg { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.prose { max-width: none; }
	a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
