/**
 * OmniMed — Pearl / Obsidian glass + skeletons + touch targets (Samsung A50+)
 */
html.omnimed-ecosistema,
html.omnimed-ecosistema body {
  overflow-x: hidden;
}

.omni-glass-page {
  min-height: 100dvh;
  background: var(--omni-bg, #070b14);
  color: var(--omni-text, #f1f5f9);
}

.omni-glass-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme='pearl'] .omni-glass-card {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme='pearl'] .omni-glass-muted {
  color: #64748b !important;
}

.omni-glass-muted {
  color: #94a3b8;
}

.omni-btn-touch {
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.omni-btn-touch:active {
  transform: scale(0.97);
}

.omni-btn-touch--primary {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

.omni-btn-touch--gold {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}

.omni-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
}

[data-theme='pearl'] .omni-skeleton {
  background: rgba(15, 23, 42, 0.08);
}

.omni-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: omniSkeletonShimmer 1.4s ease infinite;
}

@keyframes omniSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.omni-health-dash__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 380px) {
  .omni-health-dash__grid {
    grid-template-columns: 1fr;
  }
}

.omni-health-dash__kpi {
  border-radius: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

[data-theme='pearl'] .omni-health-dash__kpi {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.06);
}

.omni-failsafe-banner {
  margin: 0 auto 1rem;
  max-width: 48rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.75rem;
  color: #fde68a;
}

[data-theme='pearl'] .omni-failsafe-banner {
  color: #92400e;
  background: rgba(251, 191, 36, 0.15);
}
