/**
 * ChabeTech — Modern UI Layer 2026
 * Agrega glassmorphism, marquee, spotlight y glow sin tocar fuentes.
 */

/* ===== 1. HEADER: glassmorphism ===== */
.header-glass {
  background: rgba(12, 12, 20, 0.55) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.header-glass.scrolled {
  background: rgba(12, 12, 20, 0.85) !important;
}

/* ===== 2. HERO SPOTLIGHT (cursor light) ===== */
.section-hero-1 {
  position: relative;
  overflow: hidden;
}
.hero-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.12),
    transparent 40%
  );
}
@media (max-width: 768px) {
  .hero-spotlight { display: none; }
}

/* ===== 3. TECH MARQUEE (reemplaza logos estáticos) ===== */
.tech-marquee {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  overflow: hidden;
  position: relative;
}
.tech-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}
.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== 4. GLASSMORPHISM CARDS (servicios) ===== */
.tg-img-reveal-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, border-color 0.3s ease;
  will-change: transform;
}
.tg-img-reveal-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.25);
}

/* ===== 5. GLOW PULSE CTA ===== */
.btn-gradient {
  position: relative;
  overflow: hidden;
}
.btn-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, rgba(99,102,241,0.5), transparent 60%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.btn-gradient:hover::before {
  opacity: 1;
  animation: glow-rotate 3s linear infinite;
}
@keyframes glow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 6. GRADIENT BORDER CARDS (proyectos / stats) ===== */
.counter-item,
.project-card {
  position: relative;
  border-radius: 1rem;
}
.counter-item::before,
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(139,92,246,0.1), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.counter-item:hover::before,
.project-card:hover::before {
  opacity: 1;
}

/* ===== 7. SMOOTH REVEAL (scroll) ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
