/* CitaRD - Estilos principales */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
  /* Prevent zoom on iOS */
  -webkit-text-size-adjust: 100%;
  /* Improve touch scrolling */
  -webkit-overflow-scrolling: touch;
}

#root {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  width: 100%;
  overflow-x: hidden;
}

/* Mobile-first responsive design */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  
  /* Ensure full viewport usage on mobile */
  #root {
    height: 100vh;
    height: 100dvh;
  }
}

/* Tablet and desktop */
@media (min-width: 641px) {
  body {
    font-size: 16px;
  }
}

/* Custom scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Glass morphism effects */
.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  transition: all 0.3s ease;
}

.input-glass::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-glass:focus {
  outline: none;
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

/* Gradient backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Shadow effects */
.shadow-glow {
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* Mobile touch improvements */
@media (max-width: 640px) {
  .card-glass {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .input-glass {
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}