/* ========================================
   DESIGN SYSTEM - VuelosComisión (Discord Style)
   Sistema de diseño moderno inspirado en Discord
   ======================================== */

/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ========================================
   DESIGN TOKENS - Discord Inspired
   ======================================== */

:root {
  /* Colores Principales (Estilo Discord) */
  --discord-blurple: #5865F2;
  --discord-blurple-hover: #4752C4;
  --discord-green: #57F287;
  --discord-yellow: #FEE75C;
  --discord-fuchsia: #EB459E;
  --discord-red: #ED4245;
  
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F6F7F9;
  --bg-tertiary: #E9EAED;
  --bg-accent: #5865F2;
  --bg-dark: #2C2F33;
  --bg-darker: #23272A;
  
  /* Texto */
  --text-primary: #2C2F33;
  --text-secondary: #5E6772;
  --text-tertiary: #99A0A8;
  --text-white: #FFFFFF;
  --text-link: #00A8FC;
  
  /* Botones y Elementos Interactivos */
  --button-blurple: #5865F2;
  --button-blurple-hover: #4752C4;
  --button-green: #57F287;
  --button-green-hover: #3BA55D;
  --button-red: #ED4245;
  --button-grey: #4E5058;
  
  /* Estados */
  --success: #57F287;
  --warning: #FEE75C;
  --error: #ED4245;
  --info: #00A8FC;
  
  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', var(--font-primary);
  --font-display: var(--font-heading);
  
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;
  
  /* Espaciado (sistema de 4px) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  
  /* Bordes (Discord usa bastante redondeo) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 28px;
  --radius-full: 9999px;
  
  /* Sombras (Discord usa sombras sutiles) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.20);
  
  /* Transiciones */
  --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

/* ========================================
   BOTONES - Discord Style
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border: none;
  border-radius: var(--radius-3xl);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Botón Principal - Discord Blurple */
.btn-primary {
  background: var(--button-blurple);
  color: var(--text-white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--button-blurple-hover);
  box-shadow: var(--shadow-lg);
}

/* Botón Verde (Success) */
.btn-success {
  background: var(--button-green);
  color: var(--text-white);
}

.btn-success:hover:not(:disabled) {
  background: var(--button-green-hover);
  box-shadow: var(--shadow-lg);
}

/* Botón Secundario (Gris) */
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--button-grey);
  color: var(--text-white);
}

/* Botón Outline */
.btn-outline {
  background: transparent;
  color: var(--button-blurple);
  box-shadow: inset 0 0 0 2px var(--button-blurple);
}

.btn-outline:hover:not(:disabled) {
  background: var(--button-blurple);
  color: var(--text-white);
}

/* Botón Danger */
.btn-danger {
  background: var(--button-red);
  color: var(--text-white);
}

.btn-danger:hover:not(:disabled) {
  background: #C13438;
  box-shadow: var(--shadow-lg);
}

/* Tamaños de Botones */
.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-3xl);
}

.btn-xl {
  padding: 20px 40px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-3xl);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-xs);
}

/* Botón con ícono */
.btn i {
  transition: transform var(--transition-base);
}

.btn:hover i {
  transform: translateX(2px);
}

/* ========================================
   CARDS - Discord Style
   ======================================== */

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--bg-tertiary);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.card-body {
  color: var(--text-secondary);
}

/* ========================================
   INPUTS - Discord Style
   ======================================== */

.input-group {
  margin-bottom: var(--space-5);
}

.input-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.input:hover {
  border-color: var(--bg-darker);
}

.input:focus {
  outline: none;
  border-color: var(--button-blurple);
  background: var(--bg-primary);
}

.input::placeholder {
  color: var(--text-tertiary);
}

/* ========================================
   BADGES - Discord Style
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(87, 242, 135, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(254, 231, 92, 0.15);
  color: #D4A400;
}

.badge-error {
  background: rgba(237, 66, 69, 0.15);
  color: var(--error);
}

.badge-info {
  background: rgba(0, 168, 252, 0.15);
  color: var(--info);
}

.badge-blurple {
  background: rgba(88, 101, 242, 0.15);
  color: var(--discord-blurple);
}

/* ========================================
   ICONOS
   ======================================== */

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(88, 101, 242, 0.1);
  color: var(--discord-blurple);
  font-size: 20px;
  transition: all var(--transition-base);
}

.icon-container:hover {
  background: rgba(88, 101, 242, 0.2);
  transform: scale(1.05);
}

/* ========================================
   ANIMACIONES - Discord Style
   ======================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

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

/* Clases de Animación */
.animate-fadeUp {
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out both;
}

.animate-slideInRight {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slideInLeft {
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-scaleIn {
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Delays para animaciones escalonadas */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   UTILIDADES
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: clamp(48px, 10vw, 120px) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: var(--text-white); }
.text-secondary { color: var(--text-secondary); }
.text-blurple { color: var(--discord-blurple); }

.bg-white { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-blurple { background: var(--discord-blurple); }
.bg-dark { background: var(--bg-dark); }

/* Espaciado */
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-12) 0;
  }
  
  .card {
    padding: var(--space-4);
  }
  
  .btn-xl {
    padding: 16px 32px;
    font-size: var(--font-size-base);
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-sm);
  }
  
  .grid-cols-2 { grid-template-columns: 1fr; }
  .grid-cols-3 { grid-template-columns: 1fr; }
  .grid-cols-4 { grid-template-columns: 1fr; }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--discord-blurple);
  outline-offset: 2px;
}

/* ========================================
   EFECTOS ESPECIALES
   ======================================== */

/* Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, var(--discord-blurple), var(--discord-fuchsia));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hover Glow */
.glow-on-hover {
  position: relative;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}
