/* IT-Sistemas · nodos de la red. Sin fuentes ni recursos externos. */
:root {
  --bg: #05070d;
  --bg2: #0a0f1c;
  --panel: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .08);
  --ink: #e8edf7;
  --ink2: #9aa6bd;
  --ink3: #5d6a82;
  --com: #3b82f6;
  --es: #22c55e;
  --eu: #a855f7;
  --ok: #22c55e;
  --down: #ef4444;
  --accent: var(--com);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html[data-node="es"] { --accent: var(--es); }
html[data-node="eu"] { --accent: var(--eu); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Cabecera */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark circle { fill: var(--accent); }
.brand-mark path { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .55; }
.nodes-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 15, 28, .6); backdrop-filter: blur(8px); }
.nodes-nav a { text-decoration: none; font: 600 13px var(--mono); color: var(--ink2); padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nodes-nav a:hover { color: var(--ink); }
html[data-node="com"] .nodes-nav a[data-n="com"],
html[data-node="es"]  .nodes-nav a[data-n="es"],
html[data-node="eu"]  .nodes-nav a[data-n="eu"] { background: var(--accent); color: #fff; }

/* Portada */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(16px, 6vw, 96px) 64px;
  isolation: isolate;
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 20% 45%, rgba(5, 7, 13, .85), rgba(5, 7, 13, 0) 70%),
              linear-gradient(rgba(5, 7, 13, 0) 70%, var(--bg));
}
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 13px var(--mono); color: var(--ink2); text-transform: uppercase; letter-spacing: 1.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
h1 { margin: 0; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -2px; font-weight: 800; }
.grad {
  background: linear-gradient(90deg, var(--com), var(--eu) 50%, var(--es));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shift 8s ease-in-out infinite alternate;
}
@keyframes shift { to { background-position: 100% 0; } }
.lead { margin: 22px 0 0; max-width: 520px; font-size: clamp(17px, 2vw, 20px); color: var(--ink2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.btn.ghost:hover { background: rgba(255, 255, 255, .07); }

.status { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 56px 0 0; padding: 0; }
.status li {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 15, 28, .7); backdrop-filter: blur(8px);
}
.status b { font-size: 14px; }
.status small { font: 12px var(--mono); color: var(--ink3); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--ink3); }
.status li[data-state="up"] .led { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status li[data-state="down"] .led { background: var(--down); box-shadow: 0 0 10px var(--down); }
html[data-node="com"] .status li[data-n="com"],
html[data-node="es"]  .status li[data-n="es"],
html[data-node="eu"]  .status li[data-n="eu"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* Bloques */
.band { scroll-margin-top: 64px; padding: 96px clamp(16px, 6vw, 96px); max-width: 1240px; margin: 0 auto; }
h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; line-height: 1.1; }
.sub { margin: 0 0 36px; color: var(--ink2); max-width: 560px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.feature {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.feature svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 16px 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink2); font-size: 15px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.product {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  transition: transform .2s, border-color .2s, background .2s;
}
.product b { font-size: 16px; }
.product span { font-size: 13px; color: var(--ink2); }
.product:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: rgba(255, 255, 255, .06); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 32px clamp(16px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--ink3); font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--ink2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Hasta 1080 px la red va en la franja superior y el texto debajo
   (mismo umbral que app.js). */
@media (max-width: 1080px) {
  .hero { justify-content: flex-start; padding-top: calc(40svh + 8px); padding-bottom: 40px; }
  .status { margin-top: 36px; }
}
@media (max-width: 560px) {
  .nodes-nav a { padding: 6px 9px; }
  .brand span { display: none; }
  .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .grad { animation: none; }
  .btn, .product { transition: none; }
}
