/* ============================================
   GROWTHMARK — Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #161616;
  --text: #F5F5F0;
  --text2: #888888;
  --accent1: #7B2FFF;
  --brand-blue: #015df4;
  --brand-blue-2: #3d7bff;
  --accent2: #00FF94;
  --accent3: #FF3C3C;
  --border: #222222;
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 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);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: none; font-family: var(--font); border: none; background: none; }
ul { list-style: none; }

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(245,245,240,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
#cursor-ring.hover {
  width: 64px; height: 64px;
  background: rgba(123,47,255,0.12);
  border-color: var(--accent1);
}
#cursor-ring.click {
  width: 24px; height: 24px;
  background: rgba(123,47,255,0.3);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  transition: transform 1s var(--ease), opacity 0.55s ease 0.35s;
}
#loading-screen.exit {
  transform: translateY(-100%);
  opacity: 0;
}
.loading-logo {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  animation: loadLogoIn 1s var(--ease) 0.3s forwards;
}
.loading-logo-img { height: 40px; width: auto; display: block; }

@keyframes loadLogoIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.loading-bar-wrap {
  width: 260px;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: visible;
}
.loading-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: linear-gradient(to right, var(--accent1), var(--accent2));
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(123,47,255,0.9), 0 0 22px rgba(0,255,148,0.35);
}
.loading-pct {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text2);
  font-weight: 300;
  text-transform: uppercase;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s;
}
#navbar.scrolled {
  padding: 18px 60px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; height: 40px; }
.logo-img { height: 56px; width: auto; display: block; }


.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text2);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: linear-gradient(to right, var(--accent1), var(--accent2));
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 11px 28px;
  background: var(--brand-blue);
  color: var(--text) !important;
  border-radius: 40px;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s !important;
}
.nav-cta:hover {
  background: var(--brand-blue-2) !important;
  box-shadow: 0 0 30px rgba(1,93,244,0.45) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1010;
  position: relative;
}
.hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
}
#mobile-menu.open { transform: translateY(0); }
#mobile-menu a {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text2);
  transition: color 0.3s;
}
#mobile-menu a:hover { color: var(--text); }
#mobile-menu .mobile-cta {
  margin-top: 20px;
  padding: 16px 48px;
  background: var(--accent1);
  color: var(--text);
  border-radius: 60px;
  font-size: 18px;
  font-weight: 500;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 72% 30%, rgba(0,25,80,0.25), transparent 65%),
    radial-gradient(ellipse 45% 50% at 20% 80%, rgba(0,12,50,0.15), transparent 50%),
    var(--bg);
}

/* Campo de estrellas — fondo espacial reutilizable para secciones oscuras */
.stars-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 18% 25%, rgba(123,47,255,0.14), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(0,255,148,0.08), transparent 70%);
}
.stars-field::before,
.stars-field::after {
  content: '';
  position: absolute;
  inset: 0;
}
.stars-field::before {
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 21% 64%, #F5F5F0, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 30%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 47% 82%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 60% 12%, #F5F5F0, transparent 100%),
    radial-gradient(1.5px 1.5px at 73% 56%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 84% 36%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 92% 70%, #F5F5F0, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 90%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 54% 46%, #F5F5F0, transparent 100%);
  opacity: 0.5;
  animation: starsTwinkleA 4.5s ease-in-out infinite alternate;
}
.stars-field::after {
  background-image:
    radial-gradient(1px 1px at 5% 50%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 29% 8%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 41% 93%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 66% 23%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 78% 79%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 90% 19%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 12% 36%, #F5F5F0, transparent 100%),
    radial-gradient(1px 1px at 57% 66%, #F5F5F0, transparent 100%);
  opacity: 0.3;
  animation: starsTwinkleB 6s ease-in-out infinite alternate-reverse;
}
@keyframes starsTwinkleA { from { opacity: 0.25; } to { opacity: 0.7; } }
@keyframes starsTwinkleB { from { opacity: 0.45; } to { opacity: 0.12; } }
@media (prefers-reduced-motion: reduce) {
  .stars-field::before, .stars-field::after { animation: none; opacity: 0.4; }
}
@keyframes bgPulse {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* ============================================
   HERO LIGHT TRAILS
   ============================================ */
.hero-trails {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.trails-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.9;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  #hero:hover .trails-svg { opacity: 1; }
}

.trail-anim-1 { animation: trailFloat1 50s cubic-bezier(0.4,0,0.6,1) infinite; }
.trail-anim-2 { animation: trailFloat2 42s cubic-bezier(0.4,0,0.6,1) infinite; }
.trail-anim-3 { animation: trailFloat3 55s cubic-bezier(0.4,0,0.6,1) infinite 3s; }
.trail-anim-4 { animation: trailFloat4 35s cubic-bezier(0.4,0,0.6,1) infinite 5s; }
.trail-anim-5 { animation: trailFloat1 40s cubic-bezier(0.4,0,0.6,1) infinite reverse 8s; }
.trail-anim-6 { animation: trailFloat2 38s cubic-bezier(0.4,0,0.6,1) infinite 2s; }
.trail-anim-7 { animation: trailFloat3 70s cubic-bezier(0.4,0,0.6,1) infinite 4s; }
.trail-anim-8 { animation: trailFloat4 80s cubic-bezier(0.4,0,0.6,1) infinite reverse 10s; }

@keyframes trailFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(-12px, 8px) rotate(0.3deg); }
  50%      { transform: translate(8px, -15px) rotate(-0.15deg); }
  75%      { transform: translate(-5px, -10px) rotate(0.2deg); }
}
@keyframes trailFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%      { transform: translate(15px, -8px) rotate(-0.25deg); }
  60%      { transform: translate(-10px, 12px) rotate(0.35deg); }
  85%      { transform: translate(5px, 5px) rotate(-0.1deg); }
}
@keyframes trailFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  35%      { transform: translate(-8px, -12px) rotate(0.2deg) scale(1.01); }
  65%      { transform: translate(12px, 6px) rotate(-0.3deg) scale(0.99); }
}
@keyframes trailFloat4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20%      { transform: translate(10px, 10px) rotate(-0.2deg); }
  50%      { transform: translate(-15px, -5px) rotate(0.15deg); }
  80%      { transform: translate(5px, -12px) rotate(-0.25deg); }
}
@media (prefers-reduced-motion: reduce) {
  [class^="trail-anim"] { animation: none !important; }
  .trails-parallax { transform: none !important; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease) 2.2s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 90px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--text);
  margin-bottom: 40px;
}
.hero-headline .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.18em;
}
.hero-headline .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordReveal 0.9s var(--ease) forwards;
}
.hero-headline .word:nth-child(1) span { animation-delay: 2.4s; }
.hero-headline .word:nth-child(2) span { animation-delay: 2.55s; }
.hero-headline .word:nth-child(4) span { animation-delay: 2.7s; }
.hero-headline .word:nth-child(5) span { animation-delay: 2.85s; }
.hero-headline .accent { color: var(--accent1); }
.hero-headline .accent-purple { color: #4A1A9E; }

@keyframes wordReveal {
  from { transform: translateY(110%) skewY(5deg); }
  to   { transform: translateY(0)    skewY(0deg); }
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 300;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease) 3.1s forwards;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.7s var(--ease) 0.9s forwards;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

.btn-primary {
  padding: 16px 40px;
  background: var(--brand-blue);
  color: var(--text);
  border-radius: 60px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-blue-2);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  z-index: 1;
  animation: btnSweep 4.5s ease-in-out infinite 2s;
}
@keyframes btnSweep {
  0%, 40% { left: -80%; opacity: 1; }
  85%, 100% { left: 150%; opacity: 0; }
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { box-shadow: 0 0 40px rgba(1,93,244,0.45); transform: translateY(-2px); }
.btn-primary span { position: relative; z-index: 2; }

.btn-outline {
  padding: 16px 40px;
  border: 1px solid rgba(245,245,240,0.3);
  color: var(--text);
  border-radius: 60px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover {
  border-color: var(--text);
  background: rgba(245,245,240,0.07);
  transform: translateY(-2px);
}


.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: revealUp 0.8s var(--ease) 3.6s forwards;
}
.scroll-indicator span {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text2);
  writing-mode: vertical-lr;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text2), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.5); transform-origin: top; }
}

/* ============================================
   MARQUEE / CLIENT STRIP
   ============================================ */
#clients {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.clients-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 36px;
  font-style: italic;
  font-weight: 300;
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logo {
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.5px;
  color: var(--text2);
  white-space: nowrap;
  transition: color 0.3s;
  user-select: none;
}
.client-logo:hover { color: var(--text); }

/* ============================================
   SECTION COMMON
   ============================================ */
section { padding: 120px 60px; }
.section-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 24px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--text2);
}

/* Header centrado: Para quién es */
.audience-header {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

/* Header a la izquierda: Qué incluye — alineado con el borde de las cards */
.include-header {
  text-align: left;
  max-width: 1100px;
  margin: 0 auto 56px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   ABOUT
   ============================================ */
#about {
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(123,47,255,0.18) 1.5px, transparent 1.5px);
  background-size: 44px 44px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.about-left { padding-left: 80px; }
.about-big-num {
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,240,0.15);
  margin-bottom: 32px;
  display: block;
}
.about-body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text2);
  margin-bottom: 40px;
  max-width: 480px;
}
.about-body strong {
  color: var(--text);
  font-weight: 500;
}
.about-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.about-stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  display: block;
}
.about-stat-lbl {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  letter-spacing: 0.5px;
}
.about-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-right::before {
  content: '';
  position: absolute;
  width: 740px; height: 740px;
  border-radius: 50%;
  border: 1px dashed rgba(123,47,255,0.07);
  animation: orbSpin 40s linear infinite;
  pointer-events: none;
}
.about-orb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  min-height: 640px;
}
.about-orb-wrap::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  border: 1px dashed rgba(123,47,255,0.15);
  animation: orbSpin 28s linear infinite reverse;
  pointer-events: none;
}
.about-orb-wrap::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px dashed rgba(0,255,148,0.12);
  animation: orbSpin 18s linear infinite;
  pointer-events: none;
}
.about-orb {
  width: 380px; height: 380px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease-in-out, filter 0.35s ease-in-out;
  cursor: default;
}
.about-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent1), var(--accent2), var(--accent1));
  animation: orbSpin 6s linear infinite;
}
.about-orb::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg2);
}
.about-orb:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 30px rgba(123,47,255,0.55)) drop-shadow(0 0 60px rgba(0,255,148,0.2));
}
.about-orb:hover::before { animation-duration: 1.5s; }
.about-orb-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  user-select: none;
}
.about-orb-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.3;
}
.about-orb-sub {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent1);
  margin-top: 10px;
}
@keyframes orbSpin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SERVICES
   ============================================ */
#services { background: var(--bg2); }
.services-header {
  max-width: 1400px;
  margin: 0 auto 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.service-card {
  padding: 48px 40px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  transition: background 0.4s, transform 0.3s;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service-card:hover {
  background: var(--bg3);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,47,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--accent1);
  transition: height 0.4s var(--ease);
}
.service-card:hover::after { height: 100%; }

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 28px;
  color: var(--accent1);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  color: var(--accent2);
}
.service-num {
  position: absolute;
  top: 24px; right: 32px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -2px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,240,0.09);
  font-weight: 700;
  pointer-events: none;
}
.service-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #a3a3a3;
  font-weight: 400;
}

/* ============================================
   PORTFOLIO
   ============================================ */
#portfolio { background: var(--bg); }
.portfolio-header {
  max-width: 1400px;
  margin: 0 auto 48px;
}
.portfolio-filters {
  display: flex;
  gap: 4px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 40px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent1);
  color: var(--text);
  border-color: var(--accent1);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.portfolio-grid .proj-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 1;
}
.portfolio-grid .proj-card:nth-child(4) {
  grid-column: span 2;
}

.proj-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16/10;
  cursor: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.proj-card:nth-child(1) { aspect-ratio: 16/9; }

.proj-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.proj-card:hover .proj-img {
  transform: scale(1.06);
  filter: brightness(0.5);
}

.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s;
}
.proj-card:hover .proj-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 100%);
}

.proj-cat {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
}
.proj-name {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s, color 0.3s;
}
.proj-card:hover .proj-link {
  opacity: 1;
  transform: translateY(0);
  color: var(--text);
}
.proj-year {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 12px;
  color: rgba(245,245,240,0.4);
  letter-spacing: 2px;
}

/* hidden for filter */
.proj-card.hidden {
  display: none;
}

/* ============================================
   PROCESS — HORIZONTAL TIMELINE
   ============================================ */
#process { background: var(--bg2); }
.process-inner { max-width: 1100px; margin: 0 auto; }
.process-header { margin-bottom: 80px; }

.timeline-wrap {
  position: relative;
  padding: 0 0 60px;
}

/* The horizontal track line */
.timeline-line {
  position: absolute;
  top: 36px;
  left: calc(12.5% );
  right: calc(12.5% );
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent1), var(--accent2));
  transition: width 1.8s var(--ease);
  box-shadow: 0 0 12px rgba(123,47,255,0.4);
}
.timeline-line-fill.animate { width: 100%; }

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

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Circle */
.timeline-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--text2);
  margin-bottom: 28px;
  transition: border-color 0.5s, background 0.5s, color 0.5s, box-shadow 0.5s;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.timeline-step.activated .timeline-circle {
  border-color: var(--accent1);
  background: var(--accent1);
  color: #fff;
  box-shadow: 0 0 30px rgba(123,47,255,0.5);
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.timeline-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
  max-width: 200px;
}

/* ============================================
   BACKGROUND DECORATIONS
   ============================================ */


/* About — círculo grande esquina superior izquierda */
#about { overflow: hidden; }
#about::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(123,47,255,0.2);
  top: -120px; left: -100px;
  pointer-events: none;
}

/* Services — círculo grande inferior derecha + pequeño superior izquierda */
#services { position: relative; overflow: hidden; }
#services::before {
  content: '';
  position: absolute;
  width: 680px; height: 680px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,148,0.15);
  bottom: -240px; right: -180px;
  pointer-events: none;
}
#services::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(123,47,255,0.18);
  top: 60px; left: -80px;
  pointer-events: none;
}

/* CTA — dos círculos concéntricos centrados */
#cta-section { position: relative; overflow: hidden; }
#cta-section::before {
  content: '';
  position: absolute;
  width: 860px; height: 860px;
  border-radius: 50%;
  border: 1px solid rgba(123,47,255,0.14);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#cta-section::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,148,0.13);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Contact — círculo grande esquina superior derecha + pequeño inferior izquierda */
#contact { position: relative; overflow: hidden; }
#contact::before {
  content: '';
  position: absolute;
  width: 580px; height: 580px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,148,0.14);
  top: -150px; right: -150px;
  pointer-events: none;
}
#contact::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(123,47,255,0.18);
  bottom: 60px; left: -60px;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .timeline-steps { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .timeline-line { display: none; }
}
@media (max-width: 767px) {
  .timeline-steps { grid-template-columns: 1fr; gap: 36px; }
  .timeline-step { flex-direction: row; text-align: left; gap: 20px; align-items: flex-start; }
  .timeline-circle { margin-bottom: 0; flex-shrink: 0; width: 52px; height: 52px; font-size: 18px; }
  .timeline-line { display: none; }
}

/* ============================================
   STATS
   ============================================ */
#stats {
  background: var(--bg);
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(123,47,255,0.12) 0%, transparent 70%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 60px 40px;
  background: var(--bg);
  text-align: center;
}
.stat-num {
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 900;
  letter-spacing: -3px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.stat-suffix {
  color: var(--accent1);
}
.stat-label {
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials { background: var(--bg2); }
.testimonials-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.testimonials-header { margin-bottom: 64px; }
.testimonials-slider {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.7s var(--ease);
}
.testimonial-card {
  min-width: 100%;
  padding: 64px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.test-quote {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 900px;
  letter-spacing: -0.3px;
}
.test-quote::before {
  content: '"';
  color: var(--accent1);
  font-size: 80px;
  font-weight: 900;
  line-height: 0;
  vertical-align: -28px;
  margin-right: 8px;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 20px;
}
.test-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(30%);
  background: var(--border);
  flex-shrink: 0;
  overflow: hidden;
}
.test-avatar-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.test-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.test-role {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
}
.test-stars {
  margin-left: auto;
  color: var(--accent2);
  font-size: 18px;
  letter-spacing: 3px;
}
.slider-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.slider-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: none;
}
.slider-btn:hover {
  background: var(--accent1);
  color: var(--text);
  border-color: var(--accent1);
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--border);
  transition: background 0.3s, width 0.3s;
  cursor: none;
}
.slider-dot.active {
  background: var(--accent1);
  width: 24px;
}

/* ============================================
   CTA SECTION
   ============================================ */
#cta-section {
  padding: 160px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(123,47,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  background: var(--bg);
}
#cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(123,47,255,0.2) 0%, transparent 70%);
  animation: bgPulse 6s ease-in-out infinite alternate;
}
.cta-big-text {
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.cta-big-text em {
  font-style: italic;
  font-weight: 300;
  color: var(--text2);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 64px;
  background: var(--brand-blue);
  color: var(--text);
  border-radius: 80px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  animation: ctaGlow 3.5s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 28px rgba(123,47,255,0.3), 0 4px 18px rgba(123,47,255,0.15); }
  50%       { box-shadow: 0 0 55px rgba(123,47,255,0.65), 0 4px 40px rgba(123,47,255,0.3), 0 0 90px rgba(0,255,148,0.1); }
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-blue-2);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
}
.cta-btn:hover::before { transform: translateX(0); }
.cta-btn:hover {
  box-shadow: 0 0 60px rgba(1,93,244,0.5);
  transform: translateY(-3px);
}
.cta-btn span { position: relative; z-index: 1; }
.cta-contact {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.cta-contact a {
  font-size: 15px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.cta-contact a:hover { color: var(--text); }

/* ============================================
   CONTACT FORM
   ============================================ */
#contact { background: var(--bg2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
.contact-info {}
.contact-tagline {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.contact-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text2);
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 400px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent1);
  flex-shrink: 0;
}
.contact-item-text span:first-child {
  display: block;
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact-item-text span:last-child {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

/* Form */
.contact-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
}
.form-group {
  position: relative;
  margin-bottom: 28px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: #161616 !important;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 20px 0 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  color: #F5F5F0 !important;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}
.form-group input:focus,
.form-group input:hover,
.form-group input:active,
.form-group input:not(:placeholder-shown),
.form-group select:focus,
.form-group select:hover,
.form-group textarea:focus,
.form-group textarea:hover,
.form-group textarea:active,
.form-group textarea:not(:placeholder-shown) {
  background-color: #161616 !important;
  color: #F5F5F0 !important;
}
/* Override browser autofill background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #161616 inset !important;
  box-shadow: 0 0 0 1000px #161616 inset !important;
  -webkit-text-fill-color: #F5F5F0 !important;
  caret-color: #F5F5F0;
  transition: background-color 9999s ease-in-out 0s;
}
.form-group select option {
  background: var(--bg2);
  color: var(--text);
}
.form-group textarea {
  resize: none;
  height: 120px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent1);
}
.form-group label {
  position: absolute;
  top: 20px; left: 0;
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: top 0.3s var(--ease), font-size 0.3s, color 0.3s;
  pointer-events: none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 0;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent1);
}
.form-group .error-msg {
  font-size: 11px;
  color: var(--accent3);
  position: absolute;
  bottom: -18px; left: 0;
  letter-spacing: 0.5px;
  display: none;
}
.form-group.error .error-msg { display: block; }
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--accent3);
}

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

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--accent1);
  color: var(--text);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  cursor: none;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #9a54ff;
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
}
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit:hover {
  box-shadow: 0 0 40px rgba(123,47,255,0.4);
  transform: translateY(-1px);
}
.btn-submit-text { position: relative; z-index: 1; }
.btn-submit.loading .btn-submit-text::after {
  content: '...';
  animation: loadingDots 1s infinite;
}
@keyframes loadingDots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success.show { display: block; }
.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}
.success-desc { color: var(--text2); font-size: 15px; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 60px 40px;
  position: relative;
  overflow: hidden;
}
.footer-bg-text {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -3px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,240,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
  align-items: start;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.8;
  margin-top: 24px;
  max-width: 280px;
}
.footer-col {
  padding-top: 0;
}
.footer-col-title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 24px;
  font-weight: 500;
  height: 43px;
  display: flex;
  align-items: center;
  margin-top: 0;
}
.footer-col-title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
  margin-bottom: 12px;
  transition: color 0.3s, transform 0.3s;
}
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.social-link {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  font-size: 14px;
}
.social-link:hover {
  background: var(--accent1);
  color: var(--text);
  border-color: var(--accent1);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.footer-bottom p, .footer-bottom a {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
}
.footer-bottom a:hover { color: var(--text); }
.footer-accent-dot {
  color: var(--accent1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
  section { padding: 80px 40px; }
  #navbar { padding: 24px 40px; }
  #navbar.scrolled { padding: 16px 40px; }
  #hero { padding: 0 40px 64px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-right { display: flex; }
  .about-left { padding-left: 0; }
  .about-cta { width: min(300px, 74%); }
  .about-body { max-width: 100%; }
  .trail-anim-6, .trail-anim-8 { display: none; }
  .trails-svg { opacity: 0.82; }

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

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid .proj-card:nth-child(1) { grid-column: span 2; }
  .portfolio-grid .proj-card:nth-child(4) { grid-column: span 1; }


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

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================
   BUTTON ANIMATIONS — UNIVERSAL
   ============================================ */

/* Ripple on click for ALL buttons */
.btn-primary, .btn-outline, .nav-cta, .cta-btn,
.btn-submit, .filter-btn, .slider-btn, .mobile-cta,
.hamburger {
  position: relative;
  overflow: hidden;
}

/* Liquid fill — btn-outline */
.btn-outline {
  transition: border-color 0.35s, color 0.35s, transform 0.25s, box-shadow 0.35s;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245,245,240,0.08);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  border-radius: inherit;
}
.btn-outline:hover::before { transform: translateX(0); }
.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,245,240,0.06);
}
.btn-outline:active { transform: translateY(0) scale(0.97); }

/* Pulse scale — filter buttons */
.filter-btn {
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,47,255,0.25);
}
.filter-btn:active { transform: scale(0.95) translateY(0); }
.filter-btn.active {
  box-shadow: 0 4px 20px rgba(123,47,255,0.3);
}

/* Slider buttons — spin icon on hover */
.slider-btn {
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}
.slider-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(123,47,255,0.3);
}
.slider-btn:active { transform: scale(0.93); }
.slider-btn svg {
  transition: transform 0.3s var(--ease);
}
.slider-btn.prev:hover svg { transform: translateX(-3px); }
.slider-btn.next:hover svg { transform: translateX(3px); }

/* Slider dots */
.slider-dot {
  transition: background 0.3s, width 0.4s var(--ease), transform 0.2s;
}
.slider-dot:hover { transform: scaleY(1.5); }

/* Mobile CTA */
.mobile-cta {
  transition: background 0.35s, transform 0.25s, box-shadow 0.35s !important;
  display: inline-block;
}
.mobile-cta:hover {
  background: #9a54ff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 40px rgba(123,47,255,0.4) !important;
}
.mobile-cta:active { transform: scale(0.96) !important; }

/* btn-primary active state */
.btn-primary:active { transform: scale(0.97) translateY(0); }

/* cta-btn active */
.cta-btn:active { transform: scale(0.97) translateY(0); }

/* Submit active */
.btn-submit:active { transform: scale(0.98); }

/* nav-cta active */
.nav-cta:active { transform: scale(0.96) !important; }

/* Ripple keyframe for all */
@keyframes ripple {
  from { transform: scale(0); opacity: 0.4; }
  to   { transform: scale(4); opacity: 0; }
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  width: 80px; height: 80px;
  margin-left: -40px; margin-top: -40px;
  pointer-events: none;
  animation: ripple 0.6s linear forwards;
  z-index: 10;
}

@media (max-width: 767px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  section { padding: 72px 24px; }
  #navbar { padding: 20px 24px; }
  #navbar.scrolled { padding: 14px 24px; }
  .logo-img { height: 36px; }
  #hero { padding: 0 24px 60px; }
  .scroll-indicator { right: 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid .proj-card:nth-child(1) { grid-column: span 1; }
  .portfolio-grid .proj-card:nth-child(4) { grid-column: span 1; }


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

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cta-contact { flex-direction: column; gap: 16px; }
  .about-stats { flex-direction: column; gap: 24px; }
  .services-header { flex-direction: column; gap: 24px; }

  .testimonial-card { padding: 32px 24px; }
  #footer { padding: 60px 24px 32px; }

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

  .trails-svg { opacity: 0.65; }
  .trail-anim-3, .trail-anim-4, .trail-anim-5,
  .trail-anim-6, .trail-anim-7, .trail-anim-8 { display: none; }
}

/* ============================================
   AURORA BACKGROUND BLOBS
   ============================================ */
#aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ab {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.ab1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(123,47,255,0.2) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: auroraFloat1 24s ease-in-out infinite alternate;
}
.ab2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,148,0.1) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation: auroraFloat2 30s ease-in-out infinite alternate;
}
.ab3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(123,47,255,0.13) 0%, transparent 70%);
  top: 40%; left: 45%;
  animation: auroraFloat3 20s ease-in-out infinite alternate;
}
@keyframes auroraFloat1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(280px,180px) scale(1.25); }
}
@keyframes auroraFloat2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-220px,-140px) scale(1.15); }
}
@keyframes auroraFloat3 {
  from { transform: translate(-50%,-50%) scale(0.9); }
  to   { transform: translate(calc(-50% + 180px), calc(-50% - 120px)) scale(1.1); }
}


/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
#scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--accent1), var(--accent2));
  z-index: 10;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(123,47,255,0.85), 0 0 22px rgba(0,255,148,0.3);
  filter: brightness(1.15);
}

/* ============================================
   HERO HEADLINE SHIMMER
   ============================================ */
.hero-headline .word.accent > span {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--accent1) 0%,
    var(--accent1) 38%,
    rgba(180,120,255,0.95) 50%,
    var(--accent1) 62%,
    var(--accent1) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-headline .word:nth-child(4) > span {
  animation: wordReveal 0.9s var(--ease) 2.7s forwards, shimmer 6s ease-in-out 3s infinite;
}
.hero-headline .word:nth-child(5) > span {
  animation: wordReveal 0.9s var(--ease) 2.85s forwards, shimmer 6s ease-in-out 3s infinite;
}
@keyframes shimmer {
  0%   { background-position: 250% 0; }
  45%  { background-position: -250% 0; }
  100% { background-position: -250% 0; }
}

/* ============================================
   SERVICES — DIAGONAL LINES + FLOAT SHAPES
   ============================================ */
#services { position: relative; overflow: hidden; }
#services::before {
  content: '';
  position: absolute;
  inset: -100px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(123,47,255,0.03) 0px,
    rgba(123,47,255,0.03) 1px,
    transparent 1px,
    transparent 72px
  );
  pointer-events: none;
  z-index: 0;
  animation: diagDrift 35s linear infinite;
}
@keyframes diagDrift {
  from { transform: translate(0,0); }
  to   { transform: translate(102px,102px); }
}
.services-header, .services-grid { position: relative; z-index: 1; }
.svc-float { position: absolute; pointer-events: none; z-index: 0; }
.sf1 {
  width: 420px; height: 420px;
  border: 1px solid rgba(123,47,255,0.1);
  border-radius: 50%;
  top: -80px; right: -80px;
  animation: floatA 18s ease-in-out infinite 1s;
}
.sf2 {
  width: 220px; height: 220px;
  border: 1px solid rgba(0,255,148,0.08);
  bottom: 60px; left: 3%;
  transform: rotate(30deg);
  animation: floatB 12s ease-in-out infinite 4s;
}

/* ============================================
   CTA — EXTRA FLOAT SHAPES
   ============================================ */
.cta-float { position: absolute; pointer-events: none; z-index: 0; }
.cf1 {
  width: 360px; height: 360px;
  border: 1px solid rgba(123,47,255,0.12);
  border-radius: 50%;
  top: -60px; left: -60px;
  animation: floatA 15s ease-in-out infinite;
}
.cf2 {
  width: 200px; height: 200px;
  border: 1px solid rgba(0,255,148,0.1);
  bottom: 40px; right: 8%;
  transform: rotate(20deg);
  animation: floatB 11s ease-in-out infinite 3s;
}

/* ============================================
   ABOUT — MORPHING BLOB
   ============================================ */
.about-morph-bg {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, rgba(123,47,255,0.1) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: blobMorph 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes blobMorph {
  0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(-50%,-50%) scale(1); }
  25%  { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; transform: translate(-50%,-50%) scale(1.05); }
  50%  { border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%; transform: translate(-50%,-50%) scale(0.95); }
  75%  { border-radius: 40% 60% 70% 30% / 50% 50% 30% 70%; transform: translate(-50%,-50%) scale(1.08); }
  100% { border-radius: 60% 40% 30% 70% / 70% 30% 50% 50%; transform: translate(-50%,-50%) scale(1); }
}

/* ============================================
   SERVICE CARDS — GLOW BORDER ON HOVER
   ============================================ */
.service-card {
  transition: background 0.4s, box-shadow 0.4s;
}
.service-card:hover {
  box-shadow:
    0 0 0 1px rgba(123,47,255,0.5),
    0 0 32px rgba(123,47,255,0.1),
    inset 0 0 24px rgba(123,47,255,0.04);
}

/* ============================================
   PROCESS — CIRCLE HOVER / NO CARD HOVER
   ============================================ */
.tl-step { cursor: default; }
.tl-step:hover { transform: none !important; }

.tl-circle {
  cursor: default;
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease),
              box-shadow 0.5s var(--ease), transform 0.5s var(--ease),
              background 0.5s var(--ease) !important;
}

.tl-step:hover .tl-circle {
  border-color: var(--accent1) !important;
  color: #fff !important;
  background: #111111 !important;
  transform: scale(1.12) translateY(-6px) !important;
  box-shadow: 0 0 28px rgba(123,47,255,0.55), 0 12px 32px rgba(123,47,255,0.25) !important;
}

/* ============================================
   PROCESO (refactor: sin inline, responsive OK)
   ============================================ */
#process { background: var(--bg2); padding: 120px 60px; position: relative; }
.proc-wrap { max-width: 1200px; margin: 0 auto; }
.proc-head { margin-bottom: 80px; }
.proc-timeline { position: relative; }
.proc-line {
  position: absolute; top: 36px; left: 12.5%; right: 12.5%;
  height: 2px; background: var(--border); z-index: 0;
}
.tl-fill {
  position: absolute; top: 36px; left: 12.5%; height: 2px; width: 0%;
  background: linear-gradient(to right, var(--brand-blue), var(--accent2));
  z-index: 1; transition: width 1.8s var(--ease);
  box-shadow: 0 0 12px rgba(1,93,244,0.45);
}
.proc-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative; z-index: 2;
}
.tl-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px;
}
.tl-circle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid #333; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text2); margin-bottom: 32px; transition: all 0.5s;
  flex-shrink: 0; box-sizing: border-box; position: relative; z-index: 3;
}
.tl-step h3 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 0 12px; letter-spacing: -0.2px;
}
.tl-step p {
  font-size: 14px; color: #a3a3a3; line-height: 1.7;
  font-weight: 400; max-width: 220px; margin: 0;
}
@media (max-width: 1199px) {
  #process { padding: 80px 40px; }
  .proc-head { margin-bottom: 56px; }
  .proc-line, .tl-fill { display: none; }
  .proc-steps { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}
@media (max-width: 767px) {
  #process { padding: 72px 24px; }
  .proc-steps { grid-template-columns: 1fr; gap: 44px; }
  .tl-circle { margin-bottom: 20px; }
}

/* ============================================
   BENTO — Qué incluye (celdas de distinto tamaño)
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.bento-card {
  grid-column: span 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.bento-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(1,93,244,0.12), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1,93,244,0.42);
  background: var(--bg3);
}
.bento-card:hover::after { opacity: 1; }
.bento-card > * { position: relative; z-index: 1; }
.bento-lg { grid-column: span 2; }
.bento-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(1,93,244,0.10);
  border: 1px solid rgba(1,93,244,0.22);
  color: var(--brand-blue-2);
  margin-bottom: 24px;
}
.bento-icon svg { width: 26px; height: 26px; }
.bento-lg .bento-icon { width: 60px; height: 60px; }
.bento-lg .bento-icon svg { width: 30px; height: 30px; }
.bento-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--text); margin-bottom: 12px;
}
.bento-lg .bento-title { font-size: 25px; }
.bento-desc {
  font-size: 14.5px; line-height: 1.7; color: #a3a3a3;
  font-weight: 400; max-width: 48ch;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento-lg { grid-column: span 1; }
  .bento-card { padding: 28px 24px; }
}
