/* ═══════════════════════════════════════════════════════
   Digital Innovation Agency – Custom Styles
   Sin GSAP. Animaciones 100% CSS + AOS.
   ═══════════════════════════════════════════════════════ */

/* ─── Base ─────────────────────────────────────────────── */
:root {
  --teal:   #06D6A0;
  --blue:   #3A86FF;
  --purple: #9D4EDD;
  --pink:   #FF006E;
  --yellow: #FFD166;
  --dark:   #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--dark); color: #e2e8f0; overflow-x: hidden; }

/* Scrollbar */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* Selection */
::selection { background: rgba(6,214,160,.25); color: #fff; }

/* ─── Cursor glow ──────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6,214,160,.08) 0%, transparent 70%);
  transition: left .12s ease, top .12s ease;
}

/* ─── Gradient text ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 50%, var(--purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ─── Glassmorphism ────────────────────────────────────── */
.glass-card {
  background: rgba(30,41,59,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ─── Cyber grid bg ────────────────────────────────────── */
.cyber-grid-bg {
  background-image:
    linear-gradient(rgba(6,214,160,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,214,160,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 25s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

.footer-grid {
  background-image:
    linear-gradient(rgba(6,214,160,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,214,160,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
}

/* ─── Navbar ───────────────────────────────────────────── */
#navbar { background: transparent; }
#navbar.nav-scrolled {
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148,163,184,.1);
  box-shadow: 0 4px 40px rgba(0,0,0,.4);
}

/* ─── Marquee ──────────────────────────────────────────── */
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marqueeRun 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeRun {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Hero CSS animations ─────────────────────────────── */
/* Estas corren puro CSS — sin JS — siempre visibles */
.hero-badge {
  animation: fadeDown .6s ease .15s both;
}
.hero-title-1 { animation: fadeUp .7s ease .25s both; }
.hero-title-2 { animation: fadeUp .7s ease .40s both; }
.hero-title-3 { animation: fadeUp .7s ease .55s both; }
.hero-sub      { animation: fadeUp .6s ease .65s both; }
.hero-cta      { animation: fadeUp .6s ease .75s both; }
.hero-stats    { animation: fadeUp .6s ease .90s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Float animation (orbs, badges) ──────────────────── */
.float-slow  { animation: floatY 7s ease-in-out infinite; }
.float-med   { animation: floatY 5s ease-in-out infinite reverse; }
.float-fast  { animation: floatY 4s ease-in-out infinite 1.5s; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-18px); }
}

/* ─── Pulse dot ────────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.6); opacity: .6; }
}

/* ─── Scroll indicator ─────────────────────────────────── */
.scroll-ind {
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(10px); opacity: .5; }
}
.scroll-ball {
  animation: scrollBall 1.8s ease-in-out infinite;
}
@keyframes scrollBall {
  0%,100% { transform: translateY(0); opacity: 1; }
  80%     { transform: translateY(14px); opacity: 0; }
}

/* ─── Shimmer button ───────────────────────────────────── */
.btn-shimmer {
  position: relative; overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.5s infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 220%; }
}

/* ─── Glow ring ────────────────────────────────────────── */
.glow-ring {
  animation: glowRing 2.5s ease-in-out infinite;
}
@keyframes glowRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(6,214,160,0); }
  50%     { box-shadow: 0 0 0 8px rgba(6,214,160,.12); }
}

/* ─── Rotating border ──────────────────────────────────── */
.spin-border {
  animation: spinBorder 8s linear infinite;
}
@keyframes spinBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Orb backgrounds ──────────────────────────────────── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
}

/* ─── Service / product cards ──────────────────────────── */
.service-card, .product-card, .blog-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover, .product-card:hover, .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

/* ─── Tech card tilt ───────────────────────────────────── */
.tech-card {
  transition: transform .25s ease, border-color .25s ease;
  will-change: transform;
}
.tech-card:hover {
  transform: perspective(400px) rotateX(-6deg) rotateY(6deg) translateZ(8px);
}

/* ─── Line clamp ───────────────────────────────────────── */
.line-clamp-1 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; }
.line-clamp-2 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.line-clamp-3 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }

/* ─── Blog prose ───────────────────────────────────────── */
.prose-custom { color:#cbd5e1; line-height:1.85; font-size:1.05rem; }
.prose-custom h2 { font-size:1.75rem; font-weight:800; color:#f1f5f9; margin:2.5rem 0 1rem; border-bottom:2px solid rgba(6,214,160,.25); padding-bottom:.5rem; }
.prose-custom h3 { font-size:1.35rem; font-weight:700; color:#f1f5f9; margin:2rem 0 .75rem; }
.prose-custom p  { margin-bottom:1.5rem; }
.prose-custom a  { color:var(--teal); text-decoration:underline; text-underline-offset:3px; }
.prose-custom a:hover { color:var(--blue); }
.prose-custom strong { color:#f1f5f9; font-weight:700; }
.prose-custom ul,
.prose-custom ol { margin-bottom:1.5rem; padding-left:1.75rem; }
.prose-custom li { margin-bottom:.5rem; color:#94a3b8; }
.prose-custom li::marker { color:var(--teal); }
.prose-custom code { font-family:'JetBrains Mono',monospace; background:rgba(51,65,85,.8); padding:.15em .4em; border-radius:6px; font-size:.88em; color:var(--teal); }
.prose-custom pre { background:rgba(15,23,42,.9); border:1px solid rgba(51,65,85,.8); border-radius:12px; padding:1.5rem; overflow-x:auto; margin-bottom:1.5rem; }
.prose-custom pre code { background:none; padding:0; color:#e2e8f0; }
.prose-custom blockquote { border-left:4px solid var(--teal); padding-left:1.25rem; margin:1.5rem 0; color:#94a3b8; font-style:italic; }
.prose-custom img { width:100%; border-radius:12px; margin:2rem 0; }

/* ─── Number counter animate ───────────────────────────── */
.count-up { display:inline-block; }

/* ─── Video overlay ────────────────────────────────────── */
.video-overlay {
  background: linear-gradient(to bottom,
    rgba(15,23,42,.42) 0%,
    rgba(15,23,42,.15) 40%,
    rgba(15,23,42,.60) 100%);
}

/* ─── Hover img zoom ───────────────────────────────────── */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .6s ease; }
.img-zoom:hover img { transform: scale(1.07); }

/* ─── Focus visible ────────────────────────────────────── */
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ─── Responsive img ───────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ─── Admin glass ──────────────────────────────────────── */
.glass { background:rgba(30,41,59,.55); backdrop-filter:blur(18px); }
