/* ============================================================
   BECHY — Design System Global
   Inspirado en la estética moderna, limpia y profesional de
   Simplificando Tu Web (simplificandotuweb.com)
   ============================================================ */

/* --- Google Fonts: Inter Tight & Inter --- */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Backgrounds */
  --bg-primary: #050505;
  --bg-secondary: #111111;
  --bg-tertiary: #181818;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --bg-card-gradient: linear-gradient(180deg, rgba(25, 25, 25, 0.8) 0%, rgba(15, 15, 15, 0.95) 100%);
  --bg-nav: rgba(5, 5, 5, 0.9);
  --bg-nav-scrolled: rgba(5, 5, 5, 0.98);

  /* Brand Accents */
  --accent-primary: #02346A;
  --accent-primary-hover: #084c96;
  --accent-light: #0d5bb5;
  --accent-ice: #D3DEEA;
  --accent-glow: rgba(2, 52, 106, 0.35);
  --accent-glow-strong: rgba(13, 91, 181, 0.5);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #DCDCDE;
  --text-muted: #8E8E93;
  --text-accent: #D3DEEA;
  --text-highlight: #4da2ff;

  /* WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-hover: #20bd5a;
  --whatsapp-glow: rgba(37, 211, 102, 0.3);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-card-hover: rgba(211, 222, 234, 0.25);
  --border-accent: rgba(2, 52, 106, 0.45);
  --border-divider: rgba(220, 220, 222, 0.12);

  /* Typography */
  --font-primary: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6.5rem;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 8px 30px rgba(2, 52, 106, 0.25);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 920px;
  --nav-height: 76px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Global Baseline --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #3e3e3e;
}

/* Images & Media */
img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Typography & Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Utility / Container Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Section Wrapper */
.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  position: relative;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section--dark {
  background-color: var(--bg-primary);
}

/* Section Header (Centered or Left-aligned) */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header--center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Pill / Label Badges (Uppercase Header Tags) */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-md);
}

.section-badge--accent {
  background-color: rgba(2, 52, 106, 0.35);
  border-color: rgba(2, 52, 106, 0.8);
  color: #FFFFFF;
}

.section-title {
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Grids --- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 680px) {
  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

/* --- Text Highlights & Gradients --- */
.text-accent {
  color: var(--accent-ice);
}

.text-blue {
  color: #4da2ff;
}

.text-white {
  color: #FFFFFF;
}

.text-muted {
  color: var(--text-muted);
}

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

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

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #D3DEEA 60%, #8EB6E0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
