/* ==========================================================================
   Eusko Labs — Design System & Stylesheet
   Modern Digital Studio & High-Performance Engineering Platform
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ============================================================
     PALETA DEFINITIVA EUSKOLABS TECH: MAGENTA PURO
     (Arquitectura Cyber Propietaria, atmósfera magenta profunda)
     ============================================================ */
  --bg-main: #13011a;
  --body-bg-gradient: radial-gradient(circle 1100px at 50% -10%, #630b70 0%, #3a0446 38%, #1b0222 75%, #0d0111 100%);
  --bg-radial-ambient: radial-gradient(circle at 50% 30%, rgba(217, 70, 239, 0.22) 0%, rgba(35, 4, 44, 0.75) 50%, rgba(13, 1, 17, 0.98) 100%);
  --backdrop-aura: radial-gradient(circle, rgba(236, 72, 153, 0.52) 0%, rgba(217, 70, 239, 0.35) 42%, transparent 72%);
  --magenta-pure: #ff00ff;
  --magenta-glow: rgba(255, 0, 255, 0.4);
  --theme-accent: #ec4899;
  --theme-glow-accent: rgba(236, 72, 153, 0.55);
  --border-magenta: rgba(236, 72, 153, 0.2);
  --bg-card: rgba(24, 3, 31, 0.78);
  --bg-card-hover: rgba(45, 6, 58, 0.88);
  --bg-card-gradient: linear-gradient(135deg, rgba(38, 6, 48, 0.92), rgba(18, 2, 24, 0.96));
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(236, 72, 153, 0.15);

  /* Primary & Accent Gradients */
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;

  --grad-primary: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  --grad-secondary: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
  --grad-glow: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));

  /* Typography Colors — High Contrast Cyber Elegance */
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-brand: #f472b6;

  /* Typography System — Unified EuskoLabs Trio */
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-main);
}

body {
  background-color: var(--bg-main);
  background-image: var(--body-bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Fluid Liquid Mesh Canvas Background (RunwayML Inspired) */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

/* Magnetic Button Hover Spring Base (Superlist Style) */
.btn-primary, .btn-secondary, .console-btn, .tab-btn {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

.badge-global-work {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.badge-global-work:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.badge-global-work .globe-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s infinite;
}

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

.title-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

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

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Glassmorphism Card Base — Optimized for 3D Tilt */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.08s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.25);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(19, 2, 26, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: var(--transition-fast);
}

/* ─── Topbar Global Work Banner ─── */
.topbar-global-work {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.15) 0%, rgba(16, 185, 129, 0.12) 50%, rgba(99, 102, 241, 0.15) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: #e2e8f0;
  padding: 0.35rem 0;
  letter-spacing: 0.02em;
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s infinite;
}

.topbar-left strong {
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.topbar-sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.4rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  color: #94a3b8;
}

/* ─── Global Pill Tag next to Logo ─── */
.global-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.6rem;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
  animation: glowTag 3s ease-in-out infinite alternate;
}

.global-pill-tag .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes glowTag {
  from { box-shadow: 0 0 8px rgba(14, 165, 233, 0.2); }
  to { box-shadow: 0 0 16px rgba(56, 189, 248, 0.55); }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.logo img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--grad-primary);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-main);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* HERO SECTION */
.hero {
  padding-top: 11rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-glass-border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Interactive Hero Preview Box (Cyber Console) */
.console-wrapper {
  background: rgba(12, 14, 22, 0.9);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.console-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-glass-border);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-actions {
  display: flex;
  gap: 0.5rem;
}

.console-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.console-btn:hover, .console-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-indigo);
  color: var(--accent-cyan);
}

/* KINETIC TYPOGRAPHY MARQUEE */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(99,102,241,0.05) 0%, rgba(6,182,212,0.08) 50%, rgba(99,102,241,0.05) 100%);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 1.25rem 0;
  margin: 3rem 0;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-brand);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}

.marquee-bullet {
  color: var(--accent-cyan);
  font-size: 1.2em;
}

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

.console-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.console-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
}

.code-keyword { color: #c084fc; }
.code-function { color: #60a5fa; }
.code-string { color: #34d399; }
.code-number { color: #f59e0b; }
.code-comment { color: #64748b; font-style: italic; }

/* MANIFESTO / POSITIONING */
.manifesto-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
}

.manifesto-text {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

.manifesto-tag {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* SERVICE MATRIX & FILTER TABS */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--grad-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* INTERACTIVE PROJECT ESTIMATOR */
.estimator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.estimator-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.opt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  padding: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.opt-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.opt-card.selected {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.opt-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.opt-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.estimator-summary {
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.est-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-glass-border);
}

.est-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.est-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.est-item span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.est-price-box {
  background: var(--grad-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.est-price-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.est-time-val {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* TECH STACK GRID */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
}

.stack-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-fast);
}

.stack-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.stack-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.stack-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* SCROLL-DRIVEN WORD REVEAL (Mindloop Style) */
.reveal-word {
  opacity: 0.6;
  color: var(--text-muted);
  transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  display: inline-block;
}

.reveal-word.active {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(6, 182, 212, 0.75);
}

/* STICKY STACKING CARDS (Jack3D / Apple Style) */
.lab-stack-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.sticky-stack-card {
  position: sticky;
  top: calc(110px + (var(--card-index) * 22px));
  background: rgba(15, 18, 28, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(6, 182, 212, 0.18);
  will-change: transform;
}

/* BENTO GRID MATRIX (Notion, Superlist & Runway Style) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.2);
  transform: translateY(-4px);
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-row-2 {
  grid-row: span 2;
}

.bento-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.bento-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.bento-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SUPERLIST INTERACTIVE CHECKLIST WIDGET */
.super-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

.check-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: #fff;
}

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.check-item.active .check-box {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.check-box::after {
  content: '✓';
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  display: none;
}

.check-item.active .check-box::after {
  display: block;
}

/* TERMINAL CONTACT FORM */
.terminal-card {
  background: #090b12;
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-glass-border);
}

.terminal-body {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-brand);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

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

/* LEGAL & FOOTER */
.legal-banner {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4rem;
}

.footer {
  border-top: 1px solid var(--bg-glass-border);
  padding: 4rem 0 2rem 0;
  margin-top: 6rem;
  background: rgba(13, 1, 17, 0.98);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

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

.footer-global-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  transition: all 0.3s ease;
}

.footer-global-badge:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #f8fafc;
}

.footer-global-badge strong {
  color: #38bdf8;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-glass-border);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console-wrapper { display: none; }
  .estimator-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .services-grid, .lab-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Eusko Labs — PyME Solutions Specific Styles
   ========================================================================== */

.pyme-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-top: 1rem;
}

.pyme-roi-container {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
  backdrop-filter: blur(12px);
}

.pyme-roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.pyme-roi-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.pyme-roi-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  margin: 0.5rem 0;
}

.pyme-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #0d111a;
  border: 1px solid var(--bg-glass-border);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}


.pyme-select:focus {
  outline: none;
  border-color: var(--accent-indigo);
}

/* Ambient Audio Toggle Floating Badge */
.ambient-audio-badge {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  z-index: 9990;
  background: rgba(13, 17, 26, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  color: #00f0ff;
}

.ambient-audio-badge:hover {
  border-color: rgba(99, 102, 241, 0.8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.25);
}

.ambient-audio-badge.playing {
  color: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.audio-eq-icon {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-eq-bar {
  width: 3px;
  background: #6366f1;
  border-radius: 2px;
  height: 4px;
}

.ambient-audio-badge.playing .audio-eq-bar:nth-child(1) { animation: eqAnim 0.8s ease-in-out infinite alternate; }
.ambient-audio-badge.playing .audio-eq-bar:nth-child(2) { animation: eqAnim 0.6s ease-in-out infinite alternate 0.2s; }
.ambient-audio-badge.playing .audio-eq-bar:nth-child(3) { animation: eqAnim 0.9s ease-in-out infinite alternate 0.4s; }

@keyframes eqAnim {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==========================================================================
   LENIS SMOOTH FLOATING SCROLL SYSTEM
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ==============================================================================
   EUSKOLABS OFFICIAL SOCIAL LINKS & ICONS (SURGICAL INJECTION)
   ============================================================================== */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.social-link svg {
  transition: transform 0.2s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   MINI-PHONE SHORT SHOWCASE GLOBAL COMPONENT
   ========================================================================== */
.project-short-showcase {
  margin-top: 2.5rem;
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.mini-phone-container {
  width: 220px;
  height: 390px;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.mini-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
}

.mini-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-desc-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.short-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  width: fit-content;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.short-desc-col h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.01em;
}

.short-desc-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.short-features-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.short-feat-item {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 850px) {
  .project-short-showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .short-badge {
    margin: 0 auto;
  }
  .short-features-list {
    justify-content: center;
  }
}

/* ==========================================================================
   EUSKO LABS — FUTURISTIC HUD & BENTO GLOW ENHANCEMENTS
   ========================================================================== */

/* Bento Grid Cyber Glow & Reflective Border */
.bento-card {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), rgba(251, 191, 36, 0.3), transparent);
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(16, 185, 129, 0.15);
  transform: translateY(-3px);
}

.bento-pill {
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
  letter-spacing: 0.05em;
}

/* Sticky Stack Cards Elevation */
.sticky-stack-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.sticky-stack-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(251, 191, 36, 0.3), transparent);
  opacity: 0.6;
}

.sticky-stack-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

/* Service Tags Neon Accents */
.service-tags .tag {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.service-tags .tag:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

/* ==========================================================================
   MOBILE RESPONSIVE INTEGRITY & OVERFLOW DEFENSE
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

pre {
  overflow-x: auto !important;
  max-width: 100% !important;
  -webkit-overflow-scrolling: touch !important;
  white-space: pre !important;
  word-wrap: normal !important;
}

table {
  max-width: 100% !important;
  overflow-x: auto !important;
  display: block !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.9rem, 6.5vw, 2.75rem) !important;
    line-height: 1.15 !important;
    hyphens: auto;
    word-break: break-word;
  }
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
