/* ==================== BASE — Variables, Reset, Utilidades, Tipografia ==================== */

/* Variables globales */
:root {
  --primary:     #d32f2f;
  --primary-dark:#b71c1c;
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --radius:      12px;
  --shadow:      0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg:   0 20px 25px -5px rgb(0 0 0 / 0.1);
}

:root.dark {
  --bg:        #0f172a;
  --bg-alt:    #1e293b;
  --text:      #f1f5f9;
  --text-muted:#94a3b8;
  --border:    #334155;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
:root.dark body {
  background: linear-gradient(160deg, #0a0c12 0%, #0f172a 50%, #100c0c 100%);
  background-attachment: fixed;
}

/* Utilidades */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
:root.dark .section--alt { background: rgba(15,23,42,0.8); }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge pill reutilizable */
.badge-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: rgba(211,47,47,0.1);
  border: 1px solid rgba(211,47,47,0.25);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.badge-pill--muted {
  background: rgba(100,116,139,0.08);
  border-color: var(--border);
  color: var(--text-muted);
}

/* Tipografia */
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p  { color: var(--text-muted); margin-bottom: 1rem; }
