/* ==========================================================================
   Hexentreffen — main.css
   Editorial + neo-brutalismo suave + efervescencia.
   Índice: 1 Tokens · 2 Base · 3 Utilidades · 4 Grano/progreso/cursor
           5 Cabecera/menú/buscador · 6 Botones/chips · 7 Hero · 8 Marquesina
           9 Manifiesto · 10 Rejilla/tarjetas · 11 Listados · 12 Entrada/prosa
           13 Comentarios/formularios · 14 Pie · 15 404 · 16 Revelados
           17 Elementor · 18 Movimiento reducido
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
	--hx-ink: #15112b;
	--hx-paper: #f6f1e7;
	--hx-lime: #d2ff3d;
	--hx-pink: #ff3d8b;
	--hx-violet: #6b4cff;
	--hx-sky: #3de0ff;

	--font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-text: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

	--gutter: clamp(1rem, 4vw, 2.5rem);
	--wide: 1280px;
	--measure: 68ch;
	--gap: clamp(1rem, 2vw, 1.75rem);
	--radius: 28px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--top: 14px;

	--accent: var(--hx-accent-custom, #d2ff3d);
	--accent-ink: var(--hx-accent-ink-custom, #15112b);

	color-scheme: light dark;
}

/* Claro (por defecto) */
:root,
:root[data-theme="light"] {
	--bg: #f6f1e7;
	--bg-2: #ece4d3;
	--fg: #15112b;
	--muted: #5f5a76;
	--line: rgba(21, 17, 43, 0.16);
	--card: #fffbf2;
	--link: #4a2cff;
	--bubble: 21, 17, 43;
	--blob-o: 0.5;
}

/* Oscuro por preferencia del sistema */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d0a1c;
		--bg-2: #171230;
		--fg: #f3eee3;
		--muted: #a9a3c0;
		--line: rgba(243, 238, 227, 0.16);
		--card: #15112a;
		--link: var(--accent);
		--bubble: 243, 238, 227;
		--blob-o: 0.36;
	}
}

/* Oscuro por elección manual */
:root[data-theme="dark"] {
	--bg: #0d0a1c;
	--bg-2: #171230;
	--fg: #f3eee3;
	--muted: #a9a3c0;
	--line: rgba(243, 238, 227, 0.16);
	--card: #15112a;
	--link: var(--accent);
	--bubble: 243, 238, 227;
	--blob-o: 0.36;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-text);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	line-height: 1.05;
	letter-spacing: -0.01em;
	font-weight: 700;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0; }

button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
	outline: 3px solid var(--hx-violet);
	outline-offset: 3px;
	border-radius: 6px;
}
:root[data-theme="dark"] :focus-visible { outline-color: var(--accent); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) :focus-visible { outline-color: var(--accent); }
}

/* 3. UTILIDADES --------------------------------------------------------- */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	background: var(--accent); color: var(--accent-ink);
	padding: 0.8rem 1.2rem; border-radius: 999px; z-index: 100000;
	left: 1rem; top: 1rem; font-family: var(--font-display); font-weight: 700;
	text-decoration: none;
}

.hx-container {
	width: min(var(--wide), 100% - 2 * var(--gutter));
	margin-inline: auto;
}
.hx-container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

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

/* 4. GRANO · PROGRESO · CURSOR ------------------------------------------ */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9990;
	pointer-events: none;
	opacity: 0.07;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: 0.09; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) body::after { mix-blend-mode: screen; opacity: 0.09; }
}

.hx-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300;
	pointer-events: none;
}
.hx-progress span {
	display: block; height: 100%; width: 100%;
	background: linear-gradient(90deg, var(--hx-violet), var(--hx-pink), var(--accent));
	transform-origin: 0 50%; transform: scaleX(0);
}

/* Cursor */
.hx-cursor { display: none; }
html.hx-has-cursor body,
html.hx-has-cursor a,
html.hx-has-cursor button,
html.hx-has-cursor label,
html.hx-has-cursor summary { cursor: none; }
html.hx-has-cursor input,
html.hx-has-cursor textarea,
html.hx-has-cursor select { cursor: text; }

html.hx-has-cursor .hx-cursor { display: block; }
.hx-cursor__dot,
.hx-cursor__ring {
	position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
	border-radius: 50%; will-change: transform; opacity: 0;
	transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), background-color 0.3s, border-color 0.3s, margin 0.35s var(--ease);
}
.hx-cursor.is-on .hx-cursor__dot,
.hx-cursor.is-on .hx-cursor__ring { opacity: 1; }
.hx-cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; mix-blend-mode: difference; }
.hx-cursor__ring {
	width: 38px; height: 38px; margin: -19px 0 0 -19px;
	border: 1.5px solid #fff; mix-blend-mode: difference;
	display: grid; place-items: center;
	font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.hx-cursor.is-hover .hx-cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
.hx-cursor.is-hover .hx-cursor__dot { opacity: 0; }
.hx-cursor.is-text .hx-cursor__ring { width: 4px; height: 34px; margin: -17px 0 0 -2px; border-radius: 2px; background: #fff; }
.hx-cursor.is-text .hx-cursor__dot { opacity: 0; }
.hx-cursor.is-view .hx-cursor__ring {
	width: 92px; height: 92px; margin: -46px 0 0 -46px;
	mix-blend-mode: normal; background: var(--accent); color: var(--accent-ink); border-color: var(--fg);
}
.hx-cursor.is-view .hx-cursor__dot { opacity: 0; }
.hx-cursor.is-down .hx-cursor__ring { transform-origin: center; scale: 0.82; }

/* Toast */
.hx-toast {
	position: fixed; left: 50%; bottom: 2rem; translate: -50% 20px; opacity: 0;
	background: var(--fg); color: var(--bg); padding: 0.8rem 1.3rem; border-radius: 999px;
	font: 600 0.95rem var(--font-display); z-index: 500; pointer-events: none;
	transition: opacity 0.35s, translate 0.35s var(--ease);
}
.hx-toast.is-on { opacity: 1; translate: -50% 0; }

/* 5. CABECERA · MENÚ · BUSCADOR ----------------------------------------- */
.admin-bar { --top: 46px; }
@media (min-width: 783px) { .admin-bar { --top: 46px; } }

.hx-header {
	position: fixed; top: var(--top); left: 0; right: 0; z-index: 100;
	display: flex; justify-content: center; pointer-events: none;
	transition: top 0.5s var(--ease);
}
.hx-header.is-hidden { top: -140px; }
.hx-header > * { pointer-events: auto; }

.hx-header__bar {
	position: relative; z-index: 2;
	width: min(1180px, 100% - 24px);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 0.55rem 0.6rem 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	transition: box-shadow 0.4s;
}
.hx-header__bar::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: rgba(246, 241, 231, 0.72);
	background: color-mix(in srgb, var(--bg) 70%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	transition: opacity 0.3s;
}
.hx-header.is-scrolled .hx-header__bar { box-shadow: 0 10px 40px -18px rgba(21, 17, 43, 0.5); }
.menu-open .hx-header__bar::before { opacity: 0; }
.menu-open .hx-header__bar { border-color: transparent; box-shadow: none; }

.hx-logo {
	display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none;
	font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.025em; text-transform: lowercase;
}
.hx-logo__mark { width: 0.95em; height: 0.95em; flex: none; transition: rotate 0.9s var(--ease), scale 0.5s var(--ease); }
.hx-logo:hover .hx-logo__mark { rotate: 180deg; scale: 1.2; }
.hx-logo__text { padding-bottom: 0.06em; }
.hx-logo__img { max-height: 38px; width: auto; }

.hx-header__actions { display: flex; align-items: center; gap: 0.3rem; }

.hx-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: transparent; border: 0; cursor: pointer; transition: background-color 0.25s, transform 0.4s var(--ease);
}
.hx-iconbtn:hover { background: var(--bg-2); transform: rotate(-8deg) scale(1.06); }

/* Icono luna/sol según el tema efectivo */
.ico-sun { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ico-sun { display: block; }
	:root:not([data-theme="light"]) .ico-moon { display: none; }
}

.hx-burger {
	display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: var(--fg); cursor: pointer;
}
.hx-burger span {
	position: absolute; left: 13px; right: 13px; height: 2px; background: var(--bg); border-radius: 2px;
	transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.hx-burger span:nth-child(1) { top: 18px; }
.hx-burger span:nth-child(2) { top: 25px; }
.menu-open .hx-burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .hx-burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Menú — escritorio */
.hx-nav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; z-index: 3; pointer-events: none; height: calc(0.55rem * 2 + 44px); align-items: center; }
.hx-nav > ul { pointer-events: auto; }
.hx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.hx-menu li { position: relative; }
.hx-menu a {
	display: block; padding: 0.55rem 1rem; border-radius: 999px; text-decoration: none;
	font: 600 0.95rem/1 var(--font-display); letter-spacing: -0.01em;
	transition: background-color 0.25s, color 0.25s;
}
.hx-menu a:hover { background: var(--bg-2); }
.hx-menu .current-menu-item > a,
.hx-menu .current_page_item > a,
.hx-menu .current-menu-ancestor > a { background: var(--accent); color: var(--accent-ink); }

.hx-menu .sub-menu {
	list-style: none; margin: 0; padding: 0.5rem; position: absolute; top: calc(100% + 0.6rem); left: 50%;
	min-width: 220px; translate: -50% 8px; opacity: 0; visibility: hidden;
	background: var(--card); border: 1px solid var(--line); border-radius: 22px;
	box-shadow: 6px 6px 0 var(--fg);
	transition: opacity 0.25s, translate 0.35s var(--ease), visibility 0.25s;
}
.hx-menu li:hover > .sub-menu,
.hx-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; translate: -50% 0; }

@media (max-width: 1000px) {
	.hx-burger { display: inline-block; }
	.hx-nav {
		position: fixed; inset: 0; height: auto; z-index: 1; pointer-events: auto;
		align-items: center; justify-content: flex-start;
		padding: 7rem var(--gutter) 3rem;
		background: var(--bg);
		clip-path: circle(0 at calc(100% - 40px) 42px);
		visibility: hidden;
		transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
		overflow-y: auto;
	}
	.menu-open .hx-nav {
		clip-path: circle(150vmax at calc(100% - 40px) 42px);
		visibility: visible; transition: clip-path 0.9s var(--ease), visibility 0s;
	}
	.hx-menu { flex-direction: column; align-items: flex-start; gap: 0.25rem; width: 100%; }
	.hx-menu a {
		font-size: clamp(2.4rem, 11vw, 4.4rem); font-weight: 800; letter-spacing: var(--hx-track, -0.02em); line-height: 1;
		padding: 0.25rem 0; border-radius: 0; background: none !important; color: var(--fg) !important;
	}
	.hx-menu .current-menu-item > a,
	.hx-menu .current_page_item > a { color: var(--link) !important; }
	.hx-menu > li { opacity: 0; translate: 0 30px; transition: opacity 0.5s, translate 0.7s var(--ease); }
	.menu-open .hx-menu > li { opacity: 1; translate: 0 0; transition-delay: calc(0.18s + var(--n, 0) * 70ms); }
	.hx-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; translate: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 1rem;
	}
	.hx-menu .sub-menu a { font-size: 1.5rem; font-weight: 600; }
	html.menu-open { overflow: hidden; }
}

/* Buscador a pantalla completa */
.hx-search {
	position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 2rem var(--gutter);
	background: rgba(246, 241, 231, 0.92);
	background: color-mix(in srgb, var(--bg) 90%, transparent);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
	opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.hx-search.is-open { opacity: 1; visibility: visible; }
.hx-search__close { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--fg); color: var(--bg); width: 52px; height: 52px; }
.hx-search__close:hover { background: var(--accent); color: var(--accent-ink); }
.hx-search__inner { width: min(1000px, 100%); display: grid; gap: 1.6rem; }
.hx-search__hint { color: var(--muted); font: 500 0.9rem var(--font-display); }
.hx-search__inner > * { opacity: 0; translate: 0 24px; transition: opacity 0.5s, translate 0.7s var(--ease); }
.hx-search.is-open .hx-search__inner > * { opacity: 1; translate: 0 0; }
.hx-search.is-open .hx-search__inner > *:nth-child(2) { transition-delay: 0.1s; }
.hx-search.is-open .hx-search__inner > *:nth-child(3) { transition-delay: 0.2s; }

.hx-searchform { position: relative; display: flex; align-items: center; border-bottom: 3px solid var(--fg); }
.hx-searchform__input {
	flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg);
	font: 800 clamp(2rem, 7vw, 5.5rem)/1.1 var(--font-display); letter-spacing: var(--hx-track, -0.02em); padding: 0.3rem 0;
}
.hx-searchform__input::placeholder { color: var(--muted); opacity: 0.55; }
.hx-searchform__btn {
	display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%;
	border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer;
	transition: transform 0.4s var(--ease);
}
.hx-searchform__btn:hover { transform: translateX(6px) rotate(-8deg); }

/* 6. BOTONES · CHIPS · KICKER ------------------------------------------- */
.hx-btn,
.wp-block-button__link,
.comment-form .submit {
	--btn-bg: var(--fg); --btn-fg: var(--bg);
	display: inline-flex; align-items: center; gap: 0.7rem;
	padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid var(--fg);
	background: var(--btn-bg); color: var(--btn-fg);
	font: 700 1rem/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
	transition: background-color 0.3s, color 0.3s, box-shadow 0.35s var(--ease), translate 0.25s var(--ease);
	box-shadow: 0 0 0 var(--fg);
}
.hx-btn:hover,
.wp-block-button__link:hover,
.comment-form .submit:hover {
	--btn-bg: var(--accent); --btn-fg: var(--accent-ink);
	box-shadow: 5px 5px 0 var(--fg);
}
:root[data-theme="dark"] .hx-btn:hover { box-shadow: 5px 5px 0 var(--fg); }
.hx-btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); }
.hx-btn__arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.hx-btn:hover .hx-btn__arrow { transform: translateY(3px) rotate(12deg); }

.hx-chip {
	display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px;
	border: 1.5px solid var(--fg); text-decoration: none;
	font: 700 0.78rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
	transition: background-color 0.25s, color 0.25s;
}
.hx-chip:hover { background: var(--accent); color: var(--accent-ink); }

.hx-kicker {
	display: inline-flex; align-items: center; gap: 0.6rem; width: fit-content;
	padding: 0.55rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
	background: rgba(246, 241, 231, 0.6);
	background: color-mix(in srgb, var(--bg) 60%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font: 700 0.78rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
}
.hx-kicker .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--hx-pink); animation: hx-pulse 2s ease-in-out infinite; }

/* 7. HERO --------------------------------------------------------------- */
.hx-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100svh; display: flex; align-items: flex-end;
	padding: clamp(7.5rem, 18vh, 11rem) 0 clamp(3.5rem, 9vh, 6rem);
}
.hx-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hx-blob {
	position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
	filter: blur(70px); opacity: var(--blob-o); will-change: transform, translate;
	animation: hx-morph 18s ease-in-out infinite alternate;
	translate: calc(var(--mx, 0) * var(--k, 30px)) calc(var(--my, 0) * var(--k, 30px));
	transition: translate 0.8s ease-out;
}
.hx-blob.b1 { width: 48vmax; height: 48vmax; left: -14vmax; top: -16vmax; background: var(--hx-violet); --k: -40px; }
.hx-blob.b2 { width: 40vmax; height: 40vmax; right: -12vmax; top: 10vh; background: var(--hx-pink); --k: 55px; animation-delay: -6s; }
.hx-blob.b3 { width: 34vmax; height: 34vmax; left: 28%; bottom: -20vmax; background: var(--accent); --k: 30px; animation-delay: -11s; }

.hx-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hx-bubbles--block { position: relative; width: 100%; border-radius: var(--radius); }
.hx-bubbles canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hx-hero__inner { position: relative; display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }

.hx-hero__title {
	font-size: clamp(2.8rem, 8.6vw, 9rem);
	line-height: 0.92; letter-spacing: var(--hx-track, -0.02em); font-weight: 800;
	font-variation-settings: "wdth" 96;
	max-width: 18ch;
	text-wrap: balance;
}

.hx-hl {
	font-style: normal; color: var(--accent-ink);
	background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 62% / 100% 0.86em;
	padding: 0 0.1em; margin: 0 -0.06em;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hx-js body:not(.hx-no-fx) .hx-hl {
	color: var(--fg);
	background-size: 0% 0.86em;
	transition: background-size 1.1s var(--ease) 0.5s, color 0.2s linear 0.9s;
}
.hx-js body:not(.hx-no-fx) .is-in .hx-hl,
.hx-js body:not(.hx-no-fx) .hx-hl.is-in { background-size: 100% 0.86em; color: var(--accent-ink); }

.hx-hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.5rem; }
.hx-hero__lead { max-width: 46ch; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--fg); }

.hx-badge {
	position: absolute; right: 0; bottom: 0;
	width: clamp(110px, 12vw, 170px); height: auto; aspect-ratio: 1;
	animation: hx-spin 22s linear infinite; display: none;
}
.hx-badge__text { font: 800 15px var(--font-display); letter-spacing: 0.04em; fill: var(--accent-ink); }
@media (min-width: 1060px) { .hx-badge { display: block; } }

/* 8. MARQUESINA --------------------------------------------------------- */
.hx-marquee {
	overflow: hidden; display: block; padding: 1.1rem 0;
	border-block: 2px solid var(--fg);
	background: var(--accent); color: var(--accent-ink);
	font: 800 clamp(1.6rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -0.015em; text-transform: uppercase;
	font-variation-settings: "wdth" 92;
	white-space: nowrap; user-select: none;
}
.hx-marquee--tilt { rotate: -1.6deg; margin-inline: -4vw; margin-block: -1.2rem; position: relative; z-index: 3; }
.hx-marquee--ink { background: var(--fg); color: var(--bg); }
.hx-marquee--outline,
.hx-marquee--duo { background: transparent; color: var(--fg); border-color: currentColor; }
/* Dúo: palabras alternas en tinta y rosa, todo sólido (sin trazos huecos) */
.hx-marquee--outline .hx-marquee__item:nth-of-type(even),
.hx-marquee--duo .hx-marquee__item:nth-of-type(even) { color: var(--hx-pink); }

.hx-marquee__track { display: flex; width: max-content; animation: hx-marquee var(--speed, 32s) linear infinite; }
.hx-marquee.is-reverse .hx-marquee__track { animation-direction: reverse; }
.hx-marquee:hover .hx-marquee__track { animation-play-state: paused; }
.hx-marquee__group { display: flex; align-items: center; flex: none; }
.hx-marquee__item { padding: 0 1.3rem; }
.hx-marquee__sep { width: 0.8em; height: 0.8em; flex: none; animation: hx-spin 8s linear infinite; }

/* 9. MANIFIESTO (texto que se ilumina) ----------------------------------- */
.hx-manifesto { padding: clamp(6rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem); }
.hx-fill {
	margin-inline: auto 0;
	font: 700 clamp(2rem, 5.2vw, 4.6rem)/1.06 var(--font-display); letter-spacing: var(--hx-track, -0.02em); text-wrap: pretty;
	max-width: 20em;
}
.hx-fill .f { opacity: 1; transition: opacity 0.35s linear; }
.hx-js body:not(.hx-no-fx) .hx-fill .f { opacity: 0.16; }
.hx-js body:not(.hx-no-fx) .hx-fill .f.on { opacity: 1; }

/* 10. REJILLA · TARJETAS ------------------------------------------------ */
.hx-posts { padding: clamp(4rem, 9vw, 8rem) 0; }
.hx-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.8rem, 4vw, 3.2rem); }
.hx-section__title { font-size: clamp(2.4rem, 7vw, 6rem); line-height: 0.95; letter-spacing: var(--hx-track, -0.02em); font-weight: 800; }
.hx-section__count {
	font: 800 clamp(2rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: var(--hx-track, -0.02em);
	color: var(--hx-violet);
}
.hx-posts__more { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

.hx-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) {
	.hx-grid { grid-template-columns: repeat(6, 1fr); }
	.hx-grid > .hx-card { grid-column: span 3; }
	.hx-grid > .hx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.hx-grid > .hx-card--feature { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
	.hx-grid { grid-template-columns: repeat(12, 1fr); }
	.hx-grid > .hx-card,
	.hx-grid > .hx-card:last-child:nth-child(odd) { grid-column: span 4; }

	/* Patrón bento: ciclos de 5 → [8·4] [4·4·4]; el siguiente ciclo invierte la primera fila */
	.hx-grid--bento > .hx-card:nth-child(5n+1) { grid-column: span 8; }
	.hx-grid--bento > .hx-card:nth-child(10n+6) { grid-column: span 4; }
	.hx-grid--bento > .hx-card:nth-child(10n+7) { grid-column: span 8; }
	/* Huecos finales: la última tarjeta rellena la fila */
	.hx-grid--bento > .hx-card:last-child:nth-child(5n+1),
	.hx-grid--bento > .hx-card:last-child:nth-child(5n+3) { grid-column: 1 / -1; }
	.hx-grid--bento > .hx-card:last-child:nth-child(5n+4) { grid-column: span 8; }
}

.hx-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
	overflow: hidden; isolation: isolate;
	transition: opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms), translate 0.9s var(--ease) calc(var(--d, 0) * 90ms),
		transform 0.5s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.hx-card:hover {
	transform: translateY(-6px) rotate(-0.4deg);
	border-color: var(--fg);
	box-shadow: 8px 8px 0 var(--fg);
}
.hx-card:nth-child(even):hover { transform: translateY(-6px) rotate(0.4deg); }

.hx-card__media {
	position: relative; flex: 1 1 auto; aspect-ratio: 4 / 3; overflow: hidden;
	margin: 0.6rem 0.6rem 0; border-radius: calc(var(--radius) - 10px);
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.5s var(--ease);
	background: var(--bg-2);
}
.hx-card--feature .hx-card__media { aspect-ratio: 16 / 10; }
.hx-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.06); transition: transform 1.1s var(--ease), filter 0.6s;
}
.hx-card:hover .hx-card__media img { transform: scale(1.14) rotate(0.6deg); }

.hx-js body:not(.hx-no-fx) .hx-card__media { clip-path: inset(0 0 100% 0 round 18px); transition: clip-path 1.2s var(--ease) calc(var(--d, 0) * 90ms + 0.15s), transform 0.5s var(--ease); }
.hx-js body:not(.hx-no-fx) .hx-card.is-in .hx-card__media { clip-path: inset(0 0 0 0 round 18px); }

.hx-card__ph {
	position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
	background:
		radial-gradient(circle at 18% 22%, hsl(var(--hue) 95% 62%) 0, transparent 52%),
		radial-gradient(circle at 82% 74%, hsl(calc(var(--hue) + 70) 95% 60%) 0, transparent 55%),
		hsl(calc(var(--hue) + 210) 55% 17%);
}
.hx-card__ph::before {
	content: ""; position: absolute; inset: -20%; opacity: 0.22; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 97L0 81V49m56 0v32L28 97' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
	background-size: 56px 97px;
	animation: hx-drift 30s linear infinite;
}
.hx-card__initial {
	position: relative; font: 800 clamp(6rem, 14vw, 11rem)/0.8 var(--font-display); letter-spacing: -0.04em;
	color: rgba(255, 255, 255, 0.92); mix-blend-mode: overlay; text-transform: uppercase;
	transition: transform 0.9s var(--ease);
}
.hx-card:hover .hx-card__initial { transform: scale(1.12) rotate(-6deg); }

.hx-card__body { display: grid; gap: 0.8rem; padding: 1.3rem 1.5rem 1.6rem; }
.hx-card__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem;
	font: 600 0.78rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.hx-card__num { color: var(--fg); font-weight: 800; }
.hx-card__cat { padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); }

.hx-card__title { font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.02; letter-spacing: -0.015em; font-weight: 750; padding-right: 3.2rem; }
.hx-card--feature .hx-card__title { font-size: clamp(2rem, 3.8vw, 3.6rem); padding-right: 4rem; }
.hx-card__title a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 0.07em;
	transition: background-size 0.6s var(--ease);
}
.hx-card:hover .hx-card__title a { background-size: 100% 0.07em; }
/* enlace estirado: toda la tarjeta es clicable */
.hx-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.hx-card__excerpt {
	color: var(--muted); font-size: 1.05rem; line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hx-card__excerpt { padding-right: 3.6rem; }
.hx-card__read { font: 600 0.8rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.hx-card__arrow {
	position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 1;
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--fg);
	transition: transform 0.6s var(--ease), background-color 0.3s;
}
.hx-card:hover .hx-card__arrow { transform: rotate(45deg) scale(1.1); background: var(--hx-pink); color: #fff; }

/* 11. LISTADOS ---------------------------------------------------------- */
.hx-listing { padding: clamp(8.5rem, 16vw, 12rem) 0 clamp(4rem, 8vw, 7rem); }
.hx-listing__head { display: grid; gap: 1.4rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.hx-listing__title { font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.92; letter-spacing: var(--hx-track, -0.02em); font-weight: 800; font-variation-settings: "wdth" 96; }
.hx-listing__desc { max-width: 56ch; color: var(--muted); font-size: 1.25rem; }

.navigation.pagination { margin-top: clamp(2.5rem, 5vw, 4rem); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 1rem; border-radius: 999px;
	border: 1.5px solid var(--fg); text-decoration: none; font: 700 1rem var(--font-display);
	transition: background-color 0.25s, color 0.25s, transform 0.4s var(--ease);
}
a.page-numbers:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.page-numbers.current { background: var(--fg); color: var(--bg); }
.page-numbers.dots { border-color: transparent; }

.hx-none { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; display: grid; gap: 1.2rem; justify-items: center; }
.hx-none__big { font: 800 clamp(6rem, 20vw, 14rem)/0.8 var(--font-display); color: var(--hx-pink); }
.hx-none .hx-searchform { width: min(640px, 100%); }
.hx-none .hx-searchform__input { font-size: 1.8rem; }

/* 12. ENTRADA · PROSA --------------------------------------------------- */
.hx-single__head { padding-top: clamp(8.5rem, 16vw, 12rem); display: grid; gap: 1.6rem; }
.hx-single__cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hx-single__title {
	font-size: clamp(2.6rem, 8vw, 7.5rem); line-height: 0.95; letter-spacing: var(--hx-track, -0.02em); font-weight: 800;
	font-variation-settings: "wdth" 96; max-width: 16ch;
}
.hx-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; font: 600 0.95rem var(--font-display); color: var(--muted); }
.hx-single__author { color: var(--fg); font-weight: 700; }
.hx-avatar { border-radius: 50%; border: 2px solid var(--fg); width: 44px; height: 44px; }
.hx-avatar--lg { width: 88px; height: 88px; flex: none; }
.hx-dotsep { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.hx-single__cover {
	margin: clamp(2rem, 5vw, 4rem) auto clamp(2.5rem, 6vw, 5rem);
	width: min(var(--wide), 100% - 2 * var(--gutter));
	aspect-ratio: 21 / 9; overflow: hidden; border-radius: clamp(20px, 3vw, 40px);
	border: 2px solid var(--fg); background: var(--bg-2);
}
@media (max-width: 700px) { .hx-single__cover { aspect-ratio: 4 / 3; } }
.hx-single__cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hx-article--page .hx-single__head { padding-bottom: 2rem; }

.hx-prose {
	--m: min(var(--measure), 100% - 2 * var(--gutter));
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[wide-start] minmax(0, calc((var(--wide) - var(--measure)) / 2))
		[main-start] var(--m) [main-end]
		minmax(0, calc((var(--wide) - var(--measure)) / 2)) [wide-end]
		minmax(var(--gutter), 1fr) [full-end];
	font-family: var(--font-text); font-size: clamp(1.18rem, 1.1rem + 0.35vw, 1.4rem); line-height: 1.7;
	font-optical-sizing: auto;
}
.hx-prose > * { grid-column: main; min-width: 0; }
.hx-prose > * + * { margin-top: 1.35em; }
.hx-prose > .alignwide,
.hx-prose > .wp-block-image.alignwide,
.hx-prose > .wp-block-gallery.alignwide { grid-column: wide; }
.hx-prose > .alignfull { grid-column: full; }
.hx-prose > .alignleft { float: left; }

.hx-prose h2, .hx-prose h3, .hx-prose h4 { font-family: var(--font-display); margin-top: 2.2em; }
.hx-prose h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: var(--hx-track, -0.02em); font-weight: 800; line-height: 1; }
.hx-prose h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.015em; }
.hx-prose h4 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hx-prose h2 + *, .hx-prose h3 + * { margin-top: 0.8em; }

.hx-prose a:not(.wp-block-button__link) {
	text-decoration: none; font-weight: 500;
	background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 0.14em;
	transition: background-size 0.35s var(--ease), color 0.25s;
}
.hx-prose a:not(.wp-block-button__link):hover { background-size: 100% 100%; color: var(--accent-ink); }

.hx-prose--dropcap > p:first-of-type::first-letter {
	float: left; font: 800 5.4em/0.78 var(--font-display); letter-spacing: var(--hx-track, -0.02em);
	margin: 0.06em 0.12em 0 -0.03em; color: var(--hx-pink);
}

.hx-prose blockquote {
	position: relative; margin-inline: 0; padding: 0.4em 0 0.4em 1.2em; border: 0;
	font: 650 clamp(1.6rem, 3.4vw, 2.5rem)/1.12 var(--font-display); letter-spacing: -0.015em;
}
.hx-prose blockquote::before {
	content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 0.4rem; border-radius: 4px;
	background: linear-gradient(var(--hx-violet), var(--hx-pink), var(--accent));
}
.hx-prose blockquote p { margin: 0; }
.hx-prose blockquote cite { display: block; margin-top: 0.8em; font: 600 0.9rem var(--font-display); color: var(--muted); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; }

.hx-prose img { border-radius: 20px; }
.hx-prose figure { margin-inline: 0; }
.hx-prose figcaption { margin-top: 0.7em; font: 500 0.9rem var(--font-display); color: var(--muted); text-align: center; }
.hx-prose ul, .hx-prose ol { padding-left: 1.3em; }
.hx-prose li + li { margin-top: 0.4em; }
.hx-prose li::marker { color: var(--hx-pink); font-weight: 800; }
.hx-prose hr, .wp-block-separator {
	border: 0; height: 2px; margin-block: 2.5em; width: 100%;
	background: repeating-linear-gradient(90deg, var(--fg) 0 10px, transparent 10px 20px);
}
.hx-prose code { font-size: 0.85em; padding: 0.15em 0.4em; background: var(--bg-2); border-radius: 6px; }
.hx-prose pre { overflow: auto; padding: 1.2rem 1.4rem; background: var(--fg); color: var(--bg); border-radius: 18px; font-size: 0.95rem; line-height: 1.5; }
.hx-prose pre code { background: none; padding: 0; }
.hx-prose table { width: 100%; border-collapse: collapse; font: 500 1rem var(--font-display); }
.hx-prose th, .hx-prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1.5px solid var(--line); }
.hx-prose th { font-weight: 800; border-bottom-color: var(--fg); }
.hx-prose iframe, .hx-prose video { width: 100%; border-radius: 20px; border: 0; aspect-ratio: 16 / 9; }
.hx-pagelinks { font: 700 1rem var(--font-display); display: flex; gap: 0.6rem; }

.hx-single__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 2px dashed var(--line); width: min(var(--measure), 100% - 2 * var(--gutter)); }
.hx-single__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hx-single__tags a { text-decoration: none; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--bg-2); font: 600 0.85rem var(--font-display); }
.hx-single__tags a::before { content: "#"; opacity: 0.55; }
.hx-single__tags a:hover { background: var(--accent); color: var(--accent-ink); }

.hx-author {
	display: flex; gap: 1.4rem; align-items: center; margin-top: 3rem; padding: 1.6rem;
	width: min(var(--measure), 100% - 2 * var(--gutter));
	background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.hx-author__label { font: 700 0.75rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hx-author__name { font: 800 1.5rem var(--font-display); letter-spacing: -0.012em; }
.hx-author__bio { color: var(--muted); font-size: 1.05rem; margin-top: 0.3rem; }

.hx-postnav { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: clamp(3.5rem, 7vw, 6rem); }
@media (min-width: 760px) { .hx-postnav { grid-template-columns: 1fr 1fr; } }
.hx-postnav__item {
	display: grid; gap: 0.7rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 2px solid var(--fg); border-radius: var(--radius);
	text-decoration: none; background: var(--card);
	transition: background-color 0.35s, color 0.35s, box-shadow 0.4s var(--ease), translate 0.9s var(--ease) calc(var(--d, 0) * 90ms), opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms), transform 0.4s var(--ease);
}
.hx-postnav__item--next { text-align: right; }
.hx-postnav__item:hover { background: var(--accent); color: var(--accent-ink); box-shadow: 8px 8px 0 var(--fg); transform: translateY(-4px); }
.hx-postnav__label { font: 700 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.hx-postnav__title { font: 750 clamp(1.3rem, 2.4vw, 2rem)/1.05 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }

.hx-related { padding-top: clamp(4rem, 8vw, 7rem); display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.hx-related .hx-section__title { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }

/* 13. COMENTARIOS · FORMULARIOS ----------------------------------------- */
.hx-comments { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.hx-comments__title { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: var(--hx-track, -0.02em); margin-bottom: 1.6rem; }
.hx-comments__list, .hx-comments__list ol { list-style: none; margin: 0; padding: 0; }
.hx-comments__list .children { padding-left: clamp(1rem, 4vw, 3rem); margin-top: 1rem; }
.hx-comments__list .comment-body { padding: 1.3rem 1.5rem; margin-bottom: 1rem; border: 1.5px solid var(--line); border-radius: 22px; background: var(--card); position: relative; }
.hx-comments__list .comment-author { display: flex; align-items: center; gap: 0.8rem; font: 700 1.05rem var(--font-display); }
.hx-comments__list .comment-author img { border-radius: 50%; border: 2px solid var(--fg); }
.hx-comments__list .comment-author .says { display: none; }
.hx-comments__list .comment-metadata { font: 500 0.85rem var(--font-display); color: var(--muted); margin: 0.3rem 0 0.8rem; }
.hx-comments__list .comment-metadata a { text-decoration: none; }
.hx-comments__list .reply a { font: 700 0.85rem var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.hx-comments__list .reply a:hover { color: var(--link); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%; padding: 0.95rem 1.2rem; border: 2px solid var(--fg); border-radius: 18px;
	background: var(--card); color: var(--fg); font: 500 1.05rem var(--font-display);
	transition: box-shadow 0.3s var(--ease), border-color 0.3s;
}
input:focus, textarea:focus, select:focus { outline: 0; box-shadow: 5px 5px 0 var(--accent); }
.hx-searchform__input { border: 0 !important; box-shadow: none !important; background: none !important; padding: 0.3rem 0 !important; border-radius: 0 !important; }
.comment-form { display: grid; gap: 1.1rem; }
.comment-form label { display: block; margin-bottom: 0.4rem; font: 700 0.85rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: center; font-size: 0.95rem; }
.comment-form-cookies-consent input { width: auto; }
.comment-form-cookies-consent label { margin: 0; text-transform: none; font-weight: 500; letter-spacing: 0; }
.comment-form .submit { width: fit-content; }

/* 14. PIE --------------------------------------------------------------- */
.hx-footer {
	position: relative; margin-top: clamp(4rem, 8vw, 8rem);
	background: var(--fg); color: var(--bg);
	border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
	padding-top: 0; overflow: hidden;
}
.hx-footer .hx-marquee { margin-top: 0; border: 0; border-bottom: 1.5px solid rgba(128, 128, 128, 0.4); border-bottom-color: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); padding: 1.6rem 0; }
.hx-footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.hx-footer__brand { max-width: 44ch; display: grid; gap: 0.9rem; }
.hx-footer__tag { font: 800 clamp(1.8rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: var(--hx-track, -0.02em); color: var(--accent); }
:root[data-theme="dark"] .hx-footer__tag { color: var(--hx-violet); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hx-footer__tag { color: var(--hx-violet); } }
.hx-footer__desc { opacity: 0.72; }
.hx-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.hx-footer__menu a { text-decoration: none; font: 700 1.2rem var(--font-display); letter-spacing: var(--hx-track, -0.02em); }
.hx-footer__menu a:hover { color: var(--accent); }
.hx-totop {
	display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
	background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: rotate 0.6s var(--ease);
}
.hx-totop:hover { rotate: -12deg; }
.hx-footer__word {
	text-align: center; white-space: nowrap; user-select: none;
	font: 800 clamp(3rem, 10vw, 10rem)/0.9 var(--font-display); letter-spacing: -0.025em;
	font-variation-settings: "wdth" 88;
	color: var(--bg);
	padding: 1rem 0 0.4rem; transition: font-variation-settings 0.9s var(--ease), color 0.5s;
}
.hx-footer__word:hover { font-variation-settings: "wdth" 100; color: var(--hx-pink); }
.hx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding: 1.3rem 0 1.6rem; font: 600 0.88rem var(--font-display); opacity: 0.75; border-top: 1.5px solid rgba(128, 128, 128, 0.4); border-top-color: color-mix(in srgb, var(--bg) 22%, transparent); }

/* 15. 404 --------------------------------------------------------------- */
.hx-404 { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding: 8rem 0 4rem; overflow: hidden; }
.hx-404 .hx-bubbles { z-index: -1; }
.hx-404__inner { display: grid; gap: 1.6rem; justify-items: start; }
.hx-404__num { font: 800 clamp(7rem, 26vw, 22rem)/0.78 var(--font-display); letter-spacing: -0.04em; font-variation-settings: "wdth" 94; }
.hx-404__num span { display: inline-block; color: var(--hx-pink); animation: hx-float 5s ease-in-out infinite; }
.hx-404__title { font-size: clamp(2rem, 5vw, 4.2rem); letter-spacing: var(--hx-track, -0.02em); max-width: 18ch; }
.hx-404__lead { color: var(--muted); font-size: 1.25rem; }
.hx-404 .hx-searchform { width: min(640px, 100%); }
.hx-404 .hx-searchform__input { font-size: 1.8rem; }

/* 16. REVELADOS --------------------------------------------------------- */
.hx-js body:not(.hx-no-fx) .hx-reveal,
.hx-js body:not(.hx-no-fx) .hx-reveal-left,
.hx-js body:not(.hx-no-fx) .hx-reveal-scale {
	opacity: 0;
	translate: 0 40px;
	transition: opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms), translate 0.9s var(--ease) calc(var(--d, 0) * 90ms), transform 0.5s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.hx-js body:not(.hx-no-fx) .hx-reveal-left { translate: -60px 0; }
.hx-js body:not(.hx-no-fx) .hx-reveal-scale { translate: 0 0; scale: 0.92; transition-property: opacity, scale, transform; transition-duration: 1.1s; transition-timing-function: var(--ease); }
.hx-js body:not(.hx-no-fx) .hx-reveal.is-in,
.hx-js body:not(.hx-no-fx) .hx-reveal-left.is-in,
.hx-js body:not(.hx-no-fx) .hx-reveal-scale.is-in { opacity: 1; translate: 0 0; scale: 1; }

/* Palabras enmascaradas (data-split) */
.hx-js body:not(.hx-no-fx) [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.12em; margin-block: -0.12em; }
.hx-js body:not(.hx-no-fx) [data-split] .wi { display: inline-block; translate: 0 115%; rotate: 4deg; transform-origin: 0 100%; transition: translate 1s var(--ease) calc(var(--i, 0) * 55ms), rotate 1s var(--ease) calc(var(--i, 0) * 55ms); }
.hx-js body:not(.hx-no-fx) [data-split].is-in .wi { translate: 0 0; rotate: 0deg; }

/* Hijos escalonados (.hx-stagger) */
.hx-js body:not(.hx-no-fx) .hx-stagger > * { opacity: 0; translate: 0 32px; transition: opacity 0.8s var(--ease) calc(var(--d, 0) * 100ms), translate 0.9s var(--ease) calc(var(--d, 0) * 100ms); }
.hx-js body:not(.hx-no-fx) .hx-stagger.is-in > * { opacity: 1; translate: 0 0; }

/* Keyframes */
@keyframes hx-marquee { to { transform: translateX(-50%); } }
@keyframes hx-spin { to { rotate: 360deg; } }
@keyframes hx-pulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.6; opacity: 0.55; } }
@keyframes hx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes hx-drift { to { background-position: 56px 97px; } }
@keyframes hx-sheen { to { background-position: 200% center; } }
@keyframes hx-morph {
	0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg) scale(1); }
	50%  { border-radius: 63% 37% 41% 59% / 56% 62% 38% 44%; transform: rotate(40deg) scale(1.12); }
	100% { border-radius: 38% 62% 52% 48% / 62% 38% 62% 38%; transform: rotate(-25deg) scale(0.94); }
}

/* Transiciones de página y de tema (View Transitions) */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: 0.35s ease both hx-vt-out; }
	::view-transition-new(root) { animation: 0.5s var(--ease) both hx-vt-in; }
}
@keyframes hx-vt-out { to { opacity: 0; translate: 0 -12px; } }
@keyframes hx-vt-in { from { opacity: 0; translate: 0 18px; } }
html.hx-theme-vt::view-transition-old(root),
html.hx-theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.hx-theme-vt::view-transition-old(root) { z-index: 1; }
html.hx-theme-vt::view-transition-new(root) { z-index: 2; }

/* 17. ELEMENTOR --------------------------------------------------------- */
/* Clases utilitarias para el campo "Clases CSS" de cualquier widget/contenedor */
.hx-gradient-text {
	background: linear-gradient(100deg, var(--hx-violet), var(--hx-pink) 45%, var(--accent), var(--hx-violet));
	background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent; animation: hx-sheen 7s linear infinite;
}
.hx-pink-text, .hx-pink-text .elementor-heading-title { color: var(--hx-pink) !important; }
.hx-violet-text, .hx-violet-text .elementor-heading-title { color: var(--hx-violet) !important; }
.hx-glass {
	background: rgba(246, 241, 231, 0.6);
	background: color-mix(in srgb, var(--bg) 60%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border: 1px solid var(--line); border-radius: var(--radius);
}
.hx-hard-shadow { border: 2px solid var(--fg) !important; box-shadow: 7px 7px 0 var(--fg); border-radius: var(--radius); }
.hx-surface { background: var(--bg); color: var(--fg); }
.hx-surface-2 { background: var(--bg-2); color: var(--fg); }
.hx-accent-bg { background: var(--accent); color: var(--accent-ink); }
.hx-float { animation: hx-float 6s ease-in-out infinite; }
.hx-spin { animation: hx-spin 20s linear infinite; }
.hx-grain { position: relative; }
.hx-grain::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay; z-index: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hx-underline-draw a, a.hx-underline-draw {
	text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 0.08em; transition: background-size 0.5s var(--ease);
}
.hx-underline-draw a:hover, a.hx-underline-draw:hover { background-size: 100% 0.08em; }

/* Que el tema no moleste dentro de Elementor */
.elementor a { text-underline-offset: 0.2em; }
.elementor-widget-text-editor p { font-family: inherit; }
.hx-elementor-page .site-main { min-height: 0; }
body.elementor-page .site-main { padding: 0; }
.elementor-editor-active .hx-header,
.elementor-editor-preview .hx-header { position: absolute; }
.hx-no-fx .hx-cursor { display: none !important; }


/* Artículos hechos con Elementor: separación del header fijo y tipografía de lectura */
.hx-offset { padding-top: clamp(6.5rem, 12vw, 8.5rem); }
.hx-article--elementor > .hx-single__head + * { margin-top: clamp(1.5rem, 4vw, 3rem); }
.hx-article--elementor .hx-single__head { padding-bottom: 0.5rem; }

.elementor-widget-text-editor,
.elementor-widget-theme-post-content {
	font-family: var(--font-text); font-size: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem); line-height: 1.7;
}
.elementor-widget-text-editor p,
.elementor-widget-theme-post-content p { margin: 0 0 1.25em; }
.elementor-widget-text-editor > .elementor-widget-container > :last-child,
.elementor-widget-theme-post-content > .elementor-widget-container > :last-child { margin-bottom: 0; }
.elementor-widget-text-editor :is(h2, h3, h4),
.elementor-widget-theme-post-content :is(h2, h3, h4) { font-family: var(--font-display); margin: 1.8em 0 0.5em; }
.elementor-widget-text-editor h2,
.elementor-widget-theme-post-content h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.02; letter-spacing: var(--hx-track, -0.02em); }
.elementor-widget-text-editor h3,
.elementor-widget-theme-post-content h3 { font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.1; }
.elementor-widget-text-editor :is(ul, ol),
.elementor-widget-theme-post-content :is(ul, ol) { margin: 0 0 1.25em; padding-left: 1.3em; }
.elementor-widget-text-editor li::marker,
.elementor-widget-theme-post-content li::marker { color: var(--hx-pink); font-weight: 800; }
.elementor-widget-text-editor blockquote,
.elementor-widget-theme-post-content blockquote {
	margin: 1.6em 0; padding: 0.3em 0 0.3em 1.2em; border-left: 0.4rem solid var(--hx-pink);
	font: 650 clamp(1.5rem, 3vw, 2.2rem)/1.15 var(--font-display);
}
.elementor-widget-text-editor a:not(.elementor-button),
.elementor-widget-theme-post-content a:not(.elementor-button) {
	color: inherit; text-decoration: none;
	background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 0.14em; transition: background-size 0.35s var(--ease), color 0.25s;
}
.elementor-widget-text-editor a:not(.elementor-button):hover,
.elementor-widget-theme-post-content a:not(.elementor-button):hover { background-size: 100% 100%; color: var(--accent-ink); }
.elementor-widget-image img { border-radius: 20px; }

/* Cabecera alineada con el contenedor por defecto de Elementor (1140px) y medida de lectura cómoda */
.hx-article--elementor > .hx-single__head { width: min(1140px, 100% - 2 * var(--gutter)); }
.hx-article--elementor .elementor-widget-text-editor > .elementor-widget-container,
.hx-article--elementor .elementor-widget-theme-post-content > .elementor-widget-container { max-width: var(--measure); margin-inline: auto; }
html body .elementor-widget-text-editor :is(h2, h3, h4),
html body .elementor-widget-theme-post-content :is(h2, h3, h4) { color: inherit; }

/* Blindaje frente a los estilos globales del Kit de Elementor (enlaces, botones, títulos).
   Subimos la especificidad para que el "chrome" del tema nunca quede ilegible. */
html body .hx-logo,
html body .hx-menu a,
html body .hx-card__title a,
html body .hx-postnav__item,
html body a.hx-chip,
html body a.page-numbers,
html body .hx-single__tags a,
html body .hx-comments a,
html body .hx-prose a:not(.wp-block-button__link),
html body .hx-footer a:where(:not(.hx-totop)) { color: inherit; }
html body a.hx-totop,
html body .hx-footer .hx-totop { color: var(--accent-ink); }
html body :is(.hx-card__title, .hx-section__title, .hx-hero__title, .hx-listing__title, .hx-single__title, .hx-404__title, .hx-comments__title, .hx-author__name, .hx-postnav__title, .hx-prose h1, .hx-prose h2, .hx-prose h3, .hx-prose h4) { color: inherit; }

html body .hx-iconbtn { background: transparent; color: inherit; border: 0; padding: 0; border-radius: 50%; box-shadow: none; }
html body .hx-iconbtn:hover { background: var(--bg-2); }
html body .hx-search__close { background: var(--fg); color: var(--bg); }
html body .hx-search__close:hover { background: var(--accent); color: var(--accent-ink); }
html body .hx-burger { background: var(--fg); border: 0; padding: 0; border-radius: 50%; }
html body .hx-searchform__btn { background: var(--accent); color: var(--accent-ink); border: 0; padding: 0; border-radius: 50%; }
html body .hx-btn,
html body .comment-form .submit {
	background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--fg);
	padding: 1rem 1.6rem; border-radius: 999px; text-decoration: none;
}
html body .hx-menu .current-menu-item > a,
html body .hx-menu .current_page_item > a,
html body .hx-menu .current-menu-ancestor > a { background: var(--accent); color: var(--accent-ink); }
html body .hx-menu a:hover { background: var(--bg-2); }
@media (max-width: 1000px) {
	html body .hx-menu a { background: none; color: var(--fg); }
}

/* 18. MOVIMIENTO REDUCIDO ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.hx-marquee__track { animation: none; }
	.hx-cursor { display: none !important; }
}
