@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");

/* Huella — sistema visual base (prototipo)
   La app es neutra (papel cálido + tinta) y la marca de cada empresa
   entra solo como acento: --brand / --brand-2 / --brand-tint. */

:root {
  --bg: #f4f3ef;
  --bg-2: #ecebe6;
  --surface: #ffffff;
  --ink: #111214;
  --ink-2: #3a3d42;
  --muted: #73777f;
  --faint: #a3a6ab;
  --line: rgba(17, 18, 20, 0.08);
  --line-2: rgba(17, 18, 20, 0.14);

  --ok: #0e9f5b;
  --ok-bg: #e2f5ea;
  --warn: #b97800;
  --warn-bg: #fff3d1;
  --bad: #dc3b3f;
  --bad-bg: #fde7e7;

  --brand: #004688;
  --brand-2: #e2061f;
  --brand-tint: #e7f0f9;
  --brand-ink: #062a52;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --shadow-1: 0 1px 2px rgba(17, 18, 20, 0.04), 0 2px 8px -2px rgba(17, 18, 20, 0.06);
  --shadow-2: 0 1px 2px rgba(17, 18, 20, 0.05), 0 12px 32px -10px rgba(17, 18, 20, 0.18);
  --shadow-3: 0 2px 4px rgba(17, 18, 20, 0.06), 0 24px 64px -16px rgba(17, 18, 20, 0.32);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-company="newledup"] {
  --brand: #1a6ae0;
  --brand-2: #0b1b4d;
  --brand-tint: #e8f0fd;
  --brand-ink: #0b1b4d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 600;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "tnum", "zero";
  letter-spacing: -0.01em;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background-color 200ms, opacity 200ms, box-shadow 200ms;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -6px rgba(17, 18, 20, 0.5);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -8px var(--brand);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-soft {
  background: rgba(17, 18, 20, 0.05);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  --h: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 11px;
}

/* ---------- Chips y estados ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(17, 18, 20, 0.05);
  color: var(--ink-2);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.chip.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.chip.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.chip.brand {
  background: var(--brand-tint);
  color: var(--brand);
}

.pulse {
  position: relative;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: pulse 1.8s var(--ease-out) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ---------- Iconos ---------- */
.i {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sm {
  width: 16px;
  height: 16px;
}

.i-lg {
  width: 26px;
  height: 26px;
}

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