/* ============================================================
   ALFILTECH — main.css
   Variables de marca, reset, tipografía y layout base
   ============================================================ */

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

/* ----- Variables de marca ----- */
:root {
  /* Colores principales */
  --color-blue:      #00A3E0;
  --color-blue-dark: #0082b3;
  --color-orange:    #FF8C00;
  --color-orange-dark: #cc7000;

  /* Fondos */
  --bg-white:   #ffffff;
  --bg-light:   #F7F8FA;
  --bg-dark:    #0F1420;
  --bg-card:    #ffffff;

  /* Texto */
  --text-primary:   #1a1d23;
  --text-secondary: #4a5568;
  --text-muted:     #718096;
  --text-on-dark:   #e2e8f0;

  /* Bordes */
  --border-light: #e2e8f0;
  --border-card:  #edf2f7;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12);
  --shadow-blue: 0 4px 20px rgba(0,163,224,.25);

  /* Tipografía */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --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 */

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);

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

  /* Bordes redondeados */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Header */
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ----- Tipografía base ----- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p { line-height: 1.7; }

/* ----- Layout base ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* ----- Utilidades de texto ----- */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-blue    { color: var(--color-blue); }
.text-orange  { color: var(--color-orange); }

/* ----- Visibilidad para accesibilidad ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- Scroll offset para anclas (header sticky) ----- */
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}
