/* Zr0-i Styles - CyanGreen Theme */
:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --bg-card: #131316;
  --border: #27272a;
  --border-accent: #164e4a;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  /* Main gradient colors */
  --cyan: #06b6d4;
  --green: #10b981;
  --cyan-light: #22d3ee;
  --green-light: #34d399;
  /* Primary Accent (Cyan) */
  --accent: #06b6d4;
  --accent-secondary: #10b981;
  --accent-hover: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --accent-glow-green: rgba(16, 185, 129, 0.25);
  --accent-glow-mixed: rgba(11, 178, 171, 0.3);
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
  /* Responsive spacing */
  --spacing-sm: clamp(16px, 4vw, 24px);
  --spacing-md: clamp(24px, 5vw, 40px);
  --spacing-lg: clamp(40px, 8vw, 80px);
  --spacing-xl: clamp(60px, 10vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 30% 0%, rgba(6, 182, 212, 0.03) 0%, transparent 35%),
    radial-gradient(circle at 70% 0%, rgba(16, 185, 129, 0.03) 0%, transparent 35%);
  background-size: 30px 30px, 100% 100%, 100% 100%;
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

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

/* Animation Utility */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Main Gradient Text */
.gradient {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient accent */
.accent {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--spacing-sm);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(12px);
  z-index: 100;
}
@media (min-width: 960px) {
  .nav { padding: 20px 40px; }
  /* Hide redundant Contact link in desktop since Hablemos CTA is present */
  .nav-links a[href="#contacto"] { display: none; }
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-text { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.zero-slash { position: relative; }
.zero-slash::after { content: ''; position: absolute; top: 50%; left: 50%; width: 110%; height: 2px; background: currentColor; transform: translate(-50%,-50%) rotate(-45deg); }
.nav-links { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 14px; }
.nav-links a { color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.active-section { /* Active style for desktop as well */
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.nav-actions { display: none; gap: 20px; align-items: center; }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.lang-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: all 0.3s;
  padding: 4px;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.lang-divider {
  color: var(--border);
  font-size: 12px;
  user-select: none;
}
@media (min-width: 960px) { .nav-actions { display: flex; } .nav-actions .btn { display: inline-flex; } }
.nav-actions > .btn-primary {
  min-width: 135px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links:first-child {
  min-width: 76px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 9999; /* Super high priority */
  position: relative;
  -webkit-tap-highlight-color: transparent; /* Removes gray tap overlay on mobile */
  transform: translateZ(0); /* Force GPU layer to sit above backdrop filters */
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  transform-origin: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for definition */
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line {
  background: #ffffff !important; /* Force pure white */
  box-shadow: 0 0 4px rgba(0,0,0,0.5); /* Stronger shadow when open to pop against background */
  opacity: 1; /* Reset base opacity, but let specific children override if needed */
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0 !important; /* Force hide the middle line */
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 960px) {
  .mobile-menu-toggle { display: none; }
}

  /* Mobile Nav Links */
.mobile-menu-logo, .mobile-menu-cta { display: none; }

@media (max-width: 959px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vh, 20px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
    z-index: 999;
    overflow-y: hidden; /* Prevent scrolling, force fit */
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a:not(.mobile-menu-cta) {
    font-size: clamp(16px, 3.5vh, 22px); /* Allow smaller text */
    padding: clamp(4px, 1vh, 10px) 0;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease;
  }
  
  /* SELECTION EFFECT (Touch/Click) */
  .nav-links a:not(.mobile-menu-cta) {
    -webkit-tap-highlight-color: transparent; /* Removes native gray highlight */
    outline: none;
  }

  .nav-links a:not(.mobile-menu-cta):active,
  .nav-links a:not(.mobile-menu-cta):focus,
  .nav-links a:not(.mobile-menu-cta).active-tap,
  .nav-links a:not(.mobile-menu-cta).active-section { /* Class for active section */
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    transform: scale(1.05);
    transition: none; /* Instant response, no delay */
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }
  
  /* Specific adjustment for active-section on mobile (no scale or harsh transitions) */
  .nav-links a:not(.mobile-menu-cta).active-section {
      transform: none;
      filter: none;
      font-weight: 700; /* Slightly heavier to stand out */
  }
  
  /* Mobile Specific Elements */
  .mobile-menu-logo {
    display: block;
    height: clamp(40px, 10vh, 60px); /* Responsive height */
    width: auto;
    margin-bottom: clamp(10px, 4vh, 30px);
    flex-shrink: 1; /* Allow shrinking */
  }
  
  /* Hover for desktop resize */
  .nav-links a:not(.mobile-menu-cta):hover {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
  }

  .mobile-menu-cta {
    display: inline-flex;
    margin-top: clamp(10px, 3vh, 30px);
    width: auto;
    min-width: 180px;
    justify-content: center;
    font-size: 15px;
    /* Ensure button text remains visible */
    -webkit-text-fill-color: var(--bg) !important;
    color: var(--bg) !important;
  }  .mobile-menu-cta:active,
  .mobile-menu-cta.active-tap {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 0 40px var(--accent-glow-mixed);
    filter: brightness(1.3); /* Flash effect */
    transition: none;
  }
  
  .mobile-menu-cta.active-tap::before {
      opacity: 1; /* Show internal light gradient */
  }
}

/* Mobile language switcher in menu */
.mobile-lang-switcher {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: clamp(10px, 3vh, 24px);
}
@media (min-width: 960px) {
  .mobile-lang-switcher { display: none; }
}

/* Buttons - with gradient */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--bg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cyan-light), var(--green-light));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow-mixed);
}
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-secondary:hover::before {
  opacity: 1;
}
.btn-secondary:hover {
  border-color: transparent;
  color: var(--text);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 15px; border-radius: 12px; }

/* Hero */
.hero { padding: var(--spacing-lg) var(--spacing-sm); max-width: 1200px; margin: 0 auto; }
@media (min-width: 768px) {
  .hero { padding: 80px 40px 100px; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-image: linear-gradient(var(--bg-elevated), var(--bg-elevated)), 
                    linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}
@keyframes pulse {
  0% { opacity: 1; box-shadow: 0 0 10px var(--accent-glow); }
  50% { opacity: 0.5; box-shadow: 0 0 0 transparent; }
  100% { opacity: 1; box-shadow: 0 0 10px var(--accent-glow); }
}
.hero-title { font-size: clamp(36px, 9vw, 80px); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.cursor {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-subtitle { font-size: clamp(16px, 4vw, 20px); color: var(--text-secondary); max-width: 600px; line-height: 1.7; margin-bottom: 40px; }
.hero-subtitle strong { color: var(--text); }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(32px, 8vw, 60px); }
.hero-cta .btn { width: 100%; justify-content: center; }
@media (min-width: 480px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .hero-cta .btn { width: auto; }
}

/* Stats - alternating colors */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 4vw, 32px); padding-top: clamp(24px, 5vw, 40px); border-top: 1px solid var(--border); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { font-size: clamp(14px, 3vw, 18px); color: var(--text-muted); display: block; margin-top: 4px; }

/* Tech Stack Strip */
.tech-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg-card);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.tech-track { display: inline-flex; gap: 60px; animation: slide 20s linear infinite; }
.tech-item {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Alternating bullet colors */
.tech-item:nth-child(odd)::before {
  content: '•';
  color: var(--cyan);
}
.tech-item:nth-child(even)::before {
  content: '•';
  color: var(--green);
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* Sections */
.section { padding: var(--spacing-xl) var(--spacing-sm); }
@media (min-width: 768px) {
  .section { padding: 120px 40px; }
}
.section-alt {
  background: rgba(15,15,18,0.3);
  border-top: 1px solid var(--border);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.section-title { font-size: clamp(28px, 6vw, 42px); font-weight: 700; margin-bottom: clamp(32px, 6vw, 48px); letter-spacing: -0.02em; }

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 32px);
}
@media (min-width: 640px) {
  .philosophy-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.philosophy-card {
  padding: var(--spacing-md) var(--spacing-sm);
  background: rgba(19, 19, 22, 0.95);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}
.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(6, 182, 212, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}
.philosophy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}
.philosophy-card:hover::before { opacity: 1; }
.philosophy-card:hover::after { opacity: 1; }
.philosophy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 30px rgba(6, 182, 212, 0.1);
}
.philosophy-icon {
  transition: transform 0.3s;
  position: relative;
  z-index: 10;
}
.philosophy-card:hover .philosophy-icon { transform: scale(1.1); }
.philosophy-card h3 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 5vw, 28px);
  margin: 24px 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
@media (min-width: 768px) {
  .philosophy-card { padding: 48px 40px; }
}
.philosophy-subtitle {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: block;
}
.philosophy-card p {
  color: var(--text-secondary);
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}
.philosophy-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.philosophy-bullets li {
  color: var(--text-muted);
  font-size: clamp(14px, 3.5vw, 18px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
}
.philosophy-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}
.philosophy-card:nth-child(1) .philosophy-bullets li::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* Services Carousel */
.services-carousel {
  position: relative;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}
.carousel-track-container {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}
@media (min-width: 1200px) {
  .carousel-track-container { padding: 40px 0; }
}
.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1200px) {
  .carousel-track {
    flex-direction: row;
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    gap: 32px;
  }
}
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
@media (min-width: 1200px) {
  .carousel-dots { display: flex; }
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.2);
}

.service-card {
  width: 100%;
  flex-shrink: 0;
  padding: var(--spacing-md) var(--spacing-sm);
  background: rgba(19, 19, 22, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
@media (min-width: 1200px) {
  .service-card {
    padding: 48px 40px;
    min-width: 100%;
  }
  .carousel-track > * {
    flex: 0 0 calc(50% - 10px);
    min-width: 0;
  }
  .service-card { min-width: calc(50% - 20px); max-width: 510px; }
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(6, 182, 212, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 30px rgba(6, 182, 212, 0.1);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}
.service-card:hover::after {
  opacity: 1;
}
.service-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 24px;
  transition: transform 0.3s;
  position: relative;
  z-index: 10;
}
/* Only scale icon on desktop to avoid mobile overflow issues */
@media (min-width: 960px) {
  .service-card:hover .service-icon { transform: scale(1.1); }
}
.service-card h3 { font-size: clamp(22px, 5vw, 28px); margin-bottom: 12px; font-weight: 600; text-transform: uppercase;}
.service-card p { color: var(--text-muted); font-size: clamp(16px, 4vw, 22px); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span {
  padding: 4px 10px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: clamp(12px, 3vw, 16px);
  font-family: var(--font-mono);
  border-radius: 12px;
  border: 1px solid transparent;
}
/* Color variations for tags (assigned by JS) */
.tag-cyan {
  background: rgba(6, 182, 212, 0.1) !important;
  border-color: rgba(6, 182, 212, 0.2) !important;
  color: #67e8f9 !important;
}
.tag-green {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
}
.tag-purple {
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
  color: #a78bfa !important;
}
.tag-blue {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
}
.tag-orange {
  background: rgba(249, 115, 22, 0.1) !important;
  border-color: rgba(249, 115, 22, 0.2) !important;
  color: #fdba74 !important;
}
.tag-pink {
  background: rgba(236, 72, 153, 0.1) !important;
  border-color: rgba(236, 72, 153, 0.2) !important;
  color: #f9a8d4 !important;
}

/* Process - Gradient Numbers */
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 4vw, 24px); }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { text-align: center; }
.process-num {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
  background: var(--bg-elevated);
  border: 2px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  transition: all 0.3s;
  position: relative;
}
.process-num::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.process-step:hover .process-num {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 8px 32px var(--accent-glow-mixed);
}
.process-step:hover .process-num .gradient {
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--bg);
  color: var(--bg);
}
.process-step:hover .process-num::before {
  opacity: 0;
}
.process-step h3 { font-size: clamp(18px, 4vw, 24px); margin-bottom: 8px; text-transform: uppercase;}
.process-step p { font-size: clamp(14px, 3vw, 18px); color: var(--text-muted); }

/* About Section */
.about-desc {
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: clamp(32px, 6vw, 60px);
}
.about-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  .about-badges { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .about-badges { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
.about-badge {
  padding: clamp(16px, 4vw, 24px) 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.about-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--cyan), var(--green));
  opacity: 0.5;
  transition: opacity 0.3s;
}
.about-badge:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}
.about-badge:hover::before { opacity: 1; }


/* CTA */
.cta-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-sm);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid transparent;
  position: relative;
  border-radius: 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-card { padding: 60px 40px; }
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(24px, 5vw, 36px); margin-bottom: 16px; }
.cta-card p { color: var(--text-secondary); margin-bottom: clamp(20px, 5vw, 32px); font-size: clamp(16px, 3.5vw, 20px);}
.cta-note { display: block; font-family: var(--font-mono); font-size: 16px; color: var(--text-muted); margin-top: 16px; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  margin: 32px auto;
}
.form-row {
  display: flex;
  gap: 16px;
}
.input-container {
  position: relative;
  width: 100%;
}
.form-input {
  width: 100%;
  padding: 24px 16px 8px 16px; /* Adjusted padding for floating label */
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
  z-index: 2; /* Ensure input is clickable */
}
.form-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 16px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: var(--font-sans);
  z-index: 3;
}
/* Floating effect */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 6px;
  left: 16px;
  font-size: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
  background: rgba(9, 9, 11, 0.6);
}
/* Styles to prevent white background on autofill and during typing */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px #131316 inset; /* Solid color similar to rgba(9,9,11,0.6) */
  transition: background-color 5000s ease-in-out 0s;
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
@media (max-width: 600px) {
  .form-row { flex-direction: column; }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 90;
}
#back-to-top:hover {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-glow-mixed);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (min-width: 768px) {
  #back-to-top { bottom: 32px; right: 32px; width: 48px; height: 48px; }
}

.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(9, 9, 11, 0.1);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-logo-img {
  height: 28px;
  width: auto;
  opacity: 0.9;
  display: block;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
@media (min-width: 640px) {
  .footer-info { flex-direction: row; }
}
.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-locations { text-align: left; }
}
.footer-sep { display: none; }
@media (min-width: 640px) {
  .footer-sep { display: inline; }
}
.footer-info a:hover {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-sep {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}
.copyright { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

section#nosotros {
  border-top: 1px solid var(--border);
}

section#servicios {
  border-top: 1px solid var(--border);
}