/* =============================================================================
   base.css — Reset moderno y estilos base del documento.
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Fondo con degradados radiales verdes muy sutiles bajo las partículas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(0, 255, 102, 0.10), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(0, 229, 255, 0.06), transparent 55%),
    radial-gradient(1000px 900px at 50% 120%, rgba(0, 255, 102, 0.08), transparent 60%);
}

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

a {
  color: var(--neon);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--neon-bright);
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

ul { list-style: none; }

/* Selección de texto con tinte neón. */
::selection {
  background: rgba(0, 255, 102, 0.28);
  color: #fff;
}

/* Scrollbar futurista. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-dim) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-dim), var(--green-deep));
  border-radius: var(--r-full);
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* Anillo de foco accesible y coherente con el tema. */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lienzo de partículas fijo detrás del contenido. */
#particles {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  opacity: 0.9;
}

main { position: relative; z-index: var(--z-content); }
