/* Encanta Odontologia - Design System */

:root {
  --primary: #2c2c2c;
  --primary-dark: #1a1a1a;
  --primary-light: #E6F0FA;
  --primary-50: #F2F8FD;
  --ink: #0A1A2F;
  --ink-2: #1F2C42;
  --muted: #5A6B82;
  --line: #E4EAF2;
  --line-strong: #C9D4E2;
  --bg: #FFFFFF;
  --bg-soft: #F7FAFD;
  --warn: #D9480F;
  --warn-bg: #FFF4E6;
  --success: #0CA678;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,26,47,.04), 0 1px 3px rgba(10,26,47,.06);
  --shadow-md: 0 6px 18px -8px rgba(10,26,47,.12), 0 2px 6px rgba(10,26,47,.06);
  --shadow-lg: 0 24px 48px -16px rgba(10,26,47,.18), 0 4px 12px rgba(10,26,47,.08);
  --shadow-blue: 0 12px 32px -8px rgba(44,44,44,.25);

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --container: 1200px;
  --section-pad: 120px;
  --gutter: 24px;
}

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

html, body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 19px; }

p { color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--soft { background: var(--bg-soft); }
.section--ink { background: #2c2c2c; color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink p { color: rgba(255,255,255,.78); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #000000;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { height: 64px; padding: 0 36px; font-size: 17px; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Section header ── */
.s-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.s-head p { font-size: 19px; color: var(--muted); }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--primary-light);
}

/* ── Density modes ── */
body[data-density="compact"] { --section-pad: 64px; }
body[data-density="comfy"] { --section-pad: 128px; }

/* ── Typography modes ── */
body[data-typo="serif"] {
  --font-display: 'Fraunces', 'Times New Roman', serif;
}
body[data-typo="rounded"] {
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Utility ── */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
  :root { --section-pad: 64px; --gutter: 20px; }
  .s-head { margin-bottom: 40px; }
}
