/* N2Solutions · Brand tokens */
:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-elev: #111111;
  --bg-card: #0e0e0e;
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.72);
  --fg-faint: rgba(255, 255, 255, 0.32);
  --fg-ghost: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #00c875;
  --accent-dim: rgba(0, 200, 117, 0.16);
  --accent-glow: rgba(0, 200, 117, 0.5);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1360px;
  --gutter: 32px;
}
@media (max-width: 700px) {
  :root {
    --gutter: 20px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02";
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

.mono,
.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-feature-settings: normal;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  border: none;
  font-family: inherit;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: #00150d;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--fg-faint);
}
.btn-arrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Selection */
::selection {
  background: var(--accent);
  color: #000;
}

/* Scrollbar (dark) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Headings */
h1,
h2,
h3,
h4 {
  font-family: "Geist", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 {
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(22px, 2.2vw, 32px);
}
p {
  color: var(--fg-dim);
}

/* Reveal helpers */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Noise overlay utility */
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Highlight word */
.hl {
  color: var(--accent);
}
.hl-soft {
  color: var(--fg);
}

/* Acento de marca — el "2" verde de "N2Solutions" (nav + footer) */
.brand-accent {
  color: var(--accent);
  font-weight: 700;
}

/* Section spacing */
section {
  position: relative;
}
.section-pad {
  padding: clamp(80px, 12vw, 180px) 0;
}

/* Offset para anclas: que la nav fija no tape el título al saltar (#contacto, #faq...) */
section[id],
[id].faq-item {
  scroll-margin-top: clamp(72px, 10vh, 100px);
}

/* Skip-link accesible: oculto hasta recibir foco con el teclado */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--accent);
  color: #00150d;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: none;
}
