/*
Theme Name: Avantech Theme
Description: Tema personalizado moderno para Avantech SLT
Version: 1.0
Author: Avantech Team
*/

/* Variables CSS */
:root {
  /* Colores principales modernos */
  --electric-blue: #0066ff;
  --cyber-green: #00ff88;
  --neon-teal: #00d4ff;
  --deep-blue: #0a0e27;
  --space-gray: #1a1d29;
  --glass-white: rgba(255, 255, 255, 0.1);
  --glass-blue: rgba(0, 102, 255, 0.1);
  --glass-green: rgba(0, 255, 136, 0.1);
  
  /* Gradientes futuristas */
  --gradient-hero: linear-gradient(135deg, #0066ff 0%, #00d4ff 50%, #00ff88 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-neon: linear-gradient(45deg, #0066ff, #00ff88, #00d4ff, #0066ff);
  --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1d29 100%);
  
  /* Sombras modernas */
  --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.3);
  --shadow-green-glow: 0 0 30px rgba(0, 255, 136, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--deep-blue);
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Efectos de fondo animados */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--deep-blue);
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Header futurista */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: var(--shadow-glass);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 600;
  background: var(--gradient-neon);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  text-decoration: none;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-menu a:hover {
  color: var(--cyber-green);
  background: var(--glass-green);
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cyber-green);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Hero Section Futurista */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, 10px); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyber-green) 50%, var(--neon-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: var(--gradient-neon);
  background-size: 300% 300%;
  color: var(--deep-blue);
  animation: gradient-shift 3s ease infinite;
  box-shadow: var(--shadow-glow);
}

.cta-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.cta-secondary {
  background: var(--glass-white);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: var(--glass-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyber-green);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 10px var(--cyber-green);
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.floating-element:nth-child(3) { top: 80%; left: 20%; animation-delay: 2s; }
.floating-element:nth-child(4) { top: 30%; left: 70%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Sección de Servicios Moderna */
.services-section {
  padding: 8rem 0;
  background: var(--space-gray);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  background: var(--gradient-neon);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-float);
  border-color: var(--cyber-green);
}

.service-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-neon);
  background-size: 300% 300%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: gradient-shift 3s ease infinite;
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cyber-green);
}

.service-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Sección App Gana Ultra Moderna */
.gana-section {
  padding: 8rem 0;
  background: var(--deep-blue);
  position: relative;
  overflow: hidden;
}

.gana-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
}

.gana-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.gana-content h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-neon);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

.gana-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.gana-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.gana-features li {
  padding: 0.8rem 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.gana-features li:hover {
  transform: translateX(10px);
  color: var(--cyber-green);
}

.gana-features li::before {
  content: "✓";
  width: 30px;
  height: 30px;
  background: var(--gradient-neon);
  background-size: 300% 300%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: gradient-shift 3s ease infinite;
  box-shadow: var(--shadow-glow);
}

/* Mockup del teléfono 3D */
.app-mockup {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--gradient-neon);
  background-size: 300% 300%;
  border-radius: 40px;
  padding: 20px;
  position: relative;
  transform: rotateY(-15deg) rotateX(5deg);
  transition: all 0.4s ease;
  animation: gradient-shift 3s ease infinite;
  box-shadow: var(--shadow-float);
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--deep-blue);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: screen-shine 2s ease-in-out infinite;
}

@keyframes screen-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.app-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cyber-green);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--cyber-green);
}

.app-tagline {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.app-features-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.feature-mini {
  background: var(--glass-green);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gana-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .phone-mockup {
    transform: none;
    width: 250px;
    height: 500px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .gana-content h2 {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--deep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 136, 0.3);
  border-top: 3px solid var(--cyber-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
