/* ============================================================
   JUDDEVS — Dark SaaS · Bento Grid · Glassmorphism
   Design inspiration: Dribbble Dark SaaS / Bento UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Backgrounds — carbon/slate night palette */
  --bg-base:       #0F172A;   /* deepest layer */
  --bg-elevated:   #111318;   /* sections */
  --bg-surface:    #161920;   /* glass base */
  --bg-surface-2:  #1C1F28;   /* raised elements */
  --bg-overlay:    #21242F;   /* hover overlays */

  /* Glass effect */
  --glass-bg:      rgba(30, 41, 59, 0.5);
  --glass-border:  rgba(255, 255, 255, 0.1);
  --glass-hover:   rgba(255, 255, 255, 0.3);
  --glass-blur:    12px;

  /* Electric Purple palette */
  --purple-dim:    #3B1FA8;   /* deep glow */
  --purple-core:   #A855F7;   /* primary brand */
  --purple-bright: #A855F7;   /* electric accent */
  --purple-light:  #9B6AFF;   /* highlights */
  --purple-pale:   #C4A8FF;   /* text tints */
  --purple-ghost:  rgba(168, 85, 247, 0.12);
  --purple-glow:   rgba(168, 85, 247, 0.28);
  --purple-glow-lg:rgba(168, 85, 247, 0.15);

  /* Borders */
  --border-dim:    rgba(255, 255, 255, 0.05);
  --border-soft:   rgba(255, 255, 255, 0.08);
  --border-purple: rgba(168, 85, 247, 0.22);
  --border-purple-hover: rgba(168, 85, 247, 0.45);

  /* Typography */
  --text-primary:  #F8FAFC;
  --text-secondary:#94A3B8;
  --text-muted:    #5E6375;
  --text-faint:    #383D4E;

  /* Fonts */
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;

  /* Spacing / Radius */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;

  /* Shadows */
  --shadow-card:  0 1px 0 var(--border-soft), 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 60px var(--purple-glow-lg), 0 0 120px rgba(123, 47, 255, 0.06);
  --shadow-btn:   0 0 28px var(--purple-glow);

  /* Easing */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:      0.28s;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); }

/* ── Grain texture overlay ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple-core); border-radius: 99px; }
::selection { background: rgba(123, 47, 255, 0.3); color: #fff; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ── Typography utilities ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(125deg, #fff 25%, var(--purple-light) 75%, var(--purple-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--purple-bright), transparent);
  border-radius: 2px;
}

/* ── Glassmorphism utility ──────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              padding var(--t) var(--ease);
}

#navbar.scrolled {
  background: rgba(12, 13, 16, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
}

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

/* ── Logotipo tipográfico ────────────────────────────────── */
.nav-logo {
  font-family: 'Outfit', var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #FFFFFF;
  transition: filter var(--t) var(--ease);
  user-select: none;
}
.nav-logo:hover {
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

/* Animated purple accent dot */
.nav-logo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--purple-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--purple-bright);
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 3px;
  /* Reset gradient inheritance */
  -webkit-text-fill-color: initial;
  background-clip: initial;
  -webkit-background-clip: initial;
  animation: dot-pulse 2.8s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--purple-bright); opacity: 1; }
  50%       { box-shadow: 0 0 22px var(--purple-bright), 0 0 6px var(--purple-pale); opacity: 0.65; }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--purple-bright);
  transition: width var(--t) var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 9px 20px;
  background: var(--purple-ghost);
  color: var(--purple-pale) !important;
  border: 1px solid var(--border-purple) !important;
  border-radius: var(--r-sm);
  font-weight: 600 !important;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: rgba(123, 47, 255, 0.22) !important;
  border-color: var(--border-purple-hover) !important;
  box-shadow: var(--shadow-btn) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
  position: relative;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--t) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

/* Dot-matrix background pattern */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 10%, transparent 80%);
  pointer-events: none;
}

/* Ambient glow blobs */
.hero-glow-1 {
  position: absolute;
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(98, 48, 212, 0.18) 0%, transparent 65%);
  top: -150px;
  right: -200px;
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(123, 47, 255, 0.10) 0%, transparent 65%);
  bottom: -100px;
  left: -150px;
  pointer-events: none;
  animation: glow-drift 14s ease-in-out infinite reverse;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  40%       { transform: translate(30px,-25px) scale(1.06); }
  70%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero layout */
.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-avatar {
  border-radius: 50%;
  border: 1px solid var(--purple-core);
  object-fit: cover;
  margin-bottom: -10px;
  animation: fade-up 0.7s 0.05s var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-purple);
  background: var(--purple-ghost);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--purple-pale);
  width: fit-content;
  animation: fade-down 0.6s var(--ease) both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: live-pulse 2.2s ease infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  animation: fade-up 0.7s 0.08s var(--ease) both;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 400;
  animation: fade-up 0.7s 0.16s var(--ease) both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-up 0.7s 0.24s var(--ease) both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  background: var(--purple-bright);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform var(--t) var(--ease-spring),
              background var(--t) var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #B673F8; /* Lighter purple on hover */
}
.btn-primary svg { transition: transform var(--t) var(--ease-spring); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-purple);
  background: var(--purple-ghost);
  transform: translateY(-1px);
}

/* Hero visual — abstract dashboard card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  animation: fade-up 0.9s 0.3s var(--ease) both;
}

.hero-dashboard {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: float-y 6s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* Dashboard card base */
.dash-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* KPI row */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-sm);
  padding: 14px 14px 12px;
}
.dash-kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--purple-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-kpi-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}
.dash-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #34D399;
  background: rgba(52, 211, 153, 0.10);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 6px;
}

/* Sparkline mini chart */
.dash-chart {
  padding: 16px 20px;
}
.dash-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash-chart-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.dash-chart-value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sparkline {
  width: 100%;
  height: 48px;
  overflow: visible;
}
.sparkline-area {
  fill: url(#spark-grad);
  opacity: 0.4;
}
.sparkline-line {
  fill: none;
  stroke: var(--purple-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Activity dots */
.dash-activity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.activity-dots {
  display: flex;
  gap: 5px;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-core);
  opacity: 0.3;
}
.activity-dot.active { opacity: 1; background: var(--purple-bright); box-shadow: 0 0 6px var(--purple-bright); }
.activity-dot.semi   { opacity: 0.65; }
.activity-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fade-up 1s 0.6s var(--ease) both;
}
.scroll-track {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--purple-bright), transparent);
  animation: scroll-track 2.2s ease-in-out infinite;
}
@keyframes scroll-track {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.9; }
}

/* ════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════ */
#about {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}

/* Subtle top highlight line */
#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-purple) 40%, transparent 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Stat cards — glassmorphism */
.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease-spring),
              border-color var(--t),
              box-shadow var(--t);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-hover), transparent);
  pointer-events: none;
}
/* Animated left border accent */
.stat-card::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-bright), var(--purple-core));
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--t);
}
.stat-card:hover { transform: translateY(-3px) translateX(2px); border-color: var(--border-purple); box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border-purple); }
.stat-card:hover::after { opacity: 1; }

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--purple-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--purple-ghost);
  border: 1px solid var(--border-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}

/* About text */
.about-text h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  color: var(--purple-pale);
  backdrop-filter: blur(8px);
  transition: background var(--t), border-color var(--t), transform var(--t) var(--ease-spring);
}
.pill:hover {
  background: var(--purple-ghost);
  border-color: var(--border-purple);
  transform: translateY(-2px);
}

/* ── Avatar corporativo ─────────────────────────────────────── */
.avatar-wrap {
  display: inline-block;        /* shrink to content */
  position: relative;
  margin-bottom: 24px;
  width: fit-content;
}

/* Outer animated ring — purple glow halo */
.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 32% 68% 28% 72% / 36% 42% 58% 64%;   /* organic blob */
  background: transparent;
  border: 1.5px solid rgba(123, 47, 255, 0.35);
  animation: avatar-ring 6s ease-in-out infinite;
  pointer-events: none;
}
/* Second ring, counter-rotating — subtle depth */
.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,255,0.14) 0%, transparent 70%);
  pointer-events: none;
  animation: avatar-glow 4s ease-in-out infinite alternate;
}

@keyframes avatar-ring {
  0%, 100% { border-radius: 32% 68% 28% 72% / 36% 42% 58% 64%; }
  33%       { border-radius: 60% 40% 55% 45% / 48% 60% 40% 52%; }
  66%       { border-radius: 40% 60% 70% 30% / 55% 35% 65% 45%; }
}
@keyframes avatar-glow {
  from { opacity: 0.6; transform: scale(0.95); }
  to   { opacity: 1.0; transform: scale(1.05); }
}

.avatar-img {
  display: block;
  width: clamp(90px, 14vw, 130px);   /* responsive sizing */
  height: clamp(90px, 14vw, 130px);
  object-fit: cover;
  object-position: center top;        /* keep face in frame */

  /* Squircle: high border-radius approximating a superellipse */
  border-radius: 28%;

  /* Purple glow border effect via box-shadow layers */
  box-shadow:
    0 0 0 2px rgba(123, 47, 255, 0.50),   /* inner solid ring */
    0 0 0 4px rgba(123, 47, 255, 0.15),   /* mid soft ring */
    0 0 28px rgba(123, 47, 255, 0.35),    /* outer glow */
    0 8px 32px rgba(0, 0, 0, 0.55);       /* depth shadow */

  transition: box-shadow var(--t) var(--ease),
              transform   var(--t) var(--ease-spring),
              border-radius var(--t) var(--ease);
}
.avatar-img:hover {
  border-radius: 50%;   /* morphs to circle on hover — micro-delight */
  box-shadow:
    0 0 0 2px var(--purple-bright),
    0 0 0 5px rgba(123, 47, 255, 0.20),
    0 0 50px rgba(123, 47, 255, 0.55),
    0 12px 40px rgba(0, 0, 0, 0.6);
  transform: scale(1.04);
}

/* ════════════════════════════════════════════════════════════
   SERVICES — BENTO GRID
════════════════════════════════════════════════════════════ */
#services {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(44px, 7vw, 68px);
}
.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 14px auto 0;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Bento grid: 3 cols, 2 rows ─────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

/* Card 1: spans 2 cols, row 1 */
.bento-card-1 {
  grid-column: span 2;
  grid-row: 1;
}
/* Card 2: spans 1 col, both rows */
.bento-card-2 {
  grid-column: 3;
  grid-row: 1 / 3;
}
/* Card 3: spans 2 cols, row 2 */
.bento-card-3 {
  grid-column: span 2;
  grid-row: 2;
}

/* ── Bento card base ─────────────────────────────────────────── */
.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: default;
  transition: border-color var(--t),
              box-shadow var(--t),
              transform var(--t) var(--ease-spring);
}

/* Top inner highlight */
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.10) 50%, transparent 90%);
  pointer-events: none;
}

/* Ambient glow on hover */
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(123,47,255,0.07), transparent);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-card), 0 0 20px rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
}
.bento-card:hover::after { opacity: 1; }

/* Purple gradient accent stripe */
.bento-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--purple-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  border-radius: 0 0 2px 2px;
}
.bento-card:hover .bento-stripe { transform: scaleX(1); }

/* Card header row */
.bento-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--purple-ghost);
  border: 1px solid var(--border-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: background var(--t), box-shadow var(--t);
}
.bento-card:hover .bento-icon {
  background: rgba(123,47,255,0.2);
  box-shadow: 0 0 20px rgba(123,47,255,0.25);
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--purple-ghost);
  color: var(--purple-light);
  border: 1px solid var(--border-purple);
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.bento-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-top: auto;
  transition: gap var(--t) var(--ease-spring), color var(--t);
}
.bento-link:hover { gap: 10px; color: var(--purple-pale); }

/* ── Decorative abstract visuals inside bento cards ─────────── */

/* Card 1 — Mini bar chart (Excel/data) */
.bento-visual-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  margin-top: 8px;
  padding: 0 4px;
}
.bento-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--purple-core), var(--purple-bright));
  opacity: 0.7;
  position: relative;
  transition: opacity var(--t), height var(--t);
  animation: bar-grow 1s var(--ease) both;
}
.bento-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.bento-bar:nth-child(2) { height: 60%; animation-delay: 0.15s; }
.bento-bar:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.bento-bar:nth-child(4) { height: 80%; animation-delay: 0.25s; background: linear-gradient(to top, var(--purple-bright), var(--purple-pale)); opacity: 1; }
.bento-bar:nth-child(5) { height: 55%; animation-delay: 0.3s; }
.bento-bar:nth-child(6) { height: 70%; animation-delay: 0.35s; }
.bento-bar:nth-child(7) { height: 90%; animation-delay: 0.4s; background: linear-gradient(to top, var(--purple-bright), #C4A8FF); opacity: 1; }
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}
.bento-bar-baseline {
  width: 100%;
  height: 1px;
  background: var(--border-soft);
  margin-top: 6px;
  border-radius: 1px;
}

/* Card 2 — AI nodes network (tall card) */
.bento-visual-network {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}
.network-svg { width: 100%; max-width: 200px; }
.network-node {
  fill: var(--purple-ghost);
  stroke: var(--border-purple);
  stroke-width: 1.5;
  animation: node-pulse 2.5s ease-in-out infinite;
}
.network-node.active { fill: rgba(123,47,255,0.3); stroke: var(--purple-bright); }
@keyframes node-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
.network-edge {
  stroke: var(--border-purple);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: edge-flow 2s linear infinite;
}
@keyframes edge-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -16; }
}

/* Card 3 — Email flow pipeline */
.bento-visual-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  overflow: hidden;
}
.pipeline-step {
  display: flex;
  align-items: center;
  flex: 1;
}
.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.pipeline-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-ghost);
  border: 1.5px solid var(--border-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  font-size: 0.72rem;
  font-weight: 700;
  position: relative;
}
.pipeline-circle.completed {
  background: rgba(123,47,255,0.25);
  border-color: var(--purple-bright);
  color: #fff;
  box-shadow: 0 0 12px rgba(123,47,255,0.35);
}
.pipeline-circle.active {
  background: var(--purple-bright);
  border-color: var(--purple-pale);
  color: #fff;
  box-shadow: 0 0 18px var(--purple-glow);
  animation: node-pulse 1.8s ease infinite;
}
.pipeline-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.pipeline-connector {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--border-purple), var(--border-dim));
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.pipeline-connector::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
  animation: connector-flow 2.5s linear infinite;
}
@keyframes connector-flow {
  from { left: -30%; }
  to   { left: 130%; }
}

/* ════════════════════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════════════════════ */
#cta {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.cta-inner {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-purple);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.12) 50%, transparent 90%);
}
/* Background geometric shape */
.cta-geo {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,255,0.12), transparent 70%);
  pointer-events: none;
}
.cta-geo-2 {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,48,212,0.10), transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
  max-width: 600px;
  margin: 0 auto 18px;
  position: relative;
}
.cta-inner p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 34px;
  line-height: 1.75;
  position: relative;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-dim);
  padding: 52px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 40%, var(--purple-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 0.83rem;
  color: var(--text-muted);
  max-width: 200px;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-light);
  padding: 9px 18px;
  border: 1px solid var(--border-purple);
  border-radius: 99px;
  background: var(--purple-ghost);
  backdrop-filter: blur(8px);
  transition: background var(--t), border-color var(--t), box-shadow var(--t), color var(--t), transform var(--t) var(--ease-spring);
}
.footer-email:hover {
  background: rgba(123,47,255,0.18);
  border-color: var(--border-purple-hover);
  box-shadow: var(--shadow-btn);
  color: var(--purple-pale);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t) var(--ease-spring), box-shadow var(--t);
}
.social-link:hover {
  color: #fff;
  border-color: var(--border-purple);
  background: var(--purple-ghost);
  box-shadow: 0 0 20px rgba(123,47,255,0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 0.78rem; color: var(--text-faint); }
.footer-copy span { color: var(--purple-core); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-faint);
  transition: color var(--t);
}
.footer-legal a:hover { color: var(--text-secondary); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(12, 13, 16, 0.96);
    backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity var(--t), transform var(--t);
    z-index: 999;
  }
  .nav-links.open { opacity: 1; pointer-events: all; transform: none; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* Hero */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; }
  .hero-subtitle { text-align: center; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { justify-content: center; }
  .hero-dashboard { max-width: 100%; }
}

/* Bento Grid */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .bento-card-1 { grid-column: span 2; grid-row: auto; }
  .bento-card-2 { grid-column: span 1; grid-row: auto; }
  .bento-card-3 { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card-1, .bento-card-2, .bento-card-3 { grid-column: span 1; grid-row: auto; }
}

/* About */
@media (max-width: 840px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
}

/* Footer */
@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .footer-brand { align-items: center; }
  .footer-tagline { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

/* Buttons stacked on small screens */
@media (max-width: 440px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* --- CORRECCIONES MANUALES JUDDEVS --- */

/* 1. Arreglar el Logo para que sea Premium */
.logo, #header-logo {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.6rem !important;
  color: #FFFFFF !important;
  letter-spacing: 0px !important;
  background: none !important;
  -webkit-text-fill-color: initial !important; /* Quita el degradado feo */
}

/* 2. Arreglar la foto de perfil para centrarla y darle estilo */
.hero-avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

img.avatar-circle {
  width: 80px; /* Tamaño perfecto, ni muy grande ni muy pequeña */
  height: 80px;
  border-radius: 50% !important; /* Hace que sea un círculo perfecto */
  object-fit: cover;
  border: 2px solid #A855F7 !important; /* Borde morado elegante */
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); /* Resplandor súper sutil */
}

/* 3. Hacer el título central (Juddevs) mucho más fino y elegante */
.hero-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important; /* Más fuerza (Bold) pero sin llegar a lo tosco de antes */
  letter-spacing: -1px !important; /* Espaciado elegante */
}