/**
 * Estilos del Sistema Social Custom - Directorio de Arte
 * Totalmente adaptados a la paleta, tipografía y diseño del tema.
 */

:root {
	--art-primary: #9a634e;
	--art-primary-dark: #7a4f3e;
	--art-primary-light: #f4ecd0;
	--art-cream-bg: #fffcf0;
	--art-border-color: #e5e7eb;
}

/* Modales y Overlays */
.art-social-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	animation: artFadeIn 0.2s ease-out;
}

.art-social-modal-overlay.hidden {
	display: none !important;
}

.art-social-modal-dialog {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	animation: artPopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

@keyframes artFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes artPopUp {
	from { opacity: 0; transform: scale(0.92) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Interacciones del Feed */
.art-social-entry {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.art-social-like-btn.is-animating i {
	animation: artHeartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes artHeartPop {
	0% { transform: scale(1); }
	50% { transform: scale(1.4); }
	100% { transform: scale(1); }
}

.art-social-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.art-social-media-item {
	position: relative;
	height: 80px;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f6;
}

.art-social-media-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.art-social-remove-media {
	position: absolute;
	top: 4px;
	right: 4px;
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	cursor: pointer;
}

/* ==========================================================================
   MENSAJERÍA Y REGISTRO TÉCNICO DE CONVERSACIONES (DASHBOARD Y PERFIL)
   ========================================================================== */
/* Sub-pestañas del Dashboard Mensajes */
.art-dash-msg-tabs-nav {
	display: flex;
	gap: 8px;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.art-dash-msg-tab-btn {
	background: #f4ecd0;
	color: #5a3c2a;
	border: 1px solid #ebdcb9;
	padding: 0.45rem 0.95rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.15s ease;
	text-decoration: none;
}

.art-dash-msg-tab-btn:hover {
	background: #ebdcb9;
	color: #2d1a10;
}

.art-dash-msg-tab-btn.is-active {
	background: var(--art-primary, #9a634e);
	color: #ffffff;
	border-color: #7a4f3e;
}

.art-dash-msg-tab-btn.is-active .art-dash-msg-tab-count,
.art-dash-msg-tab-btn.is-active .art-dash-msg-tab-badge {
	color: #f4ecd0;
}

.art-dash-msg-tab-count {
	font-family: monospace;
	font-size: 0.75rem;
	opacity: 0.85;
}

.art-dash-msg-tab-badge {
	font-family: monospace;
	font-size: 0.7rem;
	font-weight: 800;
	background: #ef4444;
	color: #ffffff !important;
	padding: 1px 5px;
	border-radius: 3px;
}

/* Contenedor Principal del Chat */
.art-social-messenger {
	display: flex;
	background: #faf6ee;
	border: 1px solid #e2d8c3;
	border-radius: 6px;
	overflow: hidden;
	height: 580px;
	max-height: calc(100vh - 200px);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	margin-top: 0.75rem;
	position: relative;
	font-family: inherit;
}

/* Panel Izquierdo: Registro de Conversaciones */
.art-social-threads-col {
	width: 320px;
	min-width: 320px;
	border-right: 1px solid #e2d8c3;
	display: flex;
	flex-direction: column;
	background: #f5eee0;
}

.art-social-threads-header {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e2d8c3;
	background: #f4ecd0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.art-social-threads-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.art-social-threads-title {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 6px;
}

.art-social-threads-title i {
	color: var(--art-primary, #9a634e);
}

.art-social-threads-count {
	font-size: 0.725rem;
	color: #9a634e;
	font-family: monospace;
	font-weight: 700;
}

.art-social-new-chat-btn {
	background: var(--art-primary, #9a634e);
	color: #ffffff;
	border: 1px solid #7d4e3d;
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	font-size: 0.725rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background 0.15s ease;
}

.art-social-new-chat-btn:hover {
	background: var(--art-primary-dark, #7a4f3e);
}

.art-social-threads-search-wrap {
	position: relative;
	width: 100%;
}

.art-social-threads-search-icon {
	position: absolute;
	left: 9px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	font-size: 0.75rem;
}

.art-social-threads-filter-input {
	width: 100%;
	padding: 0.4rem 0.6rem 0.4rem 1.75rem;
	border: 1px solid #dcd1ba;
	border-radius: 4px;
	font-size: 0.775rem;
	background: #fcf9f2;
	color: #1f2937;
	outline: none;
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.art-social-threads-filter-input:focus {
	border-color: var(--art-primary, #9a634e);
	background: #faf6ee;
	box-shadow: 0 0 0 2px rgba(154, 99, 78, 0.1);
}

.art-social-threads-list {
	flex: 1;
	overflow-y: auto;
}

.art-social-thread-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #ede4d2;
	border-left: 3px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, border-left 0.15s ease;
	text-decoration: none !important;
	background: transparent;
}

.art-social-thread-item:hover {
	background: #ede4d2;
}

.art-social-thread-item.is-active {
	background: #faf5e8;
	border-left: 3px solid var(--art-primary, #9a634e);
}

.art-social-thread-avatar-wrap {
	flex-shrink: 0;
}

.art-social-thread-avatar {
	width: 36px;
	height: 36px;
	border-radius: 4px;
	object-fit: cover;
	border: 1px solid #dcd1ba;
	background: #f4ecd0;
}

.art-social-thread-info {
	flex: 1;
	min-width: 0;
}

.art-social-thread-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 2px;
}

.art-social-thread-name {
	margin: 0;
	font-size: 0.825rem;
	font-weight: 700;
	color: #1f2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.art-social-thread-time {
	font-size: 0.65rem;
	color: #9ca3af;
	flex-shrink: 0;
	margin-left: 4px;
	font-family: monospace;
}

.art-social-thread-handle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2px;
}

.art-social-thread-handle {
	font-size: 0.7rem;
	color: #78716c;
}

.art-social-thread-badge {
	font-size: 0.6rem;
	font-family: monospace;
	font-weight: 800;
	background: var(--art-primary, #9a634e);
	color: #ffffff;
	padding: 1px 4px;
	border-radius: 3px;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.art-social-thread-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.art-social-thread-preview {
	margin: 0;
	font-size: 0.75rem;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	line-height: 1.35;
}

.art-social-thread-preview.is-unread {
	font-weight: 700;
	color: #1f2937;
}

.art-social-thread-prefix {
	color: #9ca3af;
	font-weight: 600;
}

.art-social-empty-threads {
	padding: 2.5rem 1.25rem;
	text-align: center;
	color: #9ca3af;
}

.art-social-empty-threads i {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	color: #dcd1ba;
	display: block;
}

.art-social-empty-threads p {
	font-size: 0.8rem;
	margin: 0 0 1rem 0;
}

.art-social-start-first-btn {
	background: var(--art-primary, #9a634e);
	color: #ffffff;
	border: 1px solid #7d4e3d;
	padding: 0.4rem 0.85rem;
	border-radius: 4px;
	font-size: 0.725rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: background 0.15s;
}

.art-social-start-first-btn:hover {
	background: var(--art-primary-dark, #7a4f3e);
}

/* Panel Derecho: Área Técnica de Mensajes */
.art-social-chat-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #faf6ee;
}

.art-social-chat-header {
	padding: 0.75rem 1.15rem;
	border-bottom: 1px solid #e2d8c3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f4ecd0;
	gap: 10px;
}

.art-social-back-btn {
	display: none;
	background: #faf6ee;
	border: 1px solid #dcd1ba;
	color: #374151;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	align-items: center;
	gap: 5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.art-social-back-btn:hover {
	background: #f5eee0;
}

.art-social-chat-user-info {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.art-social-chat-avatar {
	width: 38px;
	height: 38px;
	border-radius: 4px;
	object-fit: cover;
	border: 1px solid #dcd1ba;
	background: #f4ecd0;
	flex-shrink: 0;
}

.art-social-chat-name-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.art-social-chat-name {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 800;
	color: #1f2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.art-social-chat-handle {
	font-size: 0.725rem;
	color: #78716c;
}

.art-social-chat-meta-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 1px;
}

.art-social-chat-status-tag {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
	color: #57534e;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.art-social-header-profile-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.725rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--art-primary, #9a634e);
	background: #faf6ee;
	border: 1px solid rgba(154, 99, 78, 0.3);
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	text-decoration: none !important;
	transition: all 0.15s ease;
	flex-shrink: 0;
}

.art-social-header-profile-link:hover {
	background: var(--art-primary, #9a634e);
	color: #ffffff;
}

.art-social-chat-placeholder-title {
	font-size: 0.8rem;
	color: #9ca3af;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Área de Mensajes: Estructura de Tarjetas Técnicas */
.art-social-messages-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f8f3e8;
}

.art-social-msg-card {
	background: #fdfaf4;
	border: 1px solid #e7ddc8;
	border-radius: 4px;
	padding: 0.75rem 1rem;
	position: relative;
	transition: border-color 0.15s;
}

.art-social-msg-card.is-outgoing {
	border-left: 3px solid var(--art-primary, #9a634e);
	background: #faf3e4;
}

.art-social-msg-card.is-incoming {
	border-left: 3px solid #a89f8f;
	background: #fdfaf4;
}

.art-social-msg-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 4px;
	padding-bottom: 3px;
	border-bottom: 1px dashed #ebdcb9;
}

.art-social-msg-author {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1f2937;
}

.art-social-msg-card.is-outgoing .art-social-msg-author {
	color: var(--art-primary, #9a634e);
}

.art-social-msg-time {
	font-size: 0.65rem;
	color: #9ca3af;
	font-family: monospace;
}

.art-social-msg-body {
	font-size: 0.825rem;
	line-height: 1.5;
	color: #374151;
	word-break: break-word;
}

.art-social-empty-chat {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	text-align: center;
	padding: 2rem;
}

.art-social-empty-chat i {
	font-size: 2.25rem;
	color: #dcd1ba;
	margin-bottom: 0.65rem;
}

.art-social-empty-chat p {
	font-size: 0.825rem;
	margin: 0;
	max-width: 320px;
	line-height: 1.4;
}

/* Pie de Redacción y Envío */
.art-social-chat-footer {
	padding: 0.75rem 1rem;
	border-top: 1px solid #e2d8c3;
	background: #f4ecd0;
}

.art-social-chat-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.art-social-composer-input-wrap {
	width: 100%;
}

.art-social-chat-textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #dcd1ba;
	border-radius: 4px;
	font-size: 0.825rem;
	font-family: inherit;
	line-height: 1.45;
	background: #fcf9f2;
	color: #1f2937;
	outline: none;
	resize: vertical;
	min-height: 46px;
	max-height: 120px;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s;
}

.art-social-chat-textarea:focus {
	border-color: var(--art-primary, #9a634e);
	background: #faf6ee;
	box-shadow: 0 0 0 2px rgba(154, 99, 78, 0.1);
}

.art-social-composer-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.art-social-composer-hint {
	font-size: 0.675rem;
	color: #78716c;
	display: flex;
	align-items: center;
	gap: 4px;
}

.art-social-chat-send-btn {
	background: var(--art-primary, #9a634e);
	color: #ffffff;
	border: 1px solid #7d4e3d;
	padding: 0.35rem 0.85rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: background 0.15s;
	margin-left: auto;
}

.art-social-chat-send-btn:hover {
	background: var(--art-primary-dark, #7a4f3e);
}

.art-social-user-search-item {
	padding: 0.55rem 0.75rem;
	border-radius: 4px;
	border: 1px solid #ebdcb9;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: background 0.15s;
	background: #fdfaf4;
}

.art-social-user-search-item:hover {
	background: #f4ecd0;
	border-color: rgba(154, 99, 78, 0.3);
}

.art-social-user-search-avatar {
	width: 32px;
	height: 32px;
	border-radius: 4px;
	object-fit: cover;
	border: 1px solid #dcd1ba;
}

.art-social-user-search-name {
	font-size: 0.8rem;
	font-weight: 700;
	color: #1f2937;
}

.art-social-user-search-handle {
	font-size: 0.7rem;
	color: #78716c;
}

/* Tarjetas de Mensajes de Contacto (Espacios y Obras) */
.art-dash-contact-msg-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 0.5rem;
}

.art-dash-contact-card {
	background: #fdfaf4;
	border: 1px solid #e2d8c3;
	border-radius: 4px;
	padding: 1.15rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.art-dash-contact-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px dashed #ebdcb9;
}

.art-dash-contact-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.725rem;
	font-weight: 700;
	color: var(--art-primary, #9a634e);
	background: #f4ecd0;
	border: 1px solid rgba(154, 99, 78, 0.25);
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.art-dash-contact-card-date {
	font-size: 0.7rem;
	color: #78716c;
	font-family: monospace;
}

.art-dash-contact-card-sender-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 0.65rem;
	flex-wrap: wrap;
}

.art-dash-contact-sender-name {
	margin: 0 0 2px 0;
	font-size: 0.95rem;
	font-weight: 800;
	color: #1f2937;
}

.art-dash-contact-sender-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.art-dash-contact-meta-link {
	font-size: 0.775rem;
	color: #57534e;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: color 0.15s;
}

.art-dash-contact-meta-link:hover {
	color: var(--art-primary, #9a634e);
	text-decoration: underline;
}

.art-dash-contact-item-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.725rem;
	font-weight: 600;
	color: #78716c;
	background: #faf6ee;
	border: 1px solid #ebdcb9;
	padding: 3px 8px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.15s;
}

.art-dash-contact-item-link:hover {
	color: #1f2937;
	border-color: #9a634e;
}

.art-dash-contact-motivo {
	font-size: 0.8rem;
	color: #44403c;
	background: #faf6ee;
	border-left: 3px solid var(--art-primary, #9a634e);
	padding: 6px 10px;
	margin-bottom: 0.75rem;
	border-radius: 0 4px 4px 0;
}

.art-dash-contact-body {
	font-size: 0.85rem;
	line-height: 1.55;
	color: #292524;
	margin-bottom: 1rem;
	background: #fcf9f2;
	border: 1px solid #ebdcb9;
	padding: 0.75rem 1rem;
	border-radius: 4px;
}

.art-dash-contact-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.art-dash-contact-reply-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--art-primary, #9a634e);
	color: #ffffff;
	border: 1px solid #7d4e3d;
	padding: 0.35rem 0.85rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	transition: background 0.15s;
}

.art-dash-contact-reply-btn:hover {
	background: var(--art-primary-dark, #7a4f3e);
}

.art-dash-contact-empty {
	padding: 3rem 1.5rem;
	text-align: center;
	background: #fdfaf4;
	border: 1px solid #e2d8c3;
	border-radius: 4px;
}

.art-dash-contact-empty-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #f4ecd0;
	border: 1px solid #ebdcb9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #9a634e;
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

/* Responsivo para Móviles (<768px) */
@media (max-width: 767px) {
	.art-social-messenger {
		height: calc(100vh - 140px);
		min-height: 520px;
		max-height: none;
		border-radius: 6px;
		margin-top: 0.5rem;
	}

	.art-social-threads-col {
		width: 100%;
		min-width: 100%;
		border-right: none;
	}

	.art-social-chat-col {
		display: none;
	}

	.art-social-messenger.art-social-show-chat .art-social-threads-col {
		display: none;
	}

	.art-social-messenger.art-social-show-chat .art-social-chat-col {
		display: flex;
		height: 100%;
	}

	.art-social-chat-header {
		padding: 0.6rem 0.75rem;
		gap: 6px;
	}

	.art-social-back-btn {
		display: inline-flex;
		padding: 0.35rem 0.5rem;
		font-size: 0.7rem;
		gap: 4px;
	}

	.art-social-chat-user-info {
		gap: 8px;
		flex: 1;
		min-width: 0;
	}

	.art-social-chat-avatar {
		width: 32px;
		height: 32px;
	}

	.art-social-chat-name {
		font-size: 0.8rem;
		max-width: 110px;
	}

	.art-social-chat-handle {
		font-size: 0.675rem;
	}

	.art-social-chat-status-tag {
		display: none;
	}

	.art-social-header-profile-link {
		padding: 0.35rem 0.55rem;
		font-size: 0.7rem;
	}

	.art-social-header-profile-link span {
		display: none;
	}

	.art-social-messages-body {
		padding: 0.75rem;
		gap: 10px;
	}

	.art-social-msg-card {
		padding: 0.7rem 0.85rem;
	}

	.art-social-msg-author {
		font-size: 0.725rem;
	}

	.art-social-msg-body {
		font-size: 0.8125rem;
	}

	.art-social-chat-footer {
		padding: 0.65rem 0.75rem;
		border-top: 1px solid #e7e2d9;
		background: #ffffff;
	}

	.art-social-chat-textarea {
		font-size: 14px;
		min-height: 48px;
		padding: 0.5rem 0.65rem;
	}

	.art-social-composer-hint {
		display: none;
	}

	.art-social-chat-send-btn {
		width: 100%;
		justify-content: center;
		padding: 0.6rem 1rem;
		font-size: 0.75rem;
	}

	.art-social-composer-toolbar {
		flex-direction: column;
		gap: 6px;
	}
}

/* Notificaciones */
.art-social-notif-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 1rem;
	border-bottom: 1px solid #e0d4b4;
	transition: background 0.15s ease;
	background: #f7f0d8;
}

.art-social-notif-item.is-unread {
	background: #f6e7c4;
}

.art-social-notif-item:hover {
	background: #ece1c3;
}

.art-social-notif-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	flex-shrink: 0;
}

/* Miembros / Memorizados / Seguidores */
.art-members-grid,
#members-list,
.members-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
	gap: 16px !important;
	margin-top: 16px !important;
	list-style: none !important;
	padding: 0 !important;
}

.art-member-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 1.25rem 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.art-member-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.art-member-card img {
	width: 68px !important;
	height: 68px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	margin: 0 auto 0.75rem auto !important;
	border: 3px solid #f4ecd0 !important;
}

/* Autocompletado de Menciones (@) en el Composer */
.art-bp-post-layout .art-bp-whats-new-wrapper {
	overflow: visible !important;
	position: relative !important;
}

.art-social-mention-autocomplete {
	position: absolute;
	top: 85px;
	left: 12px;
	right: 12px;
	z-index: 9999;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	max-height: 200px;
	overflow-y: auto;
}

.art-social-mention-suggestion-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f3f4f6;
	transition: background 0.15s ease;
}

.art-social-mention-suggestion-item:last-child {
	border-bottom: none;
}

.art-social-mention-suggestion-item:hover,
.art-social-mention-suggestion-item.is-selected {
	background: #f4ecd0;
}

.art-social-mention-avatar {
	width: 28px;
	height: 28px;
	border-radius: 4px;
	object-fit: cover;
	border: 1px solid #d1d5db;
}

.art-social-mention-name {
	font-size: 0.825rem;
	font-weight: 700;
	color: #1f2937;
}

.art-social-mention-handle {
	font-size: 0.725rem;
	color: #6b7280;
	margin-left: 4px;
}

.art-member-card h3 {
	font-size: 0.92rem;
	font-weight: 700;
	margin: 0 0 2px 0;
	color: #1f2937;
}

.art-member-card h3 a {
	color: inherit;
	text-decoration: none;
}

.art-member-card h3 a:hover {
	color: var(--art-primary);
}

.art-member-card .text-txt-4 {
	font-size: 0.8rem;
	color: #6b7280;
	margin-bottom: 0.75rem;
}

/* Toast Notifications */
.art-social-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999999;
	background: #1f2937;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	font-size: 0.875rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateY(80px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-social-toast.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.art-social-toast.is-success {
	border-left: 4px solid #10b981;
}

.art-social-toast.is-error {
	border-left: 4px solid #ef4444;
}

/* ==========================================================================
   Header Notifications Dropdown & Alerts
   ========================================================================== */
.art-header-notifications-wrapper {
	display: flex;
	flex-direction: column;
}

.art-header-notif-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #efe4c6;
	border-bottom: 1px solid #e2d4af;
	text-decoration: none;
	transition: background 0.15s ease;
}

.art-header-notif-banner:hover {
	background: #e6d8b1;
}

.art-header-notif-banner--msg .art-header-notif-banner__icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #0d9488;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	flex-shrink: 0;
}

.art-header-notif-banner__text {
	display: flex;
	flex-direction: column;
	font-size: 0.775rem;
	color: #5a3c2a;
	line-height: 1.3;
}

.art-header-notif-banner__text strong {
	font-weight: 700;
	color: #9a634e;
}

.art-header-notif-banner__text span {
	color: #7a5b3c;
	font-size: 0.72rem;
}

.art-header-notif-subhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	background: #e1d9c0;
	border-bottom: 1px solid #d3c7a6;
}

.art-header-notif-subhead__title {
	font-size: 0.75rem;
	font-weight: 700;
	color: #5a3c2a;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.art-header-notif-unread-badge {
	background: #9a634e;
	color: #ffffff;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
}

.art-header-notif-mark-btn {
	background: none;
	border: none;
	color: #9a634e;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	padding: 2px 4px;
	transition: color 0.15s ease;
}

.art-header-notif-mark-btn:hover {
	color: #7a4f3e;
	text-decoration: underline;
}

.art-header-notif-list {
	display: flex;
	flex-direction: column;
	max-height: 340px;
	overflow-y: auto;
}

.art-header-notif-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #e0d4b4;
	background: #f7f0d8;
	transition: background 0.15s ease;
	position: relative;
}

.art-header-notif-item:hover {
	background: #ece1c3;
}

.art-header-notif-item.is-unread {
	background: #f6e7c4;
}

.art-header-notif-avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.art-header-notif-avatar {
	width: 34px;
	height: 34px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #d6cbab;
}

.art-header-notif-icon-badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: #f4ecd0;
	border: 1px solid #d6cbab;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
}

.art-header-notif-content {
	flex-grow: 1;
	min-width: 0;
}

.art-header-notif-msg {
	font-size: 0.775rem;
	line-height: 1.35;
	color: #374151;
	word-break: break-word;
}

.art-header-notif-msg a {
	color: inherit;
	text-decoration: none;
}

.art-header-notif-msg a:hover {
	color: #9a634e;
}

.art-header-notif-time {
	font-size: 0.675rem;
	color: #8a7356;
	display: block;
	margin-top: 2px;
}

.art-header-notif-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9a634e;
	flex-shrink: 0;
	margin-top: 6px;
}

.art-header-notif-empty {
	padding: 2rem 1rem;
	text-align: center;
	color: #8a7356;
}

.art-header-notif-empty i {
	font-size: 1.5rem;
	color: #cbb9a0;
	margin-bottom: 0.5rem;
	display: block;
}

.art-header-notif-empty p {
	font-size: 0.8rem;
	margin: 0;
}

/* ==========================================================================
   Perfil Social - Cabecera / Avatar Responsive
   ========================================================================== */
/* El div #item-header-cover-image es un legado de BuddyPress vacío que
   genera un hueco enorme (200px desktop / 120px mobile) entre la portada y
   el contenido del perfil. Se oculta: el fondo lo pone #header-cover-image. */
#buddypress #item-header-cover-image {
	display: none !important;
	min-height: 0 !important;
	height: 0 !important;
}

/* Mientras BuddyPress esté activo, su stylesheet (bp-legacy) pone
   #header-cover-image en position:absolute como capa de fondo y el
   .profile-info-container (fondo crema, z-index 10) lo tapa por completo,
   dejando la portada invisible. Se fuerza al flujo normal. */
#buddypress #header-cover-image {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	z-index: auto !important;
	margin: 0 !important;
	width: 100% !important;
}

/* Badge PRO discreto sobre el avatar del perfil */
#item-header-avatar .art-badge-pro--avatar {
	position: absolute;
	bottom: 2px;
	right: 2px;
	margin: 0 !important;
	font-size: 0.5rem !important;
	padding: 1px 4px !important;
	line-height: 1.1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	z-index: 12;
}

#item-header-avatar .art-badge-pro--avatar i {
	font-size: 0.4rem !important;
}

/* El botón de ajustes del avatar se coloca abajo-izquierda para no chocar con el badge PRO */
#item-header-avatar .art-bp-header__settings-btn {
	left: 5px;
	right: auto;
}

/* Acciones sobre la portada: Memorizar + Mensaje (esquina inferior derecha) */
.art-profile-cover-actions {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 15;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Botón de mensaje privado (círculo) */
.art-profile-cover-msg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 9999px;
	background: var(--color-fondo-4, #9a634e);
	color: #ffffff;
	border: 2px solid rgba(244, 236, 208, 0.55);
	font-size: 0.95rem;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s ease, background-color 0.15s ease;
	flex-shrink: 0;
}

.art-profile-cover-msg-btn:hover {
	background: #7a4f3e;
	transform: translateY(-1px);
}

/* Botón Memorizar sobre la portada (glass) */
.art-profile-cover-actions .art-follow-btn {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Biografía del perfil: truncada con degradado y botón de expandir */
.art-profile-bio {
	position: relative;
}

.art-profile-bio__text {
	font-size: 13px;
	line-height: 1.5;
	color: #4b5563;
	max-height: 72px;
	overflow: hidden;
	position: relative;
}

.art-profile-bio__text::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 24px;
	background: linear-gradient(to bottom, transparent, #f4ecd0);
	pointer-events: none;
}

.art-profile-bio__text p:first-child {
	margin-top: 0;
}

.art-profile-bio__text p:last-child {
	margin-bottom: 0;
}

.art-profile-bio__text.is-expanded {
	max-height: none;
	overflow: visible;
}

.art-profile-bio__text.is-expanded::after {
	display: none;
}

.art-profile-bio__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: #9a634e;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
	padding: 2px 0;
	margin-top: 4px;
	line-height: 1;
}

.art-profile-bio__toggle:hover {
	color: #7a4f3e;
	text-decoration: underline;
}

/* Badges de tipo de artista: alineados con el título */
#item-header-content .art-user-tipo-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-start;
}

@media (max-width: 767px) {
	/* Cabecera del perfil apilada: avatar centrado arriba y contenido
	   a ancho completo para evitar la columna estrecha muy vertical. */
	.profile-info-container {
		flex-direction: column !important;
		align-items: center !important;
		padding: 0 15px 16px !important;
	}

	#item-header-avatar {
		margin-top: -38px !important;
		margin-right: 0 !important;
	}

	#item-header-avatar img {
		width: 76px !important;
		height: 76px !important;
		border-width: 2px !important;
	}

	#item-header-content {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
		text-align: center !important;
		padding: 6px 0 0 !important;
	}

	.art-bp-header-title-wrap {
		justify-content: center !important;
		gap: 8px !important;
	}

	.art-bp-rank-points-row {
		justify-content: center !important;
	}

	#item-header-content .user-fullname {
		font-size: 16px !important;
	}

	.art-profile-bio__text {
		text-align: left !important;
	}

	.art-profile-bio__toggle {
		align-self: center !important;
	}

	.art-bp-social-links {
		justify-content: center !important;
	}

	#item-header-content .art-user-tipo-badges {
		justify-content: center !important;
	}

	.art-profile-cover-actions {
		bottom: 10px;
		right: 10px;
	}

	#cover-image-container #header-cover-image {
		height: 160px !important;
		min-height: 160px !important;
	}
}
