/* ============================================
   ESTUDIO JURÍDICO ARCAL — Base & Typography
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
  min-height: 100vh;
}

/* --- Page entry animation --- */
body {
  animation: pageIn 0.35s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Headings --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(36px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; letter-spacing: 0.02em; }

/* --- Paragraphs --- */
p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-secondary);
}

/* --- Links --- */
a {
  color: var(--garnet);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover { color: var(--garnet-deep); }

/* --- Lists --- */
ul, ol {
  padding-left: var(--space-lg);
}

li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

/* --- Horizontal rule --- */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

/* --- Selection --- */
::selection {
  background: var(--garnet-tint-2);
  color: var(--garnet-deep);
}

/* --- Labels & eyebrows --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--garnet);
}

/* --- Section rule label --- */
.section-rule {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Utility classes --- */
.text-center { text-align: center; }
.text-muted  { color: var(--ink-tertiary); }
.mt-lg       { margin-top: var(--space-lg); }
.mt-xl       { margin-top: var(--space-xl); }
.mb-xl       { margin-bottom: var(--space-xl); }
