
/* ========== RESET & VARIABLES ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0066FF;
  --blue-light: #3388FF;
  --blue-glow: #0055DD;
  --cyan: #00D4FF;
  --dark: #07080A;
  --dark-card: #0D0F13;
  --dark-lighter: #12151A;
  --gray-800: #1A1D24;
  --gray-600: #2A2E38;
  --gray-400: #6B7280;
  --gray-200: #D1D5DB;
  --white: #F8FAFC;
  --text-secondary: var(--gray-400);
  --accent: var(--cyan);
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ========== CURSOR GLOW ========== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease, top 0.3s ease;
}

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

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(7,8,10,0.7);
  border-bottom: 1px solid rgba(0,102,255,0.08);
  transition: all 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  position: relative;
  overflow: hidden;
}

.nav-logo .logo-icon::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
  0%, 100% { transform: translateX(-100%) rotate(45deg); }
  50% { transform: translateX(100%) rotate(45deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--blue);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,102,255,0.3);
}

.nav-cta svg { transition: transform 0.3s; }
.nav-cta:hover svg { transform: translateX(3px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 50%;
  background: var(--gray-800);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(0,102,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--blue);
  top: -100px; right: -100px;
  opacity: 0.15;
}

.hero-orb-2 {
  width: 300px; height: 300px;
  background: var(--cyan);
  bottom: -50px; left: 20%;
  opacity: 0.08;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(0,102,255,0.3);
  background: rgba(0,102,255,0.08);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,102,255,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--gray-600);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(0,102,255,0.05);
}

/* Hero visual */
.hero-visual {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  animation: fadeUp 1s ease 0.6s both;
}

.hero-code-window {
  width: 100%;
  background: var(--dark-card);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,102,255,0.08);
}

.code-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gray-800);
}

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

.code-dot:nth-child(1) { background: #FF5F57; }
.code-dot:nth-child(2) { background: #FEBC2E; }
.code-dot:nth-child(3) { background: #28C840; }

.code-header span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
}

.code-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--gray-400);
}

.code-body .keyword { color: var(--blue-light); }
.code-body .string { color: var(--cyan); }
.code-body .func { color: #FFD700; }
.code-body .comment { color: #4A5568; font-style: italic; }
.code-body .bracket { color: var(--gray-200); }

.code-line {
  opacity: 0;
  animation: typeLine 0.4s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 1s; }
.code-line:nth-child(2) { animation-delay: 1.2s; }
.code-line:nth-child(3) { animation-delay: 1.4s; }
.code-line:nth-child(4) { animation-delay: 1.6s; }
.code-line:nth-child(5) { animation-delay: 1.8s; }
.code-line:nth-child(6) { animation-delay: 2s; }
.code-line:nth-child(7) { animation-delay: 2.2s; }
.code-line:nth-child(8) { animation-delay: 2.4s; }

@keyframes typeLine {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== CLIENTS BAR ========== */
.clients-bar {
  padding: 40px 48px;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  overflow: hidden;
  position: relative;
}

.clients-bar::before, .clients-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
}

.clients-bar::before { left: 0; background: linear-gradient(90deg, var(--dark), transparent); }
.clients-bar::after { right: 0; background: linear-gradient(-90deg, var(--dark), transparent); }

.clients-track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: scrollLogos 25s linear infinite;
  width: max-content;
}

.clients-track span {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-600);
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.clients-track span:hover { color: var(--gray-400); }

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

/* ========== SECTIONS COMMON ========== */
section { padding: 120px 48px; position: relative; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 560px;
  line-height: 1.7;
}

/* ========== SERVICES ========== */
#servicios { background: var(--dark); }

/* Service Category Block */
.service-category {
  margin-top: 72px;
}

.service-category + .service-category {
  margin-top: 80px;
}

/* Category Header */
.category-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-800);
  position: relative;
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.category-number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.35;
  flex-shrink: 0;
}

.category-header-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.category-header-text p {
  color: var(--gray-400);
  font-size: 0.95rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--gray-800);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: default;
  display: flex;
  gap: 24px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s;
}

.service-card:hover::before { transform: scaleY(1); }

.service-card:hover {
  border-color: rgba(0,102,255,0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(0,102,255,0.06);
}

.service-icon {
  width: 56px; height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: rgba(0,102,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
}

.service-card:hover .service-icon {
  background: var(--blue);
  transform: scale(1.05);
}

.service-icon svg {
  width: 26px; height: 26px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.3s;
}

.service-card:hover .service-icon svg { stroke: white; }

.service-info { flex: 1; }

.service-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.service-info p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0,102,255,0.08);
  color: var(--blue-light);
  border: 1px solid rgba(0,102,255,0.15);
  margin-right: 6px;
}

/* Feature highlight card (for SEO) */
.service-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0,102,255,0.06), rgba(0,212,255,0.03));
  border-color: rgba(0,102,255,0.15);
}

.service-card.featured .service-icon {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.service-card.featured .service-icon svg {
  width: 30px; height: 30px;
  stroke: white;
}

.service-card.featured:hover .service-icon {
  box-shadow: 0 8px 30px rgba(0,102,255,0.4);
}

/* Breadcrumb SEO */
.breadcrumb-seo {
  padding: 12px 0;
  font-size: 13px;
}
.breadcrumb-seo ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumb-seo li { display: flex; align-items: center; }
.breadcrumb-seo li + li::before {
  content: '/';
  margin: 0 10px;
  color: var(--gray-600);
}
.breadcrumb-seo a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-seo a:hover { color: var(--cyan); }
.breadcrumb-seo .current { color: var(--gray-400); }

/* Services counter */
.services-counter {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--gray-800);
}

.counter-item {
  text-align: center;
}

.counter-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ========== PORTFOLIO ========== */
#portfolio {
  background: var(--dark-lighter);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.portfolio-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--dark-card);
  border: 1px solid var(--gray-800);
  transition: all 0.4s;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  border-color: rgba(0,102,255,0.15);
}

.portfolio-thumb {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.portfolio-thumb-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-thumb-inner { transform: scale(1.05); }

.portfolio-thumb-inner.p1 { background: linear-gradient(135deg, #0066FF, #00D4FF); }
.portfolio-thumb-inner.p2 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.portfolio-thumb-inner.p3 { background: linear-gradient(135deg, #0f3460, #533483); }
.portfolio-thumb-inner.p4 { background: linear-gradient(135deg, #00b4d8, #0077b6); }

.portfolio-info {
  padding: 28px 28px 24px;
}

.portfolio-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-tags span {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--gray-800);
  color: var(--gray-200);
}

/* ========== PROCESS ========== */
#proceso {
  background: var(--dark);
}

.process-timeline {
  margin-top: 64px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 80px;
}

.process-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: var(--dark-card);
  border: 1px solid var(--gray-800);
  transition: all 0.3s;
}

.process-step:hover {
  border-color: rgba(0,102,255,0.2);
  background: rgba(0,102,255,0.03);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0,102,255,0.15);
  line-height: 1;
  flex-shrink: 0;
  min-width: 50px;
}

.step-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  background: var(--dark);
}

.process-step:hover .step-icon {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
}

.step-icon svg {
  width: 20px; height: 20px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 2;
}

.process-step:hover .step-icon svg { stroke: var(--blue-light); }

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== INDUSTRIES / CLIENTS ========== */
#industrias {
  background: var(--dark-lighter);
}

.industries-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.industries-text .section-label,
.industries-text .section-title,
.industries-text .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.industry-chip {
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-200);
  transition: all 0.3s;
  cursor: default;
}

.industry-chip:hover {
  border-color: var(--blue);
  background: rgba(0,102,255,0.06);
  color: white;
}

.industry-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.client-logo-item {
  background: var(--dark-card);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.client-logo-item:hover {
  border-color: rgba(0,102,255,0.2);
  transform: translateY(-4px);
}

.client-logo-item span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-600);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.client-logo-item:hover span { color: var(--gray-400); }

/* ========== CONTACT ========== */
#contacto {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.contact-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(150px);
  opacity: 0.06;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-800);
}

.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,102,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px; height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
}

.contact-detail span {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.contact-detail strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--gray-800);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--gray-800);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

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

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

.btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--blue);
  color: white;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--blue-light);
  box-shadow: 0 10px 30px rgba(0,102,255,0.3);
  transform: translateY(-2px);
}

/* ========== FOOTER ========== */
footer {
  padding: 60px 48px 32px;
  background: var(--dark-card);
  border-top: 1px solid var(--gray-800);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-200);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--blue-light); }

.footer-col span {
  display: block;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
}

.footer-bottom span {
  color: var(--gray-400);
  font-size: 0.82rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-socials a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.footer-socials a svg {
  width: 18px; height: 18px;
  fill: var(--gray-400);
}

.footer-socials a:hover svg { fill: white; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  /* Disable noise overlay and cursor glow on mobile */
  body::before { display: none !important; }
  .cursor-glow { display: none !important; }

  body { padding-bottom: 88px; }
  nav { padding: 16px 24px; }
  .nav-cta {
    display: flex !important;
    position: fixed;
    left: 20px;
    right: 20px;
    top: calc(100dvh - 64px);
    bottom: auto;
    justify-content: center;
    z-index: 99998;
    box-shadow: 0 14px 36px rgba(0,102,255,0.34);
  }
  .nav-links.show + .nav-cta {
    display: none !important;
  }
  .menu-toggle { display: block !important; }

  /* Mobile menu - fullscreen overlay */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #07080A;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 99999;
    padding: 0 40px;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    padding: 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-400);
    text-align: center;
    transition: color 0.3s;
    border-bottom: none;
    letter-spacing: 0.5px;
  }
  .nav-links a:hover,
  .nav-links a:active {
    color: var(--white);
  }
  .nav-links a::after {
    display: none;
  }

  /* Hamburger - always on top of overlay */
  .menu-toggle {
    z-index: 999999 !important;
  }
  .menu-toggle.active span {
    background: var(--white);
  }
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 21px;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 21px;
  }

  section { padding: 80px 24px; }
  .hero { padding: 80px 24px 40px; min-height: auto !important; align-items: flex-start !important; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub { font-size: 1rem !important; }
  .hero-code-window { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; gap: 16px; }
  .service-card.featured { grid-column: auto; }
  .services-counter { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .category-header { flex-direction: column; gap: 12px; text-align: center; }
  .category-number { font-size: 2rem; }
  .category-card { padding: 28px 24px; }
  .category-card .cat-icon { width: 56px; height: 56px; }
  .service-category { margin-top: 56px; }
  .service-category + .service-category { margin-top: 64px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: auto; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { gap: 32px; }
  .process-step { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .clients-bar { padding: 30px 24px; }
  .stats-bar { flex-direction: column; gap: 24px; padding: 40px 24px; }
  .stat-item { min-width: auto; }
}

/* ========== SERVICE PAGE STYLES ========== */

/* Page Hero (subpages) */
.page-hero {
  padding: 180px 48px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,102,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.page-hero .hero-desc {
  font-size: 1.15rem;
  color: var(--gray-400);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.breadcrumb-nav {
  padding: 16px 48px;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-800);
  background: var(--dark);
  position: relative;
  z-index: 2;
}

.breadcrumb-nav ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1200px;
  flex-wrap: wrap;
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
}

.breadcrumb-nav li + li::before {
  content: '/';
  margin: 0 10px;
  color: var(--gray-600);
}

.breadcrumb-nav a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover { color: var(--cyan); }
.breadcrumb-nav .current { color: var(--gray-400); }

/* Service Detail Section */
.service-detail {
  padding: 80px 48px;
  background: var(--dark);
}

.service-detail .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Service CTA Banner */
.service-cta {
  padding: 80px 48px;
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(0,212,255,0.04));
  text-align: center;
}

.service-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-cta p {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,102,255,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-light);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(0,102,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  margin-left: 16px;
}

.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(0,102,255,0.08);
}

#btn-industrias {
  margin-left: 0;
}

/* Category Card (for homepage services overview) */
.category-card {
  background: var(--dark-card);
  border: 1px solid var(--gray-800);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.category-card:hover::before { transform: scaleX(1); }

.category-card:hover {
  border-color: rgba(0,102,255,0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(0,102,255,0.06);
}

.category-card .cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(0,102,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s;
}

.category-card:hover .cat-icon {
  background: var(--blue);
  transform: scale(1.05);
}

.category-card .cat-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.3s;
}

.category-card:hover .cat-icon svg { stroke: white; }

.category-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.category-card p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.category-card .service-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Service card link to individual page */
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}

.service-card .service-link:hover {
  background: rgba(0,212,255,0.08);
  border-color: var(--cyan);
  transform: translateX(4px);
}

.service-card .service-link svg {
  transition: transform 0.3s;
}

.service-card .service-link:hover svg {
  transform: translateX(3px);
}

/* Category card service list */
.category-service-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  text-align: left;
}

.category-service-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.category-service-list li:last-child {
  border-bottom: none;
}

.category-service-list a {
  color: var(--gray-400);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-service-list a::before {
  content: '→';
  color: var(--blue);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s;
}

.category-service-list a:hover {
  color: var(--white);
}

.category-service-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Category card CTA */
.category-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}

.category-cta:hover {
  background: rgba(0,212,255,0.08);
  border-color: var(--cyan);
}

.category-card h3 a {
  color: inherit;
  text-decoration: none;
}

.category-card h3 a:hover {
  color: var(--cyan);
}

.category-card .category-arrow {
  margin-top: 16px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

.category-card .category-arrow svg {
  stroke: var(--cyan);
}

.category-card .category-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0,102,255,0.15);
  margin-bottom: 12px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

/* FAQ / Content blocks for SEO */
.faq-section {
  padding: 80px 48px;
  background: var(--dark-lighter);
}

.faq-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-800);
  padding: 24px 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

.faq-item p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }
  *, *::before, *::after { max-width: 100%; }

  .page-hero { padding: 130px 20px 50px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); word-break: break-word; }
  .page-hero .hero-desc { font-size: 0.95rem; padding: 0 4px; }
  .breadcrumb-nav { padding: 12px 20px; font-size: 11px; }
  .service-detail { padding: 50px 20px; }
  .service-detail .services-grid { grid-template-columns: 1fr; }
  .service-detail .service-card { padding: 24px 20px; }
  .service-cta { padding: 50px 20px; }
  .service-cta h2 { font-size: 1.5rem; word-break: break-word; }
  .service-cta p { font-size: 0.95rem; padding: 0 4px; }
  .service-cta .cta-buttons { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; box-sizing: border-box; }
  .faq-section { padding: 50px 20px; }
  .faq-item { padding: 20px; }
  .categories-grid { grid-template-columns: 1fr !important; }
  .category-card { padding: 28px 20px; }
  .btn-secondary { margin-left: 0; margin-top: 12px; }
  footer { padding: 50px 20px 30px; }
  .footer-top { grid-template-columns: 1fr !important; }

  /* Force all inline grids/flex to stack on mobile */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="min-width"] { min-width: 0 !important; }
  [style*="display: flex"][style*="gap: 30px"] { flex-wrap: wrap !important; }

  /* Process steps fix */
  .process-timeline { grid-template-columns: 1fr !important; }
  .step-number { min-width: auto !important; }

  /* Service icon fix */
  .service-icon { min-width: 48px !important; width: 48px !important; height: 48px !important; }

  /* Clients track (if still exists) */
  .clients-track { gap: 40px !important; }
  .clients-bar { padding: 20px !important; }
}

@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
