/* ================================================================
   VAMPSECURE STUDIOS — Design System
   Estética: tech profesional · navy/negro · cyan/púrpura
   Sin dependencias externas
   ================================================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; }

/* ---- CUSTOM PROPERTIES ---- */
:root {
  /* Palette */
  --clr-bg:          #0a0e1a;
  --clr-bg-soft:     #0d1120;
  --clr-bg-card:     #111827;
  --clr-bg-card-2:   #1a2235;
  --clr-border:      #1e2a3a;
  --clr-border-soft: #141d2e;
  --clr-text:        #e2e8f0;
  --clr-text-muted:  #64748b;
  --clr-text-dim:    #334155;
  --clr-cyan:        #00d4ff;
  --clr-cyan-dk:     #00a3cc;
  --clr-cyan-dim:    #0a4a5e;
  --clr-purple:      #7c3aed;
  --clr-purple-lt:   #a78bfa;
  --clr-purple-dim:  #2d1b69;
  --clr-green:       #22c55e;
  --clr-green-dim:   #052e16;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  1.75rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --navbar-h: 96px;
  --max-w:    1140px;
  --narrow-w: 700px;
  --radius:   6px;
  --radius-lg: 12px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Shadows */
  --shadow-md:   0 4px 16px rgba(0,0,0,.5);
  --shadow-cyan: 0 0 24px rgba(0,212,255,.1);
  --shadow-glow: 0 0 40px rgba(0,212,255,.06);
}

/* ---- BASE ---- */
body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- ACCESSIBILITY ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--clr-cyan);
  color: var(--clr-bg);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  z-index: 9999;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }
.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;
}
:focus-visible {
  outline: 2px solid var(--clr-cyan);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-text);
  letter-spacing: -.02em;
}
p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }
em { color: var(--clr-cyan); font-style: normal; }
strong { color: var(--clr-text); font-weight: 600; }
a { color: var(--clr-cyan); text-decoration: underline; text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: #66e5ff; }
code, .code { font-family: var(--font-mono); font-size: .9em; color: var(--clr-green); }

.text-muted { color: var(--clr-text-muted); }
.text-sm    { font-size: var(--text-sm); }

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--narrow { max-width: var(--narrow-w); }
.section { padding-block: var(--sp-24); }
.section--dark { background-color: var(--clr-bg-soft); }

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .2em;
  color: var(--clr-cyan);
  margin-bottom: var(--sp-4);
}
.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin-bottom: var(--sp-6);
  font-weight: 800;
  letter-spacing: -.03em;
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-12);
  max-width: 600px;
  margin-inline: auto;
}
.section-header { text-align: center; }
.section-footer-cta { text-align: center; margin-top: var(--sp-12); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn--primary {
  background: var(--clr-cyan);
  color: var(--clr-bg);
  border-color: var(--clr-cyan);
}
.btn--primary:hover {
  background: #33dcff;
  color: var(--clr-bg);
  box-shadow: var(--shadow-cyan);
}
.btn--ghost {
  background: transparent;
  color: var(--clr-text-muted);
  border-color: var(--clr-border);
}
.btn--ghost:hover { border-color: var(--clr-text-muted); color: var(--clr-text); }
.btn--outline {
  background: transparent;
  color: var(--clr-cyan);
  border-color: var(--clr-cyan-dim);
}
.btn--outline:hover {
  background: rgba(0,212,255,.06);
  border-color: var(--clr-cyan);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--sp-4);
  transition: background var(--t-slow), box-shadow var(--t-slow);
}
.navbar.scrolled {
  background: rgba(10,14,26,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--clr-border);
  padding-block: var(--sp-3);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.navbar__logo { position: relative; z-index: 110; }
.navbar__logo img { height: 64px; width: auto; }
.navbar__nav ul { display: flex; align-items: center; gap: var(--sp-6); }
.navbar__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.navbar__nav a:hover, .navbar__nav a.active { color: var(--clr-text); }
.navbar__cta {
  background: var(--clr-cyan) !important;
  color: var(--clr-bg) !important;
  padding: var(--sp-2) var(--sp-4) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.navbar__cta:hover { background: #33dcff !important; }
.navbar__burger {
  display: none;
  position: relative; z-index: 110;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  cursor: pointer; padding: 6px;
}
.navbar__burger span {
  display: block; height: 1px;
  background: var(--clr-text-muted);
  transition: all var(--t-base);
  transform-origin: center;
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--clr-bg);
}
#grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .25;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 20%, rgba(10,14,26,.8) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-8) var(--sp-6);
  padding-top: calc(var(--sp-24) + 64px);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(0,212,255,.08);
  border: 1px solid var(--clr-cyan-dim);
  border-radius: 100px;
  padding: var(--sp-1) var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-cyan);
  letter-spacing: .08em;
  margin-bottom: var(--sp-8);
  animation: fadeInDown .8s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--clr-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
.hero__title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: var(--sp-6);
  animation: fadeInUp .7s .2s ease both;
  max-width: 640px;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-purple-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
  animation: fadeInUp .7s .35s ease both;
}
.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-16);
  animation: fadeInUp .7s .5s ease both;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  animation: fadeInUp .7s .65s ease both;
}
.hero-stat__n {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -.03em;
}
.hero-stat__l {
  display: block;
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  letter-spacing: .06em;
}
.hero-stat-sep { color: var(--clr-border); font-size: var(--text-2xl); }
.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--clr-text-dim);
  font-size: var(--text-xl);
  animation: bounce 2s ease infinite;
  z-index: 1;
}

/* ---- PRODUCTOS ---- */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
}
.producto-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  overflow: hidden;
}
.producto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-cyan), var(--clr-purple));
  opacity: 0;
  transition: opacity var(--t-base);
}
.producto-card:hover {
  border-color: var(--clr-cyan-dim);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}
.producto-card:hover::before { opacity: 1; }
.producto-card--featured {
  border-color: var(--clr-cyan-dim);
  background: linear-gradient(135deg, var(--clr-bg-card) 0%, rgba(0,212,255,.03) 100%);
}
.producto-card--featured::before { opacity: .5; }
.producto-card__icon {
  width: 48px; height: 48px;
  background: var(--clr-bg-card-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.producto-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.producto-card__badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 2px var(--sp-2);
  border-radius: var(--radius);
  white-space: nowrap;
}
.producto-card__badge--activo      { background: rgba(34,197,94,.12); color: var(--clr-green); border: 1px solid rgba(34,197,94,.2); }
.producto-card__badge--beta        { background: rgba(124,58,237,.12); color: var(--clr-purple-lt); border: 1px solid rgba(124,58,237,.2); }
.producto-card__badge--pronto      { background: rgba(100,116,139,.1); color: var(--clr-text-muted); border: 1px solid var(--clr-border); }
.producto-card__badge--desarrollo  { background: rgba(0,212,255,.08); color: var(--clr-cyan); border: 1px solid rgba(0,212,255,.2); }
.producto-card__badge--completado  { background: rgba(34,197,94,.12); color: var(--clr-green); border: 1px solid rgba(34,197,94,.2); }
.producto-card__badge--planificacion { background: rgba(100,116,139,.1); color: var(--clr-text-dim); border: 1px solid var(--clr-border); }
.producto-card__name { font-size: var(--text-xl); font-weight: 700; color: var(--clr-text); }
.producto-card__tagline { font-size: var(--text-sm); color: var(--clr-cyan); font-family: var(--font-mono); }
.producto-card__desc { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.65; flex: 1; }
.producto-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--clr-text-dim);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border-soft);
  border-radius: var(--radius);
  padding: 2px var(--sp-2);
}
.producto-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border-soft);
}
.producto-card__price {
  font-weight: 700;
  color: var(--clr-text);
}
.producto-card__price-sub {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  display: block;
}

/* ---- TECNOLOGÍA ---- */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.tech-principles { display: flex; flex-direction: column; gap: var(--sp-6); margin-top: var(--sp-8); }
.tech-principles li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.tech-principles li p { font-size: var(--text-sm); color: var(--clr-text-muted); margin-bottom: 0; }
.tech-principles strong { display: block; margin-bottom: var(--sp-1); color: var(--clr-text); font-size: var(--text-base); }
.tech-principle__icon { color: var(--clr-cyan); font-size: var(--text-sm); margin-top: 4px; flex-shrink: 0; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.stack-item {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  text-align: center;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.stack-item:hover {
  border-color: var(--clr-cyan-dim);
  box-shadow: 0 0 16px rgba(0,212,255,.06);
}
.stack-item__icon { font-size: 1.6rem; display: block; margin-bottom: var(--sp-2); }
.stack-item__name { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--clr-text-muted); }

/* ---- ESTUDIO ---- */
.estudio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.estudio-terminal {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.terminal-bar {
  background: var(--clr-bg-card-2);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot--red    { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green  { background: #28c840; }
.terminal-title-bar {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
}
.terminal-body { padding: var(--sp-6); min-height: 280px; }
.terminal-prompt { color: var(--clr-cyan); margin-right: var(--sp-2); }
.terminal-cmd { color: var(--clr-text); }
.terminal-cursor {
  color: var(--clr-cyan);
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
.terminal-line { display: block; margin-bottom: var(--sp-2); min-height: 1.4em; }
.terminal-line.out { color: var(--clr-text-muted); padding-left: var(--sp-4); }
.terminal-line.ok  { color: var(--clr-green); padding-left: var(--sp-4); }
.terminal-line.info { color: var(--clr-purple-lt); padding-left: var(--sp-4); }

.estudio-text p { color: var(--clr-text-muted); }
.estudio-link-row { margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--clr-border-soft); }
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}
.brand-link:hover { color: var(--clr-cyan); }
.brand-link__icon { color: var(--clr-cyan); }

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.blog-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--t-base), transform var(--t-base);
}
.blog-card:hover { border-color: var(--clr-border); transform: translateY(-2px); }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
}
.blog-card__tag {
  background: rgba(0,212,255,.08);
  color: var(--clr-cyan);
  border: 1px solid var(--clr-cyan-dim);
  border-radius: var(--radius);
  padding: 2px var(--sp-2);
}
.blog-card__title { font-size: var(--text-lg); font-weight: 700; color: var(--clr-text); line-height: 1.3; }
.blog-card__excerpt { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.65; flex: 1; }
.blog-card__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-cyan);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color var(--t-fast);
}
.blog-card__link:hover { color: #66e5ff; }

/* ---- CONTACT CTA ---- */
.section--contact-cta {
  background: linear-gradient(135deg, var(--clr-bg-soft) 0%, var(--clr-bg) 100%);
  border-top: 1px solid var(--clr-border-soft);
}
.contact-cta-box {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-cyan), transparent);
}
.contact-cta-box p { color: var(--clr-text-muted); max-width: 480px; margin-inline: auto; margin-bottom: var(--sp-8); }
.contact-options { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 460px; margin-inline: auto; }
.contact-option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: var(--clr-bg-soft);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--t-base);
}
.contact-option-btn:hover { border-color: var(--clr-cyan); color: var(--clr-cyan); }
.contact-option-btn--secondary { color: var(--clr-text-muted); }
.contact-option-btn--secondary:hover { border-color: var(--clr-purple); color: var(--clr-purple-lt); }

/* ---- FOOTER ---- */
.footer {
  background: var(--clr-bg-soft);
  border-top: 1px solid var(--clr-border-soft);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}
.footer__brand img { height: 56px; width: auto; margin-bottom: var(--sp-4); }
.footer__tagline { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.7; margin-bottom: var(--sp-3); }
.footer__partner { font-size: var(--text-sm); color: var(--clr-text-muted); }
.footer__partner a { color: var(--clr-cyan); }
.footer__heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
  font-weight: normal;
}
.footer__links ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--clr-text); }
.footer__bottom {
  border-top: 1px solid var(--clr-border-soft);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-text-dim);
}
.footer__tech { font-style: italic; }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8); right: var(--sp-8);
  width: 40px; height: 40px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
  z-index: 50;
}
.back-to-top:hover { border-color: var(--clr-cyan); color: var(--clr-cyan); transform: translateY(-2px); }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
.reveal.waiting { opacity: 0; transform: translateY(20px); }
.reveal.waiting.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%       { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  :root { --sp-24: 4rem; }
  .navbar__nav { display: none; }
  .navbar__nav.open {
    display: flex;
    position: fixed;
    inset: 0; top: 64px;
    background: rgba(10,14,26,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
    z-index: 99;
  }
  .navbar__nav.open ul { flex-direction: column; align-items: center; gap: var(--sp-8); }
  .navbar__nav.open a { font-size: var(--text-xl); }
  .navbar__burger { display: flex; }

  .tech-layout  { grid-template-columns: 1fr; }
  .estudio-layout { grid-template-columns: 1fr; }
  .estudio-visual { order: -1; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --sp-24: 3rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero__stats { flex-wrap: wrap; gap: var(--sp-4); }
  .hero-stat-sep { display: none; }
  .productos-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .contact-cta-box { padding: var(--sp-8) var(--sp-4); }
}

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

/* ================================================================
   OPEN SOURCE SECTION
   ================================================================ */
.opensource-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 900px) { .opensource-grid { grid-template-columns: 1fr; } }

.oss-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: border-color var(--t-base);
}
.oss-card--featured { border-color: var(--clr-cyan-dim); }
.oss-card--featured:hover { border-color: rgba(0,212,255,.4); }
.oss-card:not(.oss-card--featured):hover { border-color: var(--clr-border-soft); }

.oss-card__header { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.oss-card__icon { font-size: 2rem; line-height: 1; }
.oss-card__badges { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.oss-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid;
}
.oss-badge--lang    { color: var(--clr-cyan);       border-color: var(--clr-cyan-dim);   background: rgba(0,212,255,.07); }
.oss-badge--license { color: var(--clr-purple-lt);  border-color: var(--clr-purple-dim); background: rgba(124,58,237,.07); }
.oss-badge--platform{ color: var(--clr-green);      border-color: var(--clr-green-dim);  background: rgba(34,197,94,.07); }

.oss-card__name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-text);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.oss-version {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-cyan);
  font-weight: 400;
  background: rgba(0,212,255,.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.oss-card__tagline {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}
.oss-card__desc {
  color: var(--clr-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
}

.oss-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.oss-features li {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}
.oss-feature-icon { color: var(--clr-cyan); font-size: 0.5rem; flex-shrink: 0; margin-top: 5px; }
.oss-features strong { color: var(--clr-text); font-weight: 600; }

.oss-card__install { background: #060910; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: var(--sp-4); }
.oss-install-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--clr-cyan); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: var(--sp-2); }
.oss-install-cmd { margin: 0; background: none; border: none; padding: 0; font-family: var(--font-mono); font-size: 0.82rem; color: #a8d8ea; line-height: 1.7; overflow-x: auto; }
.oss-install-cmd code { background: none; color: inherit; padding: 0; font-size: inherit; }

.oss-card__footer { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* CiberTools Lab grid */
.opensource-grid--lab {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0;
}
.oss-card--lab {
  border-color: rgba(124,58,237,.2);
  padding: 1.25rem;
  gap: .6rem;
}
.oss-card--lab:hover { border-color: rgba(124,58,237,.45); }
.oss-card--lab .oss-card__icon { font-size: 1.6rem; }
.oss-card--lab .oss-card__name { font-size: .9rem; margin-bottom: 0; }
.oss-card--lab .oss-card__tagline { font-size: .72rem; margin-bottom: 0; }
.oss-card--lab .oss-card__desc { font-size: .78rem; line-height: 1.55; color: #7a8fa8; }
.oss-card--lab .oss-card__footer { margin-top: auto; padding-top: .75rem; }
.btn--sm { font-size: .72rem; padding: .28rem .7rem; }

/* ================================================================
   VAMPSECURE NODE SECTION
   ================================================================ */

.node-subsection-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  opacity: .7;
}

/* --- Loading --- */
.node-loading {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-8); color: var(--clr-text-dim);
  font-family: var(--font-mono); font-size: var(--text-sm);
  justify-content: center;
}
.node-loader {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--clr-border);
  border-top-color: var(--clr-cyan);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- War Room: DEFCON + Incident --- */
.node-war-room {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.node-defcon {
  background: #060b14;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.node-defcon__indicator {
  width: 100%;
  padding: 1rem;
  border: 2px solid;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.defcon-4 { color: #4ade80; border-color: #4ade80; }
.defcon-2 { color: #fbbf24; border-color: #fbbf24; }
.defcon-1 { color: #f87171; border-color: #f87171; animation: defcon-blink .8s infinite; }
@keyframes defcon-blink { 50% { opacity: .35; } }

.node-defcon__summary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-text-dim);
  line-height: 1.6;
  margin: 0;
}

.node-incident {
  background: #060b14;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.node-incident__header {
  padding: .75rem 1.25rem;
  background: rgba(0,212,255,.03);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.node-incident__log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  max-height: 220px;
  scrollbar-width: thin;
  scrollbar-color: #1e2a3a transparent;
}
.node-incident__log::-webkit-scrollbar { width: 4px; }
.node-incident__log::-webkit-scrollbar-thumb { background: #1e2a3a; }
.node-incident__entry {
  color: #94a3b8;
  padding: .2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.node-incident__entry:last-child { border-bottom: none; }
.node-incident__tag { color: #a855f7; margin-right: .5rem; }
.node-incident__time { color: #00d4ff; margin-right: .5rem; }

/* --- CVE Stream --- */
.node-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.node-nist-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}
.node-nist-label { transition: color .3s; }
.node-nist-label.ok   { color: #4ade80; }
.node-nist-label.err  { color: #f87171; }

.node-cve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.node-cve-card {
  background: #060b14;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.node-cve-card:hover { border-color: rgba(0,212,255,.35); transform: translateY(-3px); }
.node-cve-card--critical { border-left: 3px solid #f87171; }
.node-cve-card--high     { border-left: 3px solid #fb923c; }
.node-cve-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .75rem;
}
.node-cve-card__id {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-cyan);
}
.node-cve-card__score {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.node-cve-card__score--critical { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.node-cve-card__score--high     { background: rgba(249,115,22,.12); color: #fb923c; border: 1px solid rgba(249,115,22,.25); }
.node-cve-card__score--medium   { background: rgba(234,179,8,.1);   color: #fbbf24; border: 1px solid rgba(234,179,8,.2); }
.node-cve-card__score--low      { background: rgba(34,197,94,.08);  color: #4ade80; border: 1px solid rgba(34,197,94,.15); }
.node-cve-card__desc {
  font-size: .82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: .75rem;
}
.node-cve-card__footer {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: #475569;
  border-top: 1px solid var(--clr-border);
  padding-top: .5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.node-cve-card__decrypt {
  color: #a855f7;
  font-size: .65rem;
  letter-spacing: .08em;
}

/* --- Field Manual --- */
.node-field-manual {
  margin-bottom: 2rem;
}
.node-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.node-step {
  background: #060b14;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.node-step::before {
  content: attr(data-step);
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(0,212,255,.10);
  line-height: 1;
}
.node-step h4 {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-cyan);
  letter-spacing: .08em;
  margin: 0;
}
.node-step p {
  font-size: .82rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}
.node-step p + p { margin-top: .4rem; }
.node-step code {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--clr-cyan);
  background: rgba(0,212,255,.06);
  padding: .1em .35em;
  border-radius: 3px;
  word-break: break-all;
}
.node-step__example {
  margin-top: auto;
  padding: .75rem;
  background: rgba(0,212,255,.04);
  border-left: 2px solid rgba(0,212,255,.35);
  border-radius: 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.node-step__ex-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  color: rgba(0,212,255,.5);
  letter-spacing: .12em;
}
.node-step__example code {
  font-size: .72rem;
  background: rgba(0,212,255,.08);
  display: block;
  padding: .4rem .5rem;
  line-height: 1.5;
  word-break: break-all;
}
.node-step__ex-note {
  font-size: .74rem;
  color: #64748b;
  line-height: 1.5;
  font-style: italic;
}

/* Last sync indicator */
.node-sync-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--clr-text-dim);
  margin-bottom: .75rem;
}
.node-sync-bar::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px #22c55e;
  animation: pulse-green 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* --- Disclaimer --- */
.node-disclaimer {
  font-size: 0.78rem;
  color: var(--clr-text-dim);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}
.node-disclaimer strong { color: var(--clr-text-muted); }
.node-disclaimer a { color: var(--clr-cyan); text-decoration: none; }
.node-disclaimer a:hover { text-decoration: underline; }

/* --- Terminal Modal --- */
.node-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.node-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.node-modal-content {
  width: 90%;
  max-width: 640px;
  background: #060b14;
  border: 2px solid #a855f7;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(168,85,247,.25);
  overflow: hidden;
}
.node-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  background: rgba(168,85,247,.06);
  border-bottom: 1px solid rgba(168,85,247,.2);
}
.node-modal__title {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: #e2e8f0;
  letter-spacing: .06em;
}
.node-modal__close {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #f87171;
  background: none;
  border: 1px solid rgba(248,113,113,.3);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  line-height: 1.4;
}
.node-modal__close:hover { background: rgba(248,113,113,.1); }
.node-modal__body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: #4ade80;
  line-height: 1.75;
  min-height: 180px;
  max-height: 350px;
  overflow-y: auto;
  background: #020508;
}
.node-modal__footer {
  padding: .9rem 1.25rem;
  background: rgba(0,0,0,.3);
  border-top: 1px solid var(--clr-border);
  text-align: right;
}

/* Responsive */
@media (max-width: 800px) {
  .node-war-room { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .node-cve-grid { grid-template-columns: 1fr; }
  .node-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .node-steps { grid-template-columns: 1fr; }
}

/* ================================================================
   PROYECTOS — tabla de estado
   ================================================================ */
.proyectos-tabla {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.proyecto-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  padding: 1rem 1.25rem;
  transition: border-color .2s, background .2s;
}
.proyecto-row:hover { border-color: rgba(0,212,255,.2); background: var(--clr-surface-2); }
.proyecto-row__main { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.proyecto-row__top  { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.proyecto-row__name { font-size: var(--text-sm); font-weight: 700; color: var(--clr-text); }
.proyecto-row__tipo { font-size: var(--text-xs); color: var(--clr-text-dim); font-family: var(--font-mono); }
.proyecto-row__fase { font-size: var(--text-xs); color: var(--clr-text-muted); }
.proyecto-row__desc { font-size: .72rem; color: var(--clr-text-dim); line-height: 1.5; }
.proyecto-row__tech { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.proyecto-row__tech span {
  font-size: .65rem; font-family: var(--font-mono);
  padding: .15rem .45rem; border-radius: 3px;
  background: rgba(0,212,255,.06); color: var(--clr-cyan); border: 1px solid rgba(0,212,255,.15);
}
.proyecto-row__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex-shrink: 0;
}
.proyecto-row__pct {
  font-size: 1.3rem; font-weight: 800; font-family: var(--font-mono);
  line-height: 1;
}
.proyecto-row__pct span { font-size: .65rem; font-weight: 400; color: var(--clr-text-dim); }
.proyecto-row__bar {
  width: 100px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.proyecto-row__bar-fill {
  height: 100%; border-radius: 2px; transition: width .6s ease;
  background: linear-gradient(90deg, var(--clr-cyan), rgba(0,212,255,.5));
}
.proyecto-row__bar-fill--completado { background: linear-gradient(90deg, var(--clr-green), rgba(34,197,94,.5)); }
.proyecto-row__bar-fill--planificacion { background: rgba(100,116,139,.4); }
.proyecto-row__badge {
  font-size: .65rem; font-weight: 600; font-family: var(--font-mono);
  padding: .2rem .6rem; border-radius: 20px; white-space: nowrap;
}
@media (max-width: 640px) {
  .proyecto-row { grid-template-columns: 1fr; }
  .proyecto-row__meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: .5rem .75rem; }
  .proyecto-row__bar { width: 80px; }
}
