/* =========================================
   FUENTES — Premium Tech Services Website
   styles.css
   ========================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #050816;
  --bg-card: #0d1117;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.5);

  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.15);
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.15);
  --pink: #ec4899;
  --green: #10b981;

  --grad-primary: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-cyan-violet: linear-gradient(135deg, #22d3ee, #8b5cf6);
  --grad-violet-pink: linear-gradient(135deg, #8b5cf6, #ec4899);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow-cyan: 0 0 40px rgba(34, 211, 238, 0.2);
  --shadow-glow-violet: 0 0 40px rgba(139, 92, 246, 0.2);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  touch-action: pan-y; /* Optimize touch scrolling */
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }

/* === UTILITY === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-cyan-violet);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }
.btn-primary.large { font-size: 18px; padding: 18px 36px; }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--bg-glass);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-cyan-violet);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  margin-top: 16px;
}
.btn-whatsapp:hover { background: #1fa855; transform: translateY(-1px); }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 8, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.logo-f {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  margin-left: 2px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 80px 80px;
  gap: 60px;
  background: radial-gradient(ellipse at 20% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
              var(--bg-dark);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.code-window {
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), var(--shadow-glow-violet);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}

.code-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  min-height: 280px;
}

.code-line {
  display: block;
}

.code-key { color: #7dd3fc; }
.code-string { color: #86efac; }
.code-number { color: #fb923c; }
.code-comment { color: #475569; }
.code-fn { color: #c084fc; }
.code-bracket { color: #94a3b8; }
.code-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.card-glow {
  position: absolute;
  inset: -1px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.15;
  filter: blur(20px);
}

.floating {
  animation: floatY 6s ease-in-out infinite;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  z-index: 2;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  animation: scrollLine 2s linear infinite;
}

@keyframes scrollLine {
  to { left: 100%; }
}

/* === SERVICES === */
.services {
  padding: 120px 0;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--violet), transparent);
}

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

.service-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--bg-glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow-violet);
}

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

.service-card.featured {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(34, 211, 238, 0.04));
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--violet-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
}

.featured-badge {
  color: var(--violet);
  background: var(--violet-dim);
  border-color: rgba(139, 92, 246, 0.2);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
  transition: var(--transition);
}

.service-link:hover { gap: 10px; color: var(--cyan); }
.service-link span { transition: var(--transition); }

/* === SIMILAR PROJECTS === */
.similar-projects {
  padding: 100px 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.idea-flow {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

.idea-card {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.idea-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.idea-card.idea-process {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.04);
}

.idea-card.idea-result {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.04);
}

.idea-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.idea-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.idea-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.idea-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.arrow-line {
  width: 1px;
  height: 0;
  background: var(--border);
}

.cta-center {
  text-align: center;
}

/* === PROCESS === */
.process {
  padding: 120px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
}

.process-step:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === TECHNOLOGIES === */
.technologies {
  padding: 100px 0;
  background: rgba(13, 17, 23, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tech-category {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.tech-category:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.tech-category h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  transition: var(--transition);
  cursor: default;
}

.tech-tag:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--violet-dim);
}

.tech-tag.highlight {
  color: var(--violet);
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--violet-dim);
}

.tech-tag.highlight:hover {
  color: white;
  background: var(--violet);
}

/* === ABOUT === */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }

.about-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  z-index: 2;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.profile-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-bar-item span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--grad-cyan-violet);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-badge {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.badge-1 {
  top: -20px;
  right: -20px;
  animation: floatY 5s ease-in-out infinite;
  border-color: rgba(34, 211, 238, 0.3);
}

.badge-2 {
  bottom: -20px;
  left: -20px;
  animation: floatY 5s ease-in-out infinite reverse;
  border-color: rgba(139, 92, 246, 0.3);
}

/* === CONTACT === */
.contact {
  padding: 120px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { text-align: left; margin-bottom: 20px; }

.contact-info > p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
  transform: translateX(4px);
}

.contact-method-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* === FORM === */
.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: #0d1117;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
}

/* === FOOTER === */
.footer {
  background: #020409;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--violet-dim);
}

.footer-links h5,
.footer-contact h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--cyan); }

.footer-contact p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* === WHATSAPP BUBBLE === */
.whatsapp-bubble {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition);
  animation: waFloat 3s ease-in-out infinite;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.bubble-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: rgba(13, 17, 23, 0.9);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-bubble:hover .bubble-tooltip {
  opacity: 1;
  transform: translateX(0);
}

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

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 40px 80px;
    text-align: center;
  }

  .hero-visual { display: none; }

  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-scroll { left: 40px; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-content .section-title { text-align: center; }
  .about-content .section-tag { margin: 0 auto 16px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Demo tabs wrap in tablet */
  .demo-tabs {
    width: 100%;
    gap: 6px;
  }

  /* Game section tablet */
  .game-wrapper {
    grid-template-columns: 1fr;
  }
  .game-side {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .game-info-card, .game-powerups-info { flex: 1; min-width: 260px; }
}

/* ==========================================
   MOBILE — 768px
   ========================================== */
@media (max-width: 768px) {
  /* --- NAVBAR --- */
  .nav-links { display: none; }
  .btn-nav { display: none; }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 8, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 99;
  }

  .nav-links.open .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  /* --- HERO --- */
  .hero {
    padding: 100px 20px 60px;
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-ctas {
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat-num { font-size: 28px; }
  .hero-scroll { display: none; }

  /* --- SECTIONS --- */
  .services { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }

  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 30px; }
  .section-desc { font-size: 15px; }

  /* --- DEMOS --- */
  .demos-section { padding: 80px 0; }

  .demo-tabs {
    width: 100%;
    gap: 4px;
    padding: 5px;
  }

  .demo-tab {
    padding: 9px 12px;
    font-size: 12px;
    gap: 5px;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .tab-icon { font-size: 14px; }

  .demo-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .demo-controls {
    padding: 20px;
  }

  .demo-preview {
    min-height: 200px;
  }

  .data-kpis { flex-direction: column; gap: 8px; }
  .ml-stats-mini { gap: 8px; }

  /* --- PROCESS --- */
  .process { padding: 80px 0; }
  .process-steps { grid-template-columns: 1fr; }

  /* --- TECHNOLOGIES --- */
  .technologies { padding: 80px 0; }
  .tech-categories { grid-template-columns: 1fr; }

  /* --- SIMILAR PROJECTS --- */
  .similar-projects { padding: 70px 0; }

  .idea-flow {
    flex-direction: column;
    gap: 12px;
  }

  .idea-arrow {
    flex-direction: row;
    transform: rotate(90deg);
    align-self: center;
  }

  .idea-card { padding: 20px; }

  /* --- ABOUT --- */
  .about { padding: 80px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-card-main { padding: 24px; }
  .floating-badge { display: none; }

  /* --- CONTACT --- */
  .contact { padding: 80px 0; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form { padding: 24px; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }

  /* --- FOOTER --- */
  .footer { padding: 60px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* --- GAME --- */
  .game-section { padding: 80px 0; }
  .game-wrapper { grid-template-columns: 1fr; }
  .game-side { flex-direction: column; }
  .game-hud { gap: 16px; padding: 10px 16px; }
  .hud-value { font-size: 18px; }
  .game-overlay { top: 40px; }
  .game-overlay-content { padding: 16px; }
  .overlay-robot { font-size: 40px; margin-bottom: 8px; }
  .game-overlay-content h3 { font-size: 22px; margin-bottom: 8px; }
  .game-overlay-content p { font-size: 13px; margin-bottom: 12px; }
  .game-controls-info { margin-bottom: 14px; gap: 8px; }
  .game-controls-info span { font-size: 11px; padding: 4px 8px; }
  .game-start-btn { padding: 10px 24px; font-size: 16px; }

  /* --- MASCOT BUBBLE --- */
  .mascot-bubble {
    right: auto;
    left: auto;
    bottom: 120px;
    right: 0;
    max-width: 160px;
    font-size: 11px;
  }

  /* --- WHATSAPP --- */
  .whatsapp-bubble {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  /* --- TICKER --- */
  .live-ticker { padding: 8px 0; }
  body { padding-bottom: 36px; }
}

/* ==========================================
   SMALL MOBILE — 480px
   ========================================== */
@media (max-width: 480px) {
  /* --- HERO --- */
  .hero {
    padding: 90px 16px 50px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 38px);
    letter-spacing: -0.02em;
  }

  .hero-subtitle { font-size: 14px; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-ghost {
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-num { font-size: 24px; }
  .stat-suffix { font-size: 18px; }
  .stat-label { font-size: 11px; }
  .stat-divider { height: 30px; }

  /* --- GENERAL --- */
  .container { padding: 0 16px; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 14px; }
  .section-header { margin-bottom: 32px; }

  /* --- NAVBAR --- */
  .nav-container { padding: 0 16px; }
  .nav-logo { font-size: 18px; }

  /* --- SERVICES --- */
  .service-card { padding: 20px; }
  .service-card h3 { font-size: 17px; }

  /* --- DEMO TABS --- */
  .demo-tabs {
    border-radius: var(--radius-sm);
  }
  .demo-tab {
    padding: 8px 8px;
    font-size: 11px;
  }

  .demo-controls { padding: 16px; }
  .demo-controls h3 { font-size: 18px; }

  /* Hide demo preview on very small screens to save space */
  .chart-preview-side canvas {
    max-height: 200px;
  }
  .api-terminal {
    min-height: 200px;
  }

  /* --- PROCESS --- */
  .process-step { padding: 20px 16px; }
  .step-number { font-size: 36px; }

  /* --- GAME --- */
  .game-info-card, .game-powerups-info { padding: 16px; }
  .game-overlay-content h3 { font-size: 20px; }
  .game-start-btn { padding: 10px 20px; font-size: 15px; }

  /* --- ABOUT --- */
  .about-card-main { padding: 20px; }
  .profile-section { gap: 12px; }

  /* --- CONTACT --- */
  .contact-form { padding: 16px; gap: 14px; }
  .contact-method { padding: 12px 14px; }

  /* --- FOOTER --- */
  .footer { padding: 48px 0 0; }
  .footer-grid { gap: 24px; }

  /* --- MASCOT (robot Byte) visible en móvil, pero más pequeño --- */
  .mascot {
    transform: scale(0.75);
    transform-origin: bottom right;
    right: 8px;
    bottom: 52px;
  }
  .mascot:hover { transform: scale(0.8); }

  /* --- WHATSAPP --- */
  .whatsapp-bubble {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
  .bubble-tooltip { display: none; }

  /* --- IDEA FLOW --- */
  .idea-card { padding: 16px; }
  .idea-card h4 { font-size: 15px; }
  .idea-card p { font-size: 12px; }

  /* --- BTN PRIMARY LARGE --- */
  .btn-primary.large {
    font-size: 16px;
    padding: 14px 24px;
  }
}

/* ==========================================
   EXTRA SMALL — 360px
   ========================================== */
@media (max-width: 360px) {
  .hero-title { font-size: 24px; }
  .section-title { font-size: 22px; }
  .demo-tab { font-size: 10px; padding: 7px 6px; }
  .hero-stats { gap: 10px; }
  .stat-divider { display: none; }
}

/* === VALUE ICON SVG === */
.value-icon {
  width: 44px;
  height: 44px;
  background: var(--violet-dim);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  flex-shrink: 0;
  transition: var(--transition);
}

.value-item:hover .value-icon {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.1) rotate(-4deg);
  color: var(--cyan);
  border-color: var(--cyan);
}

/* === IDEA ICON SVG === */
.idea-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 14px;
  transition: var(--transition);
}

.idea-card:hover .idea-icon {
  color: var(--violet);
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--violet-dim);
  transform: scale(1.05);
}

.idea-card.idea-process .idea-icon { color: var(--violet); }
.idea-card.idea-result .idea-icon { color: var(--cyan); }

/* === CONTACT METHOD ICON SVG === */
.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--violet-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-method:hover .contact-method-icon {
  background: var(--violet);
  color: white;
  transform: scale(1.08) rotate(-3deg);
}

/* === FLOATING BADGE SVG ICON === */
.floating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-badge svg {
  color: var(--violet);
  flex-shrink: 0;
}

/* === CURSOR TRAIL === */
#cursorTrail {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

.trail-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: trailFade 0.6s forwards;
}

@keyframes trailFade {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(0); }
}

/* === LIVE TICKER === */
.live-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: tickerScroll 20s linear infinite;
}

.live-ticker:hover .ticker-inner {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.ticker-item strong {
  color: var(--cyan);
  font-weight: 600;
}

.ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
  vertical-align: middle;
}

/* === BODY PADDING FOR TICKER === */
body { padding-bottom: 40px; }

/* === MAGNETIC BUTTON === */
.btn-primary, .btn-ghost, .btn-nav {
  will-change: transform;
}

/* === ACTIVE NAV INDICATOR LINE === */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-cyan-violet);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 70%;
}

/* === TILT CARD EFFECT === */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* === PROCESS STEP ACTIVE HIGHLIGHT === */
.process-step.active-step {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(34, 211, 238, 0.04));
}

.process-step.active-step .step-number {
  opacity: 1;
}

/* === RIPPLE EFFECT === */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleOut 0.6s linear;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* === GLITCH HOVER ON LOGO === */
.nav-logo:hover .logo-f {
  animation: glitch 0.4s;
}

@keyframes glitch {
  0%   { text-shadow: none; }
  20%  { text-shadow: 2px 0 var(--cyan), -2px 0 var(--pink); }
  40%  { text-shadow: -2px 0 var(--cyan), 2px 0 var(--pink); }
  60%  { text-shadow: 2px 0 var(--cyan); }
  80%  { text-shadow: -2px 0 var(--pink); }
  100% { text-shadow: none; }
}

/* === SCROLL PROGRESS BAR === */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-primary);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* === SECTION ENTRY ANIMATION VARIANTS === */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === TOOLTIP ON TECH TAGS === */
.tech-tag {
  position: relative;
}

.tech-tag[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(13, 17, 23, 0.95);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 10;
}

.tech-tag[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* === INTERACTIVE DATA VIZ MINI CHART === */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-top: 12px;
}

.chart-bar {
  flex: 1;
  background: var(--grad-cyan-violet);
  border-radius: 2px 2px 0 0;
  opacity: 0.6;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 1;
}

/* === CUSTOM CURSOR === */
@media (hover: hover) {
  body { cursor: none; }

  .custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--violet);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: screen;
  }

  .custom-cursor.hovering {
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.4);
  }

  a, button, .tech-tag, .service-card {
    cursor: none;
  }
}

/* ==========================================
   INTRO LOADER
   ========================================== */
#introLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(34, 211, 238, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 55%);
  animation: introGlow 3s ease-in-out infinite alternate;
}

@keyframes introGlow {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

.intro-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 6s linear infinite;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to   { transform: translateY(60px); }
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.intro-logo {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 90px);
  font-weight: 900;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: introLogoIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes introLogoIn {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-f {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: introFSpin 0.6s 0.2s ease both;
}

@keyframes introFSpin {
  from { transform: rotateY(-90deg); opacity: 0; }
  to   { transform: rotateY(0); opacity: 1; }
}

.intro-uentes {
  color: var(--text-primary);
}

.intro-dot-anim {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  margin-left: 4px;
  align-self: flex-end;
  margin-bottom: 14px;
  animation: pulse 1s infinite;
  box-shadow: 0 0 16px var(--cyan);
}

.intro-tagline {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  min-height: 22px;
  letter-spacing: 0.05em;
  animation: introFadeIn 0.4s 0.6s ease both;
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-bar-wrap {
  width: 240px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  animation: introFadeIn 0.4s 0.8s ease both;
}

.intro-bar {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: 3px;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.intro-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
  letter-spacing: 0.1em;
}

/* Exit animation */
#introLoader.exit {
  animation: introExit 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes introExit {
  0%   { opacity: 1; transform: scale(1); }
  40%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(0.96); pointer-events: none; }
}

/* Body locked during intro */
body.intro-active {
  overflow: hidden;
}

/* ==========================================
   SCROLL WRITER CANVAS
   ========================================== */
#scrollWriterCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  width: 100%;
  height: 100%;
}

/* Text nodes that get the typewriter treatment */
.typewriter-target {
  position: relative;
}

.typewriter-target .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.typewriter-target .char.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   MASCOT — Byte el Robot
   ========================================== */
.mascot {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  animation: mascotIntro 0.6s 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes mascotIntro {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mascot:hover { transform: scale(1.08); }
.mascot:hover .mascot-arm { animation: mascotWave 0.5s ease infinite alternate; }

@keyframes mascotWave {
  from { transform: rotate(-10deg); }
  to   { transform: rotate(20deg); }
}

/* BUBBLE */
.mascot-bubble {
  position: absolute;
  right: 78px;
  bottom: 60px;
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
  white-space: nowrap;
  max-width: 180px;
  white-space: normal;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.2);
  opacity: 0;
  transform: scale(0.8) translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.mascot-bubble.visible {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.bubble-tail {
  position: absolute;
  right: -8px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid rgba(139, 92, 246, 0.4);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* BODY WRAPPER */
.mascot-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: mascotFloat 3s ease-in-out infinite;
}

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

/* HEAD */
.mascot-head {
  position: relative;
  width: 52px;
  height: 46px;
  background: linear-gradient(160deg, #1e1b4b, #2e1065);
  border-radius: 14px 14px 10px 10px;
  border: 2px solid rgba(139, 92, 246, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.mascot-antenna {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: var(--violet);
}

.antenna-ball {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: antennaBlink 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes antennaBlink {
  0%, 80%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  90%            { opacity: 0.3; box-shadow: none; }
}

/* FACE */
.mascot-face {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.mascot-eye {
  width: 14px;
  height: 14px;
  background: #0f0a1e;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-pupil {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  position: absolute;
  transition: transform 0.1s ease;
  box-shadow: 0 0 4px var(--cyan);
}

.eye-shine {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  pointer-events: none;
}

/* Blink animation */
.mascot-eye.blink {
  animation: eyeBlink 0.15s ease;
}
@keyframes eyeBlink {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.05); }
}

.mascot-mouth {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 5px;
  border: 2px solid rgba(139, 92, 246, 0.7);
  border-top: none;
  border-radius: 0 0 10px 10px;
  transition: all 0.3s ease;
}

.mascot-mouth.happy {
  width: 24px;
  height: 7px;
  border-color: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.mascot-mouth.surprised {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  bottom: -10px;
}

/* TORSO */
.mascot-torso {
  position: relative;
  width: 46px;
  height: 40px;
  background: linear-gradient(160deg, #1a1533, #2d1b69);
  border-radius: 8px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.mascot-chest-light {
  width: 14px;
  height: 14px;
  background: var(--violet);
  border-radius: 4px;
  animation: chestPulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--violet);
}

@keyframes chestPulse {
  0%, 100% { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
  50%       { background: var(--cyan);   box-shadow: 0 0 16px var(--cyan); }
}

/* ARMS */
.mascot-arms {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.mascot-arm {
  width: 8px;
  height: 28px;
  background: linear-gradient(180deg, #2d1b69, #1a1533);
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transform-origin: top center;
}

.left-arm  { margin-left: -9px; transform: rotate(12deg); }
.right-arm { margin-right: -9px; transform: rotate(-12deg); }

/* LEGS */
.mascot-legs {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.mascot-leg {
  width: 14px;
  height: 18px;
  background: linear-gradient(180deg, #2d1b69, #1a1533);
  border-radius: 4px 4px 6px 6px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* SHADOW */
.mascot-shadow {
  width: 40px;
  height: 6px;
  background: rgba(139, 92, 246, 0.25);
  border-radius: 50%;
  margin-top: 2px;
  filter: blur(4px);
  animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.3; }
  50%       { transform: scaleX(0.7); opacity: 0.15; }
}

/* Scrolling state */
.mascot.scrolling .mascot-body {
  animation: mascotBob 0.3s ease infinite alternate;
}
@keyframes mascotBob {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-4px) rotate(3deg); }
}

/* Excited state */
.mascot.excited .antenna-ball {
  animation: antennaSpin 0.3s linear infinite;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}
@keyframes antennaSpin {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.5); }
  100% { transform: translateX(-50%) scale(1); }
}

/* En pantallas muy pequeñas — robot Byte visible pero escalado aún más */
@media (max-width: 480px) {
  .mascot {
    display: flex; /* aseguramos que sea visible */
    transform: scale(0.65);
    transform-origin: bottom right;
    right: 4px;
    bottom: 48px;
  }
  .mascot-bubble {
    right: 58px;
    bottom: 50px;
    max-width: 140px;
    font-size: 10.5px;
    padding: 8px 10px;
  }
}

/* ==========================================
   LOADER MASCOT — Byte en el intro
   ========================================== */
.loader-mascot {
  position: relative;
  margin-bottom: 28px;
  animation: lmDropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes lmDropIn {
  from { transform: translateY(-120px) scale(0.5); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.lm-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lmFloat 2.5s ease-in-out infinite;
}
@keyframes lmFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Head */
.lm-head {
  position: relative;
  width: 70px;
  height: 56px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.lm-antenna {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(to top, #8b5cf6, #22d3ee);
  border-radius: 2px;
}
.lm-antenna-ball {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: lmAntennaPulse 1.2s ease-in-out infinite;
}
@keyframes lmAntennaPulse {
  0%, 100% { box-shadow: 0 0 8px var(--cyan); transform: translateX(-50%) scale(1); }
  50%       { box-shadow: 0 0 18px var(--cyan); transform: translateX(-50%) scale(1.3); }
}

.lm-face {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
}
.lm-face { flex-direction: row; position: relative; }

.lm-eye {
  width: 14px;
  height: 14px;
  background: rgba(34, 211, 238, 0.15);
  border: 1.5px solid var(--cyan);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.1s;
}
.lm-eye.blink { height: 2px; border-radius: 2px; }
.lm-pupil {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--cyan);
  transition: transform 0.1s;
}

.lm-mouth {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}
.lm-mouth.happy {
  height: 8px;
  width: 22px;
  background: transparent;
  border: 2px solid var(--cyan);
  border-top: none;
  border-radius: 0 0 12px 12px;
  bottom: 7px;
}
.lm-mouth.scan {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: lmScan 0.6s ease-in-out infinite alternate;
}
@keyframes lmScan {
  from { width: 10px; }
  to   { width: 24px; }
}

/* Torso */
.lm-torso {
  width: 80px;
  height: 54px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}

.lm-chest-light {
  width: 16px;
  height: 16px;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--violet);
  animation: lmChestPulse 1.5s ease-in-out infinite;
  transition: background 0.5s, box-shadow 0.5s;
}
@keyframes lmChestPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.7; }
}

.lm-arm {
  position: absolute;
  width: 12px;
  height: 32px;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  top: 4px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lm-arm-l { left: -14px; transform-origin: top center; }
.lm-arm-r { right: -14px; transform-origin: top center; }
.lm-arm-l.wave { animation: lmWaveL 0.4s ease-in-out 3; }
.lm-arm-r.wave { animation: lmWaveR 0.4s ease-in-out 3; }
@keyframes lmWaveL {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-40deg); }
}
@keyframes lmWaveR {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(40deg); }
}
/* Celebrate: both arms up */
.lm-arm-l.celebrate { animation: lmCelebL 0.5s ease-out forwards; }
.lm-arm-r.celebrate { animation: lmCelebR 0.5s ease-out forwards; }
@keyframes lmCelebL {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-60deg); }
}
@keyframes lmCelebR {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(60deg); }
}

/* Legs */
.lm-legs {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.lm-leg {
  width: 16px;
  height: 20px;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  border-radius: 0 0 6px 6px;
}

.lm-shadow {
  width: 60px;
  height: 10px;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  margin-top: 6px;
  filter: blur(4px);
  animation: lmFloat 2.5s ease-in-out infinite;
  animation-delay: 0.1s;
}

/* Loader excited: big bounce */
.loader-mascot.celebrate .lm-body {
  animation: lmCelebBounce 0.4s ease-in-out 3;
}
@keyframes lmCelebBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-18px); }
}

/* ==========================================
   DEMOS SECTION
   ========================================== */
.demos-section {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.05) 0%, transparent 60%);
  border-top: 1px solid var(--border);
}

/* Tabs */
.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.demo-tab:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.demo-tab.active {
  background: var(--grad-cyan-violet);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.tab-icon { font-size: 16px; }

/* Panels */
.demo-panel {
  display: none;
  animation: panelFadeIn 0.4s ease;
}
.demo-panel.active { display: block; }

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.demo-controls {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.demo-controls h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.demo-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.control-group {
  margin-bottom: 20px;
}
.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Color presets */
.color-presets {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.color-preset {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.color-preset.active,
.color-preset:hover {
  border-color: white;
  transform: scale(1.2);
}
#colorPicker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  background: none;
  padding: 0;
  overflow: hidden;
}

/* Selects & Inputs */
.demo-controls select,
.demo-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
}
.demo-controls select:focus,
.demo-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.demo-controls select option { background: var(--bg-card); }

/* Button style options */
.btn-style-options {
  display: flex;
  gap: 8px;
}
.btn-style-opt {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-style-opt.active,
.btn-style-opt:hover {
  border-color: var(--violet);
  color: var(--text-primary);
  background: var(--violet-dim);
}

/* Demo action button */
.demo-action-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--grad-cyan-violet);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.demo-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.demo-action-btn:hover::before { opacity: 1; }
.demo-action-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.4); }
.demo-action-btn.loading { pointer-events: none; opacity: 0.7; }

.demo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  justify-content: center;
  margin-top: 4px;
}
.demo-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

/* Demo preview area */
.demo-preview {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Demo 1: Web Preview ---- */
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 320px;
  transition: all 0.3s ease;
  position: relative;
}
.preview-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--violet);
  transition: all 0.3s;
}
.preview-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: font-family 0.3s;
}
.preview-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  transition: font-family 0.3s;
}
.preview-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--violet);
  color: white;
}
.preview-card.theme-light { background: #f8fafc; color: #1e293b; border-color: #e2e8f0; }
.preview-card.theme-light p { color: #64748b; }

/* ---- Demo 2: ML ---- */
.demo-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: var(--transition);
}
.demo-textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.ml-result {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  animation: panelFadeIn 0.4s ease;
}
.ml-sentiment-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.ml-emoji {
  font-size: 42px;
  line-height: 1;
  animation: mlEmojiBounce 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes mlEmojiBounce {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.ml-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ml-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ml-conf-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.ml-conf-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-cyan-violet);
  width: 0;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.ml-conf-bar span { font-size: 13px; color: var(--text-muted); }
.ml-keywords {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ml-kw {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--violet);
}
.ml-kw.neg {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.2);
  color: #f87171;
}
.ml-kw.neutral {
  background: rgba(148,163,184,0.15);
  border-color: rgba(148,163,184,0.2);
  color: var(--text-muted);
}
.ml-detail {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

.ml-preview-side { flex-direction: column; justify-content: flex-start; align-items: stretch; }
.ml-ex-title { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.ml-example-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.ml-example-btn:hover { border-color: var(--violet); color: var(--text-primary); background: var(--violet-dim); }
.ml-stats-mini {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.ml-stat {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.ml-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.ml-stat label { font-size: 11px; color: var(--text-muted); }
.ml-stat.pos span { color: var(--green); }
.ml-stat.neg span { color: #f87171; }

/* ---- Demo 3: Charts ---- */
.chart-preview-side {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 20px;
}
#salesChart {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.chart-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}
.data-kpis {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  animation: panelFadeIn 0.4s ease;
}
.kpi-card span {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
}
.kpi-card.growth span { color: var(--green); }
.kpi-card label { font-size: 11px; color: var(--text-muted); }

/* ---- Demo 4: API ---- */
.api-url-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.api-method {
  padding: 10px 14px;
  background: rgba(139,92,246,0.2);
  color: var(--violet);
  font-weight: 700;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.api-method.POST { background: rgba(34,211,238,0.15); color: var(--cyan); }
.api-method.DELETE { background: rgba(239,68,68,0.15); color: #f87171; }
.api-url { padding: 10px 14px; color: var(--text-secondary); }

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.api-ep-btn {
  padding: 9px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.api-ep-btn:hover,
.api-ep-btn.active {
  border-color: var(--violet);
  color: var(--text-primary);
  background: var(--violet-dim);
}

.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 6px;
  color: var(--green);
  animation: panelFadeIn 0.3s ease;
}
.api-status.error {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.2);
  color: #f87171;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.api-preview-side { padding: 0; background: transparent; border: none; justify-content: stretch; align-items: stretch; }
.api-terminal {
  background: #0a0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.api-term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.api-term-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}
.api-term-body {
  flex: 1;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #86efac;
  overflow-y: auto;
}
.api-placeholder { color: var(--text-muted); font-style: italic; }
.api-json-key { color: #7dd3fc; }
.api-json-str { color: #86efac; }
.api-json-num { color: #fb923c; }
.api-json-bool { color: #c084fc; }
.api-json-line {
  display: block;
  animation: jsonLine 0.05s ease both;
}
@keyframes jsonLine {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   GAME SECTION — Byte Runner
   ========================================== */
.game-section {
  padding: 120px 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.07) 0%, transparent 60%);
  border-top: 1px solid var(--border);
}

.game-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.game-container {
  position: relative;
  background: #050a14;
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(139,92,246,0.15);
}

.game-hud {
  display: flex;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.hud-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#byteRunnerCanvas {
  display: block;
  width: 100%;
}

.game-overlay {
  position: absolute;
  inset: 0;
  top: 56px; /* below HUD */
  background: rgba(5,10,20,0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.game-overlay.hidden { display: none; }

.game-overlay-content {
  text-align: center;
  padding: 32px;
}
.overlay-robot { font-size: 56px; margin-bottom: 12px; animation: lmFloat 2s ease-in-out infinite; }
.game-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}
.game-overlay-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.game-controls-info {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.game-controls-info span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
}
.game-start-btn {
  padding: 14px 40px;
  background: var(--grad-cyan-violet);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(139,92,246,0.4);
}
.game-start-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(139,92,246,0.5); }

.game-side { display: flex; flex-direction: column; gap: 16px; }
.game-info-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.game-info-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.game-info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.game-tech-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.game-tech-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--violet-dim);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--violet);
}

.game-powerups-info {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.game-powerups-info h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.powerup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.powerup-item:last-child { border-bottom: none; }
.powerup-item span { font-size: 20px; }

/* ==========================================
   EXAMPLE BLOCKS & RESPONSIVE DESIGN
   ========================================== */

.service-example {
  margin: 16px 0;
  padding: 14px;
  background: rgba(34, 211, 238, 0.05);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.service-example strong { color: var(--cyan); }
.service-example a { 
  display: inline-block;
  color: var(--violet); 
  text-decoration: none; 
  font-weight: 600; 
  margin-top: 6px; 
  transition: var(--transition);
}
.service-example a:hover { text-decoration: underline; color: var(--text-primary); }

/* Responsive overrides for game section — handled by main media queries above */
