/* Tokens de marca · valores verificados contra el tablero original (docs/decisions/diseno-flujos.md) */
:root {
  --nude: #F8EFE9;
  --rosa: #D7B3B0;
  --beige: #C9B29E;
  --taupe: #A78F8A;
  --chocolate: #7A6359;
  --salvia: #B7BCA7;
  --rosa-claro: #F3D9D8;
  --dorado: #D4AF7C;
  --blanco-roto: #FAF7F4;

  --ink: #4C3A36;           /* 9.4:1 sobre nude */
  --ink-soft: #6B5350;      /* 6.6:1 sobre blanco roto */
  --line: #E8DCD5;
  --surface: #FFFFFF;
  --danger: #9B3B34;
  --danger-bg: #FBEDEB;
  --ok: #3F6B45;
  --ok-bg: #EEF2E9;
  --warn-bg: #FBF3E6;
  --warn-ink: #6E5132;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --focus: 0 0 0 3px var(--blanco-roto), 0 0 0 5px var(--chocolate);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--ink); background: var(--blanco-roto); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid var(--chocolate); background: var(--chocolate); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, transform .05s; }
.btn:hover { background: #69544B; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #CFC3BE; border-color: #CFC3BE; color: #fff; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--chocolate); }
.btn.ghost:hover { background: var(--rosa-claro); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #D9A7A1; }
.btn.danger:hover { background: var(--danger-bg); }

.field { display: grid; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-soft); }
.error { font-size: 13px; color: var(--danger); font-weight: 600; }
input, select, textarea, fieldset { scroll-margin-top: 130px; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #CDBAB2; border-radius: 10px; background: var(--surface); }
textarea.input { min-height: 88px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; background: var(--rosa-claro); color: #5E4842; white-space: nowrap; }
.badge.unverified { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed #C9A67A; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.demo { background: var(--ink); color: #fff; }

.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.error { background: var(--danger-bg); color: var(--danger); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }

.demo-bar { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-bar strong { letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
