/* GLOBALT ROBOTICS — Tokens, reset, tipografía y botones (tema Dark Tech) */
:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --surface: #0f172a;
  --surface-2: #131c31;
  --surface-3: #1a2540;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --cyan: #38bdf8;
  --orange: #f97316;
  --green: #22c55e;
  --red: #f43f5e;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --container: 1200px;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: .9em; color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #04111d; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--xl { width: 56px; height: 56px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65em 1.2em;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: linear-gradient(135deg, var(--cyan), #0ea5e9); color: #03111c; box-shadow: 0 8px 24px -10px rgba(56, 189, 248, .7); }
.btn--outline { border-color: var(--border-strong); color: var(--text-strong); background: rgba(15, 23, 42, .6); }
.btn--outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--wa { background: var(--wa); color: #052e16; }
.btn--danger { background: rgba(244, 63, 94, .12); color: #fda4af; border-color: rgba(244, 63, 94, .35); }
.btn--orange { background: var(--orange); color: #1c0a00; }
.btn--lg { min-height: 52px; padding: .8em 1.6em; font-size: 1rem; }
.btn--sm { min-height: 36px; padding: .4em .9em; font-size: .85rem; }
.btn--block { width: 100%; }

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

/* Etiquetas */
.tag {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(56, 189, 248, .12); color: var(--cyan); border: 1px solid rgba(56, 189, 248, .25);
}
.tag .icon { width: .95em; height: .95em; }
.tag--soft { background: var(--surface-3); color: var(--muted); border-color: var(--border); }
.lvl-basic { background: rgba(56, 189, 248, .12); color: #7dd3fc; border-color: rgba(56, 189, 248, .3); }
.lvl-mid { background: rgba(249, 115, 22, .12); color: #fdba74; border-color: rgba(249, 115, 22, .3); }
.lvl-final { background: rgba(34, 197, 94, .12); color: #86efac; border-color: rgba(34, 197, 94, .3); }

.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .82rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.eyebrow--cyan { color: var(--cyan); }
.eyebrow--orange { color: var(--orange); }
.eyebrow--green { color: var(--green); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

/* Notificaciones */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow); transition: opacity .4s, transform .4s; }
.toast--ok { border-left: 4px solid var(--green); }
.toast--error { border-left: 4px solid var(--red); }
.toast.is-out { opacity: 0; transform: translateY(8px); }

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