/* =========================================
   SMARTSOLUTIONS VE - Sistema de Diseño
   ========================================= */

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

:root {
  /* ===== Paleta de Colores SmartSolutions ===== */
  --color-smart-blue: #0066FF;
  --color-smart-green: #22C55E;
  --color-smart-navy: #1A234E;
  --color-smart-orange: #F59E0B;

  /* Escala de Grises */
  --color-dark: #0A0A0A;
  --color-gray-900: #1A1A1A;
  --color-gray-800: #2D2D2D;
  --color-gray-700: #404040;
  --color-gray-600: #666666;
  --color-gray-500: #808080;
  --color-gray-400: #999999;
  --color-gray-300: #CCCCCC;
  --color-gray-200: #E5E5E5;
  --color-gray-100: #F5F5F5;
  --color-white: #FFFFFF;

  /* Fondos */
  --bg-dark-pattern: #0f172a;
  --bg-light: #F8F9FA;

  /* ===== Tipografía ===== */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Tamaños de Fuente */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* ===== Espaciado ===== */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 4rem;     /* 64px */
  --spacing-3xl: 6rem;     /* 96px */

  /* ===== Bordes ===== */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;

  /* ===== Sombras ===== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-blue: 0 10px 40px -5px rgba(0, 102, 255, 0.4);
  --shadow-green: 0 10px 40px -5px rgba(34, 197, 94, 0.3);

  /* ===== Transiciones ===== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* ===== Z-Index ===== */
  --z-navbar: 50;
  --z-whatsapp: 40;
  --z-modal: 60;
  --z-dropdown: 30;
}

/* ===== Reset y Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
}

/* ===== Tipografía ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

/* ===== Utilidades Personalizadas ===== */

/* Gradientes de Texto */
.text-gradient-blue-green {
  background: linear-gradient(135deg, var(--color-smart-blue), var(--color-smart-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #0066FF, #0052CC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fondos con Gradiente */
.bg-gradient-blue-green {
  background: linear-gradient(135deg, var(--color-smart-blue), var(--color-smart-green));
}

.bg-gradient-navy-blue {
  background: linear-gradient(135deg, var(--color-smart-navy), var(--color-smart-blue));
}

/* Patrón de Fondo Hero */
.hero-pattern {
  background-color: var(--bg-dark-pattern);
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-pattern-dots {
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hover Effects */
.card-hover {
  transition: all var(--transition-base);
}

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

/* Botones con Glow */
.btn-glow-blue {
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
  transition: all var(--transition-base);
}

.btn-glow-blue:hover {
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.6);
  transform: translateY(-2px);
}

.btn-glow-green {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  transition: all var(--transition-base);
}

.btn-glow-green:hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
  transform: translateY(-2px);
}

/* Navbar Blur */
.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-blur-dark {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Scroll Animations (con Intersection Observer en JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Forms */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-smart-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.form-input:focus {
  border-color: var(--color-smart-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: var(--text-sm);
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
    --text-7xl: 3.5rem;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}
