@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700;800&display=swap');

:root {
  --bg-dark: #08090d;
  --bg-card: rgba(18, 21, 29, 0.78);
  --bg-card-hover: rgba(26, 30, 42, 0.9);
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.35);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: #f3f4f6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(139, 92, 246, 0.04) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

main, header, nav, footer, div, section {
  position: relative;
  z-index: 1;
}

.font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Scrollbar moderno */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #08090d;
}
::-webkit-scrollbar-thumb {
  background: #232836;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Glassmorphism & Neon Glow */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-panel-interactive {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-interactive:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.65);
}

.glow-green {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.glow-gold {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.glow-purple {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

/* Tarjetas de Encuestas Nativas DineroYa */
.survey-card {
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.9) 0%, rgba(14, 16, 23, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.survey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.survey-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 40px -12px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.survey-card:hover::before {
  opacity: 1;
}

.survey-reward-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Botones y Micro-interacciones */
.btn-primary-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  transition: all 0.2s ease;
}
.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}
.btn-primary-gradient:active {
  transform: scale(0.98);
}

.btn-gold-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  transition: all 0.2s ease;
}
.btn-gold-gradient:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.4);
}
.btn-gold-gradient:active {
  transform: scale(0.98);
}

/* Modales Animados */
.modal-enter {
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Live Ticker Animation */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-flex;
  gap: 1.5rem;
  animation: ticker 42s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Interactive Wheel Styling */
.wheel-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #ef4444;
  z-index: 20;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
}

#rouletteCanvas {
  transition: transform 4.2s cubic-bezier(0.15, 0.9, 0.2, 1);
}

/* Pulse badge */
.pulse-badge {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

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

/* Optimizaciones Móviles */
@media (max-width: 768px) {
  .wheel-container {
    width: 270px;
    height: 270px;
  }

  #rouletteCanvas {
    width: 270px;
    height: 270px;
  }

  .mobile-bottom-nav {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
}

/* Touch optimizaciones */
button, a, input, select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

