/* Base compartida: tokens, reset, botones y formularios */
:root {
  --bone: #f3f0e9;
  --paper: #faf8f3;
  --ink: #15140f;
  --ink-2: #4a4940;
  --mute: #86837a;
  --line: #ddd8cb;
  --line-2: #c6c0b0;
  --wa: #0d7a43;
  --wa-hover: #0a6538;
  --danger: #a3261c;
  --font: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.mono { font-family: var(--mono); }
.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: #2b2a23; }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; padding: 0; font: 500 14px var(--font); text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.link:hover { color: var(--ink); }

/* Campos */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > legend {
  font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0;
}
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r); outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,20,15,.08); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  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 1.5 6 6.5 11 1.5' fill='none' stroke='%2315140f' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: var(--mute); }

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