/* Biometriv editorial design system — shared tokens + base components.
   Use Georgia for editorial titles, system sans for body. Plano, sin sombras,
   sin gradientes. Acento único teal. */

:root {
  --ink:    #0C2B2A;
  --accent: #0F766E;
  --accent-soft: #115E55;
  --mute:   #64748B;
  --soft:   #94A3B8;
  --line:   #E2E8F0;
  --bg:     #FFFFFF;
  --bg-soft:#FAFBFB;
  --ok:     #059669;
  --warn:   #DC2626;
  --amber:  #B45309;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Calibri, Roboto, sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', Monaco, monospace;

  /* Legacy aliases — let existing rules using --teal stop breaking gradually */
  --teal: var(--accent);
  --teal-mid: var(--accent);
  --teal-light: #E6F1EF;
  --teal-pale: #F4F8F7;
  --ink-mid: #2C3E38;
  --muted: var(--mute);
  --border: var(--line);
  --white: var(--bg);
  --red: var(--warn);
  --green: var(--ok);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Editorial typography */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }
h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: var(--ink); }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--ink); }

/* Eyebrow */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Brand mark (logo text) */
.brand-mark {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

/* Buttons */
.btn-base, .btn-primary, .btn-ghost, .btn-text {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: white; }
.btn-link {
  background: transparent; color: var(--ink); border: none; padding: 0;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 2px;
  text-decoration: none;
}
.btn-link:hover { color: var(--accent); }

/* Forms */
.form-input, input[type=text].form, input[type=email].form, input[type=tel].form,
input[type=number].form, input[type=password].form, select.form, textarea.form {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, input.form:focus, select.form:focus, textarea.form:focus { border-color: var(--accent); }
.form-input::placeholder, input.form::placeholder, textarea.form::placeholder { color: var(--soft); }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Card surface (plain — no shadow, no rounded) */
.card-flat {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 28px;
}

/* Accent line / divider */
.accent-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 24px 0;
  border: none;
}
.divider {
  display: block;
  height: 1px;
  background: var(--line);
  border: none;
  margin: 32px 0;
}

/* Editorial big number */
.big-number {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  color: var(--accent);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* Status dots */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.status-dot.green, .status-dot.ok { background: var(--ok); }
.status-dot.amber, .status-dot.warn { background: var(--amber); }
.status-dot.red, .status-dot.crit { background: var(--warn); }

/* Page-level layout helpers */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* Auth/centered minimal pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 48px 40px;
}
.auth-card .brand-mark { display: block; text-align: center; margin-bottom: 32px; }
.auth-card h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 12px;
}
.auth-card p.sub {
  text-align: center;
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 32px;
}

/* Top bar / app nav */
.app-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  max-width: 1280px; margin: 0 auto;
}
.app-nav-actions { display: flex; gap: 18px; align-items: center; }
.app-nav-actions a {
  font-size: 13px; color: var(--ink); text-decoration: none; font-weight: 500;
  letter-spacing: 0.02em;
}
.app-nav-actions a.muted { color: var(--mute); }
.app-nav-actions a:hover { color: var(--accent); }

/* Editorial section frame */
section.editorial-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section.editorial-section:last-of-type { border-bottom: none; }

/* Footer */
.app-footer {
  border-top: 1px solid var(--line);
  padding: 40px 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  font-size: 12px; color: var(--mute);
}
.app-footer a { color: var(--mute); text-decoration: none; }
.app-footer a:hover { color: var(--ink); }
.app-footer .brand-mark { font-size: 11px; }

/* Responsive base */
@media (max-width: 700px) {
  .wrap { padding: 0 24px; }
  .auth-card { padding: 36px 24px; }
  .app-nav-inner { padding: 16px 22px; }
  .app-footer { padding: 32px 22px; flex-direction: column; }
}
