/* Estilos modernos para Cloudynex */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text: #f8fafc;
}

/* Cursor personalizado */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, width 0.2s ease, height 0.2s ease;
}

/* Efecto de ruido */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

/* Líneas de cuadrícula */
.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.05);
}

.grid-line-vertical {
  width: 1px;
  height: 100%;
  top: 0;
}

.grid-line-horizontal {
  height: 1px;
  width: 100%;
  left: 0;
}

/* Fondos */
.bg-dark {
  background-color: var(--dark);
  color: var(--text);
}

/* Texto con gradiente */
.gradient-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Botones modernos */
.btn-modern {
  position: relative;
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(90deg, #00f0ff, #0080ff);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-modern-small {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #00f0ff, #0080ff);
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-modern-large {
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, #00f0ff, #0080ff);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1rem;
}

.btn-modern::before,
.btn-modern-small::before,
.btn-modern-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-modern:hover::before,
.btn-modern-small:hover::before,
.btn-modern-large:hover::before {
  left: 100%;
}

.btn-modern:hover,
.btn-modern-small:hover,
.btn-modern-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px #00f0ff;
}

/* Tarjetas con efecto vidrio */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Navegación moderna */
.modern-nav {
  display: flex;
  gap: 2rem;
}

.modern-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.modern-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.modern-nav a:hover {
  color: white;
}

.modern-nav a:hover::after {
  width: 100%;
}

/* Sección hero con parallax */
.parallax-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Asegurar que todos los elementos sean visibles */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.animate-in.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Asegurar que todas las tarjetas sean visibles */
.glass-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Asegurar que todos los elementos hero sean visibles */
.hero-title,
.hero-description,
.hero-buttons {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Formulario moderno */
.modern-form input,
.modern-form textarea {
  transition: all 0.3s ease;
}

.modern-form input:focus,
.modern-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Efecto de brillo */
.glow-effect {
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

/* Enlaces modernos */
.modern-link {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.modern-link:hover {
  transform: translateY(-2px);
}