/* ═══════════════════════════════════════════════════
   n1crAI — Main site custom styles
   Complementa las clases utilitarias de Tailwind CDN
   ═══════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

/* Fallback: fondo oscuro garantizado aunque Tailwind tarde en cargar */
html,
body {
  background-color: #0a182e;
  color: #f1f5f9;
}

body {
  font-family: 'Inter', sans-serif;
}

/* ── Glass card ── */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Accent glow ── */
.glow-accent {
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.35);
}

/* ── Tech grid background ── */
.tech-grid {
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

/* ── Animated gradient text ── */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(135deg, #00f2ff, #3b82f6, #8b5cf6, #00f2ff);
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Float animation (hero globe wrapper) ── */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ── Navbar on scroll ── */
.nav-scrolled {
  background: rgba(10, 24, 46, 0.97) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}

/* ── Service card hover glow ── */
.service-card:hover {
  box-shadow: 0 0 35px rgba(0, 242, 255, 0.12);
}

/* ── Mobile menu slide ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

#mobile-menu.open {
  max-height: 320px;
}

/* ── Back to top button ── */
#back-to-top {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ── Particles canvas (hero section) ── */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Globe canvas: transparent background ── */
#globe-canvas {
  display: block;
  max-width: 100%;
  background: transparent;
}



/* ── Input focus ring ── */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: rgba(0, 242, 255, .6) !important;
  box-shadow: 0 0 0 3px rgba(0, 242, 255, .1) !important;
}

/* ── Portfolio tag chip ── */
.tag {
  padding: 2px 8px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Partners band background ── */
.partners-band {
  background-color: #0a182e;
  /* mismo fondo que el hero */
}

/* ── Typewriter cursor blink ── */
@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.typewriter-cursor {
  display: inline-block;
  color: #00f2ff;
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  margin-left: 1px;
}

/* ── Logo marquee ── */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.logos-track-wrapper {
  position: relative;
  overflow: hidden;
  height: 3rem;
  display: flex;
  align-items: center;
  /* fade edges */
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}

.logos-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.logos-track:hover {
  animation-play-state: paused;
}

.logo-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}

.logo-item svg {
  display: block;
  height: 1.5rem;
  width: auto;
  min-width: 40px;
}

.logo-item:hover {
  color: rgba(0, 242, 255, 0.85);
}

/* ── Scroll progress bar ── */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00f2ff, #3b82f6);
  z-index: 9998;
  transition: width .1s linear;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a182e;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 255, .3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 255, .6);
}