/* Widgets embebibles (home, wall). Clases compartidas fnc-wgt__* */

.fnc-wgt { min-width: 0; }

.fnc-wgt__head { margin-bottom: 10px; }

.fnc-wgt__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.fnc-wgt__title i { color: #8b7bff; font-size: .92em; }

.fnc-wgt__body { min-width: 0; }

.fnc-wgt__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.fnc-wgt__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(127, 127, 127, .12);
}

.fnc-wgt__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
}

.fnc-wgt__thumb:hover img { transform: scale(1.05); }

.fnc-wgt__strip {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 14px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.fnc-wgt__strip::-webkit-scrollbar {
	display: none;
}

.fnc-wgt__carousel {
	position: relative;
	min-width: 0;
}

.fnc-wgt__carousel .fnc-wgt__carousel-btn {
	position: absolute;
	top: 50%;
	z-index: 3;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	background: rgba(8, 8, 12, 0.58) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transform: translateY(-50%);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.fnc-wgt__carousel .fnc-wgt__carousel-btn i {
	pointer-events: none;
	font-size: 0.72rem;
	line-height: 1;
}

.fnc-wgt__carousel .fnc-wgt__carousel-btn:hover {
	background: rgba(8, 8, 12, 0.82) !important;
	border-color: rgba(255, 255, 255, 0.28);
	transform: translateY(-50%) scale(1.06);
	filter: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.fnc-wgt__carousel .fnc-wgt__carousel-btn:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.32);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.fnc-wgt__carousel .fnc-wgt__carousel-btn--prev { left: 6px; }
.fnc-wgt__carousel .fnc-wgt__carousel-btn--next { right: 6px; }

.fnc-wgt__strip--stories {
	gap: 12px;
	padding-block: 2px 8px;
	scroll-behavior: auto;
	scroll-snap-type: none;
	cursor: grab;
}

.fnc-wgt__strip--stories.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.fnc-wgt__strip-item {
	flex: 0 0 auto;
	width: 112px;
	height: 112px;
	border-radius: 12px;
	overflow: hidden;
	scroll-snap-align: start;
	background: rgba(127, 127, 127, .12);
}

.fnc-wgt__strip--stories .fnc-wgt__strip-item {
	width: 118px;
	height: 210px;
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	border: 2px solid rgba(139, 123, 255, .45);
	transition: transform .2s ease;
}

.fnc-wgt__strip--stories .fnc-wgt__strip-item:hover {
	transform: translateY(-2px);
}

.fnc-wgt__strip-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fnc-wgt__artists {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.fnc-wgt__artist {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 6px;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	background: rgba(127, 127, 127, .08);
	transition: background .15s ease, transform .15s ease;
}

.fnc-wgt__artist:hover {
	background: rgba(124, 58, 237, .14);
	transform: translateY(-1px);
}

.fnc-wgt__artist-ava {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.fnc-wgt__artist-ava--empty {
	display: block;
	background: rgba(127, 127, 127, .2);
}

.fnc-wgt__artist-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: .82rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
}

.fnc-wgt__badges { display: inline-flex; align-items: center; gap: 2px; }
.fnc-wgt__badges .profile-app-badge { transform: scale(.8); transform-origin: center; }

.home-section .fnc-wgt__grid { gap: 5px; }

/* Presentación editorial exclusiva de los widgets B/C en la landing invitada. */
.home--guest .fnc-wgt--landing-art,
.home--guest .fnc-wgt--landing-artists {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 18px;
	box-sizing: border-box;
	border: 1px solid rgba(139, 123, 255, .16);
	border-radius: 20px;
	background:
		radial-gradient(circle at 10% 0, rgba(124, 58, 237, .12), transparent 42%),
		linear-gradient(145deg, rgba(18, 16, 27, .84), rgba(10, 9, 15, .92));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.home--guest .fnc-wgt--landing-art .fnc-wgt__head,
.home--guest .fnc-wgt--landing-artists .fnc-wgt__head {
	margin-bottom: 16px;
}

.home--guest .fnc-wgt--landing-art .fnc-wgt__title,
.home--guest .fnc-wgt--landing-artists .fnc-wgt__title {
	position: relative;
	gap: 11px;
	padding-bottom: 12px;
	font-size: clamp(1.18rem, 1.7vw, 1.55rem);
	font-weight: 850;
	letter-spacing: -.025em;
}

.home--guest .fnc-wgt--landing-art .fnc-wgt__title::after,
.home--guest .fnc-wgt--landing-artists .fnc-wgt__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #8b7bff, #e879f9);
	box-shadow: 0 0 18px rgba(139, 123, 255, .45);
}

.home--guest .fnc-wgt--landing-art .fnc-wgt__title i,
.home--guest .fnc-wgt--landing-artists .fnc-wgt__title i {
	font-size: .9em;
	filter: drop-shadow(0 0 9px rgba(139, 123, 255, .48));
}

.home--guest .fnc-wgt--landing-art .fnc-wgt__body,
.home--guest .fnc-wgt--landing-artists .fnc-wgt__body {
	flex: 1;
}

.home--guest .fnc-wgt--landing-artists .fnc-wgt__artists {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	height: 100%;
	gap: 10px;
}

.home--guest .fnc-wgt--landing-artists .fnc-wgt__artist {
	justify-content: center;
	min-height: 112px;
	padding: 14px 10px;
	border: 1px solid rgba(255, 255, 255, .04);
	background: rgba(255, 255, 255, .035);
}

.home--guest .fnc-wgt--landing-artists .fnc-wgt__artist-ava {
	width: 78px;
	height: 78px;
	box-shadow: 0 0 0 3px rgba(139, 123, 255, .16);
}

.home--guest .fnc-wgt--landing-artists .fnc-wgt__artist-name {
	font-size: .92rem;
}

.fnc-wgt__landing-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 16px;
	padding: 14px 15px;
	border: 1px solid rgba(139, 123, 255, .2);
	border-radius: 15px;
	background: linear-gradient(100deg, rgba(124, 58, 237, .14), rgba(232, 121, 249, .06));
}

.fnc-wgt__landing-cta-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.fnc-wgt__landing-cta-copy strong {
	font-size: .94rem;
	line-height: 1.25;
}

.fnc-wgt__landing-cta-copy small {
	color: rgba(230, 228, 238, .66);
	font-size: .76rem;
	line-height: 1.35;
}

.fnc-wgt .fnc-wgt__landing-cta-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 10px 13px;
	border: 0;
	border-radius: 999px;
	color: #fff !important;
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
	box-shadow: 0 7px 20px rgba(124, 58, 237, .28);
	transition: transform .18s ease, box-shadow .18s ease;
}

.fnc-wgt .fnc-wgt__landing-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(124, 58, 237, .4);
}

/* Slot A: pasarela tipo historia a todo el ancho, sin título propio del widget. */
.home-section--a .fnc-wgt--story-strip {
	margin-inline: -14px;
	width: calc(100% + 28px);
}

.home-section--a .fnc-wgt__carousel .fnc-wgt__carousel-btn--prev { left: 18px; }
.home-section--a .fnc-wgt__carousel .fnc-wgt__carousel-btn--next { right: 18px; }

.home-section--a .fnc-wgt__strip--stories {
	padding-inline: 52px 52px;
}

.home-section--a .fnc-wgt__strip--stories .fnc-wgt__strip-item {
	width: 132px;
	height: 234px;
}

@media (max-width: 640px) {
	.home-section--a .fnc-wgt__strip--stories .fnc-wgt__strip-item {
		width: 108px;
		height: 192px;
	}

	.fnc-wgt__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fnc-wgt__artists { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.home--guest .fnc-wgt--landing-art,
	.home--guest .fnc-wgt--landing-artists { padding: 14px; }

	.fnc-wgt__landing-cta {
		align-items: flex-start;
		flex-direction: column;
	}
}
