@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Método VM Premium Dark Theme */
    --background: 232 59% 10%;
    --foreground: 0 0% 100%;
    
    --card: 231 38% 16%;
    --card-foreground: 0 0% 100%;
    
    --popover: 231 38% 16%;
    --popover-foreground: 0 0% 100%;

    /* Neon Blue Primary */
    --primary: 190 100% 50%;
    --primary-foreground: 232 59% 10%;

    /* Neon Green Secondary */
    --secondary: 152 100% 50%;
    --secondary-foreground: 232 59% 10%;

    /* Gold Accent */
    --accent: 46 65% 52%;
    --accent-foreground: 232 59% 10%;
    
    /* Red/Orange */
    --destructive: 0 100% 64%;
    --destructive-foreground: 0 0% 100%;

    --muted: 0 0% 30%;
    --muted-foreground: 0 0% 69%;

    --border: 231 38% 25%;
    --input: 231 38% 25%;
    --ring: 190 100% 50%;

    --radius: 0.75rem;

    /* Custom Neon Variables */
    --neon-gold: 46 65% 52%;
    --neon-blue: 190 100% 50%;
    --neon-green: 152 100% 50%;
    --neon-red: 0 100% 64%;
    --whatsapp-green: 142 70% 49%;
  }

  body {
    @apply bg-background text-foreground antialiased;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
  }

  body ::selection {
    background: hsl(var(--neon-blue) / 0.3);
  }

  html {
    font-size: 14px;
    scroll-behavior: smooth;
  }
  
  @media (min-width: 481px) {
    html { font-size: 15px; }
  }
  
  @media (min-width: 769px) {
    html { font-size: 16px; }
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }
}

@layer components {
  .glass-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(26, 31, 58, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .glass-card:hover {
    background: rgba(26, 31, 58, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .btn-mobile-full {
    @apply w-full md:w-auto min-h-[48px] flex items-center justify-center;
  }

  .neon-border {
    border: 2px solid hsl(var(--neon-blue) / 0.3);
    box-shadow: 0 0 20px hsl(var(--neon-blue) / 0.2), inset 0 0 10px hsl(var(--neon-blue) / 0.05);
  }

  .gradient-bg {
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--card)) 100%);
  }
}

@layer utilities {
  .text-glow-gold { text-shadow: 0 0 15px hsl(var(--neon-gold) / 0.6); }
  .text-glow-blue { text-shadow: 0 0 15px hsl(var(--neon-blue) / 0.6); }
  .text-glow-red { text-shadow: 0 0 15px hsl(var(--neon-red) / 0.6); }
  .text-glow-green { text-shadow: 0 0 15px hsl(var(--neon-green) / 0.6); }

  .box-glow-gold { box-shadow: 0 0 25px hsl(var(--neon-gold) / 0.2), inset 0 0 10px hsl(var(--neon-gold) / 0.05); }
  .box-glow-blue { box-shadow: 0 0 25px hsl(var(--neon-blue) / 0.2), inset 0 0 10px hsl(var(--neon-blue) / 0.05); }
  .box-glow-red { box-shadow: 0 0 25px hsl(var(--neon-red) / 0.2), inset 0 0 10px hsl(var(--neon-red) / 0.05); }
  .box-glow-whatsapp { box-shadow: 0 0 25px hsl(var(--whatsapp-green) / 0.3), inset 0 0 10px hsl(var(--whatsapp-green) / 0.1); }

  .animate-whatsapp-pulse {
    animation: whatsapp-pulse 2s infinite;
  }

  .animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
  }

  .animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
  }

  .animate-glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
  }

  .animate-shimmer {
    animation: shimmer 2s linear infinite;
  }
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 hsl(var(--whatsapp-green) / 0.6); }
  70% { box-shadow: 0 0 0 20px hsl(var(--whatsapp-green) / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--whatsapp-green) / 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% { 
    box-shadow: 0 0 20px hsl(var(--neon-blue) / 0.3);
  }
  50% { 
    box-shadow: 0 0 40px hsl(var(--neon-blue) / 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .btn-mobile-full {
    width: 100%;
    min-height: 56px;
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .glass-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  h1 {
    font-size: 1.75rem;
  }
}