/* ============================================
   SOPORTE 365 SPA — DESIGN SYSTEM
   Hoja principal con tokens y reset
   ============================================ */

:root {
  /* === COLORES === */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #60a5fa;
  --color-primary-bg: #eff6ff;
  --color-primary-bg-2: #dbeafe;

  --color-success: #10b981;
  --color-success-dark: #059669;
  --color-success-light: #d1fae5;

  --color-warning: #f59e0b;
  --color-warning-dark: #d97706;
  --color-warning-light: #fef3c7;

  --color-danger: #ef4444;
  --color-danger-dark: #dc2626;
  --color-danger-light: #fee2e2;

  --color-info: #0ea5e9;
  --color-info-light: #e0f2fe;

  --color-purple: #7c3aed;
  --color-purple-light: #ede9fe;

  --color-pink: #ec4899;
  --color-pink-light: #fce7f3;

  --color-cyan: #06b6d4;
  --color-cyan-light: #cffafe;

  /* === NEUTROS === */
  --color-text: #0f172a;
  --color-text-2: #334155;
  --color-text-3: #475569;
  --color-text-4: #64748b;
  --color-text-5: #94a3b8;
  --color-text-light: #cbd5e1;

  --color-bg: #f5f7fa;
  --color-bg-soft: #eef1f6;
  --color-bg-2: #e3e8f0;
  --color-bg-3: #d6dde7;
  --color-border: #e2e8f0;
  --color-border-2: #cbd5e1;

  /* === SOMBRAS === */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow: 0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.10), 0 4px 6px -4px rgb(15 23 42 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.10), 0 8px 10px -6px rgb(15 23 42 / 0.05);
  --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.20);
  --shadow-colored: 0 10px 30px -10px rgb(37 99 235 / 0.40);
  --shadow-success: 0 10px 30px -10px rgb(16 185 129 / 0.40);

  /* === RADIOS === */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* === ESPACIADOS === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* === TIPOGRAFÍA === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  /* === TRANSICIONES === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* === LAYOUT === */
  --max-width: 1200px;
  --max-width-narrow: 880px;
  --header-height: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

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

p { color: var(--color-text-2); }

/* === UTILIDADES GLOBALES === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-3);
  line-height: 1.6;
}

/* === TEXTOS === */
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--color-text-4); }

.text-center { text-align: center; }
.text-sm { font-size: var(--fs-sm); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* === FLEX / GRID === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }

/* === VISIBILIDAD === */
.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;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-2);
}
::-webkit-scrollbar-thumb {
  background: var(--color-text-5);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-4);
}

/* === SELECCIÓN === */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* === IMPRESIÓN === */
@media print {
  .no-print { display: none !important; }
}
