:root {
  --bg: #05080d;
  --bg-mid: #172231;
  --accent: #00b4d8;
  --accent-soft: #8df1ff;
  --ink: #edf7fb;
  --muted: #8fa8b8;
  --card-bg: rgba(23, 34, 49, 0.45);
  --line: rgba(141, 241, 255, 0.1);
}

* { box-sizing: border-box; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(900px 600px at 20% 8%, rgba(0, 180, 216, 0.15), transparent 60%), var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Animación de aparición suave en la intro con aceleración de GPU */
.word-animate {
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes word-appear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos y capas fijas de fondo */
#tsparticles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

#icon-stage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(40px, -50%);
  width: clamp(300px, 35vw, 450px);
  height: 70vh;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.icon-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s ease;
  transform: scale(0.85) translateY(20px);
}

.icon-canvas.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.shell { position: relative; z-index: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
h1, h2, h3 { font-family: "DM Sans", sans-serif; letter-spacing: -0.05em; }

.top-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(to bottom, var(--bg) 20%, transparent); }
.logo { width: 124px; height: auto; }

.nav-cta { 
  color: var(--ink); 
  border: 1px solid var(--line); 
  border-radius: 999px; 
  padding: 8px 14px; 
  text-decoration: none; 
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.nav-cta:hover {
  background: rgba(0, 180, 216, 0.08);
  border-color: var(--accent);
  color: var(--accent-soft);
}

.hero { 
  padding: 136px 0 15vh; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 { 
  margin: 0; 
  max-width: 22ch;
  font-size: clamp(34px, 5vw, 68px); 
  font-weight: 800; 
  line-height: 1.1;
}
.hero-kicker, .section-kicker { 
  margin: 0 0 10px; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  color: var(--accent-soft); 
  font-size: 12px; 
}
.hero-sub { 
  max-width: 50ch; 
  color: var(--muted); 
  margin: 15px 0 25px; 
  line-height: 1.5;
}
.hero-actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  justify-content: center;
}

.btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: 10px 16px; font-weight: 600; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, filter 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.btn-primary { color: #03131a; background: linear-gradient(130deg, var(--accent-soft), var(--accent)); }
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 24px rgba(0, 180, 216, 0.35);
}
.btn-secondary { color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink);
}

.proceso-section { position: relative; z-index: 1; margin: 4vh auto; }

#process-track {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 35vh; 
  padding: 10vh 40px 40vh 0;
}

.step {
  width: clamp(280px, 100%, 420px);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(12px);
  opacity: 0.25;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.6s, box-shadow 0.6s;
  text-align: left;
}

.step.is-active {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(0, 180, 216, 0.6);
  box-shadow: 0 0 40px rgba(0, 180, 216, 0.15);
  background: rgba(23, 34, 49, 0.85);
}

.step:hover, .team-card:hover {
  transition: opacity 0.6s ease, border-color 0.6s, box-shadow 0.6s !important;
}

.step-number { margin: 0; color: var(--accent); font-size: 11px; letter-spacing: 0.16em; font-weight: 700; }
.step h2 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 42px); }
.step h3 { margin: 6px 0 0; color: var(--accent-soft); font-size: 18px; font-weight: 500; }
.step p { color: var(--muted); line-height: 1.6; }

.section { margin: 10vh auto; }
.section h2 { margin: 0 0 24px; font-size: clamp(30px, 3.5vw, 52px); font-weight: 800; }

.services-grid, .demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-card, .demo-card { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(10, 18, 27, 0.7); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease; text-decoration: none; color: var(--ink); }
.service-card:hover, .demo-card:hover { transform: translateY(-4px); box-shadow: 0 0 24px rgba(0, 180, 216, 0.15); border-color: rgba(0, 180, 216, 0.4); }

.trusted { margin-bottom: 60px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.logo-box { background: #ffffff; border-radius: 12px; padding: 20px; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(0,0,0,0.1); height: 100px; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; height: auto; }

/* SECCIÓN EQUIPO (Optimizado para evitar CLS) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.team-card:hover {
  border-color: rgba(0, 180, 216, 0.5);
  box-shadow: 0 0 35px rgba(0, 180, 216, 0.12);
}
.team-img-wrapper {
  position: relative;
  width: 130px; 
  height: 130px;
  border-radius: 50%; 
  overflow: hidden;
  margin: 0 auto 20px auto;
  border: 2px solid var(--line);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  background: #080d14;
}
.team-card:hover .team-img-wrapper {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 180, 216, 0.3);
}
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(105%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.team-card:hover .team-img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(100%);
}
.team-card h3 {
  margin: 0 0 6px 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}
.team-role {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.team-card:hover .team-role {
  color: var(--accent-soft);
}

.final-cta { padding: 40px; border-radius: 18px; background: rgba(23, 34, 49, 0.5); border: 1px solid var(--line); margin-bottom: 50px; text-align: center; }

/* FOOTER RESPONSIVO */
.footer { 
  padding: 32px 0; 
  border-top: 1px solid var(--line);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { color: var(--muted); font-size: 14px; }
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.footer-socials a svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.footer-socials a:hover {
  color: var(--accent-soft);
  border-color: var(--accent);
  background-color: rgba(0, 180, 216, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.25);
}
.footer-socials a:hover svg {
  transform: scale(1.05);
}

@media (max-width: 980px) {
  #icon-stage { 
    position: fixed; 
    top: 18vh; 
    left: 0; 
    width: 100vw; 
    height: 32vh; 
    transform: none; 
    z-index: 0;
  }
  #process-track { 
    width: 100%; 
    align-items: center; 
    padding: 0 0 15vh 0; 
    gap: 45vh; 
  }
  .step { 
    width: 92%; 
    transform: none !important; 
    margin: 0 auto; 
    background: rgba(23, 34, 49, 0.9); 
    position: relative;
    z-index: 2;
  }
  .services-grid, .demo-grid, .logo-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 32px; }
  .footer-container { flex-direction: column; text-align: center; }
}