/* ===========================
   VARIABLES & DESIGN SYSTEM
   =========================== */
:root {
  --color-bg: #050a18;
  --color-surface: #0d1527;
  --color-surface-2: #111d35;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-secondary: #7c3aed;
  --color-accent: #06b6d4;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(37, 99, 235, 0.4);

  --gradient-cta: linear-gradient(135deg, #2563eb, #7c3aed);
  --gradient-hero-bg: linear-gradient(135deg, #050a18 0%, #0f1b3c 50%, #1a0533 100%);
  --gradient-text: linear-gradient(135deg, #60a5fa, #a78bfa);
  --gradient-accent: linear-gradient(135deg, #06b6d4, #2563eb);

  --glass-bg: rgba(13, 21, 39, 0.6);
  --glass-blur: blur(16px) saturate(180%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  --max-width: 1200px;
  --section-padding: 100px 0;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ===========================
   TIPOGRAFÍA
   =========================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3vw, 3rem); }
h3 { font-size: 1.4rem; }

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   BOTONES
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-hover);
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--color-primary);
}

/* ===========================
   BADGE
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  backdrop-filter: var(--glass-blur);
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

/* ===========================
   RESPONSIVE BASE
   =========================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
}
