/* ============ Tokens (claro / oscuro) ============ */
:root {
  --bg: #f6f7fa;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --text: #0b1220;
  --muted: #5a6478;
  --line: #e2e6ee;
  --accent: #f5a400;
  --accent-2: #ffcc33;
  --accent-ink: #1b1400;
  --sky: #0284c7;
  --green: #16a34a;
  --red: #dc2626;
  --violet: #7c3aed;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .06);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #0f1726;
  --surface-2: #142036;
  --text: #e9edf5;
  --muted: #94a0b8;
  --line: #1f2b43;
  --sky: #38bdf8;
  --green: #4ade80;
  --red: #f87171;
  --violet: #a78bfa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b14; --bg-alt: #0b1120; --surface: #0f1726; --surface-2: #142036;
    --text: #e9edf5; --muted: #94a0b8; --line: #1f2b43; --sky: #38bdf8;
    --green: #4ade80; --red: #f87171; --violet: #a78bfa;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(245, 164, 0, .35); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(245, 164, 0, .5); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-wa { background: #25d366; color: #052e14; }
.btn-wa:hover { box-shadow: 0 10px 28px rgba(37, 211, 102, .4); transform: translateY(-1px); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text);
}
.icon-btn:hover { border-color: var(--accent); }

/* ============ Formularios ============ */
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
textarea.input { resize: vertical; min-height: 96px; }

/* ============ Logo ============ */
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 6px 16px rgba(245, 164, 0, .35);
}
.logo-mark svg { width: 80%; height: 80%; }
.logo .wm-1 { font-weight: 800; }
.logo .wm-2 { font-weight: 600; color: var(--accent); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--text); color: var(--bg); padding: .8rem 1.2rem; border-radius: 12px;
  font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200; transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

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