/* ═══════════════════════════════════════════════════════════
   NODO ZERO — MAIN CSS
   Paleta: verde neón, azul tech, crema, negro profundo
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --green:        #00FF88;
  --green-dim:    #00D9A0;
  --green-glow:   rgba(0, 255, 136, 0.15);
  --green-border: rgba(0, 255, 136, 0.25);
  --blue:         #0A7AFF;
  --blue-dim:     #1E3A8A;
  --cream:        #FFF8F0;
  --cream-dim:    #F5F5DC;
  --bg:           #0B0B0F;
  --bg-mid:       #0F0F1A;
  --bg-card:      rgba(15, 15, 26, 0.7);
  --glass:        rgba(255, 248, 240, 0.04);
  --glass-border: rgba(255, 248, 240, 0.08);
  --text:         #E8E4F0;
  --text-dim:     rgba(232, 228, 240, 0.55);
  --font:         'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* hidden for custom cursor */
}

@media (pointer: coarse) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--green);
}

/* ── Side Navigation Dots ── */
#side-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#side-nav li { position: relative; }

.nav-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease-expo);
  position: relative;
}

.nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--green);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#side-nav li:hover .nav-dot::before { opacity: 1; }

.nav-dot.active,
.nav-dot:hover {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green);
  transform: scale(1.4);
}

/* ═══════════════════════════════════════════════════════
   SECTIONS — base
   ═══════════════════════════════════════════════════════ */
.section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px 80px;
}

.section-header {
  margin-bottom: 72px;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: normal;
  color: var(--green);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.section--hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

#space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

/* Logo */
.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-symbol {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px var(--green));
  animation: hexPulse 3s ease-in-out infinite;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-transform: uppercase;
}

.logo-accent { color: var(--green); }

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes hexPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--green)); }
  50%       { filter: drop-shadow(0 0 24px var(--green)) drop-shadow(0 0 48px rgba(0,255,136,0.3)); }
}

/* Tagline */
.hero-tagline {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--cream);
}

.tagline-line {
  display: block;
}

.tagline-accent {
  color: var(--green);
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 56px;
}

/* Scroll CTA */
.hero-scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
}

.scroll-arrow svg { display: block; }

.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { cy: 10; opacity: 1; }
  50%       { cy: 26; opacity: 0.4; }
}

/* Stats badge */
.hero-stats {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* ═══════════════════════════════════════════════════════
   ABOUT / PILARS SECTION
   ═══════════════════════════════════════════════════════ */
.section--about {
  background: var(--bg-mid);
}

.about-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Pillar Card */
.pillar-card {
  position: relative;
  padding: 48px 36px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-expo);
}

.pillar-card:hover {
  border-color: var(--green-border);
  transform: translateY(-8px);
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--green-border), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
  pointer-events: none;
}

.pillar-card:hover::before { opacity: 1; }

/* Icon */
.pillar-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
}

.pillar-icon {
  width: 80px;
  height: 80px;
  color: var(--green);
  transition: filter 0.3s;
}

.pillar-card:hover .pillar-icon {
  filter: drop-shadow(0 0 16px var(--green));
}

.pillar-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0,255,136,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.pillar-card:hover .pillar-glow { opacity: 1; }

.pillar-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.pillar-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.pillar-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.pillar-line {
  width: 40px;
  height: 1px;
  background: var(--green-border);
  margin-bottom: 16px;
  transition: width 0.4s var(--ease-expo);
}

.pillar-card:hover .pillar-line { width: 80px; }

.pillar-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.pillar-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════
   EVENT SECTION — Seminario de Economía Digital
   ═══════════════════════════════════════════════════════ */
.section--event {
  background: var(--bg);
}

.event-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 25%, rgba(10,122,255,0.07), transparent),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(0,255,136,0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

.section--event .section-container { position: relative; z-index: 1; }

.event-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: start;
}

/* ── Badge ── */
.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.event-badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,136,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0,255,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); }
}

/* ── Title ── */
.event-title {
  font-size: clamp(26px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--cream);
}

.event-title-line {
  display: block;
}

.event-title-accent {
  color: var(--green);
  text-shadow: 0 0 36px rgba(0,255,136,0.25);
}

/* ── Subtitle ── */
.event-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.55;
  font-style: italic;
}

/* ── Meta grid ── */
.event-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.event-meta-item:hover { border-color: var(--green-border); }

.event-meta-icon {
  color: var(--green);
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: 2px;
}

.event-meta-text { display: flex; flex-direction: column; gap: 2px; }

.event-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.event-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}

/* ── Highlights ── */
.event-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.event-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--green-border);
  border-radius: 12px;
  transition: border-color 0.3s, border-left-color 0.3s;
}

.event-highlight:hover {
  border-color: var(--green-border);
  border-left-color: var(--green);
}

.event-highlight-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  opacity: 0.55;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 22px;
}

.event-highlight-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.event-highlight-text {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ── Audience ── */
.event-audience {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.event-audience-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  flex-shrink: 0;
}

.event-audience-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.audience-chip {
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: all 0.25s;
}

.audience-chip:hover {
  color: var(--green);
  border-color: var(--green-border);
}

/* ── CTAs ── */
.event-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn--event {
  padding: 18px 34px;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.btn--event:hover {
  box-shadow: 0 0 40px rgba(0,255,136,0.3), 0 0 80px rgba(0,255,136,0.1) !important;
}

/* ── Right: Visual Card ── */
.event-right {
  position: sticky;
  top: 100px;
}

.event-visual-card {
  position: relative;
  padding: 32px 26px;
  background: rgba(12,12,20,0.85);
  border: 1px solid var(--green-border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 60px rgba(0,255,136,0.06),
    inset 0 0 40px rgba(0,255,136,0.02);
}

.event-card-glow {
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%);
  pointer-events: none;
}

/* Date hero */
.event-date-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
}

.event-date-num {
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
  text-shadow: 0 0 40px rgba(0,255,136,0.4);
}

.event-date-info { display: flex; flex-direction: column; gap: 1px; }

.event-date-month {
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.08em;
}

.event-date-year {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.event-date-type {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--green);
  opacity: 0.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Convergence diagram */
.event-convergence-wrap { margin-bottom: 18px; }
.event-convergence-svg { width: 100%; height: auto; }

.conv-line {
  animation: convDash 3s linear infinite;
}
.conv-line--ai         { animation-delay: 0s; }
.conv-line--blockchain { animation-delay: -1s; }
.conv-line--fintech    { animation-delay: -2s; }

@keyframes convDash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -40; }
}

.conv-ring--1 {
  animation: convRing 8s linear infinite;
  transform-origin: 150px 110px;
}
.conv-ring--2 {
  animation: convRing 14s linear infinite reverse;
  transform-origin: 150px 110px;
}

@keyframes convRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Location chip */
.event-location-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.event-location-chip svg { color: var(--green); flex-shrink: 0; }

/* Organizer badge */
.event-organizer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.org-line { flex: 1; height: 1px; background: var(--green-border); }

/* ═══════════════════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════════════════ */
.section--team {
  background: var(--bg-mid);
}

.team-bg-circuit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.team-bg-circuit svg {
  width: 100%;
  height: 100%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Team Card */
.team-card {
  position: relative;
}

.team-card-inner {
  position: relative;
  padding: 40px 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-expo);
  height: 100%;
}

.team-card:hover .team-card-inner {
  border-color: var(--green-border);
  transform: translateY(-6px);
}

/* Scan line effect */
.team-scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.team-card:hover .team-scan-line {
  animation: scanDown 1.2s ease-in-out;
}

@keyframes scanDown {
  0%   { top: -2px; opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Photo */
.team-photo-wrap {
  margin-bottom: 28px;
}

.team-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  border: 2px solid var(--green-border);
  /* Sin overflow:hidden — así el drop-shadow no queda clippeado */
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: rgba(11, 11, 15, 0.6); /* fondo oscuro visible si el PNG tiene transparencia */
}

.team-card:hover .team-photo-placeholder {
  border-color: var(--green);
  box-shadow: 0 0 28px rgba(0,255,136,0.25);
}

/* Real photo — drop-shadow sigue el canal alfa del PNG (silueta) */
.team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 13px; /* coincide con el contenedor */
  filter:
    grayscale(20%)
    drop-shadow( 0.5px  0px   0 rgba(0, 255, 136, 0.35))
    drop-shadow(-0.5px  0px   0 rgba(0, 255, 136, 0.35))
    drop-shadow( 0px    0.5px 0 rgba(0, 255, 136, 0.35))
    drop-shadow( 0px   -0.5px 0 rgba(0, 255, 136, 0.35));
  transition: filter 0.4s;
}

.team-card:hover .team-photo-img {
  filter:
    grayscale(0%)
    drop-shadow( 0.5px  0px   0 rgba(0, 255, 136, 0.55))
    drop-shadow(-0.5px  0px   0 rgba(0, 255, 136, 0.55))
    drop-shadow( 0px    0.5px 0 rgba(0, 255, 136, 0.55))
    drop-shadow( 0px   -0.5px 0 rgba(0, 255, 136, 0.55));
}

.team-photo-overlay {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(0,255,136,0.06), transparent 60%);
  pointer-events: none;
}

/* Team info */
.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.team-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.team-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.06em;
}

.team-bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Team glow */
.team-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.team-card:hover .team-glow { opacity: 1; }

/* Hex border decoration */
.team-hex-border {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 50 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 2L46 14V38L25 50L4 38V14L25 2Z' stroke='%2300FF88' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: opacity 0.3s;
}

.team-card:hover .team-hex-border { opacity: 0.2; }

/* ═══════════════════════════════════════════════════════
   ALLIES / CONSTELLATION SECTION
   ═══════════════════════════════════════════════════════ */
.section--allies {
  background: var(--bg);
}

.constellation-wrap {
  position: relative;
  min-height: 400px;
  padding: 20px 0 60px;
}

.constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.allies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 48px 0;
  position: relative;
  z-index: 1;
}

/* Diamond layout: top-center, mid-left, mid-right, bottom-center */
.allies-grid--diamond {
  padding: 20px 0 40px;
}

.ally-node {
  grid-column: var(--col);
  grid-row: var(--row);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.ally-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  color: rgba(255, 255, 255, 0.4);
  padding: 10px;
  transition: all 0.3s var(--ease-expo);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
  overflow: hidden;
}

.ally-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.35s var(--ease-expo);
}

.ally-node:hover .ally-logo img {
  filter: grayscale(0%) brightness(1);
}

.ally-node:nth-child(2) .ally-logo { animation-delay: -1s; }
.ally-node:nth-child(3) .ally-logo { animation-delay: -2s; }
.ally-node:nth-child(4) .ally-logo { animation-delay: -0.5s; }
.ally-node:nth-child(5) .ally-logo { animation-delay: -1.5s; }
.ally-node:nth-child(6) .ally-logo { animation-delay: -3s; }
.ally-node:nth-child(7) .ally-logo { animation-delay: -2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.ally-node:hover .ally-logo {
  color: var(--green);
  border-color: var(--green-border);
  background: var(--green-glow);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.2);
  transform: translateY(-4px) scale(1.08);
  animation-play-state: paused;
}

.ally-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.3s;
  text-align: center;
  line-height: 1.5;
}

.ally-node:hover .ally-name { color: var(--green); }

/* Pulse ring */
.ally-pulse {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--green);
  opacity: 0;
  pointer-events: none;
}

.ally-node:hover .ally-pulse {
  animation: allyPulse 1s ease-out;
}

@keyframes allyPulse {
  0%   { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 0;   transform: translateX(-50%) scale(1.5); }
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */
.section--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0, 255, 136, 0.06), transparent),
    var(--bg-mid);
}

#cta-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.cta-title {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.cta-line {
  display: block;
  color: var(--cream);
}

.cta-line--accent {
  color: var(--green);
  text-shadow: 0 0 60px rgba(0, 255, 136, 0.35);
}

.cta-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 48px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-buttons--centered {
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-expo);
  overflow: hidden;
  cursor: none;
}

.btn--primary {
  background: var(--green);
  color: var(--bg);
  border: 2px solid var(--green);
}

.btn--primary:hover {
  background: transparent;
  color: var(--green);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.35);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--glass-border);
}

.btn--secondary:hover {
  border-color: var(--green-border);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-text { position: relative; z-index: 1; }
.btn-icon { position: relative; z-index: 1; transition: transform 0.3s; }
.btn:hover .btn-icon { transform: translateX(4px); }

.btn-liquid {
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s;
}

.btn--primary:hover .btn-liquid { opacity: 0; }

/* CTA Email */
.cta-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.cta-email a {
  color: var(--green);
  transition: opacity 0.2s;
}

.cta-email a:hover { opacity: 0.7; }

/* Orbitals */
.cta-orbitals {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.orbital {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.06);
  animation: orbit 20s linear infinite;
}

.orbital--1 { width: 600px; height: 600px; animation-duration: 20s; }
.orbital--2 { width: 900px; height: 900px; animation-duration: 30s; border-color: rgba(10, 122, 255, 0.06); }
.orbital--3 { width: 1200px; height: 1200px; animation-duration: 45s; border-color: rgba(0, 255, 136, 0.04); animation-direction: reverse; }

@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 100;              /* siempre sobre canvas y overlays */
  background: rgba(11, 11, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 32px 0;
  scroll-snap-align: end;   /* accesible como destino de snap */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .logo-symbol {
  width: 20px;
  height: 20px;
  animation: hexPulse 3s ease-in-out infinite;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  transition: all 0.25s;
}

.social-link:hover {
  color: var(--green);
  border-color: var(--green-border);
  background: var(--green-glow);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-sep { opacity: 0.4; }
