/* Not a Bot Agency — tema compartido del tablero y sus módulos
   Identidad tomada de notabotagency.es:
   - Titulares: "DM Serif Display" · Texto: "Alegreya Sans"
   - Verde primario #03524E · verde marca #20574E
   - Acentos: magenta #CC3366 · terracota #C84E1E
*/

:root {
  --teal: #03524e;
  --teal-2: #20574e;
  --green-mark: #3d7a68;
  --pink: #cc3366;
  --terra: #c84e1e;

  --ink: #333333;
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --border: #e5e1d8;
  --muted: #6b7280;

  --ok: #1f8a5b;
  --warn: #d1892b;
  --stop: #c0402f;

  --shadow: 0 1px 2px rgba(15, 40, 35, .04), 0 8px 24px rgba(15, 40, 35, .06);

  --heading-strong: var(--teal-2);
  --link: var(--teal);
  --logo-filter: none;

  --radius: 14px;
  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --ink: #e8e6e1;
    --bg: #0f1614;
    --surface: #16201d;
    --surface-2: #1b2623;
    --border: #2b3a35;
    --muted: #9aa8a2;
    --green-mark: #4c8f78;
    --ok: #3fbf86;
    --warn: #e0a94e;
    --stop: #e2705d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --heading-strong: var(--ink);
    --link: #7fd9c4;
    --logo-filter: brightness(0) invert(.92);
  }
}

:root[data-theme="dark"] {
  --ink: #e8e6e1;
  --bg: #0f1614;
  --surface: #16201d;
  --surface-2: #1b2623;
  --border: #2b3a35;
  --muted: #9aa8a2;
  --green-mark: #4c8f78;
  --ok: #3fbf86;
  --warn: #e0a94e;
  --stop: #e2705d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --heading-strong: var(--ink);
  --link: #7fd9c4;
  --logo-filter: brightness(0) invert(.92);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
a { color: var(--link); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { display: block; filter: var(--logo-filter); }
.brand__back { font-size: 13.5px; color: var(--muted); }

.topbar__actions { display: flex; align-items: center; gap: 14px; }
.updated { font-size: 13.5px; color: var(--muted); }

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background .15s;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Contenedor de página ---------- */
.wrap { max-width: 1500px; margin: 0 auto; padding: 40px 24px 64px; }

/* ---------- Encabezado de página ---------- */
.page-head { margin-bottom: 34px; max-width: 640px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--terra);
  margin: 0 0 8px;
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--heading-strong); }
.lede { color: var(--muted); margin: 12px 0 0; }

/* ---------- Estado (puntos) ---------- */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot--operativo { background: var(--ok); }
.dot--atencion { background: var(--warn); }
.dot--detenido { background: var(--stop); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 15px;
  border: 1px solid var(--teal); cursor: pointer;
}
.btn:hover { background: color-mix(in srgb, var(--teal) 85%, #000); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--border); background: var(--surface); }
.foot__inner {
  max-width: 1500px; margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.foot img { filter: var(--logo-filter); }
.foot p { margin: 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 28px 16px 48px; }
  .topbar__inner { padding: 10px 16px; }
}
