
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
  --color-primary: #2563eb; 
  --color-primary-dark: #1d4ed8; 
  --color-bg-light: #f8fafc; 
  --color-bg-card: #ffffff;
  --color-text-main: #0f172a; 
  --color-text-muted: #64748b; 
  --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; 
}
.clean-card {
  background: var(--color-bg-card);
  border: 1px solid #f1f5f9; 
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.clean-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background-color: white;
  color: var(--color-text-main);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0; 
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}
.input-clean {
  width: 100%;
  background-color: white;
  border: 1px solid #cbd5e1; 
  color: var(--color-text-main);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.input-clean:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.input-clean::placeholder {
  color: #94a3b8;
}
#global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.4s ease;
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  border-top-color: var(--color-primary);
  animation: spin 0.8s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.fade-out {
  opacity: 0;
  pointer-events: none;
}
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: white;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-primary);
  color: var(--color-text-main);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.toast.show {
  transform: translateX(0);
}
.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #10b981; }
.ruleta-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ruleta-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 8px white, 0 15px 35px rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}
.ruleta-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; 
  height: 0; 
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--color-primary);
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
