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

:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --amber: #BA7517;
  --amber-light: #FAEEDA;
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --coral: #993C1D;
  --coral-light: #FAECE7;
  --bg: #0b0f0d;
  --bg2: #111815;
  --bg3: #161f1c;
  --border: rgba(29,158,117,0.15);
  --border2: rgba(29,158,117,0.25);
  --text: #e4ede8;
  --muted: rgba(228,237,232,0.5);
  --muted2: rgba(228,237,232,0.28);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .35; }
}
.logo-name {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .1em;
}
.logo-tag {
  font-size: 12px;
  color: var(--green);
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  border: 0.5px solid var(--border2);
  padding: 6px 14px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: rgba(29,158,117,0.1); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.tag-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
  font-family: 'Space Mono', monospace;
}
.dot-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--green);
  font-weight: 300;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: .75rem;
}
.hero-sub2 {
  font-size: 14px;
  color: var(--muted2);
  margin-bottom: 2rem;
  font-style: italic;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 11px 24px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, transform .1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  color: var(--muted);
  padding: 11px 24px;
  border-radius: 2px;
  font-size: 14px;
  text-decoration: none;
  border: 0.5px solid var(--border);
  transition: color .2s, border-color .2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }

.hero-map-hint {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: .6;
}
.map-frame {
  width: 320px;
  height: 220px;
  border: 0.5px solid var(--border2);
  border-radius: 4px;
  background: rgba(17,24,21,0.6);
  overflow: hidden;
  position: relative;
}
.map-inner {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(29,158,117,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
}
.map-polygon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-point {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid var(--bg);
  flex-shrink: 0;
  animation: pulse 2.5s infinite;
}
.map-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--green);
  white-space: nowrap;
}

/* ── SECTIONS ── */
.sec {
  padding: 5rem 2rem;
  border-top: 0.5px solid var(--border);
}
.sec-dark { background: var(--bg2); }
.sec-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-tag::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
}
h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.sec-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

/* ── ARCH DIAGRAM ── */
.arch-diagram {
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  background: var(--bg3);
}
.arch-top { text-align: center; margin-bottom: 1.5rem; }
.arch-hub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(29,158,117,0.08);
  border: 1px solid var(--border2);
  border-radius: 2px;
  padding: 12px 24px;
}
.arch-hub-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s infinite;
}
.arch-hub-name {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .1em;
}
.arch-hub-desc {
  font-size: 12px;
  color: var(--muted);
}
.arch-arrow-down {
  width: 0.5px;
  height: 32px;
  background: var(--border2);
  margin: 0 auto 6px;
}
.arch-label-center {
  text-align: center;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: .05em;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.arch-algos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.algo-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem;
  border-radius: 2px;
  text-align: center;
  border: 0.5px solid;
}
.algo-pill .algo-icon { font-size: 16px; margin-bottom: 4px; }
.algo-pill .algo-name { font-size: 12px; font-weight: 500; }
.algo-pill .algo-desc { font-size: 10px; opacity: .7; }
.algo-green { background: rgba(29,158,117,0.08); border-color: rgba(29,158,117,0.3); color: #5DCAA5; }
.algo-amber { background: rgba(186,117,23,0.08); border-color: rgba(186,117,23,0.3); color: #EF9F27; }
.algo-blue  { background: rgba(24,95,165,0.08);  border-color: rgba(24,95,165,0.3);  color: #85B7EB; }
.algo-purple{ background: rgba(83,74,183,0.08);  border-color: rgba(83,74,183,0.3);  color: #AFA9EC; }
.algo-coral { background: rgba(153,60,29,0.08);  border-color: rgba(153,60,29,0.3);  color: #F0997B; }
.algo-ghost { background: rgba(255,255,255,0.02);border-color: rgba(255,255,255,0.1); color: var(--muted2); border-style: dashed; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr 48px;
  align-items: start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 0.5px solid var(--border);
  animation: none;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: .05em;
  padding-top: 4px;
}
.step-content h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .5rem;
}
.step-content p { color: var(--muted); font-size: 14px; }
.step-icon {
  font-size: 20px;
  color: var(--border2);
  text-align: right;
  padding-top: 4px;
}

/* ── TERRITORIOS ── */
.ter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
}
.ter-card {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color .2s;
}
.ter-card:hover { border-color: var(--border2); }
.ter-icon {
  font-size: 20px;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}
.ter-card h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.ter-card p  { font-size: 11px; color: var(--muted2); }
.ter-more    { border-style: dashed; }
.ter-more .ter-icon { color: var(--muted2); }

/* ── ALGORITMOS ── */
.algo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.algo-card {
  border-radius: 2px;
  padding: 1.5rem;
  border-top: 2px solid;
  background: var(--bg2);
  border-left: 0.5px solid var(--border);
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  transition: border-color .2s;
}
.algo-card-header {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
}
.algo-card-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.algo-card-header h3 { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.algo-link { font-size: 11px; color: var(--green); text-decoration: none; }
.algo-link:hover { text-decoration: underline; }
.algo-card p { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }
.algo-types { display: flex; gap: 6px; flex-wrap: wrap; }
.algo-types span {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  color: var(--muted2);
  letter-spacing: .03em;
}
.algo-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .05em;
  font-family: 'Space Mono', monospace;
  margin-left: auto;
  flex-shrink: 0;
}
.algo-status.active { background: rgba(29,158,117,0.12); color: #5DCAA5; }
.algo-status.dev    { background: rgba(83,74,183,0.12);  color: #AFA9EC; }

.algo-card-green  { border-top-color: var(--green); }
.algo-card-green .algo-card-icon { color: var(--green); }
.algo-card-amber  { border-top-color: var(--amber); }
.algo-card-amber .algo-card-icon { color: #EF9F27; }
.algo-card-blue   { border-top-color: var(--blue); }
.algo-card-blue .algo-card-icon  { color: #85B7EB; }
.algo-card-purple { border-top-color: var(--purple); }
.algo-card-purple .algo-card-icon{ color: #AFA9EC; }
.algo-card-coral  { border-top-color: #D85A30; }
.algo-card-coral .algo-card-icon { color: #F0997B; }
.algo-card-ghost  { border-top-color: var(--border); border-top-style: dashed; }
.algo-card-ghost .algo-card-icon { color: var(--muted2); }

/* ── ADMIN ── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.admin-card {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
}
.admin-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 1rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.admin-icon-blue   { background: rgba(24,95,165,0.12);  color: #85B7EB; }
.admin-icon-amber  { background: rgba(186,117,23,0.12); color: #EF9F27; }
.admin-icon-purple { background: rgba(83,74,183,0.12);  color: #AFA9EC; }
.admin-card h3 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: .5rem; }
.admin-card p  { font-size: 13px; color: var(--muted); }

/* ── EVA-IA ── */
.eva-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 700px) { .eva-grid { grid-template-columns: 1fr; } }
.eva-features { display: flex; flex-direction: column; gap: 1.25rem; }
.eva-item { display: flex; gap: 1rem; align-items: flex-start; }
.eva-bullet {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--green);
  flex-shrink: 0;
  padding-top: 2px;
}
.eva-item h4 { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.eva-item p  { font-size: 13px; color: var(--muted); }

.eva-terminal {
  background: #060d0a;
  border: 0.5px solid var(--border2);
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
}
.terminal-bar {
  background: var(--bg3);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0.5px solid var(--border);
}
.t-dot { width: 8px; height: 8px; border-radius: 50%; }
.t-red    { background: #444; }
.t-yellow { background: #444; }
.t-green  { background: var(--green); }
.t-title  { font-size: 10px; color: var(--muted2); margin-left: 4px; letter-spacing: .05em; }
.terminal-body { padding: 1.25rem; line-height: 1.8; }
.terminal-body p { color: rgba(228,237,232,0.55); }
.t-green-text { color: var(--green); }
.t-muted      { color: rgba(228,237,232,0.35); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.t-blink { animation: blink 1.2s infinite; }

/* ── HUB ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.hub-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 1rem 1.25rem;
}
.hub-icon { font-size: 22px; flex-shrink: 0; }
.hub-green  { color: var(--green); }
.hub-amber  { color: #EF9F27; }
.hub-blue   { color: #85B7EB; }
.hub-coral  { color: #F0997B; }
.hub-card h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.hub-card p  { font-size: 11px; color: var(--muted2); }
.hub-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(29,158,117,0.12);
  color: #5DCAA5;
  font-family: 'Space Mono', monospace;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── CTA ── */
.cta-sec {
  text-align: center;
  padding: 6rem 2rem;
}
.cta-inner { max-width: 520px; margin: 0 auto; }
.cta-inner p { color: var(--muted); margin: .75rem 0 2rem; font-size: 15px; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-info { font-size: 12px; color: var(--muted2); }
.footer-mail { font-size: 12px; color: var(--green); text-decoration: none; margin-left: auto; }
.footer-mail:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem 3rem; min-height: auto; }
  .hero-map-hint { display: none; }
  .nav-links { display: none; }
  .step { grid-template-columns: 48px 1fr; }
  .step-icon { display: none; }
  .logo-tag { display: none; }
}
