/* Novafav by joel.+ia */

:root {
	--bl-ink: #0e1412;
	--bl-ink-2: #16201c;
	--bl-panel: #1a2621;
	--bl-line: rgba(232, 214, 168, 0.14);
	--bl-brass: #d4b56a;
	--bl-brass-2: #f0d89a;
	--bl-mint: #7dcfb6;
	--bl-text: #f4efe4;
	--bl-muted: #9aa79f;
	--bl-danger: #e07a6a;
	--bl-radius: 18px;
	--bl-font: "Outfit", system-ui, sans-serif;
	--bl-display: "Source Serif 4", Georgia, serif;
	--bl-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	font-family: var(--bl-font);
	background: var(--bl-ink);
	color: var(--bl-text);
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
}

.bl-muted {
	color: var(--bl-muted);
	font-size: 0.9rem;
}

.bl-brand__mark {
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background:
		linear-gradient(145deg, var(--bl-brass-2), var(--bl-brass)),
		var(--bl-brass);
	box-shadow: inset 0 0 0 2px rgba(14, 20, 18, 0.25);
	display: inline-block;
	position: relative;
}

.bl-brand__mark::after {
	content: "";
	position: absolute;
	inset: 7px;
	border: 2px solid var(--bl-ink);
	border-radius: 4px;
	opacity: 0.55;
}

.bl-btn {
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.65rem 1.1rem;
	cursor: pointer;
	background: transparent;
	color: var(--bl-text);
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bl-btn:hover {
	transform: translateY(-1px);
}

.bl-btn--primary {
	background: linear-gradient(135deg, var(--bl-brass-2), var(--bl-brass));
	color: #1a1408;
	font-weight: 600;
}

.bl-btn--soft {
	background: rgba(232, 214, 168, 0.08);
	border-color: var(--bl-line);
}

.bl-btn--ghost {
	border-color: var(--bl-line);
	color: var(--bl-muted);
}

.bl-btn--danger-ghost {
	border-color: rgba(224, 122, 106, 0.35);
	color: var(--bl-danger);
}

/* —— Landing —— */
.bl-landing {
	min-height: 100vh;
	position: relative;
	overflow: hidden;
	padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
	background:
		radial-gradient(900px 500px at 15% 10%, rgba(125, 207, 182, 0.12), transparent 60%),
		radial-gradient(700px 480px at 90% 20%, rgba(212, 181, 106, 0.16), transparent 55%),
		linear-gradient(180deg, #101816 0%, var(--bl-ink) 55%, #0a0f0d 100%);
}

.bl-landing__glow {
	position: absolute;
	inset: auto -10% -20% 40%;
	height: 55vh;
	background: radial-gradient(circle, rgba(212, 181, 106, 0.12), transparent 70%);
	pointer-events: none;
	animation: bl-drift 12s ease-in-out infinite alternate;
}

@keyframes bl-drift {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-4%, -3%, 0); }
}

.bl-top {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	position: relative;
	z-index: 1;
	animation: bl-rise 0.7s ease both;
}

.bl-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-size: 1.2rem;
}

.bl-brand__by {
	margin: 0;
	color: var(--bl-muted);
	font-size: 0.85rem;
}

.bl-hero {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.2fr 0.9fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	max-width: 1120px;
	margin: clamp(2.5rem, 8vh, 5.5rem) auto 0;
}

.bl-kicker {
	color: var(--bl-mint);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	font-weight: 600;
	margin: 0 0 0.85rem;
}

.bl-hero__title {
	font-family: var(--bl-display);
	font-size: clamp(2.4rem, 5.5vw, 4.1rem);
	line-height: 1.05;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
	max-width: 12ch;
	animation: bl-rise 0.8s ease 0.08s both;
}

.bl-hero__lead {
	color: var(--bl-muted);
	font-size: 1.05rem;
	max-width: 36ch;
	margin: 0 0 1.5rem;
	animation: bl-rise 0.8s ease 0.16s both;
}

.bl-points {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.55rem;
	color: #c9d4cd;
	animation: bl-rise 0.8s ease 0.24s both;
}

.bl-points li {
	padding-left: 1.2rem;
	position: relative;
}

.bl-points li::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bl-brass);
	position: absolute;
	left: 0;
	top: 0.55em;
}

.bl-auth {
	background: rgba(22, 32, 28, 0.78);
	border: 1px solid var(--bl-line);
	border-radius: calc(var(--bl-radius) + 4px);
	padding: 1.35rem;
	backdrop-filter: blur(12px);
	box-shadow: var(--bl-shadow);
	animation: bl-rise 0.85s ease 0.2s both;
}

.bl-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.bl-tab {
	text-align: center;
	padding: 0.7rem;
	border-radius: 999px;
	color: var(--bl-muted);
	border: 1px solid transparent;
}

.bl-tab.is-active {
	color: var(--bl-text);
	border-color: var(--bl-line);
	background: rgba(232, 214, 168, 0.08);
}

.bl-form {
	display: grid;
	gap: 0.85rem;
}

.bl-form label,
.bl-modal__card label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: var(--bl-muted);
}

.bl-form input,
.bl-modal__card input {
	width: 100%;
	border-radius: 12px;
	border: 1px solid var(--bl-line);
	background: rgba(8, 12, 10, 0.55);
	color: var(--bl-text);
	padding: 0.75rem 0.9rem;
}

.bl-form input:focus,
.bl-modal__card input:focus {
	outline: 2px solid rgba(212, 181, 106, 0.45);
	outline-offset: 1px;
}

.bl-check {
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
	grid-template-columns: none !important;
}

.bl-flash {
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	margin-bottom: 0.9rem;
	font-size: 0.92rem;
}

.bl-flash--error {
	background: rgba(224, 122, 106, 0.15);
	border: 1px solid rgba(224, 122, 106, 0.35);
}

.bl-flash--success {
	background: rgba(125, 207, 182, 0.12);
	border: 1px solid rgba(125, 207, 182, 0.3);
}

@keyframes bl-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* —— Dashboard —— */
.bl-dash {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(800px 400px at 0% 0%, rgba(125, 207, 182, 0.08), transparent 50%),
		linear-gradient(180deg, #121a17, var(--bl-ink));
	padding: 0.65rem clamp(1rem, 3vw, 2rem) 0.75rem;
}

.bl-dash__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.35rem 0 0.85rem;
	border-bottom: 1px solid var(--bl-line);
	flex-shrink: 0;
}

.bl-dash__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bl-dash__brand strong {
	display: block;
	letter-spacing: -0.02em;
}

.bl-logo {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	flex-shrink: 0;
}

.bl-logo-svg {
	line-height: 0;
}

.bl-logo-svg svg {
	width: 100%;
	height: 100%;
	display: block;
}

.bl-logo--sm {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	display: inline-block;
	vertical-align: middle;
	box-shadow: none;
}

.bl-dash__user {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
}

.bl-userchip {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	border: 1px solid var(--bl-line);
	background: rgba(255, 255, 255, 0.03);
	color: var(--bl-text);
	border-radius: 999px;
	padding: 0.25rem 0.75rem 0.25rem 0.25rem;
	cursor: pointer;
}

.bl-userchip__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.bl-panel {
	flex: 1 1 auto;
	padding: 1rem 0 1.25rem;
	min-height: 45vh;
}

.bl-modal--menus {
	width: min(920px, calc(100% - 1.5rem));
	max-width: none;
}

.bl-modal__card--menus {
	width: min(920px, 100%);
	max-height: min(88vh, 820px);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.35rem 1.35rem 1.15rem;
}

.bl-menus-pop__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.bl-menus-pop__kicker {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bl-mint);
}

.bl-menus-pop__head h2 {
	margin: 0;
	font-family: var(--bl-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.bl-menus-pop__lead {
	margin: 0;
	color: var(--bl-muted);
	max-width: 48ch;
}

.bl-menus-pop__foot {
	display: flex;
	justify-content: flex-end;
	padding-top: 0.35rem;
	border-top: 1px solid var(--bl-line);
}

.bl-menus__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 1rem;
	align-items: stretch;
	max-height: none;
	overflow: auto;
	flex: 1 1 auto;
	min-height: 180px;
	padding: 0.35rem 0.15rem 0.55rem;
}

.bl-menu-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	border-radius: 18px;
	padding: 0.4rem 0.45rem 0.4rem 0.25rem;
	border: 1px solid rgba(232, 214, 168, 0.12);
	background:
		linear-gradient(180deg, rgba(42, 56, 50, 0.95) 0%, rgba(24, 34, 30, 0.98) 100%);
	min-height: 72px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 10px 24px rgba(0, 0, 0, 0.28),
		0 2px 6px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bl-menu-item:hover {
	transform: translateY(-3px);
	border-color: rgba(212, 181, 106, 0.35);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.08) inset,
		0 16px 32px rgba(0, 0, 0, 0.35),
		0 4px 10px rgba(0, 0, 0, 0.2);
}

.bl-menu-item:active {
	transform: translateY(-1px);
}

.bl-menu-item.is-active {
	border-color: rgba(240, 216, 154, 0.55);
	background: linear-gradient(145deg, #f3dfa3 0%, #d4b56a 55%, #c4a055 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 14px 28px rgba(212, 181, 106, 0.28),
		0 6px 14px rgba(0, 0, 0, 0.25);
}

.bl-menu-item .bl-menu-tab {
	border: 0;
	background: transparent;
	color: var(--bl-text);
	border-radius: 14px;
	padding: 0.85rem 0.95rem;
	cursor: pointer;
	flex: 1;
	text-align: left;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.bl-menu-item.is-active .bl-menu-tab {
	color: #1a1408;
	font-weight: 700;
}

.bl-menu-edit {
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: var(--bl-muted);
	width: 38px;
	height: 38px;
	border-radius: 12px;
	cursor: pointer;
	opacity: 0.85;
	font-size: 0.95rem;
	line-height: 1;
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bl-menu-item:hover .bl-menu-edit,
.bl-menu-item.is-active .bl-menu-edit {
	opacity: 1;
}

.bl-menu-edit:hover {
	transform: scale(1.05);
	background: rgba(255, 255, 255, 0.14);
	color: var(--bl-text);
}

.bl-menu-item.is-active .bl-menu-edit {
	background: rgba(26, 20, 8, 0.16);
	color: #1a1408;
	box-shadow: 0 4px 10px rgba(26, 20, 8, 0.12);
}

.bl-dash__foot {
	flex-shrink: 0;
	text-align: center;
	padding: 0.65rem 0 0.35rem;
	color: var(--bl-muted);
	font-size: 0.85rem;
	border-top: 1px solid transparent;
}

.bl-dash__foot span,
.bl-foot span {
	color: var(--bl-brass);
}

.bl-foot {
	position: relative;
	z-index: 1;
	margin-top: 4rem;
	text-align: center;
	color: var(--bl-muted);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.bl-foot p {
	margin: 0;
}

.bl-menu-actions {
	display: grid;
	gap: 0.55rem;
}

.bl-menu-actions .bl-btn {
	width: 100%;
}

.bl-panel__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.bl-panel__title {
	margin: 0;
	font-family: var(--bl-font);
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	color: #1a1408;
	background: linear-gradient(145deg, #f3dfa3 0%, #d4b56a 100%);
	border: 1px solid rgba(240, 216, 154, 0.45);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.4) inset,
		0 10px 22px rgba(212, 181, 106, 0.22),
		0 4px 10px rgba(0, 0, 0, 0.22);
}

.bl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.9rem;
}

.bl-avatar-edit {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.bl-avatar-edit img {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	object-fit: cover;
	border: 1px solid var(--bl-line);
}

.bl-hint {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	color: var(--bl-muted);
}

.bl-filebtn {
	display: inline-block;
}

.bl-modal__card--profile {
	width: min(460px, 100%);
}

.bl-profile-ok {
	color: var(--bl-mint);
}

.bl-profile-err {
	color: var(--bl-danger);
}

.bl-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	padding: 1.15rem 0.75rem 1rem;
	border-radius: var(--bl-radius);
	background: rgba(26, 38, 33, 0.9);
	border: 1px solid var(--bl-line);
	transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
	/* backwards (no both): al terminar suelta el transform para hover / arrastre. */
	animation: bl-rise 0.45s ease backwards;
}

.bl-tile:hover {
	transform: translateY(-3px);
	border-color: rgba(212, 181, 106, 0.4);
	background: rgba(32, 46, 40, 0.95);
}

.bl-tile--add {
	border-style: dashed;
	background: rgba(26, 38, 33, 0.45);
	color: var(--bl-muted);
	cursor: pointer;
	width: 100%;
	font: inherit;
}

.bl-tile--add:hover {
	border-color: rgba(212, 181, 106, 0.55);
	color: var(--bl-text);
	background: rgba(32, 46, 40, 0.7);
}

.bl-tile__icon--plus {
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--bl-brass);
	background: rgba(212, 181, 106, 0.12);
}

.bl-tile__hint {
	font-size: 0.75rem;
	color: var(--bl-muted);
	text-align: center;
}

.bl-tile__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(232, 214, 168, 0.1);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.bl-tile__icon img {
	width: 28px;
	height: 28px;
}

.bl-tile__title {
	font-size: 0.92rem;
	text-align: center;
	word-break: break-word;
}

.bl-tile__actions {
	display: flex;
	gap: 0.35rem;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.bl-tile:hover .bl-tile__actions,
.bl-tile:focus-within .bl-tile__actions {
	opacity: 1;
}

.bl-tile__actions button {
	border: 0;
	background: rgba(0, 0, 0, 0.35);
	color: var(--bl-muted);
	border-radius: 8px;
	padding: 0.25rem 0.45rem;
	cursor: pointer;
	font-size: 0.75rem;
}

.bl-empty {
	color: var(--bl-muted);
	margin: 2rem 0 0;
}

.bl-modal {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: calc(100% - 2rem);
}

.bl-modal::backdrop {
	background: rgba(6, 10, 8, 0.72);
}

.bl-modal__card {
	width: min(420px, 100%);
	background: var(--bl-panel);
	border: 1px solid var(--bl-line);
	border-radius: var(--bl-radius);
	padding: 1.25rem;
	box-shadow: var(--bl-shadow);
	display: grid;
	gap: 0.9rem;
	color: var(--bl-text);
}

.bl-modal__card h2 {
	margin: 0;
	font-family: var(--bl-display);
	font-size: 1.35rem;
}

.bl-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

@media (max-width: 860px) {
	.bl-hero {
		grid-template-columns: 1fr;
	}

	.bl-hero__title {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.bl-dash__bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* —— Imagen de fondo ——
 * La imagen se pinta directamente en el contenedor (.bl-dash / .bl-landing),
 * no en capas con z-index negativo: así ningún fondo del <html>/<body>
 * (de WordPress o de un plugin) la puede tapar.
 */
body.bl-has-bg .bl-dash,
body.bl-has-bg .bl-landing {
	background-color: var(--bl-ink);
	background-image:
		linear-gradient(rgba(8, 12, 10, var(--bl-bg-dim, 0.2)), rgba(8, 12, 10, var(--bl-bg-dim, 0.2))),
		linear-gradient(180deg, rgba(8, 12, 10, 0.05) 0%, rgba(8, 12, 10, 0.35) 100%),
		var(--bl-bg-image);
	background-size: cover, cover, cover;
	background-position: center, center, center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

/* Móviles/tablets: "fixed" falla en iOS; se usa scroll. */
@media (hover: none) {
	body.bl-has-bg .bl-dash,
	body.bl-has-bg .bl-landing {
		background-attachment: scroll;
	}
}

body.bl-has-bg .bl-dash__bar {
	border-bottom-color: rgba(232, 214, 168, 0.2);
}

body.bl-has-bg .bl-tile {
	background: rgba(18, 28, 24, 0.68);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.bl-has-bg .bl-tile:hover {
	background: rgba(26, 38, 33, 0.82);
}

body.bl-has-bg .bl-tile--add {
	background: rgba(18, 28, 24, 0.42);
}

body.bl-has-bg .bl-userchip,
body.bl-has-bg .bl-btn--soft,
body.bl-has-bg .bl-btn--ghost {
	background-color: rgba(14, 20, 18, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.bl-modal--bg {
	width: min(760px, calc(100% - 1.5rem));
	max-width: none;
}

.bl-modal__card--bg {
	width: 100%;
	max-height: min(88vh, 780px);
	overflow: auto;
}

.bl-bg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
	gap: 0.75rem;
}

.bl-bg-opt {
	position: relative;
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.4rem;
	border-radius: 14px;
	border: 2px solid transparent;
	background: rgba(255, 255, 255, 0.03);
	color: var(--bl-text);
	cursor: pointer;
	font: inherit;
	text-align: left;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.bl-bg-opt:hover {
	transform: translateY(-2px);
	border-color: rgba(212, 181, 106, 0.35);
}

.bl-bg-opt.is-active {
	border-color: var(--bl-brass);
}

.bl-bg-opt.is-active::after {
	content: "✓";
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--bl-brass);
	color: #1a1408;
	font-weight: 700;
	font-size: 0.8rem;
}

.bl-bg-opt__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: var(--bl-ink-2) center / cover no-repeat;
	border: 1px solid var(--bl-line);
}

.bl-bg-opt__img--none {
	background:
		repeating-linear-gradient(45deg, rgba(232, 214, 168, 0.06) 0 10px, transparent 10px 20px),
		linear-gradient(180deg, #121a17, var(--bl-ink));
}

.bl-bg-opt__label {
	font-size: 0.85rem;
	padding: 0 0.2rem 0.15rem;
}

.bl-bg-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--bl-line);
}

.bl-bg-dim {
	flex: 1 1 240px;
}

.bl-bg-dim input[type="range"] {
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: var(--bl-brass);
}

/* —— Arrastrar y soltar favoritos —— */
.bl-panel__hint {
	margin: 0;
	font-size: 0.8rem;
	color: var(--bl-muted);
}

.bl-panel__hint span {
	color: var(--bl-brass);
}

.bl-tile[data-fav-id] {
	touch-action: pan-y;
	-webkit-user-drag: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.bl-tile[data-fav-id] img {
	-webkit-user-drag: none;
	pointer-events: none;
}

.bl-tile.is-drag-source {
	opacity: 0.3;
	transform: scale(0.96);
	border-style: dashed;
}

.bl-tile.is-drop-target {
	border-color: var(--bl-brass);
	box-shadow: 0 0 0 3px rgba(212, 181, 106, 0.35), 0 14px 28px rgba(0, 0, 0, 0.35);
	transform: scale(1.04);
}

.bl-drag-ghost {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	margin: 0;
	pointer-events: none;
	opacity: 0.95;
	animation: none !important;
	transform-origin: center;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
	border-color: var(--bl-brass) !important;
	background: rgba(32, 46, 40, 0.97) !important;
}

.bl-drag-ghost .bl-tile__actions {
	opacity: 0 !important;
}

body.bl-dragging,
body.bl-dragging * {
	cursor: grabbing !important;
	user-select: none;
}

body.bl-dragging .bl-tile:hover {
	transform: none;
}

body.bl-dragging .bl-tile.is-drop-target {
	transform: scale(1.04);
}

.bl-toast {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translate(-50%, 20px);
	opacity: 0;
	z-index: 10000;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	background: rgba(22, 32, 28, 0.95);
	border: 1px solid var(--bl-line);
	color: var(--bl-text);
	font-size: 0.88rem;
	box-shadow: var(--bl-shadow);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.bl-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.bl-toast.is-err {
	border-color: rgba(224, 122, 106, 0.5);
	color: var(--bl-danger);
}

@media (prefers-reduced-motion: reduce) {
	.bl-tile,
	.bl-drag-ghost {
		transition: none !important;
	}
}

.bl-grid.is-static .bl-tile {
	animation: none;
}

/* —— Menús intercambiables —— */
.bl-menu-item[data-menu-wrap] {
	touch-action: pan-y;
	user-select: none;
	-webkit-touch-callout: none;
	cursor: grab;
}

.bl-menu-grip {
	color: var(--bl-muted);
	opacity: 0.55;
	font-size: 0.9rem;
	letter-spacing: -0.2em;
	padding: 0 0.15rem 0 0.45rem;
	line-height: 1;
}

.bl-menu-item.is-active .bl-menu-grip {
	color: #1a1408;
}

.bl-menu-item .bl-menu-tab {
	display: grid;
	gap: 0.15rem;
}

.bl-menu-tab__meta {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--bl-muted);
}

.bl-menu-tab__meta b {
	color: var(--bl-brass);
	font-weight: 600;
}

.bl-menu-item.is-active .bl-menu-tab__meta,
.bl-menu-item.is-active .bl-menu-tab__meta b {
	color: rgba(26, 20, 8, 0.72);
}

.bl-menu-item.is-drag-source {
	opacity: 0.3;
	border-style: dashed;
	transform: scale(0.97);
}

.bl-menu-item.is-drop-target {
	border-color: var(--bl-brass);
	box-shadow: 0 0 0 3px rgba(212, 181, 106, 0.35), 0 14px 28px rgba(0, 0, 0, 0.35);
	transform: scale(1.03);
}

.bl-menus__list.is-static .bl-menu-item:hover {
	transform: none;
}

.bl-menu-item.bl-drag-ghost {
	background: linear-gradient(180deg, rgba(52, 68, 60, 0.98), rgba(30, 42, 37, 0.98)) !important;
}

/* =========================================================
   Landing Novafav (v1.4)
   ========================================================= */
.nf-landing {
	padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
	overflow: visible;
}

.nf-landing .bl-landing__glow {
	position: fixed;
}

.nf-landing main,
.nf-nav {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
}

/* Barra superior */
.nf-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 0.9rem 0;
	margin-bottom: 0.5rem;
	animation: bl-rise 0.6s ease both;
}

.nf-nav::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: rgba(12, 18, 16, 0.6);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(232, 214, 168, 0.1);
	z-index: -1;
}

.nf-nav__links {
	display: flex;
	gap: 1.4rem;
	margin-left: 1rem;
	font-size: 0.95rem;
	color: var(--bl-muted);
}

.nf-nav__links a:hover {
	color: var(--bl-text);
}

.nf-nav__cta {
	margin-left: auto;
	display: flex;
	gap: 0.5rem;
}

.nf-nav__cta .bl-btn {
	padding: 0.55rem 1rem;
}

/* Héroe */
.nf-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding: clamp(2rem, 7vh, 4.5rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.nf-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.3rem;
	padding: 0.4rem 0.9rem 0.4rem 0.5rem;
	border-radius: 999px;
	font-size: 0.85rem;
	color: #e9e2d0;
	background: rgba(212, 181, 106, 0.1);
	border: 1px solid rgba(212, 181, 106, 0.28);
	animation: bl-rise 0.7s ease both;
}

.nf-badge span {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--bl-brass-2), var(--bl-brass));
	color: #1a1408;
	font-size: 0.7rem;
}

.nf-hero__title {
	font-family: var(--bl-display);
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0 0 1.2rem;
	animation: bl-rise 0.8s ease 0.06s both;
}

.nf-hero__title em {
	font-style: normal;
	background: linear-gradient(120deg, #f6e3ad 0%, #d4b56a 50%, #7dcfb6 110%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nf-hero__lead {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: #b9c4bd;
	max-width: 40ch;
	margin: 0 0 1.8rem;
	animation: bl-rise 0.8s ease 0.12s both;
}

.nf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	animation: bl-rise 0.8s ease 0.18s both;
}

.nf-btn-lg {
	padding: 0.95rem 1.5rem;
	font-size: 1.02rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.bl-btn--primary.nf-btn-lg {
	box-shadow: 0 12px 30px rgba(212, 181, 106, 0.3);
}

.nf-trust {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	padding: 0;
	margin: 1.8rem 0 0;
	color: var(--bl-muted);
	font-size: 0.9rem;
	animation: bl-rise 0.8s ease 0.24s both;
}

.nf-trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.nf-trust svg {
	color: var(--bl-mint);
}

/* Tarjeta de acceso */
.nf-auth {
	padding: 1.5rem;
	background: rgba(20, 30, 26, 0.82);
	border-color: rgba(232, 214, 168, 0.18);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
	scroll-margin-top: 90px;
	position: relative;
}

.nf-auth::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(160deg, rgba(240, 216, 154, 0.5), transparent 40%, transparent 70%, rgba(125, 207, 182, 0.35));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.nf-tabs {
	background: rgba(0, 0, 0, 0.22);
	padding: 0.3rem;
	border-radius: 999px;
}

.nf-tabs .bl-tab {
	padding: 0.6rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.nf-tabs .bl-tab.is-active {
	background: linear-gradient(135deg, var(--bl-brass-2), var(--bl-brass));
	color: #1a1408;
	border-color: transparent;
}

.nf-social {
	display: grid;
	gap: 0.55rem;
	margin-bottom: 0.4rem;
}

.nf-social__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.72rem 1rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.nf-social__btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.22);
	transform: translateY(-1px);
}

.nf-social__mark {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 0.85rem;
	color: #fff;
	background: #555;
}

.nf-social__btn--google .nf-social__mark { background: #fff; color: #4285f4; }
.nf-social__btn--facebook .nf-social__mark { background: #1877f2; font-family: Georgia, serif; font-size: 1rem; }
.nf-social__btn--x .nf-social__mark { background: #000; border: 1px solid #333; }

.nf-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.6rem 0 0.2rem;
	color: var(--bl-muted);
	font-size: 0.8rem;
}

.nf-divider::before,
.nf-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--bl-line);
}

.nf-auth .bl-form {
	margin-top: 0.85rem;
}

.nf-auth .bl-form input {
	padding: 0.8rem 0.95rem;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.nf-auth .bl-form input:hover {
	border-color: rgba(232, 214, 168, 0.28);
}

.nf-pass {
	position: relative;
	display: block;
}

.nf-pass input {
	padding-right: 2.8rem !important;
}

.nf-pass__toggle {
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--bl-muted);
	cursor: pointer;
}

.nf-pass__toggle:hover,
.nf-pass__toggle.is-on {
	color: var(--bl-brass-2);
	background: rgba(255, 255, 255, 0.06);
}

.nf-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-size: 0.88rem;
}

.nf-link,
.nf-switch a {
	color: var(--bl-brass-2);
	font-weight: 500;
}

.nf-link:hover,
.nf-switch a:hover {
	text-decoration: underline;
}

.nf-switch {
	margin: 0.2rem 0 0;
	text-align: center;
	font-size: 0.88rem;
	color: var(--bl-muted);
}

.nf-btn-block {
	width: 100%;
	padding: 0.85rem 1rem;
	font-size: 1rem;
}

.bl-btn.is-loading {
	opacity: 0.7;
	cursor: progress;
}

.nf-hint {
	margin: -0.35rem 0 0;
	font-size: 0.78rem;
	color: var(--bl-muted);
}

.nf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nf-strength {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: -0.4rem;
}

.nf-strength span {
	flex: 1;
	height: 5px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.08);
	position: relative;
	overflow: hidden;
}

.nf-strength span::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--w, 0%);
	background: var(--bl-danger);
	border-radius: inherit;
	transition: width 0.2s ease, background 0.2s ease;
}

.nf-strength[data-level="2"] span::after { background: #e0b46a; }
.nf-strength[data-level="3"] span::after,
.nf-strength[data-level="4"] span::after { background: var(--bl-mint); }

.nf-strength em {
	font-style: normal;
	font-size: 0.75rem;
	color: var(--bl-muted);
	min-width: 6.5em;
	text-align: right;
}

.nf-panel-head {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
}

.nf-panel-head h2 {
	margin: 0 0 0.2rem;
	font-family: var(--bl-display);
	font-size: 1.35rem;
}

.nf-panel-head p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--bl-muted);
}

.nf-panel-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	color: var(--bl-brass-2);
	background: rgba(212, 181, 106, 0.12);
	border: 1px solid rgba(212, 181, 106, 0.25);
}

.nf-code {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 1.5rem !important;
	letter-spacing: 0.6em;
	text-align: center;
	padding-left: 1.4rem !important;
}

/* Vista previa del producto */
.nf-preview {
	display: flex;
	justify-content: center;
	padding: 1rem 0 clamp(3rem, 8vh, 5rem);
}

.nf-window {
	width: min(920px, 100%);
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(232, 214, 168, 0.2);
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
	background:
		linear-gradient(rgba(8, 12, 10, 0.35), rgba(8, 12, 10, 0.35)),
		var(--nf-preview-bg, linear-gradient(135deg, #1d3a35, #2a2350 60%, #14263a));
	background-size: cover;
	background-position: center;
	transform: perspective(1400px) rotateX(6deg);
	transform-origin: top center;
}

.nf-window__chrome {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0.6rem 0.9rem;
	background: rgba(10, 14, 12, 0.75);
	font-size: 0.72rem;
	color: var(--bl-muted);
}

.nf-window__chrome i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3a4540;
}

.nf-window__chrome span {
	margin-left: 0.8rem;
	padding: 0.15rem 0.8rem;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.06);
}

.nf-window__bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.1rem;
	border-bottom: 1px solid rgba(232, 214, 168, 0.15);
	font-size: 0.8rem;
}

.nf-window__bar strong {
	margin-right: auto;
	font-size: 0.95rem;
}

.nf-window__bar span {
	padding: 0.3rem 0.75rem;
	border-radius: 99px;
	border: 1px solid rgba(232, 214, 168, 0.2);
	background: rgba(14, 20, 18, 0.5);
}

.nf-window__bar span.is-on {
	border-color: var(--bl-brass);
	color: var(--bl-brass-2);
}

.nf-window__body {
	padding: 1.1rem;
}

.nf-window__chips {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.82rem;
}

.nf-window__chips b,
.nf-window__chips span {
	padding: 0.4rem 0.9rem;
	border-radius: 99px;
}

.nf-window__chips b {
	background: linear-gradient(135deg, var(--bl-brass-2), var(--bl-brass));
	color: #1a1408;
}

.nf-window__chips span {
	background: rgba(14, 20, 18, 0.55);
	border: 1px solid rgba(232, 214, 168, 0.14);
}

.nf-window__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 0.7rem;
}

.nf-demo-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 0.5rem;
	border-radius: 14px;
	font-size: 0.8rem;
	background: rgba(18, 28, 24, 0.7);
	border: 1px solid rgba(232, 214, 168, 0.12);
	backdrop-filter: blur(8px);
}

.nf-demo-tile span {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	font-weight: 700;
	color: #fff;
}

.nf-demo-tile.is-lifted {
	transform: rotate(-4deg) translateY(-6px) scale(1.05);
	border-color: var(--bl-brass);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
	background: rgba(32, 46, 40, 0.95);
}

.nf-demo-tile.is-add {
	border-style: dashed;
	color: var(--bl-muted);
}

.nf-demo-tile.is-add span {
	background: rgba(212, 181, 106, 0.14);
	color: var(--bl-brass);
	font-size: 1.3rem;
}

/* Secciones */
.nf-section {
	padding: clamp(2.5rem, 8vh, 4.5rem) 0;
	text-align: center;
	scroll-margin-top: 70px;
}

.nf-section__title {
	font-family: var(--bl-display);
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	letter-spacing: -0.02em;
	margin: 0 auto 2.2rem;
	max-width: 22ch;
	line-height: 1.12;
}

.nf-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	text-align: left;
}

.nf-feature {
	padding: 1.4rem;
	border-radius: var(--bl-radius);
	background: rgba(22, 32, 28, 0.7);
	border: 1px solid var(--bl-line);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.nf-feature:hover {
	transform: translateY(-4px);
	border-color: rgba(212, 181, 106, 0.35);
}

.nf-feature__icon {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	color: var(--bl-brass-2);
	background: rgba(212, 181, 106, 0.12);
	margin-bottom: 1rem;
}

.nf-feature h3,
.nf-steps h3 {
	margin: 0 0 0.4rem;
	font-size: 1.08rem;
}

.nf-feature p,
.nf-steps p {
	margin: 0;
	color: var(--bl-muted);
	font-size: 0.93rem;
}

.nf-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	counter-reset: none;
}

.nf-steps li {
	padding: 1.6rem 1.4rem;
	border-radius: var(--bl-radius);
	background: rgba(22, 32, 28, 0.55);
	border: 1px solid var(--bl-line);
}

.nf-steps b {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-bottom: 0.9rem;
	font-family: var(--bl-display);
	font-size: 1.2rem;
	color: #1a1408;
	background: linear-gradient(135deg, var(--bl-brass-2), var(--bl-brass));
}

.nf-cta {
	margin: clamp(1rem, 4vh, 2rem) 0 0;
	padding: clamp(2rem, 6vh, 3.5rem) 1.5rem;
	text-align: center;
	border-radius: 26px;
	background:
		radial-gradient(600px 220px at 50% 0%, rgba(212, 181, 106, 0.22), transparent 70%),
		rgba(22, 32, 28, 0.75);
	border: 1px solid rgba(212, 181, 106, 0.25);
}

.nf-cta h2 {
	margin: 0 0 0.5rem;
	font-family: var(--bl-display);
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.nf-cta p {
	margin: 0 0 1.4rem;
	color: var(--bl-muted);
}

.nf-landing .bl-foot {
	margin-top: 3rem;
}

@media (max-width: 960px) {
	.nf-hero {
		grid-template-columns: 1fr;
	}

	.nf-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nf-nav__links {
		display: none;
	}
}

@media (max-width: 640px) {
	.nf-features,
	.nf-steps {
		grid-template-columns: 1fr;
	}

	.nf-nav__cta .bl-btn--ghost {
		display: none;
	}

	.nf-window {
		transform: none;
	}

	.nf-window__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nf-demo-tile:nth-child(n + 7) {
		display: none;
	}

	.nf-auth {
		padding: 1.15rem;
	}
}

/* "hidden" siempre gana (los formularios usan display:grid). */
[hidden] {
	display: none !important;
}

.bl-check input[type="checkbox"] {
	width: 18px !important;
	height: 18px;
	padding: 0 !important;
	accent-color: var(--bl-brass);
	flex-shrink: 0;
}

.nf-row .bl-check {
	color: var(--bl-muted);
}
