/* Página pública de verificación — sin fuentes, imágenes ni recursos externos. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #111418;
  --muted: #444b55;
  --border: #c9ced6;
  --ok-bg: #e3f4e8;
  --ok-ink: #0b5a28;
  --ok-edge: #1f8a47;
  --bad-bg: #fbe4e4;
  --bad-ink: #8a1111;
  --bad-edge: #c42b2b;
  --warn-bg: #fff3d6;
  --warn-ink: #6b4500;
  --warn-edge: #b27800;
  --neutral-bg: #e8ebf0;
  --neutral-ink: #2c333d;
  --neutral-edge: #7a8391;
  --accent: #1d4f7c;
  --focus: #1a5fd0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #181c22;
    --ink: #f1f3f5;
    --muted: #b7bec8;
    --border: #353c46;
    --ok-bg: #0f2a19;
    --ok-ink: #8ee2ad;
    --ok-edge: #3fb46b;
    --bad-bg: #331313;
    --bad-ink: #ffb3b3;
    --bad-edge: #e05555;
    --warn-bg: #33270a;
    --warn-ink: #ffd88a;
    --warn-edge: #d9a12c;
    --neutral-bg: #232932;
    --neutral-ink: #d6dbe2;
    --neutral-edge: #7a8391;
    --accent: #8cb8e6;
    --focus: #8cb8ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.site-header, main, .site-footer { width: 100%; max-width: 30rem; }

.brand {
  margin: 8px 0 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.875rem;
}

h1 { margin: 4px 0 16px; font-size: 1.375rem; line-height: 1.25; }
h1:focus { outline: none; }

.result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 8px;
  border-radius: 12px;
  padding: 20px;
}
.result[data-state="ok"] { border-left-color: var(--ok-edge); }
.result[data-state="bad"] { border-left-color: var(--bad-edge); }
.result[data-state="warn"] { border-left-color: var(--warn-edge); }
.result[data-state="neutral"] { border-left-color: var(--neutral-edge); }

.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
}
.badge-ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge-bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-ink); }

.badge-icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid currentColor;
  font-size: 1.25rem;
}

.message { margin: 14px 0 0; }

.employee {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.avatar {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 10px;
  background: var(--neutral-bg);
  color: var(--neutral-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.details { margin: 0; min-width: 0; }
.details dt { font-size: 0.8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 8px; }
.details dt:first-child { margin-top: 0; }
.details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.details dd:first-of-type { font-size: 1.25rem; }

.checked-at { margin: 16px 0 0; font-size: 0.875rem; color: var(--muted); }

.retry {
  margin-top: 16px;
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.retry:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.noscript {
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-weight: 700;
}

.site-footer { margin-top: 20px; color: var(--muted); font-size: 0.875rem; }
.site-footer p { margin: 6px 0; }

@media (prefers-reduced-motion: no-preference) {
  .result[aria-busy="true"] .badge-icon { animation: pulse 1.2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.35; } }
}
