/* TuCalculadora Legal — base.css (tokens + tipografía + layout) */
:root {
  --ink: #0c1220;
  --ink2: #3c4458;
  --ink3: #6e7689;
  --bg: #f3f5fa;
  --bg2: #e9edf6;
  --surface: rgba(255, 255, 255, .72);
  --line: rgba(12, 18, 32, .08);
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --green: #0f8a4f;
  --gold: #c9963a;
  --red: #c84b2f;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --container: 1140px;
  --shadow: 0 8px 32px rgba(13, 30, 70, .10);
  --shadow-lg: 0 24px 64px rgba(13, 30, 70, .16);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(37, 99, 235, .10), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(201, 150, 58, .08), transparent 60%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.tcl-no-scroll { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
h3 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; }

.tcl-container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.tcl-section { padding: 76px 0; }
@media (max-width: 768px) { .tcl-section { padding: 48px 0; } }

.tcl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 14px;
}
.tcl-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }

.tcl-sub { font-size: 19px; color: var(--ink3); max-width: 640px; }

/* Botones */
.tcl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px; font: 600 16px/1 var(--font-body);
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important;
}
.tcl-btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
.tcl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, .45); color: #fff; }
.tcl-btn-ghost { background: rgba(255,255,255,.65); color: var(--ink); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.tcl-btn-ghost:hover { background: #fff; color: var(--ink); }

/* Reveal */
.tcl-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }
.tcl-reveal.in { opacity: 1; transform: none; }

/* Accesibilidad */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.tcl-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 18px; z-index: 999; }
.tcl-skip:focus { left: 12px; top: 12px; }

/* Breadcrumbs */
.tcl-crumbs { font-size: 14px; color: var(--ink3); padding: 18px 0 0; }
.tcl-crumbs a { color: var(--ink3); }

/* Volver arriba */
.tcl-top {
  position: fixed; right: 18px; bottom: 92px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.8); backdrop-filter: blur(14px); border: 1px solid var(--line);
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s;
  font-size: 18px; z-index: 60;
}
.tcl-top.show { opacity: 1; pointer-events: auto; }
@media (min-width: 901px) { .tcl-top { bottom: 24px; } }
