/* === Centro Radiológico Nataniel Cox === */

:root {
  /* Palette — Clásico médico (default) */
  --c-primary: #1B6FB8;
  --c-primary-deep: #135291;
  --c-primary-soft: #E6F0F9;
  --c-navy: #0E3A5F;
  --c-accent: #0E8F8A;
  --c-accent-soft: #DFF0EF;

  --c-ink: #0F1A26;
  --c-ink-2: #2D3B4C;
  --c-muted: #5B6B7E;
  --c-faint: #8898A8;
  --c-line: #DCE5EE;
  --c-line-2: #EDF2F7;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F4F7FB;
  --c-bg-tint: #EEF4FA;

  --c-whatsapp: #25D366;
  --c-whatsapp-deep: #1FAD52;

  /* Type */
  --ff-sans: "Helvetica Neue", "Helvetica", "Arial", system-ui, sans-serif;
  --ff-serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 58, 95, 0.06), 0 1px 1px rgba(14, 58, 95, 0.04);
  --shadow: 0 4px 16px rgba(14, 58, 95, 0.08), 0 1px 2px rgba(14, 58, 95, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(14, 58, 95, 0.18), 0 4px 12px rgba(14, 58, 95, 0.08);
}

/* Variant: cálido cercano */
[data-theme="warm"] {
  --c-primary: #2A7CC4;
  --c-primary-deep: #1E5F99;
  --c-primary-soft: #EAF2FA;
  --c-navy: #1F3A56;
  --c-accent: #C9783F;
  --c-accent-soft: #F8EAD9;
  --c-bg-soft: #FBF7F2;
  --c-bg-tint: #F4ECDF;
}

/* Variant: moderno limpio */
[data-theme="modern"] {
  --c-primary: #2563EB;
  --c-primary-deep: #1D4FCC;
  --c-primary-soft: #E8EFFE;
  --c-navy: #0A1B33;
  --c-accent: #0E8F8A;
  --c-bg-soft: #F6F8FB;
  --c-line: #E4E9F0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--ff-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

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

/* Type scale */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  font-weight: 500;
}
.h1 {
  font-family: var(--ff-sans);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--ff-sans);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-navy);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-navy);
  margin: 0;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--c-ink-2);
  margin: 0;
  text-wrap: pretty;
}
.lead strong { color: var(--c-navy); font-weight: 700; }
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink-2);
  margin: 0;
}
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
}
.serif-num {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-style: italic;
  font-feature-settings: "lnum";
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.btn > svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg > svg { width: 20px; height: 20px; }
.btn-primary {
  background: var(--c-primary);
  color: white;
  box-shadow: 0 6px 16px rgba(27, 111, 184, 0.28);
}
.btn-primary:hover { background: var(--c-primary-deep); transform: translateY(-1px); }
.btn-whatsapp {
  background: var(--c-whatsapp);
  color: white;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.32);
}
.btn-whatsapp:hover { background: var(--c-whatsapp-deep); transform: translateY(-1px); }
.btn-ghost {
  background: white;
  color: var(--c-navy);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-navy); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 28px; font-size: 17px; border-radius: 999px; }

/* Card */
.card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-soft {
  background: var(--c-bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* Utility */
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; }
.grid { display: grid; }
.divider { height: 1px; background: var(--c-line); width: 100%; }

/* Visually-hidden */
.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;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Mobile */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}
