/* ============================================
   MODERN PIXEL ART - AMAYO BOT
   Diseño moderno con toques pixel art sutiles
   ============================================ */

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700;800&display=swap');

/* Variables CSS Modernas */
:root {
  /* Fondos glassmorphism */
  --bg-base: #0f0a1e;
  --bg-elevated: rgba(30, 20, 45, 0.8);
  --bg-card: rgba(50, 35, 70, 0.6);
  --bg-hover: rgba(70, 50, 95, 0.7);
  
  /* Acentos modernos Halloween */
  --purple-500: #a78bfa;
  --purple-600: #8b5cf6;
  --orange-500: #f59e0b;
  --orange-600: #d97706;
  --pink-500: #ec4899;
  --green-500: #10b981;
  
  /* Texto */
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  
  /* Efectos */
  --border-subtle: rgba(167, 139, 250, 0.15);
  --blur-bg: blur(20px);
  --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.2);
}

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

/* Body - Fondo moderno con gradiente */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: 
    radial-gradient(ellipse at top, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0f0a1e 0%, #1a0f2e 50%, #0f0a1e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Partículas de fondo sutiles */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

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

/* Tipografía Moderna */
h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--orange-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-shadow: none;
  animation: gradientPulse 8s ease-in-out infinite;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--purple-500);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Glassmorphism Cards */
.pixel-box,
.modern-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-bg);
  -webkit-backdrop-filter: var(--blur-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pixel-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(167, 139, 250, 0.05) 0%, 
    transparent 50%,
    rgba(245, 158, 11, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pixel-box:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(167, 139, 250, 0.2),
    var(--shadow-glow);
}

.pixel-box:hover::before {
  opacity: 1;
}

/* Botones Modernos */
.pixel-btn,
.modern-btn {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
}

.pixel-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pixel-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(139, 92, 246, 0.5),
    0 0 0 1px rgba(167, 139, 250, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pixel-btn:hover::before {
  opacity: 1;
}

.pixel-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Botón Secundario */
.pixel-btn-secondary {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  box-shadow: 
    0 4px 16px rgba(245, 158, 11, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pixel-btn-secondary:hover {
  box-shadow: 
    0 8px 24px rgba(245, 158, 11, 0.5),
    0 0 0 1px rgba(245, 158, 11, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Badge Moderno */
.pixel-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-elevated);
  backdrop-filter: var(--blur-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: floatBadge 3s ease-in-out infinite;
}

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

/* Navbar Moderno */
.pixel-navbar {
  background: var(--bg-elevated);
  backdrop-filter: var(--blur-bg);
  -webkit-backdrop-filter: var(--blur-bg);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
}

.pixel-navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    var(--purple-500) 25%,
    var(--orange-500) 50%,
    var(--purple-500) 75%,
    transparent 100%);
  opacity: 0.6;
}

/* Links Modernos */
a {
  color: var(--purple-500);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--purple-600);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
}

a:hover::after {
  width: 100%;
}

/* Decoraciones Pixel Art Sutiles */
.pixel-pumpkin {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--orange-500);
  border-radius: 50%;
  box-shadow: 
    0 2px 8px rgba(245, 158, 11, 0.4),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
  animation: pulse 3s ease-in-out infinite;
}

.pixel-pumpkin::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 8px;
  background: var(--green-500);
  border-radius: 2px;
}

.pixel-ghost {
  display: inline-block;
  width: 20px;
  height: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
  animation: floatGhost 4s ease-in-out infinite;
  position: relative;
}

.pixel-star-halloween {
  display: inline-block;
  color: var(--orange-500);
  font-size: 1.25rem;
  animation: twinkle 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes floatGhost {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes gradientPulse {
  0%, 100% { 
    background-position: 0% 50%; 
    filter: brightness(1);
  }
  50% { 
    background-position: 100% 50%;
    filter: brightness(1.1);
  }
}

/* Grid de fondo opcional */
.pixel-grid-bg {
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  .pixel-box {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .pixel-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Utilidades */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-500), var(--orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.card-glow {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    var(--shadow-glow);
}
