/* ==========================================================================
   Letras Para IG — estilos principales
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--lp-primary: var(--wp--preset--color--primary, #7c3aed);
	--lp-secondary: var(--wp--preset--color--secondary, #ec4899);
	--lp-accent: var(--wp--preset--color--accent, #f59e0b);
	--lp-gradient: var(--wp--preset--gradient--instagram, linear-gradient(135deg, #7c3aed 0%, #ec4899 55%, #f59e0b 100%));

	--lp-bg: #fbfaff;
	--lp-surface: #ffffff;
	--lp-surface-glass: rgba(255, 255, 255, 0.86);
	--lp-text: #1a1530;
	--lp-muted: #5f5a73;
	--lp-border: #e7e2f4;
	--lp-soft: #f3efff;
	--lp-hero-bg: radial-gradient(1200px 500px at 10% -10%, #efe6ff 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #ffe4f1 0%, transparent 55%), #fbfaff;
	--lp-hero-gamer-bg: var(--lp-hero-bg);
	--lp-success: #16a34a;
	--lp-footer-bg: #140f22;

	--lp-radius: 16px;
	--lp-radius-sm: 10px;
	--lp-shadow: 0 1px 2px rgba(26, 21, 48, 0.05), 0 8px 24px rgba(26, 21, 48, 0.06);
	--lp-shadow-lg: 0 12px 40px rgba(76, 29, 149, 0.16);
	--lp-content: 780px;
	--lp-wide: 1180px;
	--lp-gutter: clamp(16px, 4vw, 32px);
	--lp-header-h: 64px;
	--lp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
	--lp-font-unicode: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Math", "Cambria Math", "Apple Symbols", var(--lp-font);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--lp-bg: #0e0b16;
		--lp-surface: #171222;
		--lp-surface-glass: rgba(23, 18, 34, 0.86);
		--lp-text: #efeaf9;
		--lp-muted: #aaa3c0;
		--lp-border: #2b2439;
		--lp-soft: #1f1830;
		--lp-hero-bg: radial-gradient(1200px 500px at 10% -10%, #2a1650 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #3b1030 0%, transparent 55%), #0e0b16;
		--lp-hero-gamer-bg: radial-gradient(900px 420px at 15% 0%, rgba(245, 158, 11, 0.3) 0%, transparent 60%), radial-gradient(800px 420px at 100% 10%, rgba(124, 58, 237, 0.4) 0%, transparent 55%), #0f0b1a;
		--lp-footer-bg: #09070f;
		--lp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
		--wp--preset--color--ink: #efeaf9;
		--wp--preset--color--muted: #aaa3c0;
		--wp--preset--color--soft: #1f1830;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--lp-bg: #0e0b16;
	--lp-surface: #171222;
	--lp-surface-glass: rgba(23, 18, 34, 0.86);
	--lp-text: #efeaf9;
	--lp-muted: #aaa3c0;
	--lp-border: #2b2439;
	--lp-soft: #1f1830;
	--lp-hero-bg: radial-gradient(1200px 500px at 10% -10%, #2a1650 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #3b1030 0%, transparent 55%), #0e0b16;
	--lp-hero-gamer-bg: radial-gradient(900px 420px at 15% 0%, rgba(245, 158, 11, 0.3) 0%, transparent 60%), radial-gradient(800px 420px at 100% 10%, rgba(124, 58, 237, 0.4) 0%, transparent 55%), #0f0b1a;
	--lp-footer-bg: #09070f;
	--lp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
	--wp--preset--color--ink: #efeaf9;
	--wp--preset--color--muted: #aaa3c0;
	--wp--preset--color--soft: #1f1830;
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: var(--lp-font);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--lp-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--lp-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--lp-text);
	text-wrap: balance;
}

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

.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;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--lp-surface);
	color: var(--lp-text);
	border-radius: var(--lp-radius-sm);
	box-shadow: var(--lp-shadow);
}

/* ---------- Botones ---------- */
.lp-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.8em 1.4em;
	border: 0;
	border-radius: 999px;
	background: var(--lp-gradient);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.lp-btn:hover,
.wp-block-button__link:hover {
	color: #fff;
	transform: translateY(-1px);
	filter: saturate(1.15);
	box-shadow: 0 10px 26px rgba(124, 58, 237, 0.32);
}

.lp-btn--small {
	padding: 0.55em 1.05em;
	font-size: 0.9rem;
}

.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--lp-primary);
	border: 2px solid currentColor;
	box-shadow: none;
}

.lp-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	background: var(--lp-surface);
	color: var(--lp-text);
	cursor: pointer;
}

.lp-icon-btn:hover {
	border-color: var(--lp-primary);
	color: var(--lp-primary);
}

/* ---------- Cabecera ---------- */
.lp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--lp-surface-glass);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.lp-header.is-scrolled {
	border-bottom-color: var(--lp-border);
	box-shadow: 0 4px 20px rgba(26, 21, 48, 0.06);
}

.lp-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: var(--lp-wide);
	height: var(--lp-header-h);
	margin: 0 auto;
	padding: 0 var(--lp-gutter);
}

.lp-logo {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
}

.lp-logo a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--lp-text);
	text-decoration: none;
}

.lp-logo__mark {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--lp-gradient);
	color: #fff;
	font-family: var(--lp-font-unicode);
	font-size: 1.35rem;
	box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
}

.custom-logo-link img {
	display: block;
	max-height: 44px;
	width: auto;
}

.lp-nav {
	margin-left: auto;
}

.lp-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 10px;
	color: var(--lp-text);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
}

.lp-menu a:hover,
.lp-menu .current-menu-item > a,
.lp-menu .current_page_item > a {
	background: var(--lp-soft);
	color: var(--lp-primary);
}

.lp-menu li {
	position: relative;
}

.lp-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	box-shadow: var(--lp-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.15s ease;
}

.lp-menu li:hover > .sub-menu,
.lp-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.lp-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lp-theme-toggle .lp-i-sun {
	display: none;
}

:root[data-theme="dark"] .lp-theme-toggle .lp-i-sun {
	display: block;
}

:root[data-theme="dark"] .lp-theme-toggle .lp-i-moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .lp-theme-toggle .lp-i-sun {
		display: block;
	}

	:root:not([data-theme="light"]) .lp-theme-toggle .lp-i-moon {
		display: none;
	}
}

.lp-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

.lp-nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.lp-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.lp-nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.lp-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
	.lp-nav-toggle {
		display: flex;
	}

	.lp-nav {
		position: fixed;
		inset: var(--lp-header-h) 0 auto 0;
		max-height: calc(100vh - var(--lp-header-h));
		overflow-y: auto;
		padding: 12px var(--lp-gutter) 20px;
		background: var(--lp-surface);
		border-bottom: 1px solid var(--lp-border);
		box-shadow: 0 20px 40px rgba(26, 21, 48, 0.12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: all 0.2s ease;
	}

	.admin-bar .lp-nav {
		top: calc(var(--lp-header-h) + var(--wp-admin--admin-bar--height, 46px));
	}

	.lp-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.lp-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.lp-menu a {
		padding: 12px 14px;
		font-size: 1.05rem;
	}

	.lp-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 12px;
		background: transparent;
	}

	.lp-header__cta {
		display: none;
	}

	.lp-header__actions {
		margin-left: auto;
	}
}

/* ---------- Estructura y contenido ---------- */
.lp-main {
	min-height: 60vh;
}

.lp-page-header,
.lp-crumbs-bar {
	max-width: var(--lp-content);
	margin: 0 auto;
	padding: 28px var(--lp-gutter) 0;
}

.lp-crumbs-bar:empty {
	display: none;
}

.has-content-h1 .lp-crumbs-bar {
	position: relative;
	z-index: 1;
	max-width: var(--lp-wide);
	padding-top: 14px;
	margin-bottom: -40px;
}

.lp-page-title {
	margin: 0.3em 0 0.4em;
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 800;
}

.lp-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	color: var(--lp-muted);
}

.lp-breadcrumbs li + li::before {
	content: "›";
	margin-right: 4px;
	opacity: 0.6;
}

.lp-breadcrumbs a {
	color: var(--lp-muted);
	text-decoration: none;
}

.lp-breadcrumbs a:hover {
	color: var(--lp-primary);
}

.lp-content {
	padding: 0 var(--lp-gutter) 64px;
}

.lp-content > * {
	max-width: var(--lp-content);
	margin-left: auto;
	margin-right: auto;
}

.lp-content > .alignwide {
	max-width: var(--lp-wide);
}

.lp-content > .alignfull {
	max-width: none;
	margin-left: calc(-1 * var(--lp-gutter));
	margin-right: calc(-1 * var(--lp-gutter));
}

.lp-content > .alignfull.has-background,
.lp-content > .alignfull.lp-hero {
	padding-left: var(--lp-gutter);
	padding-right: var(--lp-gutter);
}

.lp-content h2 {
	margin: 2.4em auto 0.6em;
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	font-weight: 800;
}

.lp-content h3 {
	margin: 1.8em auto 0.5em;
	font-size: clamp(1.15rem, 2.2vw, 1.3rem);
	font-weight: 700;
}

.lp-content p,
.lp-content li {
	color: var(--lp-text);
}

.lp-content ul,
.lp-content ol {
	padding-left: 1.3em;
}

.lp-content li {
	margin-bottom: 0.35em;
}

.lp-content li::marker {
	color: var(--lp-primary);
}

.lp-content strong {
	font-weight: 700;
}

.lp-content blockquote,
.lp-content .wp-block-quote {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	padding: 1em 1.3em;
	border-left: 4px solid var(--lp-primary);
	border-radius: 0 var(--lp-radius-sm) var(--lp-radius-sm) 0;
	background: var(--lp-soft);
}

.lp-content code {
	padding: 0.1em 0.4em;
	border-radius: 6px;
	background: var(--lp-soft);
	font-size: 0.92em;
}

.lp-featured {
	max-width: var(--lp-content);
	margin: 1rem auto 1.5rem;
	padding: 0 var(--lp-gutter);
}

.lp-featured img {
	display: block;
	width: 100%;
	border-radius: var(--lp-radius);
}

/* ---------- Hero de las páginas de herramientas ---------- */
.lp-hero {
	position: relative;
	margin-top: 0 !important;
	padding-top: clamp(48px, 7vw, 80px);
	padding-bottom: clamp(24px, 4vw, 40px);
	background: var(--lp-hero-bg);
	text-align: center;
}

.lp-hero h1 {
	margin: 0 auto 0.35em;
	font-size: clamp(2rem, 5.6vw, 3.25rem);
	font-weight: 850;
	line-height: 1.1;
}

.lp-hero h1 .lp-gradient-text,
.lp-gradient-text {
	background: var(--lp-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lp-hero__lead {
	max-width: 640px;
	margin: 0 auto 1rem;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	color: var(--lp-muted) !important;
}

.lp-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 14px;
	margin: 0 auto 1.4rem !important;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--lp-muted) !important;
}

.lp-hero .lp-gen {
	text-align: left;
}

.lp-hero--gamer {
	background: var(--lp-hero-gamer-bg);
}

/* ---------- Generador ---------- */
.lp-gen {
	margin-top: 1.25rem;
	margin-bottom: 2rem;
}

.lp-gen__panel {
	position: sticky;
	top: calc(var(--lp-header-h) + 10px);
	z-index: 20;
	padding: 12px;
	background: var(--lp-surface-glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--lp-border);
	border-radius: 22px;
	box-shadow: var(--lp-shadow-lg);
}

.admin-bar .lp-gen__panel {
	top: calc(var(--lp-header-h) + 10px + var(--wp-admin--admin-bar--height, 32px));
}

.lp-gen__field {
	position: relative;
}

.lp-gen__input {
	display: block;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 16px 52px 16px 18px;
	border: 2px solid var(--lp-border);
	border-radius: 16px;
	background: var(--lp-surface);
	color: var(--lp-text);
	font-size: 1.15rem;
	line-height: 1.45;
	resize: vertical;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-gen__input::placeholder {
	color: var(--lp-muted);
	opacity: 0.8;
}

.lp-gen__input:focus {
	outline: none;
	border-color: var(--lp-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 18%, transparent);
}

.lp-gen__clear {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: var(--lp-soft);
	color: var(--lp-muted);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.lp-gen__clear:hover {
	background: var(--lp-primary);
	color: #fff;
}

.lp-gen__symbols-toggle {
	margin: 10px 0 0;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--lp-primary);
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.lp-gen__symbols {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: 132px;
	margin-top: 8px;
	overflow-y: auto;
}

.lp-sym {
	width: 40px;
	height: 40px;
	border: 1px solid var(--lp-border);
	border-radius: 10px;
	background: var(--lp-surface);
	font-family: var(--lp-font-unicode);
	font-size: 1.15rem;
	cursor: pointer;
}

.lp-sym:hover {
	border-color: var(--lp-primary);
	background: var(--lp-soft);
}

.lp-gen__chips {
	display: flex;
	gap: 8px;
	margin: 10px -12px 0;
	padding: 2px 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.lp-gen__chips::-webkit-scrollbar {
	display: none;
}

.lp-chip {
	flex-shrink: 0;
	padding: 7px 14px;
	border: 1px solid var(--lp-border);
	border-radius: 999px;
	background: var(--lp-surface);
	color: var(--lp-text);
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.15s ease;
}

.lp-chip:hover {
	border-color: var(--lp-primary);
	color: var(--lp-primary);
}

.lp-chip[aria-pressed="true"] {
	border-color: transparent;
	background: var(--lp-gradient);
	color: #fff;
	box-shadow: 0 4px 14px rgba(236, 72, 153, 0.28);
}

.lp-gen__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 16px 4px 10px !important;
	font-size: 0.88rem;
	color: var(--lp-muted) !important;
}

.lp-gen__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0 !important;
	list-style: none;
}

.lp-gen__item {
	position: relative;
	margin: 0 !important;
}

.lp-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	height: 100%;
	padding: 16px 48px 12px 16px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	color: var(--lp-text);
	text-align: left;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-card:hover {
	border-color: color-mix(in srgb, var(--lp-primary) 55%, var(--lp-border));
	box-shadow: var(--lp-shadow);
	transform: translateY(-2px);
}

.lp-card:active {
	transform: scale(0.99);
}

.lp-card__text {
	display: block;
	min-height: 1.6em;
	font-family: var(--lp-font-unicode);
	font-size: 1.28rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.lp-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	font-size: 0.8rem;
	color: var(--lp-muted);
}

.lp-card__copy {
	flex-shrink: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--lp-soft);
	color: var(--lp-primary);
	font-weight: 700;
	transition: background 0.15s ease, color 0.15s ease;
}

.lp-card:hover .lp-card__copy {
	background: var(--lp-primary);
	color: #fff;
}

.lp-card.is-copied {
	border-color: var(--lp-success);
}

.lp-card.is-copied .lp-card__copy {
	background: var(--lp-success);
	color: #fff;
}

.lp-card__fav {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--lp-muted);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.lp-card__fav:hover {
	background: var(--lp-soft);
}

.lp-card__fav[aria-pressed="true"] {
	color: var(--lp-accent);
}

.lp-gen__empty {
	grid-column: 1 / -1;
	padding: 28px;
	border: 2px dashed var(--lp-border);
	border-radius: var(--lp-radius);
	text-align: center;
	color: var(--lp-muted);
}

.lp-gen__more {
	display: block;
	margin: 20px auto 0;
	padding: 0.85em 1.8em;
	border: 2px solid var(--lp-primary);
	border-radius: 999px;
	background: transparent;
	color: var(--lp-primary);
	font-weight: 700;
	cursor: pointer;
}

.lp-gen__more:hover {
	background: var(--lp-primary);
	color: #fff;
}

.lp-gen__more[hidden] {
	display: none;
}

.lp-gen__toast {
	position: fixed;
	left: 50%;
	bottom: 16px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: min(440px, calc(100vw - 32px));
	padding: 12px 16px;
	border-radius: 16px;
	background: #1a1530;
	color: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 24px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.lp-gen__toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.lp-gen__toast strong {
	font-size: 0.9rem;
	color: #86efac;
}

.lp-gen__toast-text {
	font-family: var(--lp-font-unicode);
	font-size: 1.1rem;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lp-gen__toast-count {
	font-size: 0.8rem;
	color: #c4bfd6;
}

.lp-gen__toast-count.is-over {
	color: #fca5a5;
}

.lp-gen__noscript {
	padding: 16px;
	border-radius: var(--lp-radius);
	background: var(--lp-soft);
	text-align: center;
}

@media (max-width: 600px) {
	.lp-gen__panel {
		padding: 10px;
		border-radius: 18px;
	}

	.lp-gen__input {
		min-height: 56px;
		padding: 14px 48px 14px 14px;
		font-size: 1.05rem;
	}

	.lp-gen__chips {
		margin-left: -10px;
		margin-right: -10px;
		padding-left: 10px;
		padding-right: 10px;
	}

	.lp-card__text {
		font-size: 1.18rem;
	}
}

/* ---------- Bloques de contenido ---------- */
.lp-features,
.lp-steps {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.lp-features .wp-block-column,
.lp-card-block {
	padding: 22px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	box-shadow: var(--lp-shadow);
}

.lp-features .wp-block-column h3 {
	margin-top: 0;
}

.lp-features .wp-block-column p:last-child {
	margin-bottom: 0;
}

.lp-content .wp-block-columns {
	gap: 16px;
}

.lp-steps ol,
ol.lp-steps {
	counter-reset: lp-step;
	padding-left: 0;
	list-style: none;
}

ol.lp-steps > li {
	position: relative;
	margin-bottom: 14px;
	padding: 14px 16px 14px 60px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	counter-increment: lp-step;
}

ol.lp-steps > li::before {
	content: counter(lp-step);
	position: absolute;
	left: 14px;
	top: 14px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--lp-gradient);
	color: #fff;
	font-weight: 800;
}

.lp-tool-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 12px;
	padding: 0 !important;
	list-style: none;
}

.lp-tool-links li {
	margin: 0;
}

.lp-tool-links a {
	display: block;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	color: var(--lp-text);
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s ease;
}

.lp-tool-links a::after {
	content: " →";
	color: var(--lp-primary);
}

.lp-tool-links a:hover {
	border-color: var(--lp-primary);
	box-shadow: var(--lp-shadow);
	transform: translateY(-2px);
}

.lp-cta {
	margin-top: 3rem !important;
	padding: clamp(24px, 5vw, 44px) !important;
	border-radius: 24px;
	background: var(--lp-gradient);
	color: #fff;
	text-align: center;
}

.lp-cta h2,
.lp-cta p {
	color: #fff !important;
}

.lp-cta h2 {
	margin-top: 0 !important;
}

.lp-cta .wp-block-button__link {
	background: #fff;
	color: #7c3aed;
}

.lp-note {
	padding: 14px 18px;
	border-radius: var(--lp-radius-sm);
	background: var(--lp-soft);
	border-left: 4px solid var(--lp-accent);
}

/* Tablas */
.lp-content .wp-block-table {
	overflow-x: auto;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

.lp-content .wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	overflow: hidden;
	font-size: 0.97rem;
}

.lp-content .wp-block-table th,
.lp-content .wp-block-table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--lp-border);
	text-align: left;
	vertical-align: top;
}

.lp-content .wp-block-table th {
	background: var(--lp-soft);
	font-weight: 700;
}

.lp-content .wp-block-table tr:last-child td {
	border-bottom: 0;
}

.lp-content .wp-block-table td:nth-child(2) {
	font-family: var(--lp-font-unicode);
	font-size: 1.08rem;
}

.lp-content .wp-block-table figcaption {
	font-size: 0.85rem;
	color: var(--lp-muted);
	text-align: center;
}

/* Preguntas frecuentes (bloque Detalles) */
.lp-content .wp-block-details {
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 0;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	transition: box-shadow 0.15s ease;
}

.lp-content .wp-block-details[open] {
	box-shadow: var(--lp-shadow);
}

.lp-content .wp-block-details summary {
	position: relative;
	padding: 16px 52px 16px 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.lp-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.lp-content .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 16px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 8px;
	background: var(--lp-soft);
	color: var(--lp-primary);
	font-weight: 800;
	line-height: 1;
}

.lp-content .wp-block-details[open] summary::after {
	content: "−";
}

.lp-content .wp-block-details > :not(summary) {
	margin: 0 18px 16px;
}

/* Ejemplos para copiar */
.lp-examples {
	padding: 0 !important;
	list-style: none;
}

.lp-examples li {
	margin-bottom: 8px;
	padding: 12px 16px;
	border: 1px dashed var(--lp-border);
	border-radius: var(--lp-radius-sm);
	background: var(--lp-surface);
	font-family: var(--lp-font-unicode);
	font-size: 1.1rem;
}

/* ---------- Listados de entradas ---------- */
.lp-archive {
	padding-bottom: 64px;
}

.lp-archive .lp-page-header {
	max-width: var(--lp-wide);
}

.lp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 20px;
	max-width: var(--lp-wide);
	margin: 24px auto;
	padding: 0 var(--lp-gutter);
}

.lp-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	box-shadow: var(--lp-shadow);
}

.lp-post-card__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.lp-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.lp-post-card__title {
	margin: 0 0 8px;
	font-size: 1.2rem;
}

.lp-post-card__title a {
	color: var(--lp-text);
	text-decoration: none;
}

.lp-post-card__title a:hover {
	color: var(--lp-primary);
}

.lp-post-card__excerpt {
	margin: 0 0 12px;
	color: var(--lp-muted);
	font-size: 0.97rem;
}

.lp-post-card__more {
	margin-top: auto;
	font-weight: 700;
	text-decoration: none;
}

.lp-entry-meta {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--lp-muted);
}

.lp-entry-footer,
.lp-post-nav,
.lp-comments {
	max-width: var(--lp-content);
	margin: 0 auto;
	padding: 0 var(--lp-gutter) 32px;
}

.lp-post-nav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.lp-post-nav a {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	color: var(--lp-text);
	font-weight: 700;
	text-decoration: none;
}

.lp-post-nav a span {
	display: block;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--lp-muted);
}

.lp-post-nav .nav-next {
	text-align: right;
}

.lp-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--lp-soft);
	font-size: 0.85rem;
	text-decoration: none;
}

.pagination,
.navigation.pagination {
	max-width: var(--lp-wide);
	margin: 0 auto;
	padding: 0 var(--lp-gutter);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	color: var(--lp-text);
	text-decoration: none;
}

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

.lp-empty {
	max-width: var(--lp-content);
	margin: 0 auto;
	padding: 0 var(--lp-gutter);
}

.lp-search {
	display: flex;
	gap: 8px;
}

.lp-search input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 2px solid var(--lp-border);
	border-radius: 999px;
	background: var(--lp-surface);
}

.lp-search input:focus {
	outline: none;
	border-color: var(--lp-primary);
}

/* Comentarios */
.lp-comments__list {
	padding-left: 0;
	list-style: none;
}

.lp-comments .comment-body {
	margin-bottom: 14px;
	padding: 16px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
}

.lp-comments .children {
	list-style: none;
}

.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--lp-border);
	border-radius: 12px;
	background: var(--lp-surface);
}

.comment-form .submit {
	padding: 0.8em 1.4em;
	border: 0;
	border-radius: 999px;
	background: var(--lp-gradient);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* 404 */
.lp-404 {
	padding-bottom: 64px;
	text-align: center;
}

.lp-404__code {
	margin: 0;
	font-family: var(--lp-font-unicode);
	font-size: clamp(3.5rem, 12vw, 6rem);
	font-weight: 900;
	line-height: 1;
	background: var(--lp-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lp-404__gen {
	max-width: var(--lp-wide);
	margin: 24px auto 0;
	padding: 0 var(--lp-gutter);
	text-align: left;
}

/* ---------- Pie de página ---------- */
.lp-footer {
	margin-top: 32px;
	background: var(--lp-footer-bg);
	color: #d9d4ea;
}

.lp-footer a {
	color: #d9d4ea;
	text-decoration: none;
}

.lp-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.lp-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	max-width: var(--lp-wide);
	margin: 0 auto;
	padding: 56px var(--lp-gutter) 32px;
}

.lp-footer .lp-logo a {
	color: #fff;
}

.lp-footer__about p {
	max-width: 420px;
	margin: 16px 0;
	font-size: 0.95rem;
	color: #b3acc8;
}

.lp-footer__title {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.lp-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-footer__menu li {
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.lp-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.15s ease;
}

.lp-social a:hover {
	background: var(--lp-gradient);
}

.lp-footer .widget {
	margin-top: 20px;
}

.lp-footer__bottom {
	padding: 18px var(--lp-gutter);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	font-size: 0.85rem;
	color: #8f88a8;
}

.lp-footer__bottom p {
	margin: 0;
}

@media (max-width: 800px) {
	.lp-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}

	.lp-footer__about {
		grid-column: 1 / -1;
	}
}

/* ---------- Alineaciones clásicas ---------- */
.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

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

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 0.85rem;
	color: var(--lp-muted);
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
