:root {
  --slateMain: #0F172A;
  --slateCard: #1E293B;
  --slateCard2: #172238;
  --textMain: #F8FAFC;
  --textSec: #E2E8F0;
  --silver: #CBD5E1;
  --premium: #D95407;
  --premiumDark: #B45309;
  --positive: #0DC619;
  --positiveDark: #0D9488;
  --danger: #EF4444;
  --border: rgba(203, 213, 225, 0.16);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--slateMain);
  color: var(--textMain);
}

.aude-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.aude-header {
  height: 92px;
  padding: 14px 48px;
  background: var(--slateCard);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aude-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.aude-logo {
  width: 92px;
  height: 58px;
  object-fit: contain;
}

.aude-brand-divider {
  width: 1px;
  height: 52px;
  background: var(--border);
}

.aude-brand h1 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.aude-brand p {
  margin: 6px 0 0;
  color: var(--textSec);
  font-size: 0.76rem;
}

.aude-engine {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--textSec);
  font-size: 0.78rem;
  font-weight: 800;
}

.aude-pulse {
  width: 8px;
  height: 8px;
  background: var(--positive);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 14px var(--positive);
}

.aude-main {
  flex: 1;
  width: min(1480px, calc(100% - 80px));
  margin: 0 auto;
  padding: 22px 0 54px;
}

.aude-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.aude-intro h2 {
  margin: 0;
  font-size: 1.72rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.aude-intro p {
  margin: 6px 0 0;
  color: var(--textSec);
}

.aude-card,
.aude-kpi,
.aude-status {
  background: linear-gradient(145deg, var(--slateCard), var(--slateCard2));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.aude-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: 0.16s ease;
  white-space: nowrap;
}

.aude-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.aude-btn-primary {
  background: var(--premium);
  min-width: 176px;
}

.aude-btn-primary:hover {
  background: var(--premiumDark);
}

.aude-btn-secondary {
  background: #334155;
}

.aude-btn-secondary:hover {
  background: #475569;
}

.aude-btn-dark {
  background: transparent;
  border: 1px solid var(--border);
}

.aude-btn-green {
  background: var(--positive);
}

.aude-btn-green:hover {
  background: var(--positiveDark);
}

.aude-badge {
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 900;
}

.aude-badge-red,
.aude-badge.red {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.aude-badge-ok,
.aude-badge.ok,
.badge.ok {
  background: rgba(13, 198, 25, 0.16);
  color: #86efac;
}

.badge.red {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.aude-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.aude-status {
  padding: 11px 14px;
  margin: 12px 0;
  color: var(--silver);
  font-weight: 800;
}

.aude-status.ok,
.status.ok {
  color: #86efac;
  background: rgba(13, 198, 25, 0.10);
}

.aude-status.warn,
.status.warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.10);
}

.aude-status.error,
.status.error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.10);
}

.aude-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111827;
  color: var(--textMain);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

th, td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

td {
  color: var(--textSec);
  font-size: 0.86rem;
}

.aude-footer {
  min-height: 36px;
  display: grid;
  place-items: center;
  color: var(--textSec);
  font-size: 0.76rem;
  background: var(--slateCard);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 8px 14px;
}

@media (max-width: 980px) {
  .aude-header,
  .aude-intro,
  .aude-table-title {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .aude-main {
    width: calc(100% - 28px);
  }
}

/* AUDELOT V1.5.0 - Botones secundarios uniformes y más claros */
.aude-btn-secondary,
.aude-btn-dark {
  background: #64748b;
  border: 1px solid #7f8da1;
  color: #ffffff;
}

.aude-btn-secondary:hover,
.aude-btn-dark:hover {
  background: #7b8a9b;
}
