/* ══════════════════════════════════════════════
   RESET + CUSTOM PROPERTIES
   Fuente única de verdad para toda la identidad visual.
   Cambiar aquí propaga a todo el sitio.
══════════════════════════════════════════════ */

:root {
  /* Colores base */
  --bg-deep:        #07090f;
  --bg-surface:     rgba(15, 20, 35, 0.72);
  --bg-card:        rgba(18, 24, 42, 0.80);
  --bg-card-hover:  rgba(22, 30, 54, 0.90);

  /* Texto */
  --text-primary:   #e8edf5;
  --text-secondary: #9aabc2;
  --text-muted:     #5a6a82;

  /* Acentos */
  --blue:           #2f80ed;
  --blue-hover:     #5b9cf6;
  --blue-glow:      rgba(47, 128, 237, 0.28);
  --blue-dim:       rgba(47, 128, 237, 0.12);
  --green:          #00d4aa;
  --green-dim:      rgba(0, 212, 170, 0.14);

  /* Bordes */
  --border:         rgba(47, 128, 237, 0.18);
  --border-strong:  rgba(47, 128, 237, 0.38);

  /* Tipografía */
  --font-display:   'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      ui-monospace, 'Cascadia Code', 'Fira Code', 'Courier New', monospace;

  /* Radios y sombras */
  --radius-sm:      4px;
  --radius:         6px;
  --radius-lg:      10px;
  --radius-xl:      16px;
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.45), 0 1px 0 var(--border);
  --shadow-glow:    0 0 28px var(--blue-glow);
  --shadow-glow-sm: 0 0 12px var(--blue-glow);

  /* Transiciones */
  --ease-out:       cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:       260ms;
  --duration-slow:  480ms;

  /* Layout */
  --container:      1200px;
  --container-pad:  clamp(1.25rem, 5vw, 2.5rem);
  --section-pad:    clamp(4rem, 8vw, 7rem);
  --nav-h:          68px;
}

/* ── Reset base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover { color: var(--blue-hover); }

ul, ol { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

address { font-style: normal; }

/* ── Foco visible (accesibilidad) ── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Scrollbar personalizada ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Selección de texto ── */
::selection {
  background: var(--blue-dim);
  color: var(--blue-hover);
}
