@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@400;700&display=swap');

body {
  background-color: #000000;
  color: #f8fafc;
  overflow-x: hidden;
}

#ambient-glow {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle 600px at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(16,185,129,0.06), transparent 50%);
  transition: opacity 0.5s ease;
}

.noise-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* TARJETAS 3D CON FOTOGRAFÍA INCRUSTADA Y LÁSER */
.tilt-card {
  position: relative;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform 0.1s ease, border-color 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}

.tilt-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(400px circle at var(--card-mouse-x, 0) var(--card-mouse-y, 0), rgba(16,185,129,0.5), transparent 40%);
  -webkit-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; transition: opacity 0.3s ease; z-index: 20;
}

.tilt-card:hover::before { opacity: 1; }
.tilt-card:hover { border-color: transparent; }

.tilt-bg-img {
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}

.tilt-card:hover .tilt-bg-img {
  transform: translateZ(-20px) scale(1.05);
  opacity: 0.6;
}

/* ANIMACIONES BÁSICAS GSAP */
.reveal-up { 
  opacity: 0; 
  transform: translateY(40px); 
  will-change: transform, opacity; 
}

/* =========================================================================
   NUEVAS ARQUITECTURAS VISUALES
   ========================================================================= */

/* EFECTO CINE: SCROLL HORIZONTAL (Usado en las subpáginas) */
.horizontal-scroll-wrapper { 
  width: 300vw; 
  height: 100vh; 
  display: flex; 
  flex-wrap: nowrap; 
  will-change: transform; 
}
.horizontal-panel { 
  width: 100vw; 
  height: 100vh; 
  position: relative; 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

/* MARQUEE INFINITO (Cinta de texto técnica usada en el Index) */
.marquee-container {
  overflow: hidden; 
  white-space: nowrap; 
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.05); 
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 0; 
  background: #020202; 
  position: relative; 
  z-index: 20;
}
.marquee-content {
  display: inline-block; 
  animation: marquee 30s linear infinite;
}
.marquee-item {
  display: inline-block; 
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; 
  letter-spacing: 0.2em; 
  color: #10b981; 
  text-transform: uppercase;
  padding: 0 3rem;
}
.marquee-item span { 
  color: #64748b; 
  margin-left: 3rem; 
}
@keyframes marquee { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}
