/* public/tribes.css — Estilos namespaced de Tribus. */

.lia-tribes-root {
  --tribes-green: #00a884;
  --tribes-green-deep: #007a63;
  --tribes-ink: #172d29;
  --tribes-muted: #637872;
  --tribes-paper: #f7faf8;
  --tribes-line: #dceae5;
  --tribes-shadow: 0 8px 26px rgba(16, 38, 33, 0.07);

  color: var(--tribes-ink);
  font-family: inherit;
}

.lia-tribes-root * {
  box-sizing: border-box;
}

.lia-tribes-header {
  margin-bottom: 18px;
}

.lia-tribes-title {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.lia-tribes-subtitle {
  color: var(--tribes-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.lia-tribes-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--tribes-line);
  border-radius: 999px;
}

.lia-tribes-tab {
  flex: 1 1 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--tribes-muted);
  font-size: 13px;
  font-weight: 800;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 10px;
  white-space: nowrap;
}

.lia-tribes-tab[aria-selected="true"] {
  background: #fff;
  color: var(--tribes-ink);
  box-shadow: 0 2px 8px rgba(16, 38, 33, 0.08);
}

.lia-tribes-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.lia-tribes-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lia-tribes-search {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--tribes-line);
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
  color: var(--tribes-ink);
  outline: none;
}

.lia-tribes-search::placeholder {
  color: var(--tribes-muted);
}

.lia-tribes-search:focus {
  border-color: var(--tribes-green);
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.lia-tribes-search-wrap::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.45;
}

.lia-tribes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.lia-tribes-chip {
  appearance: none;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--tribes-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--tribes-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.lia-tribes-chip[aria-pressed="true"] {
  background: var(--tribes-green);
  border-color: var(--tribes-green);
  color: #fff;
}

.lia-tribes-policy-select {
  appearance: none;
  height: 32px;
  padding: 0 30px 0 14px;
  border: 1px solid var(--tribes-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 10px center / 14px no-repeat;
  color: var(--tribes-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lia-tribes-results-meta {
  color: var(--tribes-muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.lia-tribes-grid {
  display: grid;
  gap: 12px;
}

.lia-tribes-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--tribes-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--tribes-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

@media (hover: hover) {
  .lia-tribes-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 38, 33, 0.1);
  }
}

.lia-tribes-card:focus-within {
  outline: 3px solid rgba(0, 168, 132, 0.18);
  outline-offset: 2px;
}

.lia-tribes-card-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
}

.lia-tribes-card-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(
    145deg,
    var(--tribe-from, #e7f7f2),
    var(--tribe-to, #00a884)
  );
}

.lia-tribes-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lia-tribes-card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--tribes-green-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lia-tribes-card-name {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lia-tribes-card-description {
  font-size: 13px;
  color: var(--tribes-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lia-tribes-card-meta {
  font-size: 12px;
  color: var(--tribes-muted);
  font-weight: 700;
}

.lia-tribes-card-activity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tribes-muted);
  font-weight: 700;
}

.lia-tribes-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tribes-green);
}

.lia-tribes-activity-dot.is-quiet {
  background: var(--tribes-muted);
}

.lia-tribes-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--tribes-green);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.lia-tribes-membership {
  appearance: none;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--tribes-line);
  border-radius: 14px;
  background: #fff;
  color: var(--tribes-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.lia-tribes-membership:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lia-tribes-membership[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
}

.lia-tribes-membership.is-member {
  background: var(--tribes-ink);
  border-color: var(--tribes-ink);
  color: #fff;
}

.lia-tribes-membership.is-pending {
  background: #fff8ec;
  border-color: #f6c66d;
  color: #8a6d1f;
}

.lia-tribes-empty,
.lia-tribes-error {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 36px 20px;
  text-align: center;
  border: 1px dashed var(--tribes-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
}

.lia-tribes-empty-title,
.lia-tribes-error-title {
  font-size: 16px;
  font-weight: 850;
  margin: 0;
}

.lia-tribes-empty-text,
.lia-tribes-error-text {
  font-size: 14px;
  color: var(--tribes-muted);
  margin: 0;
}

.lia-tribes-empty-action,
.lia-tribes-error-action {
  appearance: none;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--tribes-green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.lia-tribes-skeleton {
  display: grid;
  gap: 12px;
}

.lia-tribes-skeleton-card {
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(90deg, #eef4f1 25%, #e2ece8 50%, #eef4f1 75%);
  background-size: 200% 100%;
  animation: lia-tribes-shimmer 1.4s infinite linear;
}

@keyframes lia-tribes-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.lia-tribes-detail {
  min-height: 100%;
  padding: 16px;
}

.lia-tribes-detail-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1px solid var(--tribes-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tribes-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lia-tribes-detail-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.lia-tribes-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: linear-gradient(
    145deg,
    var(--tribe-from, #e7f7f2),
    var(--tribe-to, #00a884)
  );
}

.lia-tribes-detail-head {
  min-width: 0;
}

.lia-tribes-detail-eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--tribes-green-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lia-tribes-detail-name {
  font-size: 26px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 2px 0 6px;
}

.lia-tribes-detail-meta {
  font-size: 14px;
  color: var(--tribes-muted);
  font-weight: 700;
}

.lia-tribes-detail-description {
  font-size: 15px;
  line-height: 1.55;
  color: var(--tribes-ink);
  margin-bottom: 18px;
}

.lia-tribes-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.lia-tribes-detail-tag {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--tribes-line);
  color: var(--tribes-muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.lia-tribes-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.lia-tribes-detail-primary,
.lia-tribes-detail-secondary {
  appearance: none;
  height: 50px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.lia-tribes-detail-primary {
  background: var(--tribes-green);
  color: #fff;
}

.lia-tribes-detail-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lia-tribes-detail-secondary {
  background: #f2f7f5;
  color: var(--tribes-ink);
}

.lia-tribes-detail-note {
  font-size: 13px;
  color: var(--tribes-muted);
  line-height: 1.45;
  margin: 0;
}

.lia-tribes-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 45, 41, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}

.lia-tribes-dialog-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.lia-tribes-dialog {
  width: min(340px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 38, 33, 0.22);
  transform: scale(0.94);
  transition: transform 0.2s ease;
}

.lia-tribes-dialog-overlay.is-open .lia-tribes-dialog {
  transform: scale(1);
}

.lia-tribes-dialog-title {
  font-size: 18px;
  font-weight: 850;
  margin: 0 0 8px;
}

.lia-tribes-dialog-text {
  font-size: 14px;
  color: var(--tribes-muted);
  line-height: 1.45;
  margin: 0 0 18px;
}

.lia-tribes-dialog-actions {
  display: flex;
  gap: 10px;
}

.lia-tribes-dialog-cancel,
.lia-tribes-dialog-confirm {
  flex: 1 1 0;
  appearance: none;
  height: 48px;
  border: 0;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.lia-tribes-dialog-cancel {
  background: #f2f7f5;
  color: var(--tribes-ink);
}

.lia-tribes-dialog-confirm {
  background: var(--tribes-ink);
  color: #fff;
}

.lia-tribes-demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--tribes-green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.lia-tribes-teaser-footer {
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 360px) {
  .lia-tribes-card {
    grid-template-columns: 1fr;
  }

  .lia-tribes-membership {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .lia-tribes-grid.is-teaser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Nuevo modo "app" para demo.html#tribes ---------- */

.lia-tribes-root.is-app {
  --tribes-lav: #f1ecfa;
  --tribes-lav-deep: #7867a6;
  --tribes-sky: #eaf6fb;
  --tribes-sky-deep: #477d96;
  --tribes-accent: #ffb347;
  --tribes-accent-soft: #fff4e2;
  --tribes-pink: #ffe8ef;
  --tribes-danger: #e84a57;
  --tribes-danger-soft: #ffe8ea;
}

.lia-tribes-hero {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 2px 5px;
}

.lia-tribes-hero-copy {
  flex: 1;
}

.lia-tribes-eyebrow {
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.95px;
  color: var(--tribes-green-deep);
  margin-bottom: 5px;
}

.lia-tribes-hero-title {
  font-family:
    ui-rounded, "SF Pro Rounded", "Avenir Next", Inter, system-ui, sans-serif;
  font-size: 29px;
  line-height: 1.03;
  letter-spacing: -1.15px;
  margin: 0;
}

.lia-tribes-hero-text {
  font-size: 11px;
  color: var(--tribes-muted);
  line-height: 1.42;
  margin-top: 6px;
  max-width: 280px;
}

.lia-tribes-create {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tribes-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(23, 45, 41, 0.18);
  border: 0;
  cursor: pointer;
}

.lia-tribes-primary-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  margin: 12px 0 11px;
  background: #edf4f1;
  border-radius: 17px;
  border: 1px solid #e0ece8;
}

.lia-tribes-primary-tab {
  height: 38px;
  border-radius: 13px;
  color: var(--tribes-muted);
  font-size: 10px;
  font-weight: 900;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lia-tribes-primary-tab[aria-selected="true"] {
  background: #fff;
  color: var(--tribes-ink);
  box-shadow: 0 5px 14px rgba(23, 61, 49, 0.08);
}

.lia-tribes-live-stage {
  position: relative;
  min-height: 198px;
  border-radius: 27px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(0, 168, 132, 0.14),
      transparent 33%
    ),
    linear-gradient(145deg, #f3fbf8, #eef8f5 60%, #fff8ef);
  border: 1px solid #dcece7;
  box-shadow: var(--tribes-shadow);
  padding: 14px;
}

.lia-tribes-live-stage::before,
.lia-tribes-live-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 168, 132, 0.12);
  pointer-events: none;
}

.lia-tribes-live-stage::before {
  width: 170px;
  height: 170px;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
}

.lia-tribes-live-stage::after {
  width: 250px;
  height: 250px;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  border-style: dashed;
}

.lia-tribes-stage-kicker {
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--tribes-green-deep);
  position: relative;
  z-index: 3;
}

.lia-tribes-pulse-core {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 94px;
  height: 94px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 28%,
    #29d5aa,
    var(--tribes-green) 50%,
    #08715f 100%
  );
  box-shadow:
    0 16px 30px rgba(0, 107, 88, 0.22),
    0 0 0 10px rgba(0, 168, 132, 0.07);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 4;
  animation: lia-tribes-pulse 3.4s ease-in-out infinite;
  border: 0;
  cursor: pointer;
}

@keyframes lia-tribes-pulse {
  0%,
  100% {
    box-shadow:
      0 16px 30px rgba(0, 107, 88, 0.22),
      0 0 0 8px rgba(0, 168, 132, 0.06);
  }
  50% {
    box-shadow:
      0 16px 30px rgba(0, 107, 88, 0.22),
      0 0 0 15px rgba(0, 168, 132, 0.09);
  }
}

.lia-tribes-pulse-core strong {
  font-size: 23px;
  line-height: 1;
}

.lia-tribes-pulse-core span {
  font-size: 8px;
  font-weight: 900;
  margin-top: 5px;
  opacity: 0.93;
}

.lia-tribes-world {
  position: absolute;
  z-index: 5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 9px 23px rgba(35, 61, 54, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: center;
  border: 0;
  background: none;
  cursor: pointer;
}

.lia-tribes-world b {
  font-size: 9px;
}

.lia-tribes-world small {
  font-size: 7px;
  color: var(--tribes-muted);
  margin-top: 2px;
}

.lia-tribes-world-dot {
  position: absolute;
  right: 0;
  top: 1px;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  background: var(--tribes-danger);
  color: #fff;
  font-size: 7px;
  font-weight: 950;
  border: 2px solid #fff;
}

.lia-tribes-world.tables {
  width: 66px;
  height: 66px;
  left: 27px;
  top: 59px;
  background: var(--tribes-accent-soft);
}

.lia-tribes-world.direct {
  width: 57px;
  height: 57px;
  right: 30px;
  top: 35px;
  background: var(--tribes-danger-soft);
  color: #9b3440;
}

.lia-tribes-world.messages {
  width: 54px;
  height: 54px;
  left: 44px;
  bottom: 20px;
  background: var(--tribes-lav);
}

.lia-tribes-stage-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.lia-tribes-activity-caption {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(220, 234, 229, 0.88);
  font-size: 7px;
  font-weight: 850;
  color: var(--tribes-muted);
}

.lia-tribes-section {
  padding-top: 19px;
}

.lia-tribes-section-head {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.lia-tribes-section-title {
  flex: 1;
}

.lia-tribes-section-title h3 {
  font-size: 17px;
  letter-spacing: -0.45px;
  margin: 0;
}

.lia-tribes-section-title p {
  font-size: 8px;
  color: var(--tribes-muted);
  margin-top: 3px;
}

.lia-tribes-text-link {
  font-size: 9px;
  color: var(--tribes-green-deep);
  font-weight: 950;
  padding-bottom: 1px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lia-tribes-continue-card {
  padding: 13px;
  border-radius: 22px;
  background: linear-gradient(145deg, #242e2b, #193e36);
  color: #fff;
  box-shadow: 0 14px 30px rgba(16, 46, 38, 0.19);
  position: relative;
  overflow: hidden;
  border: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.lia-tribes-continue-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  right: -35px;
  top: -48px;
}

.lia-tribes-continue-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.lia-tribes-avatar-stack {
  display: flex;
}

.lia-tribes-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 950;
  background: #ddcaeb;
  color: #5a4274;
  border: 2px solid #fff;
}

.lia-tribes-avatar + .lia-tribes-avatar {
  margin-left: -8px;
  background: #c9eadf;
  color: #1e6553;
}

.lia-tribes-continue-copy {
  flex: 1;
  min-width: 0;
}

.lia-tribes-continue-copy b {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lia-tribes-continue-copy small {
  font-size: 7px;
  color: #bfe0d6;
  display: block;
  margin-top: 3px;
}

.lia-tribes-message-preview {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #e4f2ee;
  font-size: 9px;
  line-height: 1.4;
}

.lia-tribes-continue-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.lia-tribes-btn {
  min-height: 35px;
  border-radius: 13px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 950;
  border: 0;
  cursor: pointer;
}

.lia-tribes-btn.white {
  background: #fff;
  color: var(--tribes-ink);
}

.lia-tribes-btn.ghost {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.lia-tribes-btn.primary {
  background: var(--tribes-green);
  color: #fff;
}

.lia-tribes-btn.soft {
  background: var(--tribes-lia-soft);
  color: var(--tribes-green-deep);
}

.lia-tribes-btn.full {
  width: 100%;
}

.lia-tribes-rail {
  display: flex;
  gap: 10px;
  overflow: auto;
  scrollbar-width: none;
  padding: 1px 1px 7px;
}

.lia-tribes-activity-card {
  min-width: 238px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--tribes-line);
  box-shadow: var(--tribes-shadow);
  padding: 13px;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.lia-tribes-activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lia-tribes-activity-icon {
  width: 41px;
  height: 41px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--tribes-accent-soft);
  flex: 0 0 auto;
}

.lia-tribes-activity-icon.live {
  background: var(--tribes-danger-soft);
}

.lia-tribes-activity-icon.plan {
  background: var(--tribes-sky);
}

.lia-tribes-activity-info {
  flex: 1;
  min-width: 0;
}

.lia-tribes-activity-info b {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lia-tribes-activity-info small {
  display: block;
  font-size: 7px;
  color: var(--tribes-muted);
  margin-top: 3px;
}

.lia-tribes-activity-card p {
  font-size: 8px;
  color: var(--tribes-muted);
  line-height: 1.4;
  margin-top: 9px;
  min-height: 23px;
}

.lia-tribes-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.lia-tribes-people {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.lia-tribes-person {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: #d9efe8;
  color: #32685a;
  font-size: 6px;
  font-weight: 950;
}

.lia-tribes-person + .lia-tribes-person {
  margin-left: -7px;
}

.lia-tribes-count {
  font-size: 7px;
  color: var(--tribes-muted);
  margin-left: 6px;
  font-weight: 800;
}

.lia-tribes-plan-card {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--tribes-line);
  box-shadow: 0 6px 18px rgba(16, 38, 33, 0.06);
  margin-bottom: 9px;
  border: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.lia-tribes-date-tile {
  width: 49px;
  height: 54px;
  border-radius: 15px;
  background: var(--tribes-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 auto;
}

.lia-tribes-date-tile strong {
  font-size: 17px;
  color: var(--tribes-sky-deep);
  line-height: 1;
}

.lia-tribes-date-tile span {
  font-size: 7px;
  font-weight: 950;
  color: var(--tribes-sky-deep);
  margin-top: 3px;
}

.lia-tribes-plan-copy {
  flex: 1;
  min-width: 0;
}

.lia-tribes-plan-copy b {
  font-size: 10px;
  display: block;
}

.lia-tribes-plan-copy small {
  font-size: 7px;
  color: var(--tribes-muted);
  display: block;
  margin-top: 3px;
  line-height: 1.4;
}

.lia-tribes-chev {
  font-size: 20px;
  color: #9bada7;
}

.lia-tribes-nearby {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #edf8fb, #f7fcfe);
  border: 1px solid #d4e9f0;
}

.lia-tribes-radar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #b9dbe7;
  color: var(--tribes-sky-deep);
  position: relative;
  font-size: 17px;
}

.lia-tribes-radar::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid #cae3eb;
}

.lia-tribes-nearby-copy {
  flex: 1;
}

.lia-tribes-nearby-copy b {
  font-size: 10px;
  display: block;
}

.lia-tribes-nearby-copy small {
  font-size: 7px;
  color: var(--tribes-muted);
  line-height: 1.38;
  display: block;
  margin-top: 3px;
}

.lia-tribes-nearby-count {
  text-align: right;
}

.lia-tribes-nearby-count strong {
  display: block;
  color: var(--tribes-green-deep);
  font-size: 16px;
}

.lia-tribes-nearby-count span {
  font-size: 7px;
  color: var(--tribes-muted);
}

.lia-tribes-chips {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
  padding: 1px 0 10px;
}

.lia-tribes-chip-inline {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tribes-line);
  font-size: 9px;
  font-weight: 850;
  color: var(--tribes-muted);
  white-space: nowrap;
  cursor: pointer;
}

.lia-tribes-chip-inline[aria-pressed="true"] {
  background: var(--tribes-green-deep);
  border-color: var(--tribes-green-deep);
  color: #fff;
}

.lia-tribes-empty-note {
  padding: 14px;
  border-radius: 19px;
  background: #f1f7f5;
  border: 1px dashed #cfe2dc;
  text-align: center;
  color: var(--tribes-muted);
  font-size: 9px;
  line-height: 1.45;
}

/* ---------- adaptación de tarjeta compacta de lista ---------- */

.lia-tribes-row {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border-radius: 21px;
  background: #fff;
  border: 1px solid var(--tribes-line);
  margin-bottom: 9px;
  box-shadow: 0 6px 18px rgba(16, 38, 33, 0.05);
  border: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.lia-tribes-row-icon {
  width: 47px;
  height: 47px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--tribes-lav);
  flex: 0 0 auto;
}

.lia-tribes-row-icon.green {
  background: var(--tribes-lia-soft);
}

.lia-tribes-row-icon.orange {
  background: var(--tribes-accent-soft);
}

.lia-tribes-row-icon.blue {
  background: var(--tribes-sky);
}

.lia-tribes-row-copy {
  flex: 1;
  min-width: 0;
}

.lia-tribes-row-copy b {
  display: block;
  font-size: 10px;
}

.lia-tribes-row-copy small {
  display: block;
  font-size: 7px;
  color: var(--tribes-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.lia-tribes-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--tribes-green-deep);
  color: #fff;
  font-size: 7px;
  font-weight: 950;
}

.lia-tribes-join-inline {
  height: 31px;
  padding: 0 10px;
  border-radius: 11px;
  background: var(--tribes-green);
  color: #fff;
  font-size: 8px;
  font-weight: 950;
  border: 0;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .lia-tribes-card,
  .lia-tribes-membership,
  .lia-tribes-dialog-overlay,
  .lia-tribes-dialog,
  .lia-tribes-detail,
  .lia-tribes-pulse-core,
  .lia-tribes-live-stage::before,
  .lia-tribes-live-stage::after {
    transition: none !important;
    animation: none !important;
  }

  .lia-tribes-skeleton-card {
    animation: none !important;
  }
}
