* {
	box-sizing: border-box;
}

:root {
	color-scheme: dark;
	--bg: #0d1114;
	--bg-soft: #141a1f;
	--panel: rgba(19, 25, 30, 0.92);
	--panel-strong: #1a2127;
	--border: rgba(255, 255, 255, 0.085);
	--border-strong: rgba(255, 255, 255, 0.14);
	--text: #f0f2ee;
	--muted: #aab3b0;
	--subtle: #7a8480;
	--accent: #6e8f86;
	--accent-strong: #8ea69e;
	--olive: #909a72;
	--warning: #c69a5b;
	--danger: #d16d67;
	--success: #7fa67a;
	--shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
	--radius: 24px;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background:
		radial-gradient(circle at 18% 12%, rgba(110, 143, 134, 0.2), transparent 26%),
		radial-gradient(circle at 82% 8%, rgba(141, 154, 114, 0.14), transparent 24%),
		radial-gradient(circle at 78% 84%, rgba(201, 155, 90, 0.08), transparent 22%),
		linear-gradient(180deg, #0b0f12 0%, #10161a 42%, #0d1114 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 54px 54px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 82%);
	opacity: 0.22;
}

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

button {
	cursor: pointer;
}

a {
	color: inherit;
}

.page-shell {
	width: min(1360px, calc(100vw - 40px));
	margin: 0 auto;
	padding: 24px 0 44px;
	position: relative;
	z-index: 1;
}

.panel {
	background: linear-gradient(180deg, rgba(26, 33, 39, 0.98), rgba(18, 23, 28, 0.97));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
	gap: 22px;
	padding: 28px;
	margin-bottom: 22px;
}

.hero__copy h1 {
	margin: 0;
	font-size: clamp(2.35rem, 4.8vw, 4.7rem);
	line-height: 0.94;
	letter-spacing: -0.05em;
	font-weight: 800;
}

.eyebrow,
.section-label,
.callout-card__label {
	margin: 0 0 10px;
	color: var(--accent-strong);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.74rem;
	font-weight: 700;
}

.lede {
	margin: 16px 0 0;
	max-width: 68ch;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.72;
}

.hero__actions,
.hero__notes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.note-pill,
.pill,
.metric-card__tag,
.status-tag,
.review-meta__chip,
.channel-pill,
.severity-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.09);
	color: var(--muted);
	padding: 0.4rem 0.72rem;
	font-size: 0.82rem;
}

.hero__panel {
	padding: 22px;
	border-radius: 20px;
	background:
		linear-gradient(180deg, rgba(14, 19, 23, 0.9), rgba(22, 29, 34, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__panel h2,
.panel h2,
.callout-card h3 {
	margin: 0;
}

.presentation-panel {
	display: grid;
	gap: 18px;
	margin-bottom: 22px;
	padding: 24px;
	background:
		linear-gradient(180deg, rgba(18, 24, 29, 0.98), rgba(15, 19, 23, 0.98)),
		radial-gradient(circle at top right, rgba(110, 143, 134, 0.08), transparent 38%);
	border-color: rgba(134, 163, 155, 0.16);
}

.presentation-panel__head {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-start;
}

.presentation-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	min-width: 300px;
}

.presentation-panel__notice {
	padding: 16px 18px;
	border-radius: 18px;
	background: rgba(201, 155, 90, 0.08);
	border: 1px solid rgba(201, 155, 90, 0.18);
	display: grid;
	gap: 8px;
}

.presentation-panel__label,
.presentation-card__label {
	margin: 0;
	color: var(--warning);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.74rem;
	font-weight: 800;
}

.presentation-panel__notice p:last-child {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
}

.presentation-panel__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.presentation-card {
	padding: 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 10px;
	min-height: 168px;
}

.presentation-card h3 {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.35;
	font-weight: 700;
}

.presentation-card p:last-child {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
}

.flow-list,
.guardrails {
	margin: 16px 0 0;
	padding-left: 18px;
	color: var(--muted);
	line-height: 1.75;
}

.button {
	border: 1px solid transparent;
	border-radius: 14px;
	padding: 0.82rem 1.05rem;
	font-weight: 700;
	transition:
		transform 160ms ease,
		border-color 160ms ease,
		background 160ms ease,
		color 160ms ease,
		box-shadow 160ms ease;
}

.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.button--primary {
	color: #0d1114;
	background: linear-gradient(135deg, var(--accent-strong), #c7d7bf);
}

.button--ghost {
	color: var(--text);
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.1);
}

.layout {
	display: grid;
	gap: 24px;
}

.panel--metrics {
	padding: 22px;
}

.layout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.9fr);
	gap: 22px;
}

.main-column,
.side-column {
	display: grid;
	gap: 22px;
}

.panel {
	padding: 22px;
}

.dashboard-panel {
	padding: 24px;
	display: grid;
	gap: 16px;
}

.dashboard-panel__head,
.dashboard-foot {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
	gap: 18px;
	align-items: stretch;
}

.dashboard-status {
	align-self: start;
	justify-self: end;
	padding: 0.72rem 1rem;
	border-radius: 999px;
	background: rgba(110, 143, 134, 0.14);
	border: 1px solid rgba(110, 143, 134, 0.28);
	color: var(--accent-strong);
	font-weight: 700;
	white-space: nowrap;
}

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

.dashboard-card {
	padding: 18px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 8px;
	min-height: 124px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-card strong {
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	line-height: 1;
}

.dashboard-card span {
	color: var(--muted);
	font-size: 0.92rem;
}

.dashboard-card__label,
.dashboard-summary__label {
	margin: 0;
	color: var(--muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
}

.dashboard-card--accent {
	border-top: 2px solid rgba(110, 143, 134, 0.8);
}

.dashboard-card--positive {
	border-top: 2px solid rgba(126, 165, 122, 0.8);
}

.dashboard-card--neutral {
	border-top: 2px solid rgba(201, 155, 90, 0.8);
}

.dashboard-card--danger {
	border-top: 2px solid rgba(210, 109, 104, 0.8);
}

.trend-box,
.dashboard-summary {
	padding: 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.trend-box {
	display: grid;
	gap: 10px;
}

.sparkline {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 10px;
	align-items: end;
	min-height: 130px;
}

.sparkline__bar {
	display: grid;
	gap: 8px;
	justify-items: center;
	align-content: end;
}

.sparkline__fill {
	width: 100%;
	min-height: 26px;
	border-radius: 12px 12px 6px 6px;
	background: linear-gradient(180deg, rgba(134, 163, 155, 0.92), rgba(110, 143, 134, 0.5));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.sparkline__bar--up .sparkline__fill {
	background: linear-gradient(180deg, rgba(126, 165, 122, 0.96), rgba(126, 165, 122, 0.46));
}

.sparkline__bar--down .sparkline__fill {
	background: linear-gradient(180deg, rgba(210, 109, 104, 0.96), rgba(210, 109, 104, 0.46));
}

.sparkline__label {
	font-size: 0.78rem;
	color: var(--subtle);
}

.dashboard-summary p:last-child {
	margin: 12px 0 0;
	color: var(--muted);
	line-height: 1.65;
}

.section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.section-head--stacked {
	align-items: flex-end;
}

.section-head--compact {
	margin-bottom: 14px;
}

.section-note {
	margin: 0;
	max-width: 52ch;
	color: var(--subtle);
	line-height: 1.6;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.metric-card {
	padding: 18px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	min-height: 140px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metric-card__value {
	display: block;
	margin-top: 12px;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
}

.metric-card__label {
	color: var(--muted);
	margin: 10px 0 0;
	line-height: 1.55;
}

.metric-card--positive {
	border-top: 2px solid rgba(126, 165, 122, 0.7);
}

.metric-card--warning {
	border-top: 2px solid rgba(201, 155, 90, 0.7);
}

.metric-card--danger {
	border-top: 2px solid rgba(210, 109, 104, 0.7);
}

.metric-card--accent {
	border-top: 2px solid rgba(110, 143, 134, 0.8);
}

.metric-card--olive {
	border-top: 2px solid rgba(141, 154, 114, 0.8);
}

.filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.field {
	display: grid;
	gap: 8px;
}

.filter-group {
	display: grid;
	gap: 10px;
	align-content: start;
}

.filter-group > span {
	color: var(--muted);
	font-size: 0.88rem;
}

.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.filter-pill {
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	border-radius: 999px;
	padding: 0.72rem 0.92rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.filter-pill:hover {
	transform: translateY(-1px);
	border-color: rgba(134, 163, 155, 0.45);
}

.filter-pill--active {
	background: linear-gradient(135deg, rgba(110, 143, 134, 0.95), rgba(134, 163, 155, 0.75));
	color: #0d1114;
	border-color: transparent;
}

.filter-pill__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6rem;
	height: 1.6rem;
	padding: 0 0.45rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1;
}

.filter-pill--active .filter-pill__count {
	background: rgba(13, 17, 20, 0.15);
}

.field span {
	color: var(--muted);
	font-size: 0.88rem;
}

.field--wide {
	grid-column: span 2;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 12, 15, 0.48);
	color: var(--text);
	padding: 0.9rem 1rem;
	transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: rgba(134, 163, 155, 0.65);
	box-shadow: 0 0 0 3px rgba(110, 143, 134, 0.2);
	background: rgba(8, 12, 15, 0.56);
}

.field textarea {
	resize: vertical;
	min-height: 140px;
}

.filters__button {
	align-self: end;
	height: 48px;
}

.filter-summary {
	margin: 8px 0 14px;
	color: var(--accent-strong);
	font-size: 0.92rem;
	font-weight: 700;
}

.summary-line {
	margin: 0 0 16px;
	color: var(--subtle);
	line-height: 1.6;
}

.cards-stack,
.stack-list {
	display: grid;
	gap: 14px;
}

.review-card,
.list-card,
.idea-card,
.callout-card,
.report-card,
.alert-card,
.pattern-card,
.action-card,
.response-card {
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.review-card {
	padding: 18px;
	border-left: 4px solid var(--accent);
}

.review-card--positive {
	border-left-color: var(--success);
}

.review-card--neutral {
	border-left-color: var(--warning);
}

.review-card--negative {
	border-left-color: var(--danger);
}

.review-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.review-card__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.review-card__title h3 {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
}

.review-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--muted);
	font-size: 0.9rem;
}

.review-text {
	margin: 12px 0 14px;
	color: #dde3e0;
	line-height: 1.72;
	overflow-wrap: break-word;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.review-reply {
	margin-top: 14px;
	padding: 14px;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(8, 12, 15, 0.42), rgba(8, 12, 15, 0.3));
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: grid;
	gap: 10px;
}

.review-reply__label,
.card-label {
	margin: 0 0 6px;
	color: var(--accent-strong);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.review-reply__warning {
	margin: 0;
	color: var(--warning);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.5;
}

.review-reply__text {
	margin: 0;
	color: var(--text);
	line-height: 1.7;
}

.review-reply__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.review-reply__button {
	padding: 0.72rem 0.95rem;
	font-size: 0.92rem;
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--text);
}

.review-card,
.metric-card,
.dashboard-card,
.alert-card,
.pattern-card,
.action-card,
.response-card,
.idea-card,
.callout-card,
.report-card {
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.review-card:hover,
.metric-card:hover,
.dashboard-card:hover,
.alert-card:hover,
.pattern-card:hover,
.action-card:hover,
.response-card:hover,
.idea-card:hover,
.callout-card:hover,
.report-card:hover {
	border-color: var(--border-strong);
	transform: translateY(-1px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.dashboard-panel__head h2,
.section-head h2,
.hero__copy h1,
.panel h2,
.callout-card h3,
.report-card__title,
.idea-card h3 {
	text-wrap: balance;
}

.review-reply p,
.card-copy,
.callout-card p,
.report p,
.alert-card p,
.pattern-card p,
.action-card p,
.response-card p,
.idea-card p {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
	overflow-wrap: break-word;
}

.panel--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.alert-card,
.pattern-card,
.action-card,
.response-card {
	padding: 16px;
}

.alert-card {
	border-left: 4px solid var(--warning);
}

.alert-card--danger {
	border-left-color: var(--danger);
}

.pattern-card {
	border-left: 4px solid var(--olive);
}

.action-card {
	border-left: 4px solid var(--accent);
}

.response-card {
	border-left: 4px solid var(--success);
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.idea-card {
	padding: 18px;
}

.idea-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.idea-card h3 {
	margin: 0;
	font-size: 1rem;
}

.report {
	display: grid;
	gap: 16px;
}

.report-card {
	padding: 18px;
}

.report-card__title {
	margin: 0 0 8px;
	font-size: 1rem;
}

.commercial-stack {
	display: grid;
	gap: 14px;
}

.callout-card {
	padding: 18px;
}

.callout-card h3 {
	margin-bottom: 10px;
}

.form {
	display: grid;
	gap: 14px;
}

.guardrails li + li {
	margin-top: 10px;
}

.empty-state {
	padding: 18px;
	border-radius: 16px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	color: var(--muted);
	background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1200px) {
	.hero,
	.layout__grid {
		grid-template-columns: 1fr;
	}

	.dashboard-panel__head,
	.dashboard-foot {
		grid-template-columns: 1fr;
	}

	.dashboard-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.metrics-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.page-shell {
		width: min(100vw - 20px, 1360px);
		padding-top: 12px;
	}

	.hero,
	.panel {
		padding: 20px;
	}

	.dashboard-grid,
	.metrics-grid,
	.cards-grid,
	.panel--split,
	.filters {
		grid-template-columns: 1fr;
	}

	.filter-pills {
		justify-content: flex-start;
	}

	.presentation-panel__head,
	.presentation-panel__actions,
	.presentation-panel__grid {
		grid-template-columns: 1fr;
	}

	.presentation-panel__head {
		flex-direction: column;
	}

	.presentation-panel__actions {
		justify-content: flex-start;
		min-width: 0;
	}

	.field--wide,
	.filters__button {
		grid-column: auto;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.dashboard-status {
		justify-self: start;
		white-space: normal;
	}

	.hero__actions,
	.hero__notes {
		flex-direction: column;
		align-items: stretch;
	}

	.button {
		width: 100%;
	}

	.section-head {
		flex-direction: column;
	}
}

/* Selector de tono */
.review-reply__toneselect {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.toneselect {
	flex: 1;
	padding: 6px 12px;
	font-size: 0.85rem;
	font-family: inherit;
	border: 1px solid var(--border-color, #d1d5db);
	border-radius: 6px;
	background: var(--bg-color, #ffffff);
	color: var(--text-color, #111827);
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.toneselect:focus {
	outline: none;
	border-color: var(--accent, #2563eb);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.review-card--negative .toneselect {
	border-color: var(--danger-border, #fca5a5);
}

.review-card--positive .toneselect {
	border-color: var(--positive-border, #86efac);
}
/* Refuerzo visual: filtros activos más evidentes */
.filter-pill {
        cursor: pointer;
}

.filter-pill--active {
        background: #9fc8b7 !important;
        color: #07111f !important;
        border-color: #d7efe4 !important;
        box-shadow:
                0 0 0 2px rgba(215, 239, 228, 0.28),
                0 10px 24px rgba(143, 184, 168, 0.25) !important;
}

.filter-pill--active::before {
        content: "✓";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.05rem;
        height: 1.05rem;
        border-radius: 999px;
        background: #07111f;
        color: #d7efe4;
        font-size: 0.72rem;
        font-weight: 900;
        line-height: 1;
}

.filter-pill--active .filter-pill__count {
        background: rgba(7, 17, 31, 0.18) !important;
        color: #07111f !important;
}

/* Bloque de análisis competitivo simulado */
.competitor-context {
        background: rgba(143, 184, 168, 0.1);
        border: 1px solid rgba(143, 184, 168, 0.28);
        border-radius: 18px;
        padding: 18px;
}

.competitor-card {
        display: grid;
        gap: 12px;
}

.competitor-signal {
        display: grid;
        gap: 5px;
        padding: 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.08);
}

.competitor-signal strong {
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
}

.competitor-signal span {
        color: var(--text);
        line-height: 1.45;
}

.competitor-signal--strength {
        border-color: rgba(143, 184, 168, 0.26);
}

.competitor-signal--risk {
        border-color: rgba(244, 213, 141, 0.24);
}

/* Navegación superior dentro de la demo operativa */
.app-topnav {
        width: min(1180px, calc(100% - 28px));
        margin: 14px auto 0;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        background: rgba(7, 17, 31, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 22px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(10px);
        position: relative;
        z-index: 20;
}

.app-topnav__brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text);
        text-decoration: none;
        min-width: 0;
}

.app-topnav__brand img {
        width: 38px;
        height: 38px;
        display: block;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.92);
        padding: 2px;
        flex: 0 0 auto;
}

.app-topnav__brand span {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
}

.app-topnav__brand strong {
        font-size: 0.92rem;
        letter-spacing: 0.02em;
        line-height: 1.1;
}

.app-topnav__brand small {
        color: var(--muted);
        font-size: 0.78rem;
        line-height: 1.1;
}

.app-topnav__links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
        padding: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.09);
        border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-topnav__links a {
        color: var(--text);
        text-decoration: none;
        font-size: 0.86rem;
        font-weight: 800;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.045);
}

.app-topnav__links a:hover {
        background: rgba(143, 184, 168, 0.16);
        border-color: rgba(143, 184, 168, 0.34);
        color: var(--accent, #9fc8b7);
}

@media (max-width: 760px) {
        .app-topnav {
                align-items: stretch;
                flex-direction: column;
        }

        .app-topnav__links {
                border-radius: 18px;
                justify-content: flex-start;
        }

        .app-topnav__links a {
                flex: 1 1 auto;
                text-align: center;
        }
}

/* Gráfico semanal: días sin reseñas visibles */
.sparkline__bar--empty .sparkline__fill {
        height: 8px !important;
        min-height: 8px !important;
        opacity: 0.28;
        background: rgba(255, 255, 255, 0.16);
        border-style: dashed;
        box-shadow: none;
}

/* Corrección final contraste menú interno */
.app-topnav,
.app-topnav * {
        color: #ffffff !important;
}

.app-topnav__brand strong {
        color: #ffffff !important;
        opacity: 1 !important;
}

.app-topnav__brand small {
        color: #d7e6df !important;
        opacity: 1 !important;
}

.app-topnav__links a {
        color: #ffffff !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
}

.app-topnav__links a:hover {
        color: #d8f2e7 !important;
        background: rgba(143, 184, 168, 0.24) !important;
}
