/* ==========================================================================
   Nemelia Studio — main.css
   Tokens base (paleta y tipografía tomadas del diseño Stitch "Midnight
   Executive Tech") + reset + utilidades de layout + tipografía global.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Superficies (de más profunda a más elevada) --- */
  --bg: #0f131d;
  --bg-lowest: #0a0e18;
  --surface: #171b26;
  --surface-raised: #1c1f2a;
  --surface-high: #262a35;
  --surface-highest: #313540;
  --border: #3f4850;
  --border-soft: rgba(148, 163, 184, 0.14);

  /* --- Texto --- */
  --text: #dfe2f1;
  --text-muted: #bfc7d2;
  --text-faint: #89929b;

  /* --- Acentos --- */
  --primary: #93ccff;
  --primary-strong: #3198dc;
  --on-primary: #003351;
  --secondary: #7bd0ff;
  --tertiary: #4edea3;      /* estado operativo / éxito */
  --warning: #f5a623;
  --danger: #ffb4ab;

  /* --- Tipografía --- */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Espaciado (ritmo 8pt) --- */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* --- Radios --- */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* --- Layout --- */
  --content-width: 1200px;
  --margin-desktop: 3rem;
  --margin-tablet: 2rem;
  --margin-mobile: 1.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

/* Foco visible accesible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--tertiary);
}

.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 768px) { .container { padding: 0 var(--margin-tablet); } }
@media (min-width: 1200px) { .container { padding: 0 var(--margin-desktop); } }

section { padding: var(--space-3xl) 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--on-primary);
  box-shadow: 0 0 0 1px rgba(147, 204, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(147, 204, 255, 0.35); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-soft);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
