/* DEVELOPERS AND GRAPHICS — Tema oscuro único (tokens en dg-theme-dark.css) */

.ds-page {
  background: var(--ds-canvas);
  color: var(--ds-muted);
}

/* Dot matrix + grid ambient */
.ds-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ds-dot-matrix {
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(
    circle,
    rgba(var(--ds-lime-primary-rgb), 0.12) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  opacity: 0.35;
  animation: ds-drift 60s linear infinite;
}
.ds-tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--ds-lime-primary-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ds-lime-primary-rgb), 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}
@keyframes ds-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(28px, 28px); }
}

/* Nav */
.ds-nav {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ds-border);
}
.ds-nav.ds-nav-scrolled {
  background: rgba(9, 9, 11, 0.96);
  box-shadow: 0 4px 30px rgba(var(--ds-lime-primary-rgb), 0.06);
}
.ds-logo-mark {
  width: 36px;
  height: 36px;
  color: var(--ds-lime-primary);
}
.ds-logo-text {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--ds-lime-glow);
  font-weight: 700;
}
.ds-nav-link {
  color: var(--ds-muted);
  transition: color 0.2s;
}
.ds-nav-link:hover,
.ds-nav-link.active {
  color: var(--ds-lime-primary);
}
.ds-btn-lime {
  background: var(--ds-lime-primary);
  color: var(--ds-canvas);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ds-btn-lime:hover {
  box-shadow: 0 0 24px var(--ds-glow-soft);
  transform: translateY(-1px);
}
.ds-btn-outline {
  border: 1px solid var(--ds-border-active);
  color: var(--ds-lime-primary);
  transition: background 0.2s, border-color 0.2s;
}
.ds-btn-outline:hover {
  background: rgba(var(--ds-lime-primary-rgb), 0.08);
  border-color: var(--ds-lime-glow);
}
.ds-arrow-icon {
  display: inline-block;
  transform: rotate(-45deg);
  font-size: 1.1em;
}

/* Hero */
.ds-hero-gradient {
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(var(--ds-lime-glow-rgb), 0.1) 0%,
    transparent 60%
  );
}
.ds-headline {
  background: linear-gradient(135deg, var(--ds-title) 0%, var(--ds-lime-glow) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ds-stat-num {
  color: var(--ds-lime-primary);
  text-shadow: 0 0 20px var(--ds-glow-soft);
}

/* Workstation */
.ds-workstation {
  perspective: 1200px;
}
.ds-laptop {
  background: linear-gradient(145deg, var(--ds-surface) 0%, #27272a 50%, #3f3f46 100%);
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ds-laptop-screen {
  background: var(--ds-canvas);
  border-radius: 8px 8px 0 0;
  min-height: 220px;
  font-family: var(--ds-font-mono);
  font-size: 11px;
}
.ds-ide-tab {
  padding: 4px 10px;
  font-size: 10px;
  color: var(--ds-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.ds-ide-tab.active {
  color: var(--ds-lime-primary);
  border-bottom-color: var(--ds-lime-primary);
}
.ds-ide-code { color: #67e8f9; }
.ds-ide-kw { color: var(--ds-lime-primary); }
.ds-ide-str { color: var(--ds-lime-glow); }
.ds-ide-comment { color: var(--ds-muted); }
.ds-terminal-pane {
  background: var(--ds-canvas);
  border-top: 1px solid var(--ds-border);
  max-height: 90px;
  overflow-y: auto;
  font-family: var(--ds-font-mono);
  font-size: 10px;
}
.ds-terminal-line { color: var(--ds-emerald); }
.ds-terminal-warn { color: var(--ds-lime-glow); }

.ds-keyboard {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--ds-surface) 0%, var(--ds-canvas) 100%);
  border-radius: 8px;
  margin-top: -8px;
  position: relative;
  z-index: -1;
  animation: ds-key-breathe 3s ease-in-out infinite;
}
.ds-key {
  aspect-ratio: 1;
  background: #27272a;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 8px rgba(var(--ds-lime-primary-rgb), 0.03);
}
@keyframes ds-key-breathe {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--ds-lime-primary-rgb), 0.05); }
  50% { box-shadow: 0 0 40px rgba(var(--ds-lime-glow-rgb), 0.12); }
}

.ds-phone {
  background: linear-gradient(160deg, var(--ds-surface), var(--ds-canvas));
  border: 2px solid var(--ds-border-active);
  border-radius: 24px;
  box-shadow: 0 0 30px rgba(var(--ds-lime-primary-rgb), 0.08);
}
.ds-dial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--ds-lime-primary);
  position: relative;
}
.ds-dial::after {
  content: "100%";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-emerald);
}

/* Sections */
.ds-section-title {
  color: var(--ds-lime-glow);
  letter-spacing: 0.05em;
}
.ds-card {
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid var(--ds-border);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ds-card:hover {
  border-color: var(--ds-border-active);
  box-shadow: 0 0 30px rgba(var(--ds-lime-primary-rgb), 0.06);
}
.ds-tag {
  background: rgba(var(--ds-lime-glow-rgb), 0.12);
  color: var(--ds-lime-glow);
  border: 1px solid var(--ds-border);
}

/* Chat */
.ds-chat-box {
  background: var(--ds-canvas);
  border: 1px solid var(--ds-border);
  font-family: var(--ds-font-mono);
  font-size: 12px;
}
.ds-chat-msg.user { color: #93c5fd; }
.ds-chat-msg.bot { color: var(--ds-emerald); }
.ds-chat-msg.system { color: var(--ds-muted); }

/* Contact terminal */
.ds-mini-terminal {
  background: var(--ds-canvas);
  border: 1px solid var(--ds-border);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  min-height: 200px;
  max-height: 280px;
  overflow-y: auto;
}
.ds-mini-terminal .log-line { color: var(--ds-emerald); }
.ds-mini-terminal .log-dim { color: var(--ds-muted); }

/* Modal registro */
.ds-modal-backdrop {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(8px);
}
.ds-console {
  background: var(--ds-surface);
  border: 1px solid var(--ds-lime-primary);
  box-shadow: 0 0 40px var(--ds-glow-soft);
  font-family: var(--ds-font-mono);
}

/* Social icons */
.ds-social-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 250, 250, 0.12);
  color: var(--ds-title);
  transition: border-color 0.2s, color 0.2s;
}
.ds-social-icon:hover {
  border-color: var(--ds-lime-primary);
  color: var(--ds-lime-primary);
}

/* Meter bars */
.ds-meter-fill {
  background: linear-gradient(90deg, var(--ds-lime-primary), var(--ds-lime-glow));
  box-shadow: 0 0 12px var(--ds-glow-soft);
  transition: width 1s ease-out;
}
.ds-meter-track {
  background: var(--ds-surface);
}

/* Bento expand */
.ds-spec-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ds-card.expanded .ds-spec-panel {
  max-height: 200px;
}

/* Sponsor toggle */
.ds-toggle {
  width: 44px;
  height: 24px;
  background: var(--ds-surface);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.ds-toggle.on {
  background: var(--ds-lime-primary);
}
.ds-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--ds-title);
  border-radius: 50%;
  transition: transform 0.2s;
}
.ds-toggle.on::after {
  transform: translateX(20px);
}

/* Footer home */
.ds-footer {
  border-top: 1px solid var(--ds-border);
  color: var(--ds-muted);
}
