/* ===============================
   Estilos Modernos - Insomnia Deb
   Paleta Neón Cyberpunk (Nueva)
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Nuevo esquema de colores basado en los ejemplos */
  --primary-cyan: #00f5ff;
  --primary-purple: #8b5cf6;
  --primary-pink: #ec4899;
  --dark-bg: #0a0a0f;
  --dark-card: #1a1a24;
  --dark-border: #2d2d3a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-accent: #f0f9ff;
  --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,245,255,0.05) 0%, rgba(139,92,246,0.05) 50%, rgba(236,72,153,0.05) 100%);
  --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* Variables existentes actualizadas */
  --primary: var(--primary-cyan);
  --secondary: var(--primary-purple);
  --accent: var(--primary-pink);
  --dark: var(--dark-bg);
  --darker: var(--dark-card);
  --gray-800: var(--dark-border);
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --light-gray: var(--text-secondary);
  --text-gray-300: var(--text-secondary);
  --text-gray-400: var(--text-secondary);
  --text-gray-500: var(--text-secondary);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
  z-index: -1;
}

/* Tipografías */
.mono-font {
  font-family: 'JetBrains Mono', monospace;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Efectos de texto */
.gradient-text {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

/* Contenedores */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

/* Fondo con gradiente cyberpunk */
.cyber-gradient {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
  position: relative;
}

.cyber-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* Fondos de sección */
.bg-dark {
  background: var(--dark-bg);
}

.bg-darker {
  background: var(--dark-card);
}

/* Bordes cyberpunk */
.cyber-border {
  border-bottom: 2px solid var(--dark-border);
  position: relative;
}

.cyber-border::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--gradient-primary);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-cyan);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple);
}

/* Animaciones Mejoradas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.7; 
  }
  50% { 
    transform: scale(1.05); 
    opacity: 1; 
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.6), 0 0 60px rgba(139, 92, 246, 0.3);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  }
  50% {
    text-shadow: 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Clases de animación */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.slide-in-scale {
  animation: slideInScale 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

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

/* Delays escalonados para animaciones */
.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; }
.delay-600 { animation-delay: 0.6s; }

/* Estados de carga */
.loading {
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Utilidades de texto */
.text-primary {
  color: var(--primary-cyan) !important;
}

.text-secondary {
  color: var(--primary-purple) !important;
}

.text-accent {
  color: var(--primary-pink) !important;
}

.text-success {
  color: #10b981 !important;
}

.text-warning {
  color: #f59e0b !important;
}

.text-info {
  color: var(--primary-cyan) !important;
}

/* Botones Mejorados */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  transition: width 0.1s ease, height 0.1s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
  background-size: 200% 200%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(0, 245, 255, 0.4),
    0 0 50px rgba(139, 92, 246, 0.3),
    0 0 80px rgba(236, 72, 153, 0.2);
  background-position: right center;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.02);
}

.btn-outline-primary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-cyan);
  position: relative;
}

.btn-outline-primary::before {
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
}

.btn-outline-primary:hover {
  background: rgba(0, 245, 255, 0.1);
  transform: translateY(-3px) scale(1.05);
  border-color: var(--primary-purple);
  box-shadow: 
    0 8px 25px rgba(0, 245, 255, 0.3),
    inset 0 0 20px rgba(0, 245, 255, 0.1);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(139, 92, 246, 0.3),
    inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* Tamaños de botones */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Utilidades de display */
.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

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

.text-decoration-none {
  text-decoration: none;
}

/* Utilidades de espaciado */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.me-4 { margin-right: 1.5rem; }

.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.ms-4 { margin-left: 1.5rem; }

.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-8 { padding-top: 5rem; padding-bottom: 5rem; }

.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-6 { padding-left: 2rem; padding-right: 2rem; }

/* Utilidades de grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col-lg-4, .col-lg-6, .col-lg-8 {
  padding: 0 1rem;
}

.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }

@media (max-width: 992px) {
  .col-lg-4, .col-lg-6, .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Utilidades de posición */
.position-fixed {
  position: fixed;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Utilidades de sombra */
.shadow-lg {
  box-shadow: var(--shadow-card);
}

/* Utilidades de borde */
.border-bottom {
  border-bottom: 1px solid var(--dark-border);
}

.border-top {
  border-top: 1px solid var(--dark-border);
}

.border-gray-800 {
  border-color: var(--dark-border);
}

/* Utilidades de z-index */
.z-index-1000 {
  z-index: 1000;
}

/* Utilidades de overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Utilidades de pointer-events */
.pointer-events-none {
  /* pointer-events: none; - Removed for compatibility */
}

/* Utilidades de transform */
.transform {
  transform: translateY(-2px);
}

/* Utilidades de transition */
.transition {
  transition: all 0.3s ease;
}

/* Utilidades de hover */
.hover\:text-primary:hover {
  color: var(--primary-cyan) !important;
}

.hover\:text-primary:hover {
  color: var(--primary-cyan) !important;
}

/* Utilidades de gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Utilidades de flex */
.flex-wrap {
  flex-wrap: wrap;
}

/* Utilidades de responsive */
@media (max-width: 768px) {
  .d-lg-none {
    display: block;
  }
  
  .d-lg-flex {
    display: none;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none;
  }
  
  .d-lg-flex {
    display: flex;
  }
} 