/* ============================================================
   Max³ Labs — Premium Design System v2
   Colores: #2563EB · #0D1117 · #4B5563 · #E5E7EB · #FFFFFF
   Tipografía: Orbitron (display) + Space Grotesk (cuerpo)
   ============================================================ */

:root {
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-bright: #60A5FA;
  --blue-dark: #1D4ED8;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --bg: #0A0E14;
  --bg-alt: #0D1117;
  --bg-card: rgba(19, 26, 36, 0.55);
  --card-hover: rgba(24, 33, 48, 0.8);
  --gray: #4B5563;
  --gray-light: #9CA3AF;
  --light: #E5E7EB;
  --white: #FFFFFF;
  --border: rgba(229, 231, 235, 0.07);
  --border-blue: rgba(37, 99, 235, 0.35);
  --blue-soft: rgba(37, 99, 235, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --max-w: 1200px;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --shadow-blue: 0 8px 32px -8px rgba(37, 99, 235, 0.35);
  --shadow-xl: 0 24px 80px -20px rgba(37, 99, 235, 0.2);
  --header-h: 76px;
  --glass-blur: 20px;
  --gradient-blue: linear-gradient(135deg, #60A5FA, #2563EB, #1D4ED8);
  --gradient-text: linear-gradient(135deg, #93C5FD, #3B82F6, #818CF8);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Orbitron para elementos display */
h1, h2, h3, h4, h5, h6,
.logo-main, .logo-sub,
.main-nav a,
.overline,
.btn,
.stat-number, .step-num,
.faq-question,
.blog-card-date, .project-tag,
.founder-card .name, .founder-card .role,
.contact-row .value, .contact-row .label,
.footer-title,
.loader-pulse {
  font-family: var(--font-display);
}

/* Noise texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Ambient light blobs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 20% 0%, rgba(37, 99, 235, 0.12), transparent 65%),
    radial-gradient(ellipse 600px 500px at 80% 50%, rgba(59, 130, 246, 0.08), transparent 65%),
    radial-gradient(ellipse 500px 700px at 50% 100%, rgba(37, 99, 235, 0.06), transparent 65%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--blue); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 28px;
}

/* Grid background pattern */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(229, 231, 235, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- Text gradient ---------- */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.logo-main {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-main sup {
  color: var(--blue-light);
  font-size: 0.62em;
  font-weight: 800;
  margin-left: 2px;
}
.logo-sub {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  color: var(--blue-light);
  margin-top: 5px;
}

/* ---------- Header glass ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gradient-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--white); }
.main-nav a.active::after { transform: scaleX(1); }

.header-cta {
  position: relative;
  overflow: hidden;
}
.header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  opacity: 0;
  transition: opacity 0.3s;
}
.header-cta:hover::before { opacity: 1;z-index: -1; }
.header-cta span { position: relative; z-index: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 110;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; z-index: 1; position: relative; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 24px -8px rgba(37, 99, 235, 0.5);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -10px rgba(37, 99, 235, 0.6);
}
.btn-outline {
  border-color: rgba(229, 231, 235, 0.18);
  color: var(--white);
  background: transparent;
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px -6px rgba(37, 99, 235, 0.3);
}
.btn-lg { padding: 16px 36px; font-size: 1.02rem; }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--gray-light);
  padding: 6px 12px;
  font-size: 0.88rem;
}
.btn-ghost:hover { color: var(--white); transform: none; box-shadow: none; }

/* ---------- Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-pulse {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--blue-soft);
  border: 2px solid var(--border-blue);
  animation: loaderPulse 1.6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-weight: 800;
  font-size: 1.2rem;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--blue-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 40px 8px rgba(37, 99, 235, 0.2); }
}
.loader-bar {
  width: 120px; height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--gradient-blue);
  border-radius: 3px;
  animation: loaderBar 1.2s ease-in-out infinite;
}
@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* ---------- Page transition ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0E14;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: top;
}
.page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--blue) 0%, #0A0E14 100%);
  opacity: 0.3;
}
.page-transition.enter {
  animation: revealDown 0.65s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.page-transition.exit {
  animation: revealUp 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes revealDown {
  0% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}
@keyframes revealUp {
  0% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

/* ---------- Hero particles canvas ---------- */
#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Hero video background ---------- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10,14,20,0.92) 0%, rgba(10,14,20,0.65) 50%, rgba(10,14,20,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 100px) 0 120px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 4; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 20px;
}
.overline::before {
  content: "";
  width: 36px; height: 2px;
  background: var(--gradient-blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--blue-light); }
.lead {
  font-size: 1.1rem;
  color: var(--gray-light);
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.hero-visual img {
  width: 100%;
  max-width: 520px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 80px rgba(37, 99, 235, 0.3));
  transition: transform 0.1s ease-out;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}

/* ---------- Secciones ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  position: relative;
}
.section-head { max-width: 662px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .overline { justify-content: center; }
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc { color: var(--gray-light); font-weight: 300; font-size: 1.02rem; line-height: 1.6; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 100px) 0 80px;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 760px;
}
.page-hero h1 .accent { color: var(--blue-light); }
.page-hero p {
  color: var(--gray-light);
  font-weight: 300;
  max-width: 620px;
  font-size: 1.08rem;
}

/* ---------- Bento Grid (servicios home) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-grid .card { height: 100%; }

/* ---------- Cards glass ---------- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s,
              background 0.4s,
              box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-blue);
  background: rgba(24, 33, 48, 0.7);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.5);
}
.card:hover::before { opacity: 1; }

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

.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue-light);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.card:hover .icon-box {
  transform: scale(1.05);
  background: rgba(37, 99, 235, 0.18);
  box-shadow: 0 0 30px -6px rgba(37, 99, 235, 0.3);
}
.icon-box svg { width: 26px; height: 26px; transition: transform 0.3s; }
.card:hover .icon-box svg { transform: rotate(-4deg) scale(1.05); }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.card p { font-size: 0.95rem; color: var(--gray-light); font-weight: 300; line-height: 1.6; }

.section-more { text-align: center; margin-top: 52px; }

/* ---------- Stats bar ---------- */
.stats-section {
  padding: 0;
  margin-top: -1px;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  padding: 40px 28px;
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-number .plus { color: var(--blue-light); }
.stat-label {
  color: var(--gray-light);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 6px;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
  position: relative;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-blue);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.5);
}
.project-image {
  height: 200px;
  background: linear-gradient(135deg, #111C2E, #0D1524);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover .project-image::before { opacity: 1; }
.project-image .project-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  position: relative;
  z-index: 1;
}
.project-image .project-icon svg { width: 32px; height: 32px; }
.project-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid var(--border-blue);
  color: var(--blue-bright);
  z-index: 2;
}
.project-body { padding: 28px; }
.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.project-body p {
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
}
.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-tech span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--blue-bright);
}

/* ---------- Project Detail Page ---------- */
.project-detail-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.project-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.project-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0.2) 0%, rgba(10,14,20,0.92) 100%);
  z-index: 1;
}
.project-detail-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}
.project-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-bright);
  margin-bottom: 20px;
  transition: color 0.3s;
}
.project-detail-back svg { width: 18px; height: 18px; }
.project-detail-back:hover { color: var(--white); }
.project-detail-category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37,99,235,0.2);
  border: 1px solid var(--border-blue);
  color: var(--blue-bright);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-detail-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  max-width: 800px;
}
.project-detail-year {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gray-light);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
}
.project-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}
.project-detail-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-light);
  margin-bottom: 24px;
}
.project-detail-description p:first-of-type {
  font-size: 1.15rem;
  color: var(--light);
}
.project-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project-detail-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.project-detail-card h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.project-detail-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-detail-tech-list span {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--blue-soft);
  border: 1px solid rgba(37,99,235,0.12);
  color: var(--blue-bright);
}
.project-detail-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-bright);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(37,99,235,0.08);
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.project-detail-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.project-detail-link:hover {
  background: rgba(37,99,235,0.18);
  border-color: var(--border-blue);
}
.project-detail-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.project-detail-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--light);
  transition: border-color 0.3s, transform 0.3s;
}
.project-detail-feature-item:hover {
  border-color: var(--border-blue);
  transform: translateX(6px);
}
.project-detail-feature-item .feature-check {
  width: 22px;
  height: 22px;
  color: var(--blue-light);
  flex-shrink: 0;
}
.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}
.project-detail-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.project-detail-gallery-item:hover {
  border-color: var(--border-blue);
}
.project-detail-gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ---------- Testimonials ---------- */
.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.4s;
}
.testimonial-card:hover { border-color: var(--border-blue); }
.testimonial-card blockquote {
  font-size: 0.98rem;
  color: var(--light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-card blockquote::before {
  content: "\201C";
  font-size: 3rem;
  line-height: 1;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-info .name { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.testimonial-info .company { font-size: 0.82rem; color: var(--gray-light); }

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item:hover { border-color: rgba(229, 231, 235, 0.12); }
.faq-item.open { border-color: var(--border-blue); background: rgba(24, 33, 48, 0.6); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  transition: color 0.3s;
}
.faq-item.open .faq-question { color: var(--blue-light); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(37, 99, 235, 0.2);
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 28px 22px;
  color: var(--gray-light);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ---------- Blog preview ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-blue);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.5);
}
.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, #0D1524, #111C2E);
  position: relative;
  overflow: hidden;
}
.blog-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15), transparent 60%);
}
.blog-card-body { padding: 24px; }
.blog-card-date {
  font-size: 0.78rem;
  color: var(--blue-bright);
  font-weight: 500;
  margin-bottom: 8px;
}
.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.blog-card-link:hover { gap: 12px; }
.blog-card-link svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0E1727, #0B1321);
  border: 1px solid var(--border-blue);
  padding: 72px 48px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.25), transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-band p { color: var(--gray-light); font-weight: 300; max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ---------- Productos ---------- */
.products-grid {
  display: grid;
  gap: 24px;
}
.product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px;
}
.product-card .icon-box { margin-bottom: 0; width: 60px; height: 60px; border-radius: 16px; }
.product-card .icon-box svg { width: 28px; height: 28px; }
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--gray-light);
  font-size: 0.93rem;
  font-weight: 300;
  margin-bottom: 12px;
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--blue-light); margin-top: 3px; }

/* ---------- Proceso / Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--border-blue);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--blue-light);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step:hover .step-num {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.step h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--gray-light); font-weight: 300; line-height: 1.6; }

/* ---------- Sobre nosotros ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.founder-card {
  background: linear-gradient(135deg, #FFFFFF, #F0F4FF);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(37, 99, 235, 0.3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.founder-card:hover { transform: translateY(-6px); }
.founder-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  background: var(--gradient-blue);
}
.founder-card .name { font-size: 1.4rem; font-weight: 800; color: var(--bg); }
.founder-card .role {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 28px;
}
.founder-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.founder-card .row svg { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; }

/* ---------- Historia 2-columnas ---------- */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.history-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(37, 99, 235, 0.2);
  border: 1px solid var(--border);
}
.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.history-image:hover img { transform: scale(1.05); }

/* ---------- Pillars row ---------- */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.pillar-item {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.pillar-item:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -10px rgba(37, 99, 235, 0.2);
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--blue-light);
}
.pillar-item:hover .pillar-icon {
  background: rgba(37, 99, 235, 0.2);
  box-shadow: 0 0 20px -4px rgba(37, 99, 235, 0.3);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.pillar-item p {
  font-size: 0.82rem;
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .history-grid { grid-template-columns: 1fr; gap: 40px; }
  .history-image { order: -1; max-height: 240px; }
  .pillars-row { grid-template-columns: 1fr; }
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-card { display: flex; flex-direction: column; justify-content: center; }
.contact-rows { display: grid; gap: 6px; margin-top: 8px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .icon-box { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.contact-row .icon-box svg { width: 21px; height: 21px; }
.contact-row .label { font-size: 0.76rem; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.contact-row .value { font-size: 1rem; color: var(--white); font-weight: 600; }
.contact-row a.value:hover { color: var(--blue-light); }

/* Formulario de contacto */
.contact-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}
.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.contact-form-card > p {
  color: var(--gray-light);
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-light);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(19, 26, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: rgba(24, 33, 48, 0.6);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form-group select option { background: #0D1117; color: var(--white); }
.form-submit { margin-top: 8px; }
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ADE80;
}
.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--gray-light);
  font-size: 0.92rem;
  font-weight: 300;
  max-width: 300px;
  margin-top: 20px;
  line-height: 1.6;
}
.footer-title { color: var(--white); font-weight: 700; font-size: 0.95rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a, .footer-col span {
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--blue-light); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.social-links a:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.25);
}
.social-links svg { width: 18px; height: 18px; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--gray-light);
  font-size: 0.85rem;
  font-weight: 300;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 99;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s,
              visibility 0.3s,
              background 0.3s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations (GSAP handles these, CSS as fallback) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}
.reveal.visible { opacity: 1; transform: none; }

/* Parallax items */
[data-parallax] { will-change: transform; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gradient-blue);
  z-index: 101;
  width: 0%;
  transform-origin: left;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  transition: width 0.05s linear;
}

/* ---------- Hero text reveal ---------- */
.hero-text-reveal {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  animation: textReveal 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.hero-text-reveal-delayed {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  animation: textReveal 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.25s forwards;
}
@keyframes textReveal {
  0% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- Icon pulse ---------- */
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(37, 99, 235, 0.25); }
}
.card:hover .icon-box { animation: iconPulse 1.8s ease-in-out infinite; }

/* ---------- Image zoom on hover ---------- */
.project-image img,
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-image img,
.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

/* ---------- Blog card animated gradient ---------- */
.blog-card-image {
  background: linear-gradient(135deg, #0D1524, #111C2E, #0E1828, #0D1524);
  background-size: 300% 300%;
  animation: gradientShift 8s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Stagger fade sequence ---------- */
.stagger-list > * {
  opacity: 0;
  transform: translateY(24px);
  animation: staggerFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.stagger-list > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-list > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-list > *:nth-child(3) { animation-delay: 0.25s; }
.stagger-list > *:nth-child(4) { animation-delay: 0.35s; }
.stagger-list > *:nth-child(5) { animation-delay: 0.45s; }
.stagger-list > *:nth-child(6) { animation-delay: 0.55s; }
.stagger-list > *:nth-child(7) { animation-delay: 0.65s; }
.stagger-list > *:nth-child(8) { animation-delay: 0.75s; }
.stagger-list > *:nth-child(9) { animation-delay: 0.85s; }
@keyframes staggerFade {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Section divider wave ---------- */
.section-alt::after {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
  animation: dividerGlow 3s ease-in-out infinite;
}
@keyframes dividerGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---------- Timeline scroll highlight ---------- */
.step { transition: border-color 0.5s, box-shadow 0.5s, transform 0.4s; }
.step.active-step {
  border-color: var(--border-blue);
  box-shadow: 0 0 30px -6px rgba(37, 99, 235, 0.25);
}
.step.active-step .step-num {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ---------- Floating orbs in hero ---------- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.15;
  z-index: 2;
  animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb:nth-child(2) { animation-delay: -7s; animation-duration: 18s; }
.hero-orb:nth-child(3) { animation-delay: -14s; animation-duration: 22s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, -20px) scale(0.9); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .project-detail-layout { grid-template-columns: 1fr; gap: 32px; margin-top: -20px; }
  .project-detail-hero { height: 50vh; min-height: 320px; }
  .project-detail-gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: 24px 28px 32px; gap: 2px; }
  .main-nav a { display: block; padding: 14px 8px; font-size: 1.08rem; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--blue-light); }

  .hero { padding-top: calc(var(--header-h) + 60px); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { order: -1; display: none; }
  .hero-visual img { max-width: 235px; height: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .section { padding: 72px 0; }
  .cta-band { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions .btn { width: 100%; }
  .bento-grid,
  .cards-grid,
  .portfolio-grid,
  .blog-grid,
  .steps,
  .mv-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 16px; }
  .testimonial-card { flex: 0 0 300px; }
  .product-card { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .product-card .icon-box { margin-bottom: 0; }
  .contact-form-card { padding: 28px; }
  .founder-card { max-width: 100%; padding: 32px; }
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
  .project-detail-hero { height: 40vh; min-height: 280px; }
  .project-detail-hero-content { padding-bottom: 32px; }
  .project-detail-title { font-size: 1.6rem; }
  .project-detail-layout { margin-top: -12px; }
  .project-detail-description p { font-size: 0.95rem; }
  .project-detail-features-grid { grid-template-columns: 1fr; }
  .project-detail-gallery { grid-template-columns: 1fr; }
  .project-detail-gallery-item img { height: 200px; }
}

/* ---------- Motion reduction ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Utility ---------- */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}
