/* Banner de Cookies - Diseño Elegante */
#cookieBanner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookieBanner.show {
  transform: translateY(0);
  opacity: 1;
}

#cookieBanner.hide {
  transform: translateY(100px);
  opacity: 0;
}

[data-theme="dark"] #cookieBanner {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
}

.cookie-content {
  margin-bottom: 16px;
}

.cookie-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .cookie-title {
  color: #f1f5f9;
}

.cookie-title::before {
  content: "🍪";
  font-size: 18px;
}

.cookie-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
}

[data-theme="dark"] .cookie-text {
  color: #94a3b8;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 80px;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.cookie-btn.accept:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookie-btn.decline {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

[data-theme="dark"] .cookie-btn.decline {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cookie-btn.decline:hover {
  background: rgba(100, 116, 139, 0.2);
  transform: translateY(-1px);
}

.cookie-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.cookie-link:hover {
  text-decoration: underline;
}

[data-theme="dark"] .cookie-link {
  color: #60a5fa;
}

/* Responsive */
@media (max-width: 480px) {
  #cookieBanner {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    margin: 0;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    flex: none;
  }
}

/* Animación de entrada suave */
@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#cookieBanner.animate-in {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}