:root {
  --bg: #f6f3ee;
  --panel: #fffdf9;
  --panel-2: #f7f2eb;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #c96b2c;
  --accent-soft: #f2d8c4;
  --border: #e8dfd6;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 450px at 0% 0%, #f3e2d4 0%, transparent 55%),
    radial-gradient(700px 360px at 100% 0%, #efe8df 0%, transparent 50%),
    linear-gradient(180deg, #f8f5f0 0%, #f2ede6 100%);
}

html[data-page="mapa"] body {
  overflow-anchor: none;
  --artenia-detail-shell-height: calc(100dvh - 72px);
}

.hidden {
  display: none !important;
}

.auth-app {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(760px, 100%);
  border: 1px solid rgba(36, 83, 134, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 19, 36, 0.96), rgba(8, 16, 30, 0.96));
  padding: 20px;
}

.auth-header {
  text-align: center;
  margin-bottom: 16px;
}

.auth-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.95;
  flex: 0 0 auto;
}

.auth-header h1 {
  margin: 8px 0 4px;
  color: var(--accent);
  font-size: 1.35rem;
}

.auth-header p {
  margin: 0;
  color: #9fc3db;
  font-size: 0.85rem;
}

.auth-screen {
  display: none;
}

.auth-screen.active {
  display: block;
}

.auth-screen h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.auth-screen > p {
  margin: 0 0 12px;
  color: #a8bdd5;
  font-size: 0.82rem;
}

.welcome-hero {
  margin-bottom: 14px;
}

.welcome-kicker {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #88e8f5;
  font-weight: 600;
}

.welcome-copy {
  margin: 0;
  font-size: 0.9rem;
  color: #c0d8ea;
  max-width: 58ch;
}

.welcome-value-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.welcome-value-list li {
  border: 1px solid rgba(92, 137, 190, 0.45);
  border-radius: 10px;
  background: rgba(12, 31, 54, 0.62);
  color: #d7ecff;
  padding: 8px 10px;
  font-size: 0.79rem;
  line-height: 1.35;
}

.welcome-value-list li::before {
  content: "• ";
  color: #67e8f9;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.welcome-card {
  border: 1px solid rgba(73, 116, 172, 0.45);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 29, 52, 0.88), rgba(10, 22, 40, 0.88));
  padding: 14px;
  box-shadow: 0 8px 28px rgba(2, 8, 23, 0.32);
}

.welcome-card-primary {
  border-color: rgba(37, 214, 238, 0.75);
  background: linear-gradient(180deg, rgba(9, 41, 69, 0.95), rgba(9, 24, 45, 0.92));
}

.welcome-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #e8f8ff;
}

.welcome-card p {
  margin: 0 0 12px;
  color: #b7d1e4;
  font-size: 0.82rem;
}

.welcome-btn {
  width: 100%;
}

.welcome-badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-badge {
  border: 1px solid rgba(111, 148, 196, 0.5);
  background: rgba(15, 33, 57, 0.78);
  color: #cae2f4;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.73rem;
  font-weight: 500;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form label {
  font-size: 0.72rem;
  color: #9cc3db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.auth-primary {
  border-color: rgba(37, 214, 238, 0.65);
  background: #123551;
}

.role-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.role-card {
  text-align: left;
  border: 1px solid rgba(37, 214, 238, 0.35);
  border-radius: 12px;
  background: rgba(9, 34, 53, 0.6);
  color: #e6f4ff;
  padding: 10px;
  cursor: pointer;
}

.role-card strong {
  display: block;
  margin-bottom: 3px;
}

.role-card.active {
  border-color: rgba(37, 214, 238, 0.78);
  background: linear-gradient(180deg, rgba(10, 48, 76, 0.9), rgba(8, 29, 52, 0.85));
  box-shadow: 0 0 0 2px rgba(37, 214, 238, 0.18) inset;
}

.role-card span {
  color: #aac5de;
  font-size: 0.74rem;
}

.role-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-msg {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: #9cc3db;
}

.dashboard-app {
  min-height: 100vh;
  padding: 20px;
}

.dashboard-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(36, 83, 134, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 19, 36, 0.96), rgba(8, 16, 30, 0.96));
  padding: 16px;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-head h1 {
  margin: 0;
  color: #e5f4ff;
  font-size: 1.2rem;
}

.dashboard-head p {
  margin: 4px 0 0;
  color: #9cc3db;
  font-size: 0.78rem;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.dashboard-kpi {
  border: 1px solid rgba(50, 88, 137, 0.6);
  border-radius: 12px;
  background: rgba(11, 24, 44, 0.85);
  padding: 10px;
}

.dashboard-kpi strong {
  display: block;
  color: #67e8f9;
  font-size: 1rem;
}

.dashboard-kpi span {
  color: #9fc2dc;
  font-size: 0.72rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 10px;
}

.dashboard-card {
  border: 1px solid rgba(50, 88, 137, 0.6);
  border-radius: 12px;
  background: rgba(11, 24, 44, 0.85);
  padding: 10px;
}

.dashboard-card h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #dff2ff;
}

.dash-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.dash-checklist li {
  font-size: 0.75rem;
  color: #9fc2dc;
  border: 1px solid rgba(58, 91, 136, 0.55);
  border-radius: 10px;
  padding: 7px 8px;
}

.dash-checklist li.done {
  color: #c8f8ff;
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(7, 48, 63, 0.35);
}

.app {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100vh;
}

.sidebar {
  position: relative;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fbf8f3, #f5efe6);
  overflow: auto;
  padding: 18px 16px 22px;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 31px, rgba(255,255,255,0.03) 32px), linear-gradient(90deg, transparent 31px, rgba(255,255,255,0.03) 32px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.2;
}

.sidebar > * { position: relative; z-index: 1; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.9;
  flex: 0 0 auto;
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.sidebar-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  font-size: 0.72rem;
}

.lang-switch span {
  white-space: nowrap;
}

.lang-switch select {
  width: auto;
  min-width: 62px;
  border-radius: 999px;
  padding: 6px 26px 6px 10px;
  background: #ffffff;
  color: #111827;
}

.session-strip {
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 10px;
  margin-bottom: 10px;
}

.assistant-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.assistant-head {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  align-items: start;
}

.assistant-stage {
  display: grid;
  gap: 8px;
}

.assistant-avatar-stage {
  position: relative;
  width: 112px;
  height: 132px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top, rgba(201, 107, 44, 0.18), transparent 44%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}

.assistant-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  background: #f8fafc;
}

.assistant-avatar-overlay {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  justify-content: flex-start;
}

.assistant-avatar-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 0.64rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.assistant-stage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.assistant-stage-actions .button {
  padding: 7px 8px;
  font-size: 0.66rem;
}

.assistant-head strong {
  display: block;
  font-size: 0.84rem;
  color: #111827;
}

.assistant-head p {
  margin: 3px 0 0;
  font-size: 0.72rem;
  color: #6b7280;
}

.assistant-thread {
  display: block;
  max-height: 44px;
  overflow: hidden;
  padding-right: 0;
}

.assistant-bubble {
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 0.68rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-bubble.user {
  background: #111827;
  color: #fff;
}

.assistant-bubble.assistant {
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.assistant-suggestion {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.68rem;
  cursor: pointer;
}

.assistant-suggestion:hover {
  background: #f8fafc;
}

.assistant-form {
  display: grid;
  gap: 8px;
}

.assistant-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.assistant-list {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.assistant-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assistant-list-head strong {
  font-size: 0.76rem;
  color: #111827;
}

.assistant-list-head span {
  font-size: 0.68rem;
  color: #6b7280;
}

.assistant-list-items {
  display: grid;
  gap: 6px;
}

.assistant-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.assistant-list-tab {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.66rem;
  cursor: pointer;
}

.assistant-list-tab.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.assistant-list-section-title {
  font-size: 0.68rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2px 0 0;
}

.assistant-list-empty {
  font-size: 0.71rem;
  color: #64748b;
}

.assistant-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 8px 9px;
  background: #fffaf4;
}

.assistant-list-item strong {
  display: block;
  font-size: 0.73rem;
  color: #111827;
}

.assistant-list-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  color: #6b7280;
}

.assistant-list-remove {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 0.95rem;
}

.session-id {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.session-id .material-symbols-outlined {
  font-size: 1.35rem;
  color: #c96b2c;
}

.session-id strong {
  display: block;
  color: #111827;
  font-size: 0.8rem;
}

.session-id p {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.7rem;
}

.session-actions {
  display: grid;
  gap: 4px;
}

.session-actions label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.session-actions select {
  padding: 8px 10px;
}

.session-actions .result-info {
  margin: 0;
  font-size: 0.68rem;
}

.session-foot {
  margin-top: 8px;
}

.sidebar.presence-away .session-strip {
  border-color: rgba(184, 157, 85, 0.58);
  background: rgba(37, 30, 20, 0.65);
}

.sidebar.presence-away .session-id .material-symbols-outlined {
  color: #facc7a;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 0;
  flex: 1;
}

.quick-btn {
  padding: 8px 8px;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
}

#panelDiscover {
  display: none;
}

.accordion-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.panel-head {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.accordion-panel .panel-body {
  display: none;
  padding: 14px;
}

.accordion-panel.open .panel-body {
  display: block;
}

.view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.view-switch .button.active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.list.hidden {
  display: none;
}

.group { margin-bottom: 11px; }
.group label {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.group.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.poi-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 9px;
  background: #f8fafc;
}

.poi-toggles {
  display: grid;
  gap: 6px;
}

.poi-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #334155;
}

.poi-toggle input {
  width: 14px;
  height: 14px;
  accent-color: #25d6ee;
}

.space-pass {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(41, 69, 110, 0.45);
}

.space-pass h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #d7e9ff;
}

.space-pass .auth-form {
  gap: 6px;
}

.space-pass .auth-form label {
  font-size: 0.66rem;
}

input, select, textarea {
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 11px 12px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 56px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

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

.stat {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.stat strong { color: #111827; font-size: 1.08rem; }
.stat span { display: block; color: #64748b; font-size: 0.74rem; margin-top: 2px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 0 6px;
}

.toolbar strong {
  font-size: 0.78rem;
  color: #475569;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.68rem;
}

.filter-chip button {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

.clear-filters {
  white-space: nowrap;
}

.button {
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #fff;
  color: #111827;
  border-radius: 14px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
}

.button:hover {
  border-color: rgba(15, 23, 42, 0.16);
  background: #f8fafc;
}

.button:disabled,
.ficha-cta:disabled,
.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.result-info {
  margin: 0 0 8px;
  font-size: 0.76rem;
  color: #64748b;
}

.list {
  display: grid;
  gap: 12px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 4px;
}

.list-more {
  width: 100%;
  margin-top: 4px;
}

.item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: 160ms ease;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.item:hover,
.item.active {
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
  transform: translateY(-1px);
}

.item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.new-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  background: #67e8f9;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.item p {
  margin: 0;
  font-size: 0.76rem;
  color: #64748b;
}

.item-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 132px;
}

.item-media {
  position: relative;
  min-height: 132px;
  background: #e2e8f0;
}

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

.item-media-fallback {
  width: 100%;
  height: 100%;
}

.item-media-badge,
.item-media-price {
  position: absolute;
  left: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  padding: 5px 9px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.item-media-badge {
  top: 10px;
}

.item-media-price {
  bottom: 10px;
}

.item-body {
  display: grid;
  gap: 10px;
  padding: 14px 14px 13px;
}

.item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.item-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.item-completion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.66rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #475569;
}

.item-completion-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.item-completion-verde .item-completion-dot { background: #16a34a; }
.item-completion-ambar .item-completion-dot { background: #f59e0b; }
.item-completion-rojo .item-completion-dot { background: #ef4444; }

.item-completion-verde {
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.08);
}

.item-completion-ambar {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.item-completion-rojo {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}

.item-title-wrap {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.item-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #475569;
}

.item-status strong {
  color: #111827;
}

.item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: #64748b;
}

.item-cta {
  font-weight: 700;
  color: #111827;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.68rem;
  color: #334155;
  background: #f8fafc;
}

.item-chip.muted {
  border-color: rgba(15, 23, 42, 0.08);
  color: #64748b;
  background: #ffffff;
}

.item-poi .item-card {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 124px;
}

.item-poi .item-media {
  min-height: 124px;
}

.item-poi .item-foot {
  justify-content: flex-start;
}

.map-wrap {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
}

#map {
  height: 100dvh;
  width: 100%;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.18) 0, rgba(255,255,255,0.02) 24%, transparent 25%),
    linear-gradient(0deg, rgba(158, 202, 214, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 202, 214, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #d7e7df 0%, #c4d9cf 48%, #bfd8df 100%);
  background-size: auto, 48px 48px, 48px 48px, auto;
  background-position: center, center, center, center;
}

#map.map-is-loading::after {
  content: "Cargando mapa";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 252, 248, 0.9);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  z-index: 1;
}

.map-pin {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.14));
}

.map-pin-new::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 1px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.8);
  animation: none;
}

.map-pin-focus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(103, 232, 249, 0.82);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  animation: none;
}

.map-pin-breathing {
  animation: none;
}

.map-pin-core {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--pin-color, #3b82f6);
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  display: grid;
  place-items: center;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
}

.map-pin-core .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  font-variation-settings:
    'FILL' 1,
    'wght' 700,
    'GRAD' 0,
    'opsz' 24;
}

.map-cluster-hex {
  width: 46px;
  height: 46px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--cluster-color, #0ea5e9);
  border: 2px solid rgba(255, 255, 255, 0.98);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.map-cluster-icon {
  font-size: 16px;
  color: #ffffff;
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  transform: translateY(-5px);
}

.map-cluster-count {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

@keyframes mapPinFloat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.ruta-stop-wrap {
  background: transparent;
  border: 0;
}

.ruta-stop-marker {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ecfeff;
  background: rgba(8, 56, 74, 0.95);
  border: 2px solid rgba(34, 211, 238, 0.92);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.map-header {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 18px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.map-header h2 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent);
}

.map-header p {
  margin: 2px 0 0;
  font-size: 0.73rem;
  color: var(--muted);
}

.map-hero {
  position: absolute;
  top: 84px;
  left: 12px;
  z-index: 468;
  width: min(760px, calc(100% - 24px));
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(247, 240, 232, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(201, 107, 44, 0.18), transparent 48%);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  padding: 12px;
}

.map-hero-kicker {
  margin: 0 0 5px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a36;
  font-weight: 700;
}

.map-hero h2 {
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  color: #4d2f1d;
  line-height: 1.08;
}

.map-hero p {
  margin: 8px 0 0;
  color: #5d4a3d;
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 42ch;
}

.map-hero-actions {
  margin-top: 10px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.map-hero-actions .button {
  min-height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(154, 121, 98, 0.32);
  color: #3f2a1d;
  font-size: 0.72rem;
}

.map-hero-media {
  border-radius: 14px;
  border: 1px solid rgba(120, 88, 66, 0.22);
  background-image:
    linear-gradient(180deg, rgba(38, 21, 8, 0.14), rgba(38, 21, 8, 0.32)),
    url('https://elartesano.es/wp-content/uploads/2023/05/elaboracion.png');
  background-size: cover;
  background-position: center;
  min-height: 136px;
}

body.hero-dismissed .map-hero,
html[data-page="artesano"] body.miniweb-mode .map-hero {
  display: none;
}

.ruta-map-summary {
  position: absolute;
  top: 84px;
  right: 12px;
  z-index: 470;
  min-width: 220px;
  max-width: min(340px, 42vw);
  display: grid;
  gap: 2px;
  border: 1px solid rgba(48, 196, 219, 0.5);
  background: rgba(7, 19, 34, 0.9);
  border-radius: 12px;
  padding: 8px 10px;
  backdrop-filter: blur(9px);
}

.ruta-map-summary strong {
  color: #e8faff;
  font-size: 0.76rem;
}

.ruta-map-summary span {
  color: #9fd7ea;
  font-size: 0.68rem;
}

.ruta-map-summary small {
  color: #bde7f5;
  font-size: 0.67rem;
}

.visitor-query-panel {
  position: absolute;
  top: 84px;
  left: 12px;
  right: 12px;
  z-index: 465;
  max-width: min(920px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.visitor-query-title {
  margin: 0;
  font-size: 0.74rem;
  color: #374151;
  letter-spacing: 0.02em;
}

.visitor-query-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: move;
  cursor: grab;
}

.visitor-query-head:active {
  cursor: grabbing;
}

.visitor-panel-dock {
  font-size: 0.66rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.visitor-panel-toggle {
  font-size: 0.66rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.visitor-query-row {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr);
  gap: 8px;
  align-items: center;
}

.visitor-query-row-advanced {
  display: none;
}

.visitor-query-panel.visitor-advanced-open .visitor-query-row-advanced {
  display: grid;
}

.visitor-smart-hint {
  margin: -2px 0 2px;
  font-size: 0.7rem;
  color: #667085;
}

.visitor-query-row span {
  font-size: 0.73rem;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
}

.visitor-query-panel select,
.visitor-query-panel input[type="search"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ded6cb;
  background: #fff;
  color: #111827;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.visitor-query-panel select:focus,
.visitor-query-panel input[type="search"]:focus {
  outline: none;
  border-color: rgba(64, 202, 236, 0.86);
  box-shadow: 0 0 0 3px rgba(64, 202, 236, 0.2);
}

.visitor-query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visitor-query-actions .button {
  font-size: 0.69rem;
  padding: 6px 9px;
}

.results-panel .visitor-query-panel {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  max-width: none;
  margin: 0 0 8px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(3, 11, 18, 0.35);
  border: 1px solid rgba(0, 183, 203, 0.3);
  background: linear-gradient(160deg, rgba(9, 26, 36, 0.72), rgba(7, 21, 31, 0.72));
  backdrop-filter: blur(14px) saturate(115%);
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating {
  position: absolute;
  top: 136px;
  left: 12px;
  right: 12px;
  z-index: 468;
  max-width: min(920px, calc(100% - 24px));
  margin: 0 auto;
  resize: none;
  max-height: 78vh;
  overflow: hidden;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 41, 55, 0.12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  gap: 8px;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .result-info {
  display: none;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-height: 34vh;
  overflow: auto;
  margin: 0;
  padding-right: 4px;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .item.item-mini {
  width: min(100%, 360px);
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(248, 252, 255, 0.92);
  text-align: left;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule-head h3 {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.2;
  color: #0f172a;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--disc-color, #0ea5e9);
  flex: 0 0 auto;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule-sub {
  margin: 0;
  font-size: 0.74rem;
  color: #334155;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule-grid {
  display: grid;
  gap: 4px;
  font-size: 0.71rem;
  color: #475569;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule-grid strong {
  color: #0f172a;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .mini-capsule-foot {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-panel-resize {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(7, 26, 40, 0.9);
  cursor: nwse-resize;
  padding: 0;
}

html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-panel-resize::before {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(186, 230, 253, 0.9);
  border-bottom: 2px solid rgba(186, 230, 253, 0.9);
  opacity: 0.9;
}

.results-panel .visitor-query-head {
  cursor: default;
}

.results-panel .visitor-panel-dock {
  display: none;
}

.results-panel .visitor-query-row {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px;
}

.results-panel .visitor-query-panel select,
.results-panel .visitor-query-panel input[type="search"] {
  padding: 8px 10px;
  font-size: 0.75rem;
  border-color: rgba(97, 147, 164, 0.45);
  background: rgba(6, 26, 38, 0.58);
  color: #e5f7fb;
}

.results-panel .visitor-query-panel select::placeholder,
.results-panel .visitor-query-panel input[type="search"]::placeholder {
  color: rgba(159, 194, 205, 0.8);
}

.results-panel .visitor-query-row span,
.results-panel .visitor-query-title {
  color: #a6cfd8;
}

.results-panel .visitor-smart-hint {
  color: #9fc2cd;
}

.quick-route-panel {
  margin: 0 0 8px;
  display: grid;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0, 183, 203, 0.3);
  background: linear-gradient(160deg, rgba(9, 26, 36, 0.72), rgba(7, 21, 31, 0.72));
  backdrop-filter: blur(14px) saturate(115%);
  box-shadow: 0 8px 22px rgba(3, 11, 18, 0.35);
  padding: 10px;
}

.quick-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-route-title {
  margin: 0;
  font-size: 0.74rem;
  color: #d5f2f8;
}

.quick-route-tag {
  border: 1px solid rgba(127, 197, 212, 0.45);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.64rem;
  color: #e8f8fd;
  background: rgba(9, 34, 46, 0.56);
}

.quick-route-progress {
  margin: 0;
  color: #c6e7f0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.quick-route-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.quick-route-actions .button {
  min-height: 44px;
  font-size: 0.68rem;
  border-color: rgba(107, 173, 189, 0.34);
  background: rgba(6, 24, 34, 0.6);
  color: #ecfbff;
}

.quick-route-actions .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.quick-route-reset-row {
  display: flex;
  justify-content: flex-end;
}

.quick-route-reset-row .button {
  min-height: 36px;
  font-size: 0.68rem;
  border-color: rgba(205, 129, 129, 0.4);
  background: rgba(47, 18, 18, 0.35);
  color: #ffd9d9;
}

.quick-route-items {
  display: grid;
  gap: 6px;
}

.quick-route-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(106, 164, 178, 0.32);
  border-radius: 12px;
  padding: 7px 8px;
  background: rgba(9, 30, 42, 0.44);
}

.quick-route-item-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(178, 223, 233, 0.45);
  color: #eafaff;
  font-size: 0.66rem;
  font-weight: 700;
}

.quick-route-item-main strong {
  display: block;
  color: #e8fbff;
  font-size: 0.71rem;
  line-height: 1.3;
}

.quick-route-item-main small {
  display: block;
  color: #a9cfda;
  font-size: 0.64rem;
}

.quick-route-remove {
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(195, 131, 131, 0.45);
  background: rgba(48, 18, 18, 0.42);
  color: #ffd9d9;
  font-size: 0.66rem;
}

.visitor-suggestions {
  display: grid;
  gap: 8px;
}

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

.visitor-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: 140ms ease;
}

.visitor-suggestion:hover {
  border-color: rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.visitor-suggestion.active {
  border-color: #111827;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.visitor-suggestion img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.visitor-suggestion strong {
  display: block;
  font-size: 0.76rem;
  color: #111827;
}

.visitor-suggestion span {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #6b7280;
}

.visitor-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.visitor-signal {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.61rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: #3b4a5d;
}

.visitor-signal-book {
  background: #ecfdf5;
  color: #166534;
}

.visitor-signal-route {
  background: #eff6ff;
  color: #1d4ed8;
}

.visitor-signal-gastro {
  background: #fff7ed;
  color: #c2410c;
}

.visitor-signal-legacy {
  background: #fefce8;
  color: #854d0e;
}

.visitor-signals .visitor-signal:nth-child(n + 3) {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.74rem;
}

.legend {
  position: absolute;
  left: 12px;
  bottom: calc(18px + var(--social-rail-h, 186px));
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 0.73rem;
  z-index: 430;
  max-height: min(42vh, 340px);
  overflow: auto;
  min-width: 232px;
}

.map-filters-panel {
  position: absolute;
  left: 274px;
  bottom: calc(18px + var(--social-rail-h, 186px));
  z-index: 430;
  display: grid;
  gap: 7px;
  min-width: 208px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
}

.map-filters-panel strong {
  font-size: 0.76rem;
  color: #111827;
  letter-spacing: 0.02em;
}

.map-filters-panel .button {
  justify-self: start;
}

.map-filters-panel .poi-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #334155;
}

.map-filters-panel .poi-toggle input {
  width: 14px;
  height: 14px;
  accent-color: #39c9eb;
}

.map-create-route-fab {
  position: absolute;
  right: 14px;
  bottom: calc(18px + var(--social-rail-h, 186px));
  z-index: 431;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.15);
}

.social-rail {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 420;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  padding: 9px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.social-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.social-rail-head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #111827;
}

.social-rail-head p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #6b7280;
}

.suggestions-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.suggestions-strip-head h4 {
  margin: 0;
  font-size: 0.8rem;
  color: #111827;
}

.suggestions-strip-head p {
  margin: 3px 0 0;
  font-size: 0.69rem;
  color: #6b7280;
}

.social-rail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-rail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.social-feed-panel {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(16, 25, 44, 0.96));
  color: #e5eefc;
  padding: 10px;
  display: grid;
  gap: 10px;
  min-height: 0;
}

.social-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.social-feed-head h4 {
  margin: 0;
  font-size: 0.84rem;
  color: #f8fbff;
}

.social-feed-head p {
  margin: 4px 0 0;
  font-size: 0.7rem;
  color: #a8bdd9;
}

.social-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.social-feed-actions .social-nav {
  width: 32px;
  height: 32px;
}

.social-composer {
  display: grid;
  gap: 8px;
}

.social-composer textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 13, 23, 0.8);
  color: #f1f5f9;
  padding: 10px 12px;
  font: inherit;
}

.social-composer textarea::placeholder {
  color: #8ea3bf;
}

.social-composer-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(150px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
}

.social-composer-row select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  color: #e5eefc;
  padding: 8px 10px;
}

.social-post-submit {
  min-height: 36px;
}

.social-feed {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}

.social-post {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(6, 12, 22, 0.74);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.social-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.social-post-author {
  display: grid;
  gap: 2px;
}

.social-post-author strong {
  color: #f8fbff;
  font-size: 0.82rem;
}

.social-post-author small,
.social-post-meta {
  color: #8ea3bf;
  font-size: 0.66rem;
}

.social-post-body {
  margin: 0;
  color: #d7e4f6;
  font-size: 0.74rem;
  line-height: 1.5;
}

.social-post-target {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-post-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.64rem;
  background: rgba(59, 130, 246, 0.16);
  color: #cfe6ff;
  border: 1px solid rgba(96, 165, 250, 0.24);
}

.social-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-post-actions .button,
.social-comment-form .button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.68rem;
}

.social-post-actions .is-active {
  border-color: rgba(248, 250, 252, 0.3);
  background: rgba(37, 99, 235, 0.24);
  color: #eff6ff;
}

.social-post-comments {
  display: grid;
  gap: 6px;
}

.social-post-comment {
  border-left: 2px solid rgba(148, 163, 184, 0.24);
  padding-left: 8px;
  display: grid;
  gap: 2px;
}

.social-post-comment strong {
  color: #eff6ff;
  font-size: 0.68rem;
}

.social-post-comment p {
  margin: 0;
  color: #c8d6ea;
  font-size: 0.68rem;
  line-height: 1.45;
}

.social-post-comment small {
  color: #7d90ad;
  font-size: 0.62rem;
}

.social-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.social-comment-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #e5eefc;
  padding: 8px 10px;
}

.social-comment-form input::placeholder {
  color: #7e93ae;
}

.social-post-empty {
  margin: 0;
  color: #a8bdd9;
  font-size: 0.72rem;
}

.growth-tree-panel {
  display: none;
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(201, 107, 44, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.96), rgba(12, 22, 39, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(201, 107, 44, 0.18), transparent 34%);
  color: #e5eefc;
  box-shadow: 0 14px 28px rgba(4, 10, 20, 0.18);
}

.growth-tree-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.growth-tree-head h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #f8fbff;
}

.growth-tree-head p {
  margin: 3px 0 0;
  font-size: 0.7rem;
  color: #aac0df;
}

.growth-tree-primary {
  min-height: 36px;
  padding-inline: 10px;
  white-space: nowrap;
}

.growth-tree-grid {
  display: grid;
  gap: 8px;
}

.growth-tree-node {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(6, 12, 22, 0.72);
  padding: 10px;
}

.growth-tree-node-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.growth-tree-node-head strong {
  color: #f8fbff;
  font-size: 0.8rem;
}

.growth-tree-node-head small {
  color: #9fb5d3;
  font-size: 0.66rem;
}

.growth-tree-node p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #d4e2f2;
}

.growth-tree-meter {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.growth-tree-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #67e8f9);
  width: var(--growth-pct, 0%);
}

.growth-tree-foot {
  margin-top: 10px;
  font-size: 0.68rem;
  color: #9fb5d3;
}

.growth-tree-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.growth-tree-actions .button {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.7rem;
  border-color: rgba(111, 196, 213, 0.26);
  background: rgba(8, 23, 36, 0.78);
  color: #eff9ff;
}

html[data-shell-view="growth"] .social-cards,
html[data-shell-view="growth"] .suggestions-strip,
html[data-shell-view="growth"] .social-feed-panel {
  display: none !important;
}

html[data-shell-view="growth"] .social-rail-body {
  grid-template-columns: 1fr;
}

html[data-shell-view="growth"] .growth-tree-panel {
  display: grid;
}

.social-nav {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.social-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 240px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

.activity-panel {
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  min-height: 0;
}

.suggestions-strip.is-empty,
.activity-panel.is-empty,
.social-rail.is-empty,
.results-panel .result-info.hidden {
  display: none !important;
}

.visitor-suggestions:empty,
.assistant-thread:empty,
.assistant-suggestions:empty,
.assistant-list:empty,
.quick-route-items:empty {
  display: none;
}

.activity-panel-head {
  margin-bottom: 8px;
}

.activity-panel-head h4 {
  margin: 0;
  font-size: 0.82rem;
  color: #111827;
}

.activity-panel-head p {
  margin: 4px 0 0;
  font-size: 0.69rem;
  color: #6b7280;
}

.activity-feed {
  display: grid;
  gap: 8px;
  max-height: 264px;
  overflow: auto;
  padding-right: 2px;
}

.activity-feed-section {
  display: grid;
  gap: 8px;
}

.activity-feed-section + .activity-feed-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.activity-feed-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.activity-feed-section-head h5 {
  margin: 0;
  font-size: 0.74rem;
  color: #111827;
}

.activity-feed-section-head span {
  font-size: 0.67rem;
  color: #6b7280;
}

.activity-card {
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 12px;
  padding: 9px;
  background: #fffaf4;
}

.activity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.activity-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.activity-badges > *:nth-child(n + 3) {
  display: none;
}

.activity-card-head h5 {
  margin: 0;
  font-size: 0.78rem;
  color: #111827;
  line-height: 1.35;
}

.activity-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0f9ff;
  background: rgba(17, 39, 60, 0.72);
  white-space: nowrap;
}

.activity-type-feria {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(120, 53, 15, 0.45);
}

.activity-type-visita {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(14, 74, 44, 0.42);
}

.activity-type-ruta {
  border-color: rgba(34, 211, 238, 0.26);
  background: rgba(8, 55, 76, 0.44);
}

.activity-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.activity-status-hoy {
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(120, 53, 15, 0.52);
}

.activity-status-proximo,
.activity-status-activo {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(20, 83, 45, 0.5);
}

.activity-status-cerrado {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(127, 29, 29, 0.46);
}

.activity-status-sin_fecha {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(30, 58, 138, 0.35);
}

.activity-card p {
  margin: 6px 0 0;
  font-size: 0.71rem;
  color: #475569;
  line-height: 1.45;
}

.activity-card-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.activity-distance {
  margin: 7px 0 0;
  font-size: 0.69rem;
  color: #475569;
}

.activity-exhibitors {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.activity-exhibitors strong {
  display: block;
  font-size: 0.67rem;
  color: #111827;
  margin-bottom: 6px;
}

.activity-exhibitors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-exhibitor {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.66rem;
  background: #f3f4f6;
  color: #475569;
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.activity-exhibitor.mapped {
  cursor: pointer;
  background: rgba(20, 83, 45, 0.42);
  border-color: rgba(34, 197, 94, 0.24);
  color: #dcfce7;
}

.activity-card-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-calendar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.activity-calendar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.66rem;
  color: #334155;
  background: #f3f4f6;
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.activity-calendar-pill strong {
  color: #111827;
}

@media (max-width: 1100px) {
  .visitor-suggestions-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .social-rail-body {
    grid-template-columns: 1fr;
  }
}

.activity-card-actions .button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.68rem;
}

.social-card {
  border: 1px solid var(--disc-color, rgba(37, 214, 238, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: linear-gradient(180deg, #0c192f, #0b1629);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.social-card:hover {
  border-color: var(--disc-color, #22d3ee);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 6px 18px rgba(4, 10, 22, 0.45);
  transform: translateY(-1px);
}

.social-card-media {
  height: 92px;
  background: radial-gradient(140px 90px at 24% 42%, var(--disc-color, #1d4f70), #0c213f);
}

.social-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-card-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(200px 60px at 30% 50%, #13355d, #0a1931);
}

.social-card-fallback span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.09);
}

.social-card-body {
  padding: 8px 9px 9px;
}

.social-card-body h4 {
  margin: 0;
  font-size: 0.8rem;
  color: #eef8ff;
  line-height: 1.3;
}

.social-card-body p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #a8bdd9;
}

.social-card-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.social-chip-disc {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--disc-color, #22d3ee);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  color: #e9f7ff;
  background: rgba(9, 41, 64, 0.68);
}

.ruta-box {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.82);
  padding: 8px;
}

.route-highlights-box {
  margin-top: 10px;
  border: 1px solid rgba(64, 157, 182, 0.55);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(5, 26, 38, 0.94), rgba(7, 18, 32, 0.94));
  padding: 10px;
}

.route-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.route-highlight-btn {
  justify-content: flex-start;
  text-align: left;
  border-radius: 10px;
  min-height: 40px;
  font-size: 0.72rem;
  border-color: rgba(111, 196, 213, 0.42);
  background: rgba(10, 45, 62, 0.62);
}

.route-builder-panel {
  display: grid;
}

.ruta-toolbar {
  margin: 0 0 8px;
}

.ruta-list {
  display: grid;
  gap: 6px;
  max-height: 120px;
  overflow: auto;
}

.ruta-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  color: #111827;
  padding: 10px 11px;
  font-size: 0.72rem;
  cursor: pointer;
}

.ruta-item:hover {
  border-color: rgba(15, 23, 42, 0.2);
}

.ruta-item small {
  color: #64748b;
  display: block;
  margin-top: 3px;
}

.ruta-tematica-box {
  margin-top: 10px;
  border: 1px solid rgba(49, 95, 150, 0.55);
  border-radius: 12px;
  background: rgba(6, 16, 30, 0.9);
  padding: 8px;
}

.ruta-element-add {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 6px;
}

.route-radio-group {
  display: grid;
  gap: 6px;
}

.route-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: #d2e8f7;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(94, 143, 188, 0.38);
  background: rgba(6, 24, 38, 0.72);
  cursor: pointer;
}

.route-radio input[type="radio"] {
  accent-color: #4fd4ed;
  width: 15px;
  height: 15px;
}

.ruta-elementos {
  display: grid;
  gap: 6px;
  max-height: 185px;
  overflow: auto;
  margin-bottom: 6px;
}

.ruta-el {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 10px 10px;
  cursor: grab;
}

.ruta-el-main {
  min-width: 0;
}

.ruta-el h5 {
  margin: 0;
  font-size: 0.74rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ruta-el p {
  margin: 2px 0 0;
  font-size: 0.66rem;
  color: #64748b;
}

.ruta-el-min {
  width: 62px;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #111827;
  font-size: 0.68rem;
}

.ruta-el-remove {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: #fff1f2;
  color: #be123c;
  border-radius: 8px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.ruta-reservation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.64rem;
  font-weight: 600;
}

.ruta-reservation strong {
  color: inherit;
}

.ruta-reservation span {
  color: inherit;
  opacity: 0.92;
}

.ruta-reservation-pending {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.ruta-reservation-approved {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ruta-reservation-rejected,
.ruta-reservation-cancelled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.ruta-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ruta-export-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ruta-export-group select {
  min-width: 102px;
  border-radius: 999px;
}

.rutas-saved {
  display: grid;
  gap: 6px;
  max-height: 165px;
  overflow: auto;
}

.ruta-saved {
  border: 1px solid rgba(84, 116, 164, 0.48);
  border-radius: 10px;
  background: rgba(10, 21, 39, 0.9);
  padding: 7px;
}

.ruta-saved.ruta-saved-active {
  border-color: rgba(32, 194, 215, 0.78);
  box-shadow: 0 0 0 1px rgba(32, 194, 215, 0.35);
}

.ruta-saved-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ruta-saved-top h5 {
  margin: 0;
  font-size: 0.74rem;
  color: #e9f6ff;
}

.ruta-saved p {
  margin: 3px 0 5px;
  font-size: 0.67rem;
  color: #9ab2d1;
}

.ruta-saved-intent {
  margin: 2px 0 6px;
  font-size: 0.64rem;
  color: #cbd5e1;
}

.ruta-saved-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}

.ruta-saved-badge,
.ruta-saved-author {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.64rem;
  font-weight: 600;
}

.ruta-saved-badge-custom {
  background: rgba(30, 64, 175, 0.2);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.ruta-saved-badge-suggested {
  background: rgba(124, 45, 18, 0.22);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.ruta-saved-badge-predefined {
  background: rgba(20, 83, 45, 0.24);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.ruta-saved-author {
  background: rgba(15, 23, 42, 0.42);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.ruta-saved-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ruta-saved-actions .button {
  padding: 5px 7px;
  font-size: 0.66rem;
}

.space-routes {
  margin-top: 10px;
  border: 1px solid rgba(56, 89, 136, 0.62);
  border-radius: 12px;
  background: rgba(10, 21, 39, 0.82);
  padding: 8px;
}

.space-routes h4 {
  margin: 0 0 7px;
  font-size: 0.76rem;
  color: #d5ebff;
}

.space-admin {
  margin-top: 10px;
  border: 1px solid rgba(56, 89, 136, 0.62);
  border-radius: 12px;
  background: rgba(10, 21, 39, 0.82);
  padding: 8px;
}

.space-admin-view {
  border: 1px solid rgba(58, 97, 142, 0.5);
  border-radius: 10px;
  background: rgba(12, 27, 47, 0.72);
  padding: 8px;
  margin-bottom: 10px;
}

.space-admin-view h4 {
  margin: 0 0 7px;
  font-size: 0.76rem;
  color: #d5ebff;
}

.space-admin-view-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
}

.space-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-user-list {
  display: grid;
  gap: 7px;
  max-height: 320px;
  overflow: auto;
}

.admin-user-row {
  border: 1px solid rgba(69, 103, 148, 0.58);
  border-radius: 10px;
  background: rgba(11, 24, 43, 0.88);
  padding: 8px;
}

.admin-user-row h6 {
  margin: 0;
  font-size: 0.76rem;
  color: #e6f4ff;
}

.admin-user-row p {
  margin: 4px 0 0;
  color: #a8c4dc;
  font-size: 0.69rem;
}

.admin-user-actions {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-user-actions .button {
  font-size: 0.66rem;
  padding: 5px 8px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(29, 42, 66, 0.6), rgba(42, 60, 90, 0.8), rgba(29, 42, 66, 0.6));
  background-size: 200% 100%;
  animation: skeletonShift 1.3s ease-in-out infinite;
}

.skeleton-item {
  height: 72px;
  border: 1px solid rgba(60, 85, 130, 0.35);
}

.skeleton-card {
  width: 220px;
  height: 160px;
  border: 1px solid rgba(60, 85, 130, 0.35);
}

.legend strong {
  display: block;
  margin-bottom: 6px;
  color: #c8d5ea;
  font-size: 0.72rem;
}

.legend #legendItems {
  max-height: 130px;
  overflow: auto;
  margin-bottom: 6px;
}

.legend-hover-info {
  margin-top: 8px;
  border-top: 1px solid rgba(73, 106, 146, 0.45);
  padding-top: 8px;
}

.legend-hover-empty {
  font-size: 0.68rem;
  color: #9fb2cf;
}

.legend-hover-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--disc-color, rgba(37, 214, 238, 0.45));
  border-radius: 10px;
  padding: 7px;
  background: rgba(10, 23, 41, 0.86);
}

.legend-hover-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--disc-color, #22d3ee);
  background: rgba(8, 40, 60, 0.9);
  display: grid;
  place-items: center;
}

.legend-hover-icon .material-symbols-outlined {
  font-size: 15px;
  line-height: 1;
  color: #eaf8ff;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.legend-hover-copy strong {
  display: block;
  font-size: 0.72rem;
  color: #f2fbff;
  line-height: 1.25;
}

.legend-hover-copy p {
  margin: 2px 0 0;
  font-size: 0.66rem;
  color: #a9c1dc;
  line-height: 1.2;
}

.legend-hover-actions {
  margin-top: 6px;
}

.legend-hover-actions .button {
  font-size: 0.64rem;
  padding: 5px 8px;
}

.artesano-popup .leaflet-popup-content-wrapper {
  background: rgba(8, 17, 31, 0.96);
  border: 1px solid rgba(36, 215, 238, 0.35);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(2, 8, 22, 0.55);
  height: var(--artenia-detail-shell-height, auto);
  max-height: var(--artenia-detail-shell-height, none);
  overflow: hidden;
}

.artesano-popup .leaflet-popup-content {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.artesano-popup .leaflet-popup-tip {
  background: rgba(8, 17, 31, 0.96);
}

.artesano-popup .leaflet-popup-close-button {
  color: #ecfeff;
  font-size: 20px;
  line-height: 20px;
  right: 8px;
  top: 8px;
  opacity: 0.95;
}

.artesano-popup .leaflet-popup-close-button:hover {
  color: #67e8f9;
}

.artesano-popup-card {
  min-width: 240px;
  max-width: 280px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.artesano-popup-hero {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(107, 145, 180, 0.45);
  margin-bottom: 7px;
}

.artesano-popup-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.artesano-popup-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--disc-color, #22d3ee);
  background: rgba(10, 43, 63, 0.9);
  display: grid;
  place-items: center;
}

.artesano-popup-icon .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
  color: #f2fbff;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.artesano-popup-head h4 {
  margin: 0;
  font-size: 0.82rem;
  color: #f4fcff;
  line-height: 1.2;
}

.artesano-popup-head p {
  margin: 1px 0 0;
  font-size: 0.68rem;
  color: #b2c8e1;
}

.artesano-popup-quote {
  margin: 6px 0;
  font-size: 0.7rem;
  color: #dcecff;
  font-style: italic;
  line-height: 1.3;
}

.artesano-popup-actions {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.artesano-popup-actions .button {
  width: 100%;
  font-size: 0.68rem;
  padding: 6px 9px;
}

.artesano-popup-actions .popup-hook-btn {
  border-color: rgba(109, 235, 255, 0.85);
  background: linear-gradient(135deg, rgba(20, 71, 96, 0.92), rgba(16, 106, 126, 0.92));
  color: #e9fcff;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(109, 235, 255, 0.25), 0 8px 16px rgba(4, 18, 29, 0.45);
}

.artesano-popup-hook-copy {
  margin: 7px 0 0;
  font-size: 0.62rem;
  color: #a4c5dc;
  line-height: 1.35;
}

.artesano-popup-block {
  margin-top: 7px;
  border: 1px solid rgba(103, 141, 177, 0.35);
  background: rgba(18, 30, 50, 0.58);
  border-radius: 9px;
  padding: 6px 8px;
}

.artesano-popup-block p {
  margin: 0;
  font-size: 0.65rem;
  color: #d0e2f6;
  line-height: 1.35;
}

.artesano-popup-block p + p {
  margin-top: 2px;
}

.legend .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #d6e8fb;
  padding: 4px 0;
}

.legend-filter-item {
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 8px;
  transition: background-color 140ms ease, transform 140ms ease;
}

.legend-filter-item:hover {
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}

.legend-filter-item.active {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.legend-filter-item small {
  margin-left: auto;
  font-size: 0.64rem;
  color: #94a3b8;
}

.legend-item-icon {
  font-size: 16px;
  line-height: 1;
  color: #dff6ff;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.legend .dot {
  width: 10px;
  height: 10px;
  margin-right: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.legend-item-poi .legend-item-icon {
  color: #bfe3ff;
}

.ficha-panel {
  position: absolute;
  top: 84px;
  right: 12px;
  width: min(390px, calc(100% - 24px));
  max-height: var(--artenia-detail-shell-height, calc(100% - 98px));
  overflow: auto;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  z-index: 550;
  display: none;
  animation: fadeInUp 0.2s ease-out;
}

.results-panel {
  position: absolute;
  top: 84px;
  right: 12px;
  width: min(390px, calc(100% - 24px));
  max-height: calc(100% - 98px);
  overflow: auto;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  z-index: 540;
  padding: 12px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  padding: 2px 2px 10px;
  margin-bottom: 8px;
}

.results-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.perf-panel {
  margin: 0 0 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 183, 203, 0.24);
  background: linear-gradient(160deg, rgba(9, 26, 36, 0.62), rgba(7, 21, 31, 0.62));
}

.perf-panel .result-info {
  margin: 0;
  color: #c6e7f0;
}

.perf-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.perf-actions .button {
  min-height: 40px;
  font-size: 0.68rem;
  border-color: rgba(107, 173, 189, 0.34);
  background: rgba(6, 24, 34, 0.56);
  color: #ecfbff;
}

.ficha-panel.open { display: block; }

.ficha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  padding: 14px 16px;
}

.ficha-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.ficha-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ficha-body {
  padding: 16px;
  display: grid;
  gap: 12px;
  padding-bottom: 84px;
}

.ficha-mobile-summary {
  display: none;
}

.ficha-mobile-more-btn {
  display: none;
}

.ficha-sticky-route-bar {
  position: sticky;
  bottom: -2px;
  z-index: 6;
  margin-top: -2px;
  padding: 8px 0 2px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0), rgba(255, 252, 248, 0.96) 36%, rgba(255, 252, 248, 0.99) 100%);
}

.ficha-sticky-route-btn {
  width: 100%;
  min-height: 46px;
  font-size: 0.8rem;
  font-weight: 700;
}

.ficha-card {
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ficha-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.ficha-tab {
  border: 1px solid #e6ddd3;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.7rem;
  background: #fffaf5;
  color: #6b7280;
  cursor: pointer;
}

.ficha-tab.active {
  background: #fff1e6;
  border-color: #e6b48f;
  color: #8a4b22;
}

.ficha-pane {
  display: none;
}

.ficha-pane.active {
  display: grid;
  gap: 10px;
}

.ficha-collapsible .ficha-collapsible-body {
  display: none;
}

.ficha-collapsible.open .ficha-collapsible-body {
  display: block;
  margin-top: 10px;
}

.ficha-collapsible-head {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.ficha-producto,
.ficha-feria {
  border: 1px solid #eee5db;
  border-radius: 14px;
  padding: 10px;
  background: #fffaf6;
}

.ficha-producto h5,
.ficha-feria h5 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 0.8rem;
}

.ficha-producto img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 6px;
}

.ficha-producto p,
.ficha-feria p {
  margin: 0;
  color: #6b7280;
  font-size: 0.72rem;
}

.ficha-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #111827;
}

.ficha-carpetilla-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ficha-emotional-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 8px;
}

.ficha-emotional-photo .ficha-main-img,
.ficha-emotional-photo .ficha-main-placeholder {
  height: 112px;
  margin-bottom: 0;
}

.ficha-emotional-copy h4 {
  margin: 0 0 4px;
}

.ficha-emotional-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #374151;
}

.ficha-emotional-loc {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: #6b7280;
}

.ficha-emotional-badges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ficha-badge-id {
  border: 1px solid #e8dcca;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.62rem;
  color: #7b5437;
  background: #fbf3ea;
}

.ficha-emotional-badges .ficha-badge-id:nth-child(n + 3) {
  display: none;
}

.ficha-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.ficha-hero-simple {
  grid-template-columns: 1.5fr 0.9fr;
  align-items: start;
}

.ficha-hero-main .ficha-main-img,
.ficha-hero-main .ficha-taller-media,
.ficha-hero-side .ficha-main-img {
  margin-bottom: 0;
}

.ficha-hero.single {
  grid-template-columns: 1fr;
}

.ficha-hero-col h5 {
  margin: 0 0 5px;
  font-size: 0.72rem;
  color: #8a4b22;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ficha-taller-media {
  position: relative;
}

.ficha-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 3px solid rgba(234, 252, 255, 0.9);
  background: rgba(5, 28, 46, 0.7);
  display: grid;
  place-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
}

.ficha-product-main {
  max-height: 160px;
}

.ficha-admin-panel {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(52, 32, 5, 0.2);
}

.ficha-row {
  font-size: 0.8rem;
  color: #4b5563;
  margin: 4px 0;
  line-height: 1.35;
}

.ficha-row strong {
  color: #111827;
  font-weight: 600;
}

.ficha-row a {
  color: #8a4b22;
  text-decoration: none;
}

.ficha-row a:hover {
  text-decoration: underline;
}

.ficha-completion-card {
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: #fffdfa;
  margin-bottom: 8px;
}

.ficha-completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ficha-completion-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ficha-semaforo {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.ficha-semaforo-verde { background: #16a34a; }
.ficha-semaforo-ambar { background: #f59e0b; }
.ficha-semaforo-rojo { background: #ef4444; }

.ficha-checklist {
  margin: 6px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 3px;
}

.ficha-checklist li {
  font-size: 0.7rem;
  color: #6b7280;
}

.ficha-checklist li.done {
  color: #0f766e;
}

.ficha-simple-card {
  background: #fffaf6;
}

.ficha-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.ficha-fact {
  border: 1px solid #eee5db;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.ficha-fact span {
  display: block;
  font-size: 0.66rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.ficha-fact strong {
  display: block;
  font-size: 0.75rem;
  color: #111827;
  line-height: 1.35;
}

.ficha-simple-list {
  display: grid;
  gap: 3px;
}

.ficha-gallery-card {
  padding-top: 10px;
}

.ficha-role-card {
  border-color: #eadfce;
  background: #fffdf9;
}

.ficha-role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ficha-role-head h5 {
  margin: 0;
  font-size: 0.78rem;
  color: #111827;
}

.ficha-role-head span {
  border: 1px solid #ecd8c7;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.63rem;
  color: #8a4b22;
  background: #fff5ec;
}

.ficha-role-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: #4b5563;
  font-size: 0.75rem;
}

.ficha-peer-list {
  display: grid;
  gap: 8px;
}

.ficha-peer {
  width: 100%;
  text-align: left;
  border: 1px solid #eee5db;
  border-radius: 14px;
  background: #fff;
  padding: 10px 11px;
  cursor: pointer;
}

.ficha-peer strong {
  display: block;
  font-size: 0.75rem;
  color: #111827;
}

.ficha-peer span {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #6b7280;
}

.ficha-peer:hover {
  border-color: #d9b89c;
  background: #fff9f3;
}

.ficha-around-section {
  background: #fffaf6;
}

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

.ficha-around-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.ficha-around-card {
  width: 100%;
  text-align: left;
  border: 1px solid #eee5db;
  border-radius: 14px;
  background: #fff;
  padding: 11px;
  cursor: pointer;
}

.ficha-around-card:hover {
  border-color: #d9b89c;
  background: #fff9f3;
}

.ficha-around-kicker {
  display: block;
  font-size: 0.65rem;
  color: #8a4b22;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ficha-around-card strong {
  display: block;
  font-size: 0.78rem;
  color: #111827;
  margin-bottom: 4px;
}

.ficha-around-card span:last-child {
  display: block;
  font-size: 0.71rem;
  color: #6b7280;
}

.ficha-main-img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 10px;
}

.ficha-main-placeholder {
  border: 1px dashed rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  min-height: 110px;
  display: grid;
  place-items: center;
  color: #7dd3fc;
  margin-bottom: 10px;
  background: rgba(30, 41, 59, 0.45);
}

.ficha-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ficha-carousel img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.ficha-cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ficha-cta-row-exp {
  margin-bottom: 6px;
}

.ficha-cta {
  border: 1px solid #e7ddd2;
  border-radius: 14px;
  padding: 11px 8px;
  text-align: center;
  font-size: 0.78rem;
  text-decoration: none;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ficha-cta:hover {
  border-color: #debca2;
  background: #fff7f1;
}

.ficha-cta-primary {
  border-color: #d67c3b;
  background: linear-gradient(135deg, #d97732, #bb5a1e);
  color: #fffaf5;
  font-weight: 600;
}

.ficha-cta-primary:hover {
  background: linear-gradient(135deg, #c96b2c, #a84d17);
}

.ficha-experience-card {
  border: 1px solid #efdfd1;
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(145deg, #fff8f1, #fffdf9);
  margin-bottom: 8px;
}

.ficha-experience-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.ficha-experience-head strong {
  color: #c7f7ff;
  font-size: 0.76rem;
}

.ficha-experience-head span {
  color: #8bcde0;
  font-size: 0.66rem;
}

.ficha-product-main-wrap {
  position: relative;
}

.ficha-hover-shop {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(34, 211, 238, 0.7);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  background: rgba(8, 31, 46, 0.88);
  color: #e9fcff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ficha-product-main-wrap:hover .ficha-hover-shop {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  pointer-events: auto;
}

.tour360-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.76);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: none;
  padding: 16px;
}

.tour360-overlay.open {
  display: grid;
  place-items: center;
}

.tour360-dialog {
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(8, 18, 34, 0.97), rgba(9, 22, 41, 0.96));
  box-shadow: 0 20px 48px rgba(2, 8, 22, 0.62);
}

.tour360-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.22);
}

.tour360-head h5 {
  margin: 0;
  color: #effbff;
  font-size: 0.95rem;
}

.tour360-head p {
  margin: 2px 0 0;
  color: #9ec5dd;
  font-size: 0.72rem;
}

.tour360-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background: #08152a;
}

.tour360-media {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.tour360-hotspot-layer {
  position: absolute;
  inset: 0;
}

.tour360-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(165, 243, 252, 0.95);
  border-radius: 999px;
  background: rgba(6, 64, 84, 0.78);
  color: #ecfeff;
  padding: 4px 8px;
  font-size: 0.66rem;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
  animation: pinBreath 2.3s ease-out infinite;
}

.tour360-hotspot span {
  white-space: nowrap;
}

.tour360-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #a7d8e7;
  font-size: 0.76rem;
}

.tour360-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}

body.tour360-open {
  overflow: hidden;
}

#btnCloseFicha {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
}

#btnCloseFicha:hover {
  background: rgba(34, 211, 238, 0.2);
}

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

@keyframes skeletonShift {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes pinBreath {
  0% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.8); }
  70% { box-shadow: 0 0 0 14px rgba(103, 232, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}

@keyframes pinBreathSlow {
  0% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.78); }
  75% { box-shadow: 0 0 0 18px rgba(103, 232, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}

@media (max-width: 980px) {
  .map-pin,
  .map-pin-core {
    width: 34px;
    height: 34px;
  }

  .map-pin-core .material-symbols-outlined {
    font-size: 17px;
  }

  .map-pin-focus::after {
    width: 42px;
    height: 42px;
  }

  .map-cluster-hex {
    width: 46px;
    height: 46px;
  }

  .map-cluster-icon {
    font-size: 16px;
  }

  .map-cluster-count {
    min-width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    order: 2;
    position: relative;
    top: auto;
    z-index: 20;
    border-right: 0;
    border-top: 1px solid var(--border);
    border-bottom: 0;
    padding: 8px;
    max-height: none;
    overflow: visible;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.98), rgba(8, 17, 31, 0.98));
  }

  #panelExplore {
    position: static;
    top: auto;
    z-index: auto;
    border-color: rgba(36, 201, 224, 0.55);
  }

  #panelExplore .panel-head {
    display: flex;
  }

  #panelExplore .panel-body {
    display: none;
    max-height: 36vh;
    overflow: auto;
    padding-top: 8px;
  }

  .brand {
    margin-bottom: 6px;
  }

  .brand.brand-mobile-top {
    order: 0;
    margin: 0 0 6px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 183, 203, 0.35);
    background: linear-gradient(165deg, rgba(7, 23, 33, 0.84), rgba(6, 20, 30, 0.84));
    backdrop-filter: blur(10px);
    gap: 8px;
  }

  .brand.brand-mobile-top .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand.brand-mobile-top h1 {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    line-height: 1.1;
  }

  .brand.brand-mobile-top p {
    margin-top: 2px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .filters-dock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: static;
    top: auto;
    z-index: auto;
    background: rgba(9, 18, 33, 0.96);
    border: 1px solid rgba(45, 88, 136, 0.5);
    border-radius: 10px;
    padding: 7px;
    margin-bottom: 8px;
  }

  .filters-dock .group {
    margin-bottom: 0;
  }

  .filters-dock label {
    font-size: 0.64rem;
    margin-bottom: 4px;
  }

  .filters-dock input,
  .filters-dock select {
    padding: 8px 9px;
    font-size: 0.84rem;
  }

  .filter-row {
    margin: 0;
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .active-filters {
    min-height: 24px;
  }

  .filter-chip {
    font-size: 0.62rem;
    padding: 3px 7px;
  }

  .clear-filters {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .poi-group {
    padding: 7px;
  }

  .poi-toggles {
    grid-template-columns: 1fr 1fr;
    gap: 5px 8px;
  }

  .poi-toggle {
    font-size: 0.64rem;
  }

  .accordion-panel {
    margin-bottom: 6px;
  }

  .accordion-panel.open .panel-body {
    max-height: 36vh;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #panelExplore.open .panel-body {
    max-height: 36vh;
  }

  .map-wrap {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 8px 0;
    overflow: visible;
    min-height: auto;
    position: relative;
  }

  .map-header {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 530;
    display: flex;
  }

  .map-hero {
    display: none;
  }

  .map-hero-media {
    min-height: 112px;
  }

  .map-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #map {
    order: 1;
    height: clamp(380px, 68vh, 780px);
    min-height: 380px;
    border-radius: 12px;
    border: 1px solid var(--border);
    touch-action: pan-x pan-y;
  }

  .social-rail,
  .legend {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin: 0;
  }

  .social-rail {
    padding: 8px;
    max-height: 34vh;
    overflow: auto;
    order: 5;
  }

  .social-rail-body {
    grid-template-columns: 1fr;
  }

  .activity-feed {
    max-height: none;
  }

  .ruta-map-summary {
    position: static;
    top: auto;
    right: auto;
    order: 1;
    max-width: 100%;
    margin-bottom: 6px;
  }

  .visitor-query-panel {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    order: 2;
    max-width: none;
    margin: 0;
    padding: 10px;
    gap: 7px;
  }

  .visitor-query-panel.visitor-query-panel-mobile-top {
    position: absolute;
    top: 84px;
    left: 12px;
    right: 12px;
    z-index: 520;
    order: 2;
    margin: 0;
    border: 1px solid rgba(0, 183, 203, 0.35);
    background: linear-gradient(160deg, rgba(9, 26, 36, 0.72), rgba(7, 21, 31, 0.72));
    backdrop-filter: blur(14px) saturate(115%);
    box-shadow: 0 8px 22px rgba(3, 11, 18, 0.35);
  }

  .visitor-query-panel.visitor-query-panel-mobile-top .visitor-query-row span,
  .visitor-query-panel.visitor-query-panel-mobile-top .visitor-query-title {
    color: #a6cfd8;
  }

  .visitor-query-panel.visitor-query-panel-mobile-top select,
  .visitor-query-panel.visitor-query-panel-mobile-top input[type="search"] {
    border-color: rgba(97, 147, 164, 0.45);
    background: rgba(6, 26, 38, 0.58);
    color: #e5f7fb;
  }

  .visitor-query-panel.visitor-query-panel-mobile-top select::placeholder,
  .visitor-query-panel.visitor-query-panel-mobile-top input[type="search"]::placeholder {
    color: rgba(159, 194, 205, 0.8);
  }

  .visitor-query-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .visitor-query-head {
    cursor: default;
  }

  .visitor-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .visitor-query-panel.is-collapsed {
    padding: 9px 10px;
    gap: 0;
  }

  .visitor-query-panel.is-collapsed .visitor-query-row,
  .visitor-query-panel.is-collapsed .visitor-query-actions,
  .visitor-query-panel.is-collapsed .visitor-smart-hint {
    display: none;
  }

  .visitor-query-panel.is-collapsed + .result-info {
    margin-top: 6px;
  }

  .visitor-query-row span {
    text-align: left;
    white-space: normal;
  }

  .visitor-query-panel select,
  .visitor-query-panel input[type="search"] {
    font-size: 0.8rem;
  }

  .quick-route-actions {
    grid-template-columns: 1fr;
  }

  .quick-route-actions .button {
    font-size: 0.72rem;
  }

  .quick-route-reset-row {
    justify-content: stretch;
  }

  .quick-route-reset-row .button {
    width: 100%;
    min-height: 44px;
    font-size: 0.72rem;
  }

  .quick-route-item {
    grid-template-columns: auto 1fr;
  }

  .quick-route-remove {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
    font-size: 0.72rem;
  }

  .visitor-query-toggles {
    gap: 6px;
  }

  .visitor-query-toggles label {
    width: 100%;
    border-radius: 10px;
    justify-content: flex-start;
  }

  .visitor-query-actions .button {
    width: 100%;
  }

  .legend {
    max-height: 180px;
    overflow: auto;
    order: 3;
    margin-bottom: 6px;
  }

  .map-filters-panel {
    position: absolute;
    left: auto;
    right: 12px;
    bottom: calc(72px + var(--social-rail-h, 0px));
    min-width: 170px;
    width: auto;
    order: initial;
    margin-top: 0;
    padding: 8px;
    z-index: 466;
  }

  .map-create-route-fab {
    position: absolute;
    right: 12px;
    bottom: calc(14px + var(--social-rail-h, 0px));
    width: auto;
    order: initial;
    margin-top: 0;
    justify-content: center;
    z-index: 467;
  }

  .social-cards {
    grid-auto-columns: minmax(190px, 210px);
    overflow-y: visible;
  }

  .map-header {
    order: 0;
  }

  #panelExplore .list {
    max-height: 26vh;
    min-height: 140px;
  }

  .ficha-panel {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    border-radius: 16px;
    border-left: 1px solid rgba(31, 41, 55, 0.08);
    border-right: 1px solid rgba(31, 41, 55, 0.08);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
    display: none;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .results-panel {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-height: none;
    z-index: auto;
    border-radius: 14px;
    margin-top: 8px;
    order: 3;
    overflow: visible;
  }

  .results-panel .results-head {
    display: none;
  }

  .results-panel .list {
    max-height: 28vh;
    overflow: auto;
  }

  .map-cluster-hex {
    width: 36px;
    height: 36px;
    clip-path: none;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(2, 10, 18, 0.28);
  }

  .map-cluster-icon {
    display: none;
  }

  .map-cluster-count {
    position: static;
    min-width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .ficha-panel.open {
    display: block;
  }

  .ficha-head {
    position: sticky;
    top: 0;
    background: rgba(8, 17, 31, 0.98);
    z-index: 2;
  }

  .ficha-hero {
    grid-template-columns: 1fr;
  }

  .ficha-emotional-head {
    grid-template-columns: 1fr;
  }

  .ficha-emotional-photo .ficha-main-img,
  .ficha-emotional-photo .ficha-main-placeholder {
    height: 168px;
  }

  .ficha-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ficha-around-grid {
    grid-template-columns: 1fr;
  }

  .ficha-cta-row,
  .ficha-cta-row-exp,
  .tour360-foot {
    grid-template-columns: 1fr;
  }

  .ficha-hover-shop {
    opacity: 1;
    pointer-events: auto;
    bottom: 12px;
    transform: translateX(-50%);
  }

  .tour360-overlay {
    padding: 8px;
  }

  .tour360-dialog {
    width: 100%;
    max-height: 94vh;
  }

  .tour360-stage {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .quick-nav {
    grid-template-columns: 1fr 1fr;
  }

  .session-strip {
    margin-bottom: 8px;
  }

  .session-foot .button {
    width: 100%;
  }

  .discover-cta {
    display: none;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .map-header::before {
    content: "";
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: url("https://files.manuscdn.com/user_upload_by_module/session_file/310419663032570869/ucSIaCIOcjgQxOtq.png") center/contain no-repeat;
    opacity: 0.95;
  }

  .brand.brand-mobile-top {
    position: relative;
    z-index: 530;
    display: flex !important;
    margin: 0 0 6px;
  }
}

@media (min-width: 981px) {
  .visitor-panel-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 8px;
    max-height: 64vh;
  }

  .space-admin-view-row {
    grid-template-columns: 1fr;
  }

  .group.dual {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  #map {
    height: clamp(340px, 60vh, 700px);
    min-height: 340px;
  }

  #panelExplore .list {
    max-height: 30vh;
    min-height: 150px;
  }

  .poi-toggles {
    grid-template-columns: 1fr;
  }

  .social-rail-head p,
  .map-header p {
    display: none;
  }

.tour360-hotspot {
    font-size: 0.62rem;
    padding: 4px 7px;
  }
}

.space-chat {
  margin-top: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 10px;
  padding: 10px;
  background: rgba(10, 20, 38, 0.45);
}

.space-reservations {
  margin-top: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 10px;
  padding: 10px;
  background: rgba(10, 20, 38, 0.45);
}

.space-reservations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.space-reservations-head h4 {
  margin: 0;
}

.space-reservations .space-chat-actions {
  flex-wrap: wrap;
}

.space-reservations input,
.space-reservations select {
  min-height: 34px;
}

.reservations-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.reservation-item {
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 17, 30, 0.8);
}

.reservation-item p {
  margin: 6px 0 0;
  color: #b7d3ee;
  font-size: 0.74rem;
}

.reservation-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.reservation-item-head strong {
  color: #eef8ff;
}

.reservation-item-head p {
  margin: 4px 0 0;
}

.reservation-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.67rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reservation-status-pending {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.44);
}

.reservation-status-approved {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.46);
}

.reservation-status-rejected,
.reservation-status-cancelled {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.reservation-widget {
  margin-top: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.reservation-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.reservation-widget-head strong {
  color: #111827;
  font-size: 0.88rem;
}

.reservation-widget-head span {
  color: #64748b;
  font-size: 0.72rem;
  text-align: right;
}

.reservation-status-card,
.reservation-summary {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.reservation-status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.reservation-status-card strong {
  color: #111827;
}

.reservation-status-card p {
  margin: 0;
  color: #475569;
  font-size: 0.74rem;
}

.reservation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reservation-summary-grid span {
  display: block;
  font-size: 0.66rem;
  color: #64748b;
  margin-bottom: 4px;
}

.reservation-summary-grid strong {
  display: block;
  font-size: 0.76rem;
  color: #111827;
}

.reservation-controls {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr;
  gap: 8px;
  margin-bottom: 8px;
}

.reservation-widget select,
.reservation-widget input,
.reservation-widget textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #111827;
  border-radius: 12px;
  padding: 10px 11px;
}

.reservation-days,
.reservation-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.reservation-day,
.reservation-slot {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: 140ms ease;
}

.reservation-day strong,
.reservation-slot strong {
  display: block;
  font-size: 0.74rem;
  color: #111827;
}

.reservation-day span,
.reservation-slot span {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  color: #64748b;
}

.reservation-day.available,
.reservation-slot.available {
  border-color: rgba(34, 197, 94, 0.32);
  background: #ecfdf3;
}

.reservation-day.full,
.reservation-slot.full {
  border-color: rgba(239, 68, 68, 0.16);
  background: #fef2f2;
  color: #991b1b;
}

.reservation-day.full strong,
.reservation-slot.full strong,
.reservation-day.full span,
.reservation-slot.full span {
  color: #991b1b;
}

.reservation-day.active,
.reservation-slot.active {
  border-color: #111827;
  background: #111827;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.reservation-day.active strong,
.reservation-slot.active strong,
.reservation-day.active span,
.reservation-slot.active span {
  color: #fff;
}

.reservation-day:hover:not(:disabled),
.reservation-slot:hover:not(:disabled) {
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.reservation-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.space-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.space-chat-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.space-chat-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  margin-top: 8px;
}

.chat-users-list {
  display: grid;
  gap: 6px;
  max-height: 330px;
  overflow: auto;
}

.chat-user {
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: #dbeafe;
  padding: 7px 8px;
  cursor: pointer;
}

.chat-user.active {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(12, 74, 110, 0.5);
}

.chat-user small {
  display: block;
  font-size: 11px;
  color: #93c5fd;
}

.chat-thread-header {
  font-size: 12px;
  color: #bfdbfe;
  margin-bottom: 4px;
}

.chat-points-summary {
  font-size: 12px;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.chat-discounts {
  display: none;
}

.chat-discounts.open {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.chat-discount-item {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.25);
  padding: 6px 8px;
  display: grid;
  gap: 2px;
}

.chat-discount-item strong {
  color: #bbf7d0;
  font-size: 12px;
}

.chat-discount-item span {
  color: #dcfce7;
  font-size: 11px;
}

.chat-discount-item small {
  color: #99f6e4;
  font-size: 10px;
}

.chat-thread {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  max-height: 260px;
  min-height: 140px;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.chat-bubble {
  max-width: 86%;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.35;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.chat-bubble.me {
  justify-self: end;
  background: rgba(8, 145, 178, 0.28);
  border-color: rgba(34, 211, 238, 0.5);
}

.chat-bubble.other {
  justify-self: start;
  background: rgba(30, 41, 59, 0.7);
}

.chat-meta {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
}

.chat-form {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.role-locked {
  opacity: 0.52;
  filter: saturate(0.75);
}

.visit-chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 14px;
}

.visit-chat-card {
  width: min(520px, 100%);
  background: #0f172a;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 12px;
  padding: 14px;
  color: #e2e8f0;
  display: grid;
  gap: 8px;
}

.visit-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
}

.visit-chat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 960px) {
  .space-chat-grid {
    grid-template-columns: 1fr;
  }

  .reservation-days,
  .reservation-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reservation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reservation-controls {
    grid-template-columns: 1fr;
  }

  .chat-users-list {
    max-height: 160px;
  }

  .space-chat-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Premium dark theme overrides (Artenia Regis) */
body {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(0, 151, 167, 0.16) 0%, transparent 58%),
    radial-gradient(700px 360px at 100% 0%, rgba(0, 125, 138, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #02121a 0%, #031b25 100%);
  color: #d7edf1;
}

.sidebar {
  background: linear-gradient(180deg, rgba(2, 20, 29, 0.95), rgba(2, 17, 24, 0.95));
  border-right: 1px solid rgba(0, 183, 203, 0.25);
}

.brand h1,
.brand p {
  color: #bfe9ef;
}

.results-panel,
.ficha-panel,
.social-rail,
.legend,
.map-filters-panel,
.map-create-route-fab,
.accordion-panel .panel-body,
.session-strip,
.assistant-panel {
  background: rgba(2, 19, 28, 0.94);
  border-color: rgba(0, 183, 203, 0.3);
  color: #d4edf1;
}

.results-head h3,
.ficha-head h3,
.social-rail-head h3,
.activity-panel-head h4 {
  color: #bfe9ef;
}

.result-info,
.item p,
.item-topline,
.social-rail-head p,
.activity-panel-head p,
.ficha-row {
  color: #99c3ca;
}

.item,
.item-card,
.item-poi .item-card,
.ficha-card,
.activity-panel,
.activity-card {
  background: rgba(3, 27, 38, 0.92);
  border-color: rgba(0, 183, 203, 0.22);
}

.item h3,
.ficha-card h4,
.ficha-row strong,
.item-status strong,
.ficha-fact strong {
  color: #dff7fb;
}

.item-chip,
.ficha-badge-id,
.activity-calendar-pill {
  background: rgba(0, 122, 136, 0.2);
  border-color: rgba(0, 183, 203, 0.3);
  color: #bfe9ef;
}

.item-chip.muted {
  background: rgba(0, 72, 83, 0.18);
  color: #9bcad2;
}

.button,
.ficha-cta {
  background: rgba(0, 107, 118, 0.22);
  border-color: rgba(0, 183, 203, 0.35);
  color: #bfe9ef;
}

.button:hover,
.ficha-cta:hover {
  background: rgba(0, 133, 147, 0.28);
  border-color: rgba(49, 220, 237, 0.6);
}

.ficha-cta-primary {
  background: rgba(0, 148, 163, 0.35);
  border-color: rgba(58, 227, 244, 0.62);
  color: #e6fcff;
}

.ficha-cta-primary:hover {
  background: rgba(0, 173, 190, 0.42);
}

.item-media-badge,
.item-media-price {
  background: rgba(1, 28, 38, 0.82);
  color: #c9eef4;
  border: 1px solid rgba(0, 183, 203, 0.32);
}

.map-header {
  background: rgba(1, 25, 35, 0.82);
  border-color: rgba(0, 183, 203, 0.3);
}

#map {
  filter: saturate(0.9) contrast(0.97);
}

/* Layout + style tweaks requested: ficha on the left, no white cards, chat dark */
.ficha-panel {
  left: auto;
  right: 12px;
  width: min(420px, calc(100% - 24px));
  background: rgba(2, 19, 28, 0.97);
  border-color: rgba(0, 183, 203, 0.35);
}

.ficha-head {
  background: rgba(2, 24, 34, 0.98);
  border-bottom-color: rgba(0, 183, 203, 0.28);
}

.ficha-body {
  background: transparent;
}

.ficha-panel .ficha-sticky-route-bar {
  background: linear-gradient(180deg, rgba(2, 19, 28, 0), rgba(2, 19, 28, 0.92) 36%, rgba(2, 19, 28, 0.98) 100%);
}

.ficha-card,
.ficha-simple-card,
.ficha-admin-panel,
.ficha-completion-card,
.ficha-producto,
.ficha-feria,
.ficha-peer,
.ficha-around-card,
.reservation-widget,
.reservation-status-card,
.reservation-summary {
  background: rgba(4, 31, 44, 0.9) !important;
  border-color: rgba(0, 183, 203, 0.28) !important;
  color: #d5edf2;
  box-shadow: none;
}

.ficha-tab {
  background: rgba(1, 30, 42, 0.86);
  border-color: rgba(0, 183, 203, 0.28);
  color: #a7d7df;
}

.ficha-tab.active {
  background: rgba(0, 118, 130, 0.33);
  border-color: rgba(49, 220, 237, 0.65);
  color: #dff8fc;
}

.ficha-fact {
  background: rgba(2, 24, 34, 0.9);
  border-color: rgba(0, 183, 203, 0.22);
}

.ficha-fact span { color: #89bac3; }
.ficha-fact strong { color: #dff7fb; }

.ficha-row,
.ficha-producto p,
.ficha-feria p {
  color: #9ccad2;
}

.ficha-row strong,
.ficha-producto h5,
.ficha-feria h5,
.ficha-role-head h5 {
  color: #e3fbff;
}

.ficha-collapsible-head {
  background: rgba(1, 27, 39, 0.9);
  border-color: rgba(0, 183, 203, 0.22);
}

.ficha-carousel img {
  border-color: rgba(0, 183, 203, 0.22);
}

.ficha-head .button,
.ficha-cta,
.reservation-actions-row .ficha-cta {
  background: rgba(0, 112, 124, 0.24);
  border-color: rgba(0, 183, 203, 0.36);
  color: #c7eef4;
}

.ficha-cta-primary {
  background: rgba(0, 157, 173, 0.38);
  border-color: rgba(49, 220, 237, 0.65);
  color: #ecfdff;
}

#reservationTypeSelect,
#reservationPartySize,
#reservationNotes,
.reservation-days button,
.reservation-slots button {
  background: rgba(2, 24, 34, 0.92);
  border-color: rgba(0, 183, 203, 0.26);
  color: #d7edf1;
}

/* Chat area with same dark tone */
.space-chat-grid,
.chat-users-panel,
.chat-thread-panel,
.chat-users-list,
.chat-thread,
.chat-composer,
.chat-composer textarea,
.chat-users-list button {
  background: rgba(2, 19, 28, 0.95) !important;
  border-color: rgba(0, 183, 203, 0.3) !important;
  color: #d4edf1 !important;
}

.chat-users-list button small,
.chat-msg-time,
.chat-msg-meta,
.chat-meta {
  color: #8fbcc5 !important;
}

.chat-bubble,
.chat-msg {
  background: rgba(3, 33, 47, 0.9) !important;
  border-color: rgba(0, 183, 203, 0.25) !important;
  color: #d9f1f5 !important;
}

.lang-switch,
.quick-btn,
.accordion-panel,
.accordion-panel .panel-head,
.visitor-query-panel,
.assistant-panel,
.session-strip {
  border-color: rgba(0, 183, 203, 0.3);
  color: #d4edf1;
}

.lang-switch,
.quick-btn {
  background: rgba(2, 19, 28, 0.86);
  color: #c8edf3;
}

.lang-switch select {
  background: rgba(4, 31, 44, 0.92);
  color: #e6fcff;
  border-color: rgba(0, 183, 203, 0.32);
}

.accordion-panel {
  background: rgba(2, 19, 28, 0.9);
}

.accordion-panel .panel-head {
  background: rgba(3, 27, 38, 0.94);
  color: #dff7fb;
}

.visitor-query-panel {
  border-color: rgba(0, 183, 203, 0.34);
  background: linear-gradient(160deg, rgba(5, 24, 35, 0.86), rgba(3, 18, 28, 0.82));
  box-shadow: 0 18px 36px rgba(2, 10, 18, 0.28);
}

.visitor-query-title,
.visitor-query-row span,
.visitor-smart-hint {
  color: #a8d5dd;
}

.visitor-query-panel select,
.visitor-query-panel input[type="search"] {
  border-color: rgba(97, 147, 164, 0.45);
  background: rgba(6, 26, 38, 0.58);
  color: #e5f7fb;
}

.visitor-query-panel select::placeholder,
.visitor-query-panel input[type="search"]::placeholder {
  color: rgba(159, 194, 205, 0.8);
}

@media (max-width: 980px) {
  .ficha-panel {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* Accesibilidad operativa (UX-06) */
.button,
.ficha-cta,
.visitor-panel-toggle,
.visitor-panel-dock,
.ficha-tab {
  min-height: 44px;
}

.quick-route-reset-row .button {
  min-height: 44px;
}

.button:focus-visible,
.ficha-cta:focus-visible,
.ficha-tab:focus-visible,
.item:focus-visible,
.visitor-suggestion:focus-visible,
.results-panel input:focus-visible,
.results-panel select:focus-visible,
.visitor-query-panel input:focus-visible,
.visitor-query-panel select:focus-visible,
.panel-head:focus-visible {
  outline: 3px solid rgba(126, 233, 255, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(2, 28, 38, 0.7);
}

.results-panel .result-info,
.results-panel .visitor-query-row span,
.results-panel .visitor-query-title {
  color: #c6e9f1;
}

.results-panel .visitor-query-panel select,
.results-panel .visitor-query-panel input[type="search"] {
  border-color: rgba(142, 212, 229, 0.62);
  color: #f2feff;
}

/* Garantiza mapa visible en la pagina de mapa */
html[data-page="mapa"] #map {
  display: block !important;
  min-height: 52vh;
}

.sidebar .results-panel,
.results-panel.results-panel-left {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  max-height: none;
  margin-top: 10px;
  order: 6;
  overflow: auto;
  z-index: auto;
}

.map-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.miniweb-only {
  display: none;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-only {
  display: inline-flex;
}

html[data-page="artesano"] body.miniweb-mode .sidebar,
html[data-page="artesano"] body.miniweb-mode #map,
html[data-page="artesano"] body.miniweb-mode .social-rail,
html[data-page="artesano"] body.miniweb-mode .legend,
html[data-page="artesano"] body.miniweb-mode .map-filters-panel,
html[data-page="artesano"] body.miniweb-mode .map-create-route-fab,
html[data-page="artesano"] body.miniweb-mode #resultsPanel {
  display: none !important;
}

html[data-page="artesano"] body.miniweb-mode .app {
  grid-template-columns: 1fr;
}

html[data-page="artesano"] body.miniweb-mode .map-wrap {
  display: block;
  padding: 10px;
}

html[data-page="artesano"] body.miniweb-mode .ficha-panel {
  position: static;
  inset: auto;
  width: 100%;
  max-height: none;
  display: block !important;
  overflow: visible;
  border-radius: 20px;
}

html[data-page="artesano"] body.miniweb-mode .ficha-head {
  position: static;
}

html[data-page="artesano"] body.miniweb-mode #btnBackResults,
html[data-page="artesano"] body.miniweb-mode #btnCloseFicha {
  display: none !important;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-story {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(76, 117, 152, 0.35);
  min-height: 260px;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-hero-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 56vh;
  object-fit: cover;
  display: block;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(2, 10, 17, 0) 0%, rgba(2, 10, 17, 0.88) 72%);
}

html[data-page="artesano"] body.miniweb-mode .miniweb-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3.8vw, 1.95rem);
  color: #f3fbff;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-hero-copy p {
  margin: 3px 0 0;
  color: #c9e6f4;
  font-size: 0.88rem;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-block {
  border: 1px solid rgba(72, 112, 146, 0.35);
  border-radius: 16px;
  background: rgba(5, 20, 31, 0.8);
  padding: 14px;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-block h3 {
  margin: 0 0 8px;
  color: #e7f6ff;
  font-size: 1rem;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-block p {
  margin: 0;
  color: #c3dced;
  line-height: 1.45;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-block p + p {
  margin-top: 5px;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(92, 136, 172, 0.4);
}

html[data-page="artesano"] body.miniweb-mode .miniweb-media-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(92, 136, 172, 0.4);
  background: rgba(6, 16, 25, 0.85);
}

html[data-page="artesano"] body.miniweb-mode .miniweb-media {
  width: 100%;
  min-height: 240px;
  max-height: 56vh;
  object-fit: cover;
  border: 0;
  display: block;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-piece {
  border: 1px solid rgba(82, 123, 158, 0.38);
  border-radius: 12px;
  background: rgba(3, 16, 27, 0.8);
  overflow: hidden;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-piece img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-piece h5 {
  margin: 8px 10px 4px;
  color: #e8f6ff;
  font-size: 0.84rem;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-piece p {
  margin: 0 10px 10px;
  font-size: 0.75rem;
  color: #b9d4e8;
}

html[data-page="artesano"] body.miniweb-mode .miniweb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 980px) {
  html[data-page="mapa"] .visitor-query-panel.visitor-query-floating {
    top: 104px;
    left: 8px;
    right: 8px;
    max-width: none;
  }

  html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-panel-resize {
    display: none;
  }

  .route-highlights-list {
    grid-template-columns: 1fr;
  }
}

.ficha-story-short {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  html[data-page="artesano"] body.miniweb-mode .ficha-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 88vh;
    overflow: auto;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -14px 34px rgba(2, 10, 18, 0.38);
    animation: fadeInUp 0.2s ease-out;
  }

  html[data-page="artesano"] body.miniweb-mode .ficha-head {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  html[data-page="artesano"] body.miniweb-mode .miniweb-actions {
    grid-template-columns: 1fr;
  }
}

/* Layout principal de /mapa: header completo, mapa grande, paneles despues */
html[data-page="mapa"] .app {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  height: auto !important;
  overflow: visible !important;
  margin: 0;
  padding: 0;
}

html[data-page="mapa"] .map-wrap {
  order: 1;
  display: flex !important;
  flex-direction: column;
  position: relative;
  overflow: visible !important;
  padding: 12px;
  gap: 12px;
  min-height: 0;
}

html[data-page="mapa"] .sidebar {
  display: none !important;
  order: 2;
  gap: 12px;
  padding: 0 12px 12px;
  min-height: 0;
  border-right: 0;
  overflow: visible;
  background: transparent;
}

html[data-page="mapa"] .sidebar::before {
  display: none !important;
}

html[data-page="mapa"] .sidebar > .brand,
html[data-page="mapa"] .sidebar > .sidebar-topbar,
html[data-page="mapa"] .sidebar > .assistant-panel,
html[data-page="mapa"] .sidebar > .session-strip {
  display: none !important;
}

html[data-page="mapa"] .map-header {
  position: relative !important;
  inset: auto !important;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(1, 25, 35, 0.84);
  border: 1px solid rgba(0, 183, 203, 0.3);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 16px 34px rgba(2, 10, 18, 0.18);
}

html[data-page="mapa"] .map-header::before {
  display: none !important;
}

html[data-page="mapa"] .map-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

html[data-page="mapa"] .map-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(2, 19, 28, 0.96);
  flex: 0 0 auto;
}

html[data-page="mapa"] .map-header-brand-copy strong {
  display: block;
  color: #eafcff;
  font-size: 1.24rem;
  letter-spacing: 0.08em;
}

html[data-page="mapa"] .map-header-brand-copy p,
html[data-page="mapa"] .map-topline p {
  margin: 3px 0 0;
  color: #99c3ca;
}

html[data-page="mapa"] .map-topline h2 {
  color: #dff7fb;
  font-size: 1rem;
  line-height: 1.1;
}

html[data-page="mapa"] .map-header-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

html[data-page="mapa"] .map-header-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 183, 203, 0.3);
  background: rgba(4, 31, 44, 0.92);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

html[data-page="mapa"] .map-header-user-icon {
  color: #eafcff;
  font-size: 1.15rem;
}

html[data-page="mapa"] .map-header-user-copy strong {
  display: block;
  color: #ecfdff;
  font-size: 0.76rem;
  line-height: 1.1;
}

html[data-page="mapa"] .map-header-user-copy p {
  margin: 2px 0 0;
  color: #a6d4db;
  font-size: 0.67rem;
  line-height: 1.1;
}

html[data-page="mapa"] .map-header-presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

html[data-page="mapa"] .map-header-user.is-away .map-header-presence-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

html[data-page="mapa"] .map-header-user.is-offline .map-header-presence-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

html[data-page="mapa"] .map-header-user.is-active .map-header-user-copy p {
  color: #99f6b2;
}

html[data-page="mapa"] .map-header-user.is-away .map-header-user-copy p {
  color: #fcd34d;
}

html[data-page="mapa"] .map-header-user.is-offline .map-header-user-copy p {
  color: #fca5a5;
}

html[data-page="mapa"] .map-topline {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 183, 203, 0.2);
  background: rgba(2, 19, 28, 0.58);
  backdrop-filter: blur(8px);
}

html[data-page="mapa"] .map-topline h2 {
  margin: 0;
}

html[data-page="mapa"] .map-topline p {
  margin: 0;
  font-size: 0.72rem;
}

html[data-page="mapa"] #mapHero {
  display: none !important;
}

html[data-page="mapa"] #rutaMapSummary {
  position: static !important;
  max-width: none;
  margin-top: 0;
  order: 3;
}

html[data-page="mapa"] #map {
  display: block !important;
  width: 100%;
  height: min(72vh, 820px);
  min-height: 460px;
  margin-top: 0;
  border-radius: 18px;
  border: 1px solid rgba(0, 183, 203, 0.24);
  order: 4;
}

html[data-page="mapa"] .social-rail,
html[data-page="mapa"] .legend,
html[data-page="mapa"] .map-filters-panel,
html[data-page="mapa"] .map-create-route-fab,
html[data-page="mapa"] .results-panel {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

html[data-page="mapa"] .results-panel {
  max-height: none;
  order: 5;
}

html[data-page="mapa"] .social-rail {
  order: 6;
}

html[data-page="mapa"] .legend {
  order: 7;
}

html[data-page="mapa"] .map-filters-panel {
  order: 8;
}

html[data-page="mapa"] .map-create-route-fab {
  order: 9;
  width: fit-content;
}

html[data-page="mapa"] .role-mini-wrap {
  display: none !important;
}

/* Modo embed para home: mostrar solo el mapa operativo con artesanos. */
html[data-page="mapa"].map-embed-mode,
html[data-page="mapa"].map-embed-mode body {
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

html[data-page="mapa"].map-embed-mode #mapApp {
  display: block !important;
  height: 100vh !important;
  position: relative !important;
  overflow: hidden !important;
}

html[data-page="mapa"].map-embed-mode .app,
html[data-page="mapa"].map-embed-mode .map-wrap {
  min-height: 100vh !important;
  height: 100vh !important;
}

html[data-page="mapa"].map-embed-mode .map-wrap {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  gap: 0 !important;
}

html[data-page="mapa"].map-embed-mode .map-header,
html[data-page="mapa"].map-embed-mode .map-topline,
html[data-page="mapa"].map-embed-mode .sidebar,
html[data-page="mapa"].map-embed-mode #rutaMapSummary,
html[data-page="mapa"].map-embed-mode .social-rail,
html[data-page="mapa"].map-embed-mode .legend,
html[data-page="mapa"].map-embed-mode .map-filters-panel,
html[data-page="mapa"].map-embed-mode .map-create-route-fab,
html[data-page="mapa"].map-embed-mode .results-panel {
  display: none !important;
}

html[data-page="mapa"].map-embed-mode .map-wrap > *:not(#map) {
  display: none !important;
}

html[data-page="mapa"].map-embed-mode #map {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

@media (max-width: 980px) {
  html[data-page="mapa"] .map-wrap {
    padding: 8px;
  }

  html[data-page="mapa"] .sidebar {
    padding: 0 8px 8px;
  }

  html[data-page="mapa"] .map-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  html[data-page="mapa"] .map-header-meta {
    width: 100%;
    justify-items: stretch;
  }

  html[data-page="mapa"] .map-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  html[data-page="mapa"] .map-header-user,
  html[data-page="mapa"] .map-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  html[data-page="mapa"] #map {
    min-height: 380px;
    height: 62vh;
  }
}

/* Prioridad alta en movil: primero mapa, despues paneles. */
@media (max-width: 980px) {
  html[data-page="mapa"] .app {
    display: flex !important;
    flex-direction: column !important;
  }

  html[data-page="mapa"] .map-wrap {
    order: 0 !important;
  }

  html[data-page="mapa"] .sidebar {
    order: 10 !important;
  }

  html[data-page="mapa"] #map {
    order: 0 !important;
    margin-top: 0 !important;
  }
}

/* Durante bootstrap del mapa, priorizar vista de mapa y ocultar panel lateral. */
html[data-page="mapa"] body.map-bootstrap-loading .sidebar {
  display: none !important;
}

/* Ocultar barras solicitadas: Cuenta, Ruta y Results */
html[data-page="mapa"] #panelRoute,
html[data-page="mapa"] #panelSpace,
html[data-page="mapa"] #panelExplore,
html[data-page="mapa"] #resultsPanel,
html[data-page="mapa"] .quick-nav [data-open="panelRoute"],
html[data-page="mapa"] .quick-nav [data-open="panelSpace"],
html[data-page="mapa"] #btnCreateRouteFloat,
html[data-page="mapa"] #btnJumpRoute {
  display: none !important;
}

/* Hub admin: mostrar panel de cuenta/moderación en limpio. */
html[data-page="mapa"].admin-hub #panelSpace {
  display: block !important;
}

html[data-page="mapa"].admin-hub #panelExplore,
html[data-page="mapa"].admin-hub #panelRoute,
html[data-page="mapa"].admin-hub #resultsPanel {
  display: none !important;
}

/* Admin total: acceso a todos los paneles y controles en cualquier vista. */
html[data-page="mapa"].admin-full-access #panelRoute,
html[data-page="mapa"].admin-full-access #panelSpace,
html[data-page="mapa"].admin-full-access #panelExplore,
html[data-page="mapa"].admin-full-access #resultsPanel {
  display: block !important;
}

html[data-page="mapa"].admin-full-access .quick-nav [data-open="panelRoute"],
html[data-page="mapa"].admin-full-access .quick-nav [data-open="panelSpace"] {
  display: inline-flex !important;
}

html[data-page="mapa"].admin-full-access #btnCreateRouteFloat,
html[data-page="mapa"].admin-full-access #btnJumpRoute {
  display: inline-flex !important;
}

/* Hotfix movil: layout sin solapes (mapa utilizable + paneles en flujo). */
@media (max-width: 980px) {
  html[data-page="mapa"] .app {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }

  html[data-page="mapa"] .map-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 8px !important;
    overflow: visible !important;
  }

  html[data-page="mapa"] #map {
    order: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    height: clamp(340px, 56dvh, 640px) !important;
    min-height: 340px !important;
    margin: 0 !important;
  }

  html[data-page="mapa"] .visitor-query-panel.visitor-query-floating,
  html[data-page="mapa"] .visitor-query-panel.visitor-query-panel-mobile-top {
    order: 2 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 2 !important;
    overflow: visible !important;
    resize: none !important;
    transform: none !important;
  }

  html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-results-slot .list {
    max-height: 36dvh !important;
    overflow: auto !important;
  }

  html[data-page="mapa"] .social-rail,
  html[data-page="mapa"] .map-filters-panel,
  html[data-page="mapa"] .map-create-route-fab,
  html[data-page="mapa"] .legend {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 2 !important;
  }

  html[data-page="mapa"] .social-rail {
    order: 3 !important;
  }

  html[data-page="mapa"] .ficha-panel {
    z-index: 1000 !important;
  }
}

/* Hotfix movil ficha: integrarla en el flujo y despejar el resto del UI. */
@media (max-width: 980px) {
  html[data-page="mapa"] .ficha-panel {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    order: 4 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    z-index: 1600 !important;
    border-radius: 16px !important;
    border-left: 1px solid rgba(31, 41, 55, 0.08) !important;
    border-right: 1px solid rgba(31, 41, 55, 0.08) !important;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08) !important;
    box-shadow: 0 16px 34px rgba(2, 10, 18, 0.18) !important;
  }

  html[data-page="mapa"] .ficha-panel.open {
    display: block !important;
    scroll-margin-top: 12px !important;
  }

  html[data-page="mapa"] .ficha-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
  }

  html[data-page="mapa"] .ficha-head-actions #btnToggleFichaDetails {
    display: none !important;
  }

  html[data-page="mapa"] body.ficha-mobile-open .visitor-query-panel,
  html[data-page="mapa"] body.ficha-mobile-open .results-panel,
  html[data-page="mapa"] body.ficha-mobile-open .social-rail,
  html[data-page="mapa"] body.ficha-mobile-open .legend,
  html[data-page="mapa"] body.ficha-mobile-open .map-filters-panel,
  html[data-page="mapa"] body.ficha-mobile-open .map-create-route-fab {
    display: none !important;
  }

  html[data-page="mapa"] body.ficha-mobile-open .ficha-panel,
  html[data-page="mapa"] body.ficha-mobile-open .ficha-panel * {
    touch-action: pan-y !important;
  }

  /* Header movil compacto: mas alto util para mapa y ficha. */
  html[data-page="mapa"] .map-header {
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  html[data-page="mapa"] .map-header h1,
  html[data-page="mapa"] .map-header h2 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  html[data-page="mapa"] .map-topline p,
  html[data-page="mapa"] .map-header-subtitle,
  html[data-page="mapa"] #mapHeaderSubtitle {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  /* Ficha compacta en móvil por defecto */
  html[data-page="mapa"] .ficha-body {
    padding: 10px !important;
    gap: 8px !important;
    padding-bottom: 24px !important;
  }

  html[data-page="mapa"] .ficha-card {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html[data-page="mapa"] .ficha-head {
    padding: 10px 12px !important;
  }

  html[data-page="mapa"] .ficha-head h3 {
    font-size: 0.9rem !important;
  }

  html[data-page="mapa"] .ficha-row {
    font-size: 0.74rem !important;
    line-height: 1.28 !important;
  }

  html[data-page="mapa"] .ficha-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html[data-page="mapa"] .ficha-emotional-head {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html[data-page="mapa"] .ficha-emotional-photo .ficha-main-img,
  html[data-page="mapa"] .ficha-emotional-photo .ficha-main-placeholder {
    height: 84px !important;
  }

  html[data-page="mapa"] .ficha-panel:not(.show-all) .ficha-secondary-block,
  html[data-page="mapa"] .ficha-panel:not(.show-all) .ficha-gallery-card,
  html[data-page="mapa"] .ficha-panel:not(.show-all) .ficha-admin-panel {
    display: none !important;
  }

  html[data-page="mapa"] .ficha-mobile-summary {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 12px;
    background: #fff;
  }

  html[data-page="mapa"] .ficha-mobile-summary-copy {
    margin: 0;
    color: #4b5563;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  html[data-page="mapa"] .ficha-mobile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  html[data-page="mapa"] .ficha-mobile-summary-grid div {
    border: 1px solid #eee5db;
    border-radius: 10px;
    padding: 6px;
    background: #fffaf6;
  }

  html[data-page="mapa"] .ficha-mobile-summary-grid span {
    display: block;
    font-size: 0.62rem;
    color: #6b7280;
  }

  html[data-page="mapa"] .ficha-mobile-summary-grid strong {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #111827;
  }

  html[data-page="mapa"] .ficha-mobile-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  html[data-page="mapa"] .ficha-mobile-actions .ficha-cta {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    text-align: center;
  }

  html[data-page="mapa"] .ficha-mobile-more-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(201, 107, 44, 0.22);
    background: linear-gradient(180deg, #fffaf4, #f7eee4);
    color: #7c3f14;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  html[data-page="mapa"] .ficha-mobile-more-btn::after {
    content: " ↓";
  }

  html[data-page="mapa"] .ficha-panel.show-all .ficha-mobile-more-btn::after {
    content: " ↑";
  }
}

/* Leyenda flotante (cristal) y resumen de ruta bajo destacados */
.route-config-summary {
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 252, 248, 0.95);
}

.route-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.route-config-head strong {
  color: #0f172a;
  font-size: 0.78rem;
}

.route-config-head span {
  font-size: 0.66rem;
  color: #475569;
}

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

.route-config-grid p {
  margin: 0;
  border: 1px solid #e9e3d8;
  border-radius: 10px;
  padding: 6px;
  background: #fffaf5;
}

.route-config-grid p strong {
  display: block;
  font-size: 0.62rem;
  color: #6b7280;
}

.route-config-grid p span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: #0f172a;
}

.legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.legend-dock-btn {
  min-height: 28px;
  min-width: 28px;
  padding: 0 8px;
  font-size: 0.8rem;
}

@media (min-width: 981px) {
  html[data-page="mapa"] #legendCard.legend-floating {
    position: absolute !important;
    top: 156px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    width: min(280px, calc(100% - 24px)) !important;
    max-height: min(62vh, 560px) !important;
    overflow: auto !important;
    z-index: 469 !important;
    border: 1px solid rgba(160, 222, 232, 0.34) !important;
    background: linear-gradient(155deg, rgba(7, 29, 42, 0.52), rgba(7, 24, 35, 0.48)) !important;
    backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 14px 28px rgba(2, 10, 18, 0.3);
    border-radius: 14px !important;
    padding: 10px !important;
  }

  html[data-page="mapa"] #legendCard.legend-floating .legend-head {
    cursor: move;
  }

  html[data-page="mapa"] #legendCard.legend-floating strong,
  html[data-page="mapa"] #legendCard.legend-floating .legend-item,
  html[data-page="mapa"] #legendCard.legend-floating .legend-hover-copy p,
  html[data-page="mapa"] #legendCard.legend-floating .legend-hover-copy strong {
    color: #e8f4ff;
  }
}

/* Restaurar panel flotante del buscador inteligente en anchos intermedios. */
@media (min-width: 821px) and (max-width: 980px) {
  html[data-page="mapa"] .visitor-query-panel.visitor-query-floating {
    position: absolute !important;
    top: 136px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    width: min(920px, calc(100% - 24px)) !important;
    max-width: min(920px, calc(100% - 24px)) !important;
    margin: 0 !important;
    z-index: 468 !important;
    overflow: hidden !important;
    resize: none !important;
    transform: none !important;
  }

  html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-panel-resize {
    display: inline-flex !important;
  }

  html[data-page="mapa"] .visitor-query-panel.visitor-query-floating .visitor-query-head {
    cursor: grab !important;
  }
}

/* Home pública narrativa en "/": reutiliza rutas existentes y mantiene auth/map separados. */
html[data-page="app"] .home-landing {
  min-height: 100vh;
  background: #0b1118;
  color: #dcecf7;
}

html[data-page="app"] .home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(9, 14, 20, 0.82), rgba(9, 14, 20, 0.42));
  backdrop-filter: blur(8px);
  overflow: visible;
}

html[data-page="app"] .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #edf5fb;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
}

html[data-page="app"] .home-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 auto;
}

html[data-page="app"] .home-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

html[data-page="app"] .home-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c0d2e1;
  font-size: 0.78rem;
}

html[data-page="app"] .home-lang select {
  border: 1px solid rgba(146, 175, 196, 0.4);
  border-radius: 999px;
  background: rgba(18, 33, 46, 0.7);
  color: #e9f4ff;
  padding: 4px 10px;
}

html[data-page="app"] .home-access-link {
  color: #e9f4ff;
  text-decoration: none;
  font-size: 0.86rem;
  padding: 8px 14px;
  border: 1px solid rgba(167, 196, 214, 0.45);
  border-radius: 999px;
}

html[data-page="app"] .home-profile-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(223, 231, 238, 0.92);
  background: linear-gradient(180deg, rgba(250, 247, 242, 0.98), rgba(228, 222, 214, 0.96));
  color: #1b140f;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

html[data-page="app"] .home-profile-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-page="app"] .home-profile-button img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: contain;
  flex: 0 0 auto;
}

html[data-page="app"] .home-profile-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
  text-align: left;
}

html[data-page="app"] .home-profile-copy strong {
  display: none;
}

html[data-page="app"] .home-profile-copy small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1b140f;
}

html[data-page="app"] .home-profile-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 28px;
  width: min(320px, calc(100vw - 24px));
  max-height: min(520px, calc(100dvh - 96px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(232, 213, 184, 0.12);
  background: rgba(12, 12, 12, 0.98);
  color: #f7f0e6;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  z-index: 40;
}

html[data-page="app"] .home-profile-menu-head {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(232, 213, 184, 0.1);
}

html[data-page="app"] .home-profile-menu-kicker {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(212, 160, 23, 0.92);
}

html[data-page="app"] .home-profile-menu-head strong {
  font-size: 0.98rem;
}

html[data-page="app"] .home-profile-menu-head p {
  margin: 0;
  color: rgba(232, 213, 184, 0.76);
  font-size: 0.82rem;
  line-height: 1.45;
}

html[data-page="app"] .home-profile-menu-actions {
  display: grid;
  gap: 8px;
}

html[data-page="app"] .home-profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(232, 213, 184, 0.08);
  background: rgba(24, 24, 24, 0.96);
  color: #f5ede3;
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

html[data-page="app"] .home-profile-menu-item:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 90, 60, 0.38);
  background: rgba(38, 28, 24, 0.98);
}

html[data-page="app"] .home-profile-menu-item--ghost {
  background: transparent;
  border-style: dashed;
  color: rgba(232, 213, 184, 0.82);
}

html[data-page="app"] .hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: block;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

html[data-page="app"] .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}

html[data-page="app"] .hero-fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

html[data-page="app"] .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

html[data-page="app"] .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 24px;
  transform: translateY(clamp(24px, 5vh, 56px));
}

html[data-page="app"] .hero-brandline {
  margin: 0 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 228, 239, 0.24);
  background: rgba(7, 18, 27, 0.5);
  color: #d7f8ff;
  font-size: clamp(0.88rem, 1.55vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-page="app"] .hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

html[data-page="app"] .hero h2 {
  margin: 0 0 14px;
  font-size: clamp(1.12rem, 2.35vw, 1.82rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

html[data-page="app"] .hero p {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
}

html[data-page="app"] .hero-button {
  margin-top: 24px;
  padding: 14px 28px;
  background: #ffffff;
  color: #101820;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
}

html[data-page="app"] .hero-button:hover {
  background: #f4f4f4;
}

html[data-page="app"] .home-search {
  width: min(880px, 100%);
  margin-top: 20px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(198, 230, 239, 0.18);
  background: linear-gradient(180deg, rgba(10, 18, 25, 0.64), rgba(10, 18, 25, 0.34));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px) saturate(120%);
  text-align: left;
}

html[data-page="app"] .home-view-switch {
  margin-top: 16px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

html[data-page="app"] .home-view-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 228, 239, 0.2);
  background: rgba(7, 16, 23, 0.45);
  color: #e8f8ff;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-page="app"] .home-view-button.is-active {
  background: linear-gradient(180deg, #d7f8ff, #8be4ef);
  color: #07212a;
  border-color: rgba(139, 228, 239, 0.5);
}

html[data-page="app"] .home-landing [data-home-view-block] {
  display: none;
}

html[data-page="app"] .home-landing[data-home-view="mapa"] [data-home-view-block="mapa"],
html[data-page="app"] .home-landing[data-home-view="mosaico"] [data-home-view-block="mosaico"],
html[data-page="app"] .home-landing[data-home-view="honeycomb"] [data-home-view-block="honeycomb"] {
  display: block;
}

html[data-page="app"] .home-landing[data-home-view="mapa"] .home-search-chips,
html[data-page="app"] .home-landing[data-home-view="mapa"] .home-search-hint {
  display: none;
}

html[data-page="app"] .home-search-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8be4ef;
  font-weight: 600;
}

html[data-page="app"] .home-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

html[data-page="app"] .home-search input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(209, 225, 232, 0.22);
  background: rgba(4, 12, 18, 0.78);
  color: #f5fbff;
  padding: 0 16px;
  font-size: 0.98rem;
}

html[data-page="app"] .home-search input[type="search"]::placeholder {
  color: rgba(199, 223, 231, 0.72);
}

html[data-page="app"] .home-search input[type="search"]:focus {
  outline: none;
  border-color: rgba(64, 202, 236, 0.88);
  box-shadow: 0 0 0 3px rgba(64, 202, 236, 0.18);
}

html[data-page="app"] .home-search-submit {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border-color: rgba(139, 228, 239, 0.35);
  background: linear-gradient(180deg, #d7f8ff, #8be4ef);
  color: #04212a;
  font-weight: 700;
}

html[data-page="app"] .home-search-submit:hover {
  filter: brightness(1.02);
}

html[data-page="app"] .home-search-chips {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
}

html[data-page="app"] .home-search-chip {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 112px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(198, 230, 239, 0.14);
  background: linear-gradient(180deg, rgba(10, 18, 25, 0.48), rgba(5, 10, 15, 0.76));
  color: #ecf8fb;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  text-align: left;
  align-items: flex-end;
  justify-content: flex-start;
  isolation: isolate;
}

html[data-page="app"] .home-search-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 10, 0.3) 45%, rgba(2, 6, 10, 0.82) 100%);
  z-index: 0;
}

html[data-page="app"] .home-search-chip-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.02);
}

html[data-page="app"] .home-search-chip-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: 100%;
}

html[data-page="app"] .home-search-chip-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8be4ef;
  font-weight: 700;
}

html[data-page="app"] .home-search-chip strong {
  font-size: 1rem;
  line-height: 1.08;
}

html[data-page="app"] .home-search-chip-detail {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(232, 245, 250, 0.88);
}

html[data-page="app"] .home-search-chip-meta {
  font-size: 0.72rem;
  color: rgba(168, 211, 219, 0.92);
}

html[data-page="app"] .home-search-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 228, 239, 0.35);
  background: rgba(8, 24, 31, 0.5);
}

html[data-page="app"] .home-search-chip--hero {
  grid-column: span 12;
  min-height: 220px;
}

html[data-page="app"] .home-search-chip--wide {
  grid-column: span 6;
  min-height: 172px;
}

html[data-page="app"] .home-search-chip--medium {
  grid-column: span 4;
  min-height: 150px;
}

html[data-page="app"] .home-search-chip--compact {
  grid-column: span 3;
  min-height: 128px;
}

html[data-page="app"] .home-search-hint {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: rgba(232, 245, 250, 0.78);
}

html[data-page="app"] .home-hero-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

html[data-page="app"] .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

html[data-page="app"] .home-btn-primary {
  background: linear-gradient(180deg, #b55a3c, #8e452e);
  color: #fff6ef;
  border-color: rgba(181, 90, 60, 0.6);
}

html[data-page="app"] .home-btn-ghost {
  color: #e8d5b8;
  border-color: rgba(232, 213, 184, 0.24);
  background: rgba(20, 20, 20, 0.4);
}

html[data-page="app"] .home-landing main {
  max-width: none;
  margin: 0;
  padding: 0;
}

html[data-page="app"] .home-content-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 40px;
}

html[data-page="app"] .home-content-shell section + section {
  margin-top: 32px;
}

html[data-page="app"] .home-manifesto {
  text-align: center;
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  line-height: 1.35;
  color: #e9f4ff;
}

html[data-page="app"] .home-manifesto p {
  margin: 0;
}

html[data-page="app"] .home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

html[data-page="app"] .home-section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  color: #e9f4ff;
}

html[data-page="app"] .home-link {
  color: #e9f4ff;
  text-decoration: none;
  font-size: 0.9rem;
}

html[data-page="app"] .home-map-preview-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 14px;
}

html[data-page="app"] .home-map-preview-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 183, 203, 0.26);
  background: transparent;
}

html[data-page="app"] .home-map-preview-frame {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 360px);
  min-height: 220px;
  aspect-ratio: 16 / 10;
  border: 0;
}


html[data-page="app"] .home-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

html[data-page="app"] .home-metrics article {
  border-radius: 14px;
  border: 1px solid rgba(0, 183, 203, 0.22);
  background: transparent;
  padding: 14px;
}

html[data-page="app"] .home-metrics strong {
  display: block;
  font-size: 1.5rem;
  color: #e9f4ff;
}

html[data-page="app"] .home-metrics span {
  color: #a8d3db;
  font-size: 0.82rem;
}

html[data-page="app"] .home-discipline-grid,
html[data-page="app"] .home-featured-grid,
html[data-page="app"] .home-route-grid,
html[data-page="app"] .home-steps {
  display: grid;
  gap: 12px;
}

html[data-page="app"] .home-discipline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-page="app"] .home-discipline-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(0, 183, 203, 0.2);
  background: transparent;
  color: #e9f4ff;
  padding: 12px 14px;
}

html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 10px;
}

html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-card {
  grid-column: span 2;
  position: relative;
  min-height: 150px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(139, 228, 239, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 228, 239, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(6, 14, 20, 0.52), rgba(4, 10, 16, 0.82));
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  flex-direction: column;
  justify-content: flex-end;
}

html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-card:nth-child(3n + 2) {
  transform: translateY(16px);
}

html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-card:nth-child(3n + 3) {
  transform: translateY(-4px);
}

html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-card strong {
  display: block;
  font-size: 1rem;
}

html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(168, 211, 219, 0.9);
}

html[data-page="app"] .home-featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[data-page="app"] .home-featured-card {
  border-radius: 14px;
  border: 1px solid rgba(0, 183, 203, 0.24);
  background: transparent;
  overflow: hidden;
}

html[data-page="app"] .home-featured-photo {
  min-height: 150px;
  background: rgba(2, 19, 28, 0.64);
}

html[data-page="app"] .home-featured-copy {
  padding: 12px;
}

html[data-page="app"] .home-featured-copy h3 {
  margin: 0;
  font-size: 1rem;
  color: #e8fbff;
}

html[data-page="app"] .home-featured-copy p {
  margin: 6px 0 10px;
  font-size: 0.84rem;
  color: #a8d3db;
}

html[data-page="app"] .home-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[data-page="app"] .home-route-grid a {
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(0, 183, 203, 0.2);
  background: transparent;
  color: #e9f4ff;
  padding: 12px;
}

html[data-page="app"] .home-route-cta {
  margin-top: 12px;
}

html[data-page="app"] .home-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

html[data-page="app"] .home-steps li {
  border-radius: 14px;
  border: 1px solid rgba(0, 183, 203, 0.2);
  background: transparent;
  padding: 14px;
}

html[data-page="app"] .home-steps strong {
  display: block;
  color: #e8fbff;
}

html[data-page="app"] .home-steps span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  color: #a8d3db;
}

html[data-page="app"] .home-final-cta {
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(0, 183, 203, 0.3);
  background: transparent;
  color: #f1f7fc;
  padding: 22px 18px;
}

html[data-page="app"] .home-final-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
}

html[data-page="app"] .home-final-cta p {
  margin: 0 0 16px;
  color: #c8d9e6;
}

html[data-page="app"] .home-landing {
  background: #0f0f0f;
  color: #f3efe9;
  --home-inline-pad: clamp(12px, 2.1vw, 22px);
  --home-sidebar-width: 92px;
  --home-frame-max: 1480px;
  overflow-x: clip;
}

html[data-page="app"] .home-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px var(--home-inline-pad);
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(15, 15, 15, 0.72));
  border-bottom: 1px solid rgba(232, 213, 184, 0.08);
  backdrop-filter: blur(16px);
}

html[data-page="app"] .home-top-search {
  flex: 1 1 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 16px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 184, 0.12);
  background: rgba(20, 20, 20, 0.88);
  color: #efe6d8;
}

html[data-page="app"] .home-top-search .material-symbols-outlined {
  color: #d4a017;
  font-size: 1.1rem;
}

html[data-page="app"] .home-top-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #faf6f0;
  width: 100%;
  font: inherit;
  min-width: 0;
}

html[data-page="app"] .home-top-search input::placeholder {
  color: rgba(232, 213, 184, 0.6);
}

html[data-page="app"] .home-icon-button,
html[data-page="app"] .home-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 184, 0.12);
  background: rgba(20, 20, 20, 0.88);
  color: #efe6d8;
  flex: 0 0 auto;
}

html[data-page="app"] .home-avatar-link img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: contain;
}

html[data-page="app"] .home-vivo-shell {
  display: none;
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 24px var(--home-inline-pad) 56px calc(var(--home-sidebar-width) + var(--home-inline-pad));
  overflow-x: clip;
}

html[data-page="app"] .home-landing[data-home-view="flujo"] .home-vivo-shell {
  display: block;
}

html[data-page="app"] .home-landing[data-home-view="flujo"] .hero,
html[data-page="app"] .home-landing[data-home-view="flujo"] .home-content-shell {
  display: none;
}

html[data-page="app"] .home-sidebar {
  position: fixed;
  top: 74px;
  left: 0;
  bottom: 0;
  width: var(--home-sidebar-width);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(12, 12, 12, 0.92);
  border-right: 1px solid rgba(232, 213, 184, 0.08);
  backdrop-filter: blur(18px);
  z-index: 1190;
}

html[data-page="app"] .home-sidebar-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 18px;
  color: #efe8df;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

html[data-page="app"] .home-sidebar-item span:last-child {
  font-size: 0.63rem;
  line-height: 1.2;
  text-align: center;
  color: rgba(232, 213, 184, 0.84);
}

html[data-page="app"] .home-sidebar-item .material-symbols-outlined {
  font-size: 1.45rem;
  color: #d4a017;
}

html[data-page="app"] .home-sidebar-item.is-active,
html[data-page="app"] .home-sidebar-item:hover {
  background: linear-gradient(180deg, rgba(181, 90, 60, 0.16), rgba(20, 20, 20, 0.96));
  border-color: rgba(181, 90, 60, 0.36);
  transform: translateX(2px);
}

html[data-page="app"] .home-vivo-main {
  display: grid;
  gap: 30px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-width: 0;
}

html[data-page="app"] .home-vivo-main > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html[data-page="app"] #homeRowMap {
  order: 1;
}

html[data-page="app"] #homeRowDisciplines {
  order: 2;
}

html[data-page="app"] #homeRowSaved {
  order: 3;
}

html[data-page="app"] #homeRowContinue {
  order: 4;
}

html[data-page="app"] #homeRowRecommended {
  order: 5;
}

html[data-page="app"] #homeRowCommunity {
  order: 6;
}

html[data-page="app"] #homeRowRisk {
  order: 7;
}

html[data-page="app"] #homeRowFeatured {
  order: 8;
}

@media (min-width: 981px) {
  html[data-page="app"] .home-landing[data-home-view="flujo"] .home-header {
    padding-left: calc(var(--home-sidebar-width) + var(--home-inline-pad));
    padding-right: var(--home-inline-pad);
  }
}

html[data-page="app"] .home-vivo-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  min-height: 420px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 28px;
  border: 1px solid rgba(232, 213, 184, 0.08);
  background:
    radial-gradient(circle at 22% 18%, rgba(181, 90, 60, 0.22), transparent 42%),
    radial-gradient(circle at 82% 24%, rgba(212, 160, 23, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(22, 18, 16, 0.98), rgba(10, 10, 10, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
  scroll-margin-top: 108px;
}

html[data-page="app"] .home-vivo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.1), rgba(15, 15, 15, 0.84)),
    radial-gradient(circle at 68% 26%, rgba(232, 213, 184, 0.08), transparent 24%);
  pointer-events: none;
}

html[data-page="app"] .home-vivo-hero-copy,
html[data-page="app"] .home-vivo-hero-panel {
  position: relative;
  z-index: 1;
}

html[data-page="app"] .home-vivo-kicker {
  margin: 0 0 10px;
  color: #e8d5b8;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

html[data-page="app"] .home-vivo-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: #fff8f0;
}

html[data-page="app"] .home-vivo-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  color: rgba(243, 239, 233, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.5;
}

html[data-page="app"] .home-vivo-mission {
  margin: 12px 0 0;
  max-width: 58ch;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(232, 213, 184, 0.14);
  background: rgba(20, 20, 20, 0.62);
  color: #f5ead9;
  font-size: 0.96rem;
  line-height: 1.5;
}

html[data-page="app"] .home-vivo-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html[data-page="app"] .home-vivo-switch {
  margin-top: 18px;
  justify-content: flex-start;
}

html[data-page="app"] .home-vivo-switch .home-view-button {
  background: rgba(20, 20, 20, 0.76);
  border-color: rgba(232, 213, 184, 0.14);
  color: #efe6d8;
}

html[data-page="app"] .home-vivo-switch .home-view-button.is-active {
  background: linear-gradient(180deg, #b55a3c, #8e452e);
  border-color: rgba(181, 90, 60, 0.62);
  color: #fff7ef;
}

html[data-page="app"] .home-vivo-hero-panel {
  align-self: end;
  justify-self: end;
  width: min(100%, 320px);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(232, 213, 184, 0.1);
  background: rgba(20, 20, 20, 0.86);
  color: #f4eee6;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

html[data-page="app"] .home-vivo-hero-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(181, 90, 60, 0.16);
  border: 1px solid rgba(181, 90, 60, 0.28);
  color: #f0c4b4;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-page="app"] .home-vivo-hero-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 1.1rem;
}

html[data-page="app"] .home-vivo-hero-panel p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: rgba(232, 213, 184, 0.82);
}

html[data-page="app"] .home-vivo-row {
  scroll-margin-top: 108px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

html[data-page="app"] .home-saved-stack {
  display: grid;
  gap: 18px;
}

html[data-page="app"] .home-saved-block {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(232, 213, 184, 0.12);
  background: rgba(20, 20, 20, 0.56);
}

html[data-page="app"] .home-section-head.home-section-head-sub {
  margin-bottom: 12px;
  align-items: center;
}

html[data-page="app"] .home-section-head.home-section-head-sub h3 {
  margin: 0;
  font-size: 1rem;
  color: #f6efe4;
}

html[data-page="app"] .home-vivo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 160, 23, 0.72) rgba(255, 255, 255, 0.08);
}

html[data-page="app"] .home-vivo-track::-webkit-scrollbar {
  height: 8px;
}

html[data-page="app"] .home-vivo-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

html[data-page="app"] .home-vivo-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(181, 90, 60, 0.95), rgba(212, 160, 23, 0.95));
  border-radius: 999px;
}

html[data-page="app"] .home-vivo-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

html[data-page="app"] .home-vivo-card:hover {
  transform: translateY(-3px) scale(1.02);
}

html[data-page="app"] .home-vivo-card-media {
  position: relative;
  min-height: 248px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 160, 23, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(38, 28, 22, 0.96), rgba(10, 10, 10, 0.98));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(232, 213, 184, 0.08);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

html[data-page="app"] .home-vivo-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 8%, rgba(15, 15, 15, 0.18) 42%, rgba(15, 15, 15, 0.9) 100%);
}

html[data-page="app"] .home-vivo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff7ec;
  background: rgba(181, 90, 60, 0.8);
  border: 1px solid rgba(181, 90, 60, 0.42);
  backdrop-filter: blur(8px);
}

html[data-page="app"] .home-vivo-badge--gold {
  background: rgba(212, 160, 23, 0.84);
  border-color: rgba(212, 160, 23, 0.42);
}

html[data-page="app"] .home-vivo-badge--sand {
  background: rgba(232, 213, 184, 0.26);
  border-color: rgba(232, 213, 184, 0.28);
  color: #fff7ea;
}

html[data-page="app"] .home-vivo-badge--olive {
  background: rgba(85, 107, 74, 0.84);
  border-color: rgba(85, 107, 74, 0.42);
}

html[data-page="app"] .home-vivo-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(232, 213, 184, 0.14);
  overflow: hidden;
}

html[data-page="app"] .home-vivo-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b55a3c, #d4a017);
}

html[data-page="app"] .home-vivo-card-copy {
  display: grid;
  gap: 3px;
  padding: 0 4px;
}

html[data-page="app"] .home-vivo-card-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4a017;
}

html[data-page="app"] .home-vivo-card-copy strong {
  font-size: 1rem;
  line-height: 1.1;
  color: #fbf5ec;
}

html[data-page="app"] .home-vivo-card-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(232, 213, 184, 0.9);
}

html[data-page="app"] .home-vivo-card-copy span {
  font-size: 0.74rem;
  color: rgba(232, 213, 184, 0.74);
}

html[data-page="app"] .home-vivo-card-copy small {
  font-size: 0.68rem;
  color: rgba(212, 160, 23, 0.92);
}

html[data-page="app"] .home-vivo-shell .home-section-head h2 {
  color: #f8f1e7;
}

html[data-page="app"] .home-vivo-shell .home-link {
  color: #e8d5b8;
}

html[data-page="app"] .home-vivo-shell .home-link:hover {
  color: #d4a017;
}

html[data-page="app"] .home-vivo-shell .home-map-preview-card {
  border-color: rgba(232, 213, 184, 0.14);
  background: rgba(15, 15, 15, 0.6);
}

html[data-page="app"] .home-vivo-shell .home-metrics article {
  border-color: rgba(232, 213, 184, 0.12);
  background: rgba(20, 20, 20, 0.7);
}

html[data-page="app"] .home-vivo-shell .home-metrics span {
  color: rgba(232, 213, 184, 0.84);
}

html[data-page="app"] .home-vivo-shell .home-discipline-card {
  border-color: rgba(232, 213, 184, 0.12);
  background: rgba(20, 20, 20, 0.66);
}

@media (max-width: 980px) {
  html[data-page="app"] .home-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  html[data-page="app"] .home-top-search {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
  }

  html[data-page="app"] .home-header-actions {
    order: 2;
    margin-left: auto;
  }

  html[data-page="app"] .home-profile-menu {
    right: 14px;
    max-height: min(500px, calc(100dvh - 88px));
  }

  html[data-page="app"] .home-vivo-shell {
    padding: 18px var(--home-inline-pad) 36px;
  }

  html[data-page="app"] .home-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 0 12px;
    margin-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(232, 213, 184, 0.08);
  }

  html[data-page="app"] .home-sidebar-item {
    min-width: 96px;
  }

  html[data-page="app"] .home-vivo-hero {
    grid-template-columns: 1fr;
    min-height: 340px;
  }

  html[data-page="app"] .home-vivo-hero-panel {
    width: 100%;
    justify-self: stretch;
  }

  html[data-page="app"] .home-vivo-track {
    grid-auto-columns: minmax(180px, 220px);
  }

  html[data-page="app"] .home-map-preview-grid,
  html[data-page="app"] .home-discipline-grid,
  html[data-page="app"] .home-featured-grid,
  html[data-page="app"] .home-route-grid,
  html[data-page="app"] .home-steps {
    grid-template-columns: 1fr 1fr;
  }

  html[data-page="app"] .home-map-preview-frame {
    height: clamp(240px, 48vw, 360px);
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 700px) {
  html[data-page="app"] .home-header {
    padding: 12px 14px;
    flex-wrap: wrap;
  }

  html[data-page="app"] .home-header-actions {
    gap: 8px;
    margin-left: 0;
    min-width: 0;
    flex-wrap: wrap;
  }

  html[data-page="app"] .home-brand span {
    display: none;
  }

  html[data-page="app"] .home-lang span {
    display: none;
  }

  html[data-page="app"] .home-icon-button,
  html[data-page="app"] .home-access-link {
    width: auto;
    height: 38px;
    padding-inline: 12px;
  }

  html[data-page="app"] .home-profile-button {
    gap: 8px;
    padding: 5px 8px 5px 5px;
    max-width: 100%;
  }

  html[data-page="app"] .home-profile-copy {
    gap: 1px;
  }

  html[data-page="app"] .home-profile-copy small {
    font-size: 0.6rem;
  }

  html[data-page="app"] .home-profile-menu {
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 92px);
  }

  html[data-page="app"] .home-top-search {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
  }

  html[data-page="app"] .home-vivo-mission {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  html[data-page="app"] .hero {
    margin: 0;
    height: 100vh;
    min-height: 100vh;
  }

  html[data-page="app"] .home-search {
    padding: 14px;
  }

  html[data-page="app"] .home-search-form {
    grid-template-columns: 1fr;
  }

  html[data-page="app"] .home-search-submit {
    width: 100%;
  }

  html[data-page="app"] .home-search-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-page="app"] .home-search-chip {
    min-height: 128px;
  }

  html[data-page="app"] .home-search-chip--hero,
  html[data-page="app"] .home-search-chip--wide,
  html[data-page="app"] .home-search-chip--medium,
  html[data-page="app"] .home-search-chip--compact {
    grid-column: span 2;
  }

  html[data-page="app"] .home-content-shell {
    padding: 24px 14px 28px;
  }

  html[data-page="app"] .home-map-preview-grid,
  html[data-page="app"] .home-discipline-grid,
  html[data-page="app"] .home-featured-grid,
  html[data-page="app"] .home-route-grid,
  html[data-page="app"] .home-steps {
    grid-template-columns: 1fr;
  }

  html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-page="app"] .home-landing[data-home-view="honeycomb"] .home-discipline-card {
    grid-column: span 1;
    min-height: 126px;
  }

  html[data-page="app"] .home-map-preview-frame {
    height: clamp(200px, 56vw, 300px);
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }

  html[data-page="app"] .home-vivo-card-media {
    min-height: 220px;
  }
}

html[data-page="mapa"] body {
  background: #0f0f0f;
}

html[data-page="mapa"] .map-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  position: relative !important;
  min-height: 100dvh !important;
  padding: 12px !important;
  overflow: visible !important;
}

html[data-page="mapa"] #map {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: clamp(380px, 62vh, 820px) !important;
  min-height: 380px !important;
  margin: 0 !important;
  border: 1px solid rgba(0, 183, 203, 0.24) !important;
  border-radius: 16px !important;
  z-index: 1 !important;
  order: 3 !important;
}

html[data-page="mapa"] .map-header {
  position: sticky !important;
  top: 8px !important;
  left: auto !important;
  right: auto !important;
  z-index: 20 !important;
  background: rgba(1, 25, 35, 0.56) !important;
  border: 1px solid rgba(0, 183, 203, 0.22) !important;
  backdrop-filter: blur(18px) saturate(120%);
  order: 1 !important;
}

html[data-page="mapa"] .map-topline {
  position: sticky !important;
  top: 86px !important;
  left: auto !important;
  right: auto !important;
  z-index: 19 !important;
  background: rgba(2, 19, 28, 0.42) !important;
  backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(0, 183, 203, 0.18) !important;
  order: 2 !important;
}

html[data-page="mapa"] .leaflet-container {
  background: #dfe9ef;
  height: 100%;
}

html[data-page="mapa"] .leaflet-control-container {
  z-index: 600;
}

html[data-page="mapa"] #fichaPanel.ficha-panel {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  border-radius: 16px !important;
  display: none;
  order: 4 !important;
  z-index: 5 !important;
}

html[data-page="mapa"] #fichaPanel.ficha-panel.open {
  display: block !important;
}

html[data-page="mapa"] .social-rail {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  order: 5 !important;
  max-height: none !important;
  overflow: visible !important;
}

html[data-page="mapa"] #legendCard.legend-floating {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  order: 6 !important;
}

html[data-page="mapa"] .map-filters-panel {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  order: 7 !important;
}

html[data-page="mapa"] .map-create-route-fab {
  position: static !important;
  inset: auto !important;
  order: 8 !important;
  width: fit-content !important;
}

html[data-page="mapa"] #resultsPanel,
html[data-page="mapa"] #visitorQueryPanel,
html[data-page="mapa"] #quickRoutePanel {
  display: none !important;
}

html[data-page="mapa"] #routeConfigSummary {
  display: grid !important;
}

@media (max-width: 980px) {
  html[data-page="mapa"] .map-header {
    top: 8px !important;
    left: auto !important;
    right: auto !important;
  }

  html[data-page="mapa"] .map-topline {
    top: 78px !important;
    left: auto !important;
    right: auto !important;
  }

  html[data-page="mapa"] .map-wrap {
    gap: 10px !important;
    padding: 8px !important;
  }

  html[data-page="mapa"] #map {
    height: clamp(340px, 56dvh, 640px) !important;
    min-height: 340px !important;
  }
}
