/* Tokens de diseño: tema claro al estilo monday.com */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #eceff8;
  --surface: #ffffff;
  --line: #d0d4e4;
  --line-2: #e6e9ef;
  --text: #323338;
  --text-2: #676879;
  --text-3: #9699a6;

  --primary: #0073ea;
  --primary-hover: #0060b9;
  --primary-light: #cce5ff;
  --primary-tint: #e5f4ff;
  --positive: #00c875;
  --negative: #e2445c;
  --warning: #fdab3d;
  --purple: #a25ddc;
  --yellow: #ffcb00;
  --pink: #ff5ac4;
  --blue: #579bfc;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 4px 12px rgba(29, 31, 46, 0.12);
  --shadow-lg: 0 8px 28px rgba(29, 31, 46, 0.18);
  --focus: 0 0 0 3px rgba(0, 115, 234, 0.25);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-2); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--focus); }
.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23676879' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.textarea { min-height: 90px; resize: vertical; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { background: var(--bg-3); }
.btn:focus-visible { box-shadow: var(--focus); outline: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { background: var(--bg-3); }
.btn-danger { color: var(--negative); border-color: transparent; }
.btn-danger:hover { background: rgba(226, 68, 92, 0.1); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 8px; font-size: 13px; }
.btn-icon { width: 36px; padding: 0; }

.error-text { color: var(--negative); font-size: 13px; min-height: 1.2em; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
