/*
Theme Name: MindSoul
Theme URI: https://www.mindsoul.app
Author: MindSoul
Description: Tema del blog de MindSoul, alineado al diseño de www.mindsoul.app (oscuro, rosa/violeta, Fraunces + Jost).
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: mindsoul
*/

/* ==========================================================================
   Tokens — mismos valores que src/app/globals.scss de la landing
   ========================================================================== */

:root {
	--bg: #0c0610;
	--bg-elev: #140b1a;
	--surface: rgba(255, 240, 250, 0.035);
	--surface-strong: rgba(255, 240, 250, 0.07);
	--border: rgba(255, 230, 248, 0.09);
	--border-strong: rgba(255, 230, 248, 0.18);

	--ink: #fbf1f8;
	--ink-muted: rgba(251, 241, 248, 0.68);
	--ink-subtle: rgba(251, 241, 248, 0.46);

	--rose-200: #f4c0e6;
	--rose-300: #e493ce;
	--rose-400: #cd6bb3;
	--rose-500: #b14a95;
	--violet-300: #bd93d1;
	--violet-400: #9c6ab5;
	--violet-800: #351047;
	--dawn: #ffc9a8;

	--gradient-brand: linear-gradient(135deg, var(--rose-300) 0%, var(--violet-300) 50%, var(--dawn) 100%);
	--gradient-button: linear-gradient(135deg, #d576bb 0%, #9c6ab5 100%);

	--font-display: 'Fraunces', 'Times New Roman', serif;
	--font-body: 'Jost', system-ui, sans-serif;

	--text-xs: 0.8125rem;
	--text-sm: 0.9375rem;
	--text-base: 1.0625rem;
	--text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
	--text-xl: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
	--text-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
	--text-3xl: clamp(2.6rem, 1.6rem + 4.4vw, 5.5rem);

	--container: 1200px;
	--prose: 720px;
	--gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--section-y: clamp(5rem, 3rem + 8vw, 10rem);
	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 32px;

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

	color-scheme: dark;
}

/* Reset ------------------------------------------------------------------ */

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

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

body {
	margin: 0;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 400;
	line-height: 1.08;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

::selection {
	background: rgba(228, 147, 206, 0.35);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--rose-300);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Grano de película, como en la landing */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
	opacity: 0.05;
	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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

/* Utilidades ------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sr-only,
.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:focus {
	z-index: 300;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	clip: auto;
	border-radius: 999px;
	background: var(--bg-elev);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rose-300);
}

.eyebrow::before {
	content: '';
	width: 1.5rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.display {
	font-family: var(--font-display);
	font-variation-settings: 'SOFT' 100, 'WONK' 0;
	letter-spacing: -0.02em;
}

.gradient-text {
	background: var(--gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.serif-italic {
	font-family: var(--font-display);
	font-style: italic;
	font-variation-settings: 'SOFT' 100, 'WONK' 1;
	/* evita que el gradiente recorte la última letra en cursiva */
	padding-right: 0.08em;
}

.section-title {
	margin-top: 1rem;
	font-size: var(--text-2xl);
}

/* Botones ---------------------------------------------------------------- */

.btn,
.wp-block-button__link,
.wp-element-button {
	--btn-h: 3rem;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--btn-h);
	padding: 0 1.5rem;
	border: 0;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition:
		transform 0.4s var(--ease-out),
		background-color 0.3s,
		border-color 0.3s,
		box-shadow 0.4s var(--ease-out),
		opacity 0.3s;
}

.btn .icon {
	width: 1rem;
	height: 1rem;
	transition: transform 0.4s var(--ease-out);
}

.btn:hover .icon {
	transform: translateX(3px);
}

.btn:active,
.wp-block-button__link:active {
	transform: scale(0.97);
}

.btn-primary,
.wp-block-button__link,
.wp-element-button {
	background: var(--gradient-button);
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.25),
		0 8px 30px -8px rgba(205, 107, 179, 0.6);
}

.btn-primary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.3),
		0 12px 40px -6px rgba(205, 107, 179, 0.75);
	transform: translateY(-1px);
}

.btn-ghost,
.is-style-outline > .wp-block-button__link {
	background: var(--surface);
	border: 1px solid var(--border-strong);
	color: var(--ink);
	box-shadow: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover,
.is-style-outline > .wp-block-button__link:hover {
	background: var(--surface-strong);
	border-color: rgba(255, 230, 248, 0.3);
	box-shadow: none;
}

.btn-lg {
	--btn-h: 3.5rem;
	padding-inline: 2rem;
	font-size: var(--text-base);
}

/* Scroll reveal (solo con JS) -------------------------------------------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	filter: blur(6px);
	transition:
		opacity 1s var(--ease-out),
		transform 1s var(--ease-out),
		filter 1s var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal='visible'] {
	opacity: 1;
	transform: none;
	filter: none;
}

/* ==========================================================================
   Header (nav.module.scss)
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	padding: 1rem var(--gutter) 0;
	pointer-events: none;
	transition: padding 0.5s var(--ease-out);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header[data-scrolled] {
	padding-top: 0.75rem;
}

.bar {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--container);
	height: 4rem;
	margin-inline: auto;
	padding: 0 0.6rem 0 1.4rem;
	border-radius: 999px;
	border: 1px solid transparent;
	transition:
		background-color 0.5s var(--ease-out),
		border-color 0.5s var(--ease-out),
		box-shadow 0.5s var(--ease-out),
		max-width 0.6s var(--ease-out);
}

.site-header[data-scrolled] .bar,
.site-header[data-open] .bar {
	max-width: 980px;
	background: rgba(18, 9, 24, 0.68);
	border-color: var(--border);
	box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
}

.logo img {
	width: 6.25rem;
	height: auto;
}

.nav-links {
	display: none;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.nav-links {
		display: flex;
	}
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	font-size: var(--text-sm);
	color: var(--ink-muted);
	transition:
		color 0.2s,
		background-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current='page'],
.nav-links .current-menu-item > a,
.nav-links .current_page_parent > a {
	color: var(--ink);
	background: var(--surface-strong);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nav-cta {
	--btn-h: 2.75rem;
	display: none;
}

@media (min-width: 560px) {
	.nav-cta {
		display: inline-flex;
	}
}

.burger {
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border-radius: 50%;
	background: var(--surface-strong);
	border: 1px solid var(--border);
	cursor: pointer;
}

@media (min-width: 900px) {
	.burger {
		display: none;
	}
}

.burger span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.1rem;
	height: 1.5px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.4s var(--ease-out);
}

.burger span:nth-child(1) {
	transform: translate(-50%, -4px);
}

.burger span:nth-child(2) {
	transform: translate(-50%, 3px);
}

.site-header[data-open] .burger span:nth-child(1) {
	transform: translate(-50%, 0) rotate(45deg);
}

.site-header[data-open] .burger span:nth-child(2) {
	transform: translate(-50%, 0) rotate(-45deg);
}

.sheet {
	pointer-events: auto;
	position: fixed;
	inset: 0;
	z-index: -1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 7rem var(--gutter) 2.5rem;
	background:
		radial-gradient(circle at 80% 100%, rgba(205, 107, 179, 0.25), transparent 50%),
		rgba(12, 6, 16, 0.96);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	animation: sheet-in 0.5s var(--ease-out);
}

.sheet[hidden] {
	display: none;
}

.sheet ul {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sheet li {
	border-bottom: 1px solid var(--border);
	animation: item-in 0.7s var(--ease-out) both;
	animation-delay: calc(var(--i, 0) * 60ms + 80ms);
}

.sheet li:nth-child(2) { --i: 1; }
.sheet li:nth-child(3) { --i: 2; }
.sheet li:nth-child(4) { --i: 3; }
.sheet li:nth-child(5) { --i: 4; }
.sheet li:nth-child(6) { --i: 5; }
.sheet li:nth-child(n + 7) { --i: 6; }

.sheet li a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1.1rem 0;
	font-family: var(--font-display);
	font-size: 2rem;
	letter-spacing: -0.02em;
}

.sheet li a[aria-current='page'],
.sheet .current-menu-item > a {
	font-style: italic;
	color: var(--rose-300);
}

.sheet .btn {
	width: 100%;
}

@keyframes sheet-in {
	from {
		opacity: 0;
	}
}

@keyframes item-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

/* ==========================================================================
   Hero de página (aurora + estrellas de hero.module.scss)
   ========================================================================== */

.page-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(8rem, 6rem + 6vw, 11rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
	overflow: hidden;
}

.page-hero::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 40%;
	z-index: -1;
	background: linear-gradient(to bottom, transparent, var(--bg));
}

.page-hero-lg {
	padding-bottom: clamp(4rem, 3rem + 5vw, 7rem);
}

.aurora {
	position: absolute;
	inset: -20%;
	z-index: -2;
	filter: blur(80px) saturate(140%);
	opacity: 0.7;
	pointer-events: none;
}

.aurora span {
	position: absolute;
	border-radius: 50%;
	mix-blend-mode: screen;
	animation: drift 24s var(--ease-in-out) infinite alternate;
}

.aurora span:nth-child(1) {
	width: 55vw;
	height: 55vw;
	top: 0;
	right: 0;
	background: radial-gradient(circle, rgba(177, 74, 149, 0.75), transparent 65%);
}

.aurora span:nth-child(2) {
	width: 50vw;
	height: 50vw;
	top: 15%;
	left: 5%;
	background: radial-gradient(circle, rgba(100, 47, 126, 0.85), transparent 65%);
	animation-duration: 30s;
	animation-delay: -8s;
}

.aurora span:nth-child(3) {
	width: 35vw;
	height: 35vw;
	top: 35%;
	right: 20%;
	background: radial-gradient(circle, rgba(255, 170, 140, 0.35), transparent 65%);
	animation-duration: 20s;
	animation-delay: -4s;
}

@keyframes drift {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(-6%, 4%, 0) scale(1.1);
	}
	100% {
		transform: translate3d(5%, -5%, 0) scale(0.95);
	}
}

.stars {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.55;
	pointer-events: none;
	background-image:
		radial-gradient(1px 1px at 12% 18%, #fff, transparent),
		radial-gradient(1px 1px at 28% 72%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent),
		radial-gradient(1px 1px at 63% 38%, #fff, transparent),
		radial-gradient(1px 1px at 78% 84%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 88% 22%, #fff, transparent),
		radial-gradient(1px 1px at 8% 88%, #fff, transparent),
		radial-gradient(1px 1px at 52% 58%, #fff, transparent),
		radial-gradient(1px 1px at 94% 56%, #fff, transparent),
		radial-gradient(1px 1px at 36% 42%, #fff, transparent);
	animation: twinkle 6s ease-in-out infinite alternate;
	mask-image: linear-gradient(to bottom, #000 40%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

@keyframes twinkle {
	to {
		opacity: 0.25;
	}
}

.page-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.page-title {
	margin-top: 1.25rem;
	font-size: var(--text-2xl);
	line-height: 1.04;
}

.page-hero-lg .page-title {
	font-size: var(--text-3xl);
	line-height: 1.02;
}

.page-title br {
	display: none;
}

@media (min-width: 700px) {
	.page-title br {
		display: inline;
	}
}

.page-lede {
	margin-top: 1.5rem;
	max-width: 36rem;
	font-size: var(--text-lg);
	color: var(--ink-muted);
}

.not-found .btn {
	margin-top: 1.5rem;
}

/* Búsqueda --------------------------------------------------------------- */

.search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: min(100%, 30rem);
	margin-top: 2.25rem;
	padding: 0.35rem 0.35rem 0.35rem 1.1rem;
	border-radius: 999px;
	background: rgba(10, 4, 14, 0.55);
	border: 1px solid var(--border-strong);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: border-color 0.3s;
}

.search-form:focus-within {
	border-color: var(--rose-300);
}

.search-icon {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--ink-subtle);
}

.search-form input {
	flex: 1;
	min-width: 0;
	height: 2.6rem;
	border: 0;
	background: none;
	font-size: var(--text-sm);
	outline: none;
}

.search-form input::placeholder {
	color: var(--ink-subtle);
}

.search-form input::-webkit-search-cancel-button {
	filter: invert(1);
	opacity: 0.5;
}

.search-form .btn {
	--btn-h: 2.6rem;
	padding-inline: 1.2rem;
}

/* Chips de categorías ---------------------------------------------------- */

.chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	font-size: var(--text-xs);
	color: var(--ink-muted);
	transition:
		color 0.2s,
		border-color 0.2s,
		background-color 0.2s;
}

.chip:hover {
	color: var(--ink);
	border-color: rgba(255, 230, 248, 0.32);
}

.chip[aria-current='page'] {
	color: var(--ink);
	border-color: rgba(228, 147, 206, 0.5);
	background: rgba(228, 147, 206, 0.12);
}

/* ==========================================================================
   Listado de posts
   ========================================================================== */

.posts {
	padding-bottom: var(--section-y);
}

.post-grid {
	display: grid;
	gap: clamp(1.25rem, 2vw, 1.75rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: linear-gradient(180deg, var(--surface-strong), var(--surface));
	overflow: hidden;
	transition:
		border-color 0.4s var(--ease-out),
		transform 0.6s var(--ease-out),
		box-shadow 0.6s var(--ease-out);
}

.card:hover {
	border-color: rgba(228, 147, 206, 0.32);
	transform: translateY(-4px);
	box-shadow: 0 24px 60px -24px rgba(205, 107, 179, 0.4);
}

.card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bg-elev);
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-out);
}

.card:hover .card-media > img {
	transform: scale(1.04);
}

.card-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 30% 20%, rgba(177, 74, 149, 0.5), transparent 60%),
		radial-gradient(circle at 80% 90%, rgba(100, 47, 126, 0.6), transparent 60%),
		var(--bg-elev);
}

.card-placeholder img {
	width: 55%;
	height: auto;
	opacity: 0.35;
	animation: spin 140s linear infinite;
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem 1.5rem 1.75rem;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	font-size: var(--text-xs);
	color: var(--ink-subtle);
}

.meta-lg {
	justify-content: center;
	margin-top: 1.5rem;
	font-size: var(--text-sm);
	color: var(--ink-muted);
}

.meta-cat {
	position: relative;
	z-index: 2;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rose-300);
}

.meta-cat:hover {
	color: var(--rose-200);
}

.meta-read {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.card-title {
	margin-top: 0.9rem;
	font-size: var(--text-xl);
	line-height: 1.15;
}

/* El título cubre toda la tarjeta para que sea clickeable */
.card-title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card-excerpt {
	margin-top: 0.75rem;
	font-size: var(--text-sm);
	color: var(--ink-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 1.25rem;
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--rose-300);
}

.card-more .icon {
	transition: transform 0.4s var(--ease-out);
}

.card:hover .card-more .icon {
	transform: translateX(4px);
}

/* Destacado (primer post de la portada) */
.card-featured {
	margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

@media (min-width: 860px) {
	.card-featured {
		display: grid;
		grid-template-columns: 1.3fr 1fr;
	}

	.card-featured .card-media {
		aspect-ratio: auto;
		min-height: 24rem;
	}

	.card-featured .card-body {
		justify-content: center;
		padding: clamp(2rem, 4vw, 3.5rem);
	}
}

.card-featured .card-title {
	font-size: var(--text-2xl);
	line-height: 1.06;
}

.card-featured .card-excerpt {
	font-size: var(--text-base);
	-webkit-line-clamp: 4;
}

.card-featured .card-more {
	margin-top: 0;
	padding-top: 1.75rem;
}

/* Paginación */
.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: clamp(3rem, 5vw, 4rem) 0 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	font-size: var(--text-sm);
	color: var(--ink-muted);
	transition:
		color 0.2s,
		border-color 0.2s,
		background-color 0.2s;
}

.pagination a.page-numbers:hover {
	color: var(--ink);
	border-color: rgba(255, 230, 248, 0.32);
}

.pagination .page-numbers.current {
	color: #fff;
	border-color: transparent;
	background: var(--gradient-button);
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

.pagination .icon {
	width: 1rem;
	height: 1rem;
}

.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 4rem 1rem;
	text-align: center;
	color: var(--ink-muted);
}

.empty h2 {
	font-size: var(--text-xl);
	color: var(--ink);
}

.empty a {
	color: var(--rose-300);
}

.empty-icon {
	width: 2rem;
	height: 2rem;
	color: var(--rose-300);
}

/* ==========================================================================
   Artículo / página
   ========================================================================== */

.entry-hero {
	padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.entry-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: calc(900px + var(--gutter) * 2);
	text-align: center;
}

.entry-hero .eyebrow a:hover {
	color: var(--rose-200);
}

.entry-title {
	font-size: clamp(2.2rem, 1.5rem + 3vw, 4.25rem);
	line-height: 1.04;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 2rem;
	padding: 0.45rem 1rem 0.45rem 0.8rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: var(--text-xs);
	color: var(--ink-muted);
	transition:
		color 0.2s,
		border-color 0.2s;
}

.back-link:hover {
	color: var(--ink);
	border-color: var(--border-strong);
}

.back-link .icon {
	transition: transform 0.4s var(--ease-out);
}

.back-link:hover .icon {
	transform: translateX(-3px);
}

.entry-cover {
	max-width: calc(1100px + var(--gutter) * 2);
	margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.entry-cover img {
	width: 100%;
	max-height: 70vh;
	object-fit: cover;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
}

/* Contenido de Gutenberg ------------------------------------------------- */

.prose {
	max-width: var(--prose);
	margin-inline: auto;
	padding-bottom: clamp(3rem, 6vw, 5rem);
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);
	line-height: 1.75;
	color: rgba(251, 241, 248, 0.84);
}

.prose > * + * {
	margin-top: 1.4em;
}

.prose > .alignwide {
	max-width: 1100px;
	width: calc(100vw - var(--gutter) * 2);
	margin-inline: 50%;
	transform: translateX(-50%);
}

.prose > .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: 50%;
	transform: translateX(-50%);
}

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
	font-family: var(--font-display);
	font-variation-settings: 'SOFT' 100, 'WONK' 0;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.prose > h2,
.prose > h3,
.prose > h4 {
	margin-top: 2.2em;
}

.prose h2 {
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
	line-height: 1.12;
}

.prose h3 {
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
	line-height: 1.2;
}

.prose h4,
.prose h5,
.prose h6 {
	font-size: 1.25rem;
	line-height: 1.3;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
	margin-top: 0.8em;
}

.prose strong {
	color: var(--ink);
	font-weight: 500;
}

.prose a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--rose-300);
	text-decoration: underline;
	text-decoration-color: rgba(228, 147, 206, 0.4);
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s;
}

.prose a:not(.wp-block-button__link):not(.wp-element-button):hover {
	text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.5em;
}

.prose ul > li::marker {
	color: var(--rose-300);
}

.prose ol > li::marker {
	color: var(--rose-300);
	font-family: var(--font-display);
}

.prose blockquote,
.prose .wp-block-quote {
	position: relative;
	margin-inline: 0;
	padding: 1.5rem 1.75rem;
	border: 0;
	border-left: 2px solid var(--rose-300);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: linear-gradient(90deg, rgba(228, 147, 206, 0.1), transparent);
	font-family: var(--font-display);
	font-style: italic;
	font-variation-settings: 'SOFT' 100, 'WONK' 1;
	font-size: var(--text-lg);
	color: var(--ink);
}

.prose blockquote cite,
.prose .wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-body);
	font-style: normal;
	font-size: var(--text-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-subtle);
}

.prose hr,
.prose .wp-block-separator {
	width: 100%;
	max-width: 8rem;
	height: 1px;
	margin: 3em auto;
	border: 0;
	background: var(--gradient-brand);
	opacity: 0.6;
}

.prose .wp-block-separator.is-style-wide {
	max-width: none;
	background: var(--border-strong);
}

.prose .wp-block-separator.is-style-dots {
	height: auto;
	max-width: none;
	background: none;
	color: var(--rose-300);
}

.prose img {
	border-radius: var(--radius);
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 0.75rem;
	font-size: var(--text-xs);
	text-align: center;
	color: var(--ink-subtle);
}

.prose .is-style-rounded img {
	border-radius: 999px;
}

.prose code,
.prose kbd {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--surface-strong);
	font-size: 0.9em;
}

.prose pre {
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg-elev);
	font-size: 0.9rem;
}

.prose pre code {
	padding: 0;
	background: none;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
}

.prose th,
.prose td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.prose th {
	font-weight: 500;
	color: var(--ink);
}

.prose .wp-block-group.has-background,
.prose .wp-block-columns.has-background {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

.prose .wp-block-columns {
	gap: clamp(1.25rem, 3vw, 2rem);
}

.prose .wp-block-cover {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.prose .wp-block-buttons {
	gap: 0.75rem;
}

.prose .wp-block-spacer {
	margin-top: 0;
}

/* Bloques de query que venían de Inspiro (página "Blog") */
.prose .wp-block-post-template {
	display: grid;
	gap: 1.5rem;
	padding: 0;
	list-style: none;
}

.prose .wp-block-post-template > li {
	margin: 0;
	padding: 1.5rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
}

.prose .wp-block-post-title {
	font-size: var(--text-xl);
}

.prose .wp-block-post-title a {
	color: var(--ink) !important;
	text-decoration: none !important;
}

.prose .wp-block-post-date {
	font-size: var(--text-xs);
	color: var(--ink-subtle);
}

.prose .wp-block-read-more {
	display: inline-flex;
	margin-top: 1rem;
	padding: 0 !important;
	border: 0 !important;
	font-size: var(--text-sm);
	font-weight: 500;
	text-transform: none !important;
	color: var(--rose-300) !important;
	text-decoration: none !important;
}

/* Contenido heredado de Inspiro con fondos claros fijos (inline): se adapta al modo oscuro. */
.prose [style*='background-color:#f8f8f8'],
.prose [style*='background-color:#ffffff'],
.prose [style*='background-color:#fff;'] {
	background: var(--bg-elev) !important;
	border-block: 1px solid var(--border);
}

/* Tags, navegación entre posts ------------------------------------------- */

.entry-tags {
	justify-content: flex-start;
	max-width: var(--prose);
	margin: 0 auto;
}

.page-links {
	margin-top: 2rem;
	color: var(--ink-muted);
}

.post-nav {
	display: grid;
	gap: 1rem;
	max-width: var(--prose);
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	padding-top: clamp(2rem, 4vw, 2.5rem);
	border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
	transition:
		border-color 0.3s,
		transform 0.5s var(--ease-out);
}

.post-nav-link:hover {
	border-color: rgba(228, 147, 206, 0.32);
	transform: translateY(-2px);
}

.post-nav-next {
	text-align: right;
	align-items: flex-end;
}

@media (min-width: 640px) {
	.post-nav-next:only-child {
		grid-column: 2;
	}
}

.post-nav-link small {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: var(--text-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rose-300);
}

.post-nav-link .display {
	font-size: var(--text-lg);
	line-height: 1.25;
}

.related {
	padding-block: var(--section-y) 0;
}

.related .section-title {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Comentarios ------------------------------------------------------------ */

.comments {
	max-width: var(--prose);
	margin: clamp(3rem, 6vw, 4rem) auto 0;
}

.comment-list {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0;
	padding-left: clamp(1rem, 4vw, 2.5rem);
	list-style: none;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin-top: 0.25rem;
	font-size: var(--text-xs);
	color: var(--ink-subtle);
}

.comment-content {
	margin-top: 0.75rem;
	color: var(--ink-muted);
}

.comment-content p + p {
	margin-top: 0.75em;
}

.reply a {
	font-size: var(--text-xs);
	color: var(--rose-300);
}

.comment-respond {
	margin-top: 2.5rem;
}

.comment-reply-title {
	font-size: var(--text-xl);
}

.comment-form {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: var(--text-xs);
	color: var(--ink-muted);
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-strong);
	background: rgba(10, 4, 14, 0.55);
	transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--rose-300);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: var(--text-xs);
	color: var(--ink-muted);
}

.comment-notes,
.logged-in-as,
.comments-closed {
	font-size: var(--text-xs);
	color: var(--ink-subtle);
}

/* ==========================================================================
   CTA (cta.module.scss) + badges (store-badges.module.scss)
   ========================================================================== */

.cta {
	position: relative;
	isolation: isolate;
	padding-block: var(--section-y);
	overflow: hidden;
	text-align: center;
}

.cta::before {
	content: '';
	position: absolute;
	z-index: -2;
	left: 50%;
	bottom: -40%;
	width: min(1100px, 140vw);
	aspect-ratio: 1;
	translate: -50% 0;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(205, 107, 179, 0.4) 0%,
		rgba(100, 47, 126, 0.3) 35%,
		transparent 65%
	);
	filter: blur(20px);
}

.cta-backdrop {
	position: absolute;
	z-index: -1;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.cta-backdrop img {
	width: min(900px, 130vw);
	height: auto;
	opacity: 0.18;
	animation: spin 140s linear infinite reverse;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.cta-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cta-heading {
	margin-top: 1.5rem;
	font-size: var(--text-3xl);
	line-height: 1.02;
}

.cta-heading br {
	display: none;
}

@media (min-width: 700px) {
	.cta-heading br {
		display: inline;
	}
}

.cta-lede {
	margin: 1.75rem auto 2.5rem;
	max-width: 34rem;
	color: var(--ink-muted);
	font-size: var(--text-lg);
}

.divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: min(100%, 22rem);
	margin: 2.5rem 0 1.5rem;
	font-size: var(--text-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-subtle);
}

.divider::before,
.divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border-strong);
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.badges-center {
	justify-content: center;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	height: 3.5rem;
	padding: 0 1.4rem 0 1.1rem;
	border-radius: 16px;
	background: rgba(10, 4, 14, 0.6);
	border: 1px solid var(--border-strong);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	text-align: left;
	transition:
		transform 0.4s var(--ease-out),
		border-color 0.3s,
		background-color 0.3s;
}

.badge:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 230, 248, 0.35);
	background: rgba(20, 8, 26, 0.8);
}

.badge-icon {
	width: 1.6rem;
	height: 1.6rem;
}

.badge-label {
	display: flex;
	flex-direction: column;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.badge-label small {
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--ink-muted);
}

/* ==========================================================================
   Footer (footer.module.scss)
   ========================================================================== */

.site-footer {
	position: relative;
	padding-top: clamp(4rem, 8vw, 6rem);
	border-top: 1px solid var(--border);
	background: linear-gradient(to bottom, var(--bg), #08040b);
	overflow: hidden;
}

.footer-top {
	display: grid;
	gap: 3rem;
}

@media (min-width: 900px) {
	.footer-top {
		grid-template-columns: 1fr 1.6fr;
	}
}

.footer-brand img {
	width: 8rem;
	height: auto;
}

.footer-brand p {
	margin-top: 1.25rem;
	max-width: 18rem;
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--text-lg);
	color: var(--ink-muted);
}

.social {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.75rem;
}

.social a {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
	color: var(--ink-muted);
	transition:
		color 0.2s,
		border-color 0.2s,
		transform 0.4s var(--ease-out);
}

.social .icon {
	width: 1.15rem;
	height: 1.15rem;
}

.social a:hover {
	color: var(--ink);
	border-color: var(--rose-300);
	transform: translateY(-2px);
}

.footer-cols {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(2, 1fr);
}

.footer-cols > :last-child {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.footer-cols {
		grid-template-columns: 1fr 1fr 1.4fr;
	}

	.footer-cols > :last-child {
		grid-column: auto;
	}
}

.footer-cols h3 {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-subtle);
}

.footer-cols ul {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.footer-cols li,
.footer-cols a {
	font-size: var(--text-sm);
	color: var(--ink-muted);
}

.footer-cols a {
	transition: color 0.2s;
}

.footer-cols a:hover {
	color: var(--ink);
}

.icon-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.icon-link .icon {
	width: 1rem;
	height: 1rem;
	color: var(--rose-300);
}

.wordmark {
	margin-top: clamp(3rem, 6vw, 5rem);
	font-family: var(--font-display);
	font-size: clamp(4rem, 19vw, 17rem);
	font-variation-settings: 'SOFT' 100, 'WONK' 1;
	font-style: italic;
	line-height: 0.8;
	letter-spacing: -0.04em;
	text-align: center;
	white-space: nowrap;
	background: linear-gradient(180deg, rgba(228, 147, 206, 0.22), rgba(228, 147, 206, 0));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	position: relative;
	padding-block: 1.75rem;
	font-size: var(--text-xs);
	color: var(--ink-subtle);
}

.footer-bottom::before {
	content: '';
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	height: 1px;
	background: var(--border);
}

.footer-bottom img {
	width: 6.5rem;
	height: auto;
	opacity: 0.6;
}

/* WordPress core --------------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
}

.sticky .card-title::before {
	content: '★ ';
	color: var(--rose-300);
}

.bypostauthor > .comment-body {
	border-color: rgba(228, 147, 206, 0.3);
}

/* Movimiento reducido ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
		filter: none;
	}
}
