/* ===== ArmandoQ Diagnostic — tema oscuro pro ===== */
:root {
  --brand:   #3b82f6;   /* azul acento */
  --brand-2: #22d3ee;   /* cyan acento */
  --bg:      #0d1526;   /* fondo */
  --surface: #161f33;   /* tarjetas */
  --border:  #263351;   /* bordes sutiles */
  --text:    #e6edf7;   /* texto principal */
  --muted:   #8fa0bd;   /* texto tenue */
}

html { font-size: 15px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin-bottom: 60px;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -12%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(34,211,238,.07), transparent 55%),
    var(--bg);
}

/* ===== Navbar ===== */
.app-navbar {
  background: rgba(13,21,38,.82) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border) !important;
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.app-navbar .nav-link { color: var(--muted) !important; font-weight: 500; }
.app-navbar .nav-link:hover, .app-navbar .nav-link.active { color: var(--text) !important; }

/* ===== Hero ===== */
.app-hero h1 {
  background: linear-gradient(90deg, #ffffff, #aebfdc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.app-hero .lead { color: var(--muted) !important; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.30);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.card-footer { background: transparent; border-top: 1px solid var(--border); color: var(--muted) !important; }

/* ===== Tabla ===== */
.table { color: var(--text); margin-bottom: 0; }
.table > :not(caption) > * > * { background: transparent; border-color: var(--border); padding: .85rem 1.25rem; }
.table thead th {
  text-transform: uppercase;
  font-size: .72rem; letter-spacing: .06em;
  color: var(--muted); font-weight: 600;
}
.table-hover > tbody > tr:hover > * { background: rgba(59,130,246,.07); }

/* ===== Badges ===== */
.badge { font-weight: 600; padding: .42em .7em; border-radius: 8px; }
.badge.bg-success {
  background: rgba(34,197,94,.15) !important; color: #4ade80 !important;
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.4);
}
.badge.bg-secondary {
  background: rgba(143,160,189,.14) !important; color: var(--muted) !important;
  box-shadow: inset 0 0 0 1px rgba(143,160,189,.28);
}

/* ===== Botones ===== */
.btn-primary { background: linear-gradient(90deg, var(--brand), #2563eb); border: none; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline-primary { border-color: var(--brand); color: #7fb0ff; }
.btn-outline-primary:hover { background: var(--brand); color: #fff; }
.btn-outline-danger { border-color: #ef4444; color: #f87171; }

/* selector de idioma */
.btn-group .btn { font-weight: 600; }

/* quitar el foco blanco feo del template */
.btn:focus, .btn:active:focus, .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(59,130,246,.35) !important;
}

/* footer */
.footer { background: transparent; border-top: 1px solid var(--border) !important; color: var(--muted); }
a { color: #7fb0ff; }
a:hover { color: var(--brand-2); }

/* ===== Focos de estado (LEDs) ===== */
.status-strip { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.status-pill {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .65rem 1.1rem; min-width: 190px;
}
.led { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.led-on   { background: #22c55e; box-shadow: 0 0 9px 2px rgba(34,197,94,.65); }
.led-off  { background: #ef4444; box-shadow: 0 0 9px 2px rgba(239,68,68,.6); }
.led-warn { background: #f59e0b; box-shadow: 0 0 9px 2px rgba(245,158,11,.6); }
.status-pill .lbl { font-weight: 700; }
.status-pill .st  { color: var(--muted); font-size: .8rem; margin-left: auto; }

/* ===== Campo de WhatsApp (registro) ===== */
:root { --wa: #25D366; }  /* verde WhatsApp */

.wa-label {
  color: var(--wa);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.wa-logo { color: var(--wa); }

.wa-prefix {
  background: rgba(37, 211, 102, .14) !important;
  border-color: rgba(37, 211, 102, .45) !important;
  color: var(--wa) !important;
  display: flex;
  align-items: center;
}
.wa-group .form-select,
.wa-group .form-control {
  border-color: rgba(37, 211, 102, .3);
}
.wa-group .form-select:focus,
.wa-group .form-control:focus {
  border-color: var(--wa);
  box-shadow: 0 0 0 .2rem rgba(37, 211, 102, .25) !important;
}
.wa-group:focus-within .wa-prefix {
  background: rgba(37, 211, 102, .22) !important;
  border-color: var(--wa) !important;
}

/* ===== Tarjetas de auth (login / registro) ===== */
.auth-wrap {
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
}
.auth-card {
  max-width: 470px; width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .38);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.auth-badge {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(34, 211, 238, .22));
  border: 1px solid var(--border);
  box-shadow: inset 0 0 18px rgba(59, 130, 246, .12);
}
.auth-title {
  font-weight: 700; margin-bottom: .2rem;
  background: linear-gradient(90deg, #fff, #b9c6de);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-sub { color: var(--muted); font-size: .9rem; }
.auth-card .form-label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; margin-bottom: .3rem;
}
.auth-card .wa-label {
  text-transform: uppercase; letter-spacing: .05em; font-size: .74rem;
}
.auth-card .form-control,
.auth-card .form-select { padding: .6rem .8rem; }
.auth-card .btn-primary { padding: .65rem; font-weight: 600; }

/* --- Guía de pasos (activación y AQ Link) --- */
.aq-steps { list-style: none; padding: 0; margin: 0; }
.aq-steps li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
}
.aq-steps li:last-child { border-bottom: none; }
.aq-step-n {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  background: linear-gradient(135deg, #4ea1ff, #22d3ee); color: #06101f; font-size: 15px;
}
.aq-steps li > div { display: flex; flex-direction: column; }
.aq-steps li b { color: #e8edf6; }
.aq-steps li span { color: var(--muted); font-size: 14px; }
.contact-box {
  background: rgba(37,211,102,.08); border: 1px solid rgba(37,211,102,.25);
  border-radius: 12px; padding: 20px;
}
.contact-qr { width: 168px; height: 168px; border-radius: 10px; background: #fff; padding: 8px; }
/* Tu imagen de QR con logo (respeta proporción, no la aplasta). */
.contact-qr-img { max-width: 240px; width: 100%; height: auto; border-radius: 14px; }
