/* thinkn.health — site shared styles (nav, footer, buttons, section primitives)
   Tokens per ThinknHealth - Documento de marca v1.md §6 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --navy:    #0E1C2F;
  --navy2:   #1A2B45;
  --green:   #3DAE2B;
  --green-d: #2E9420;
  --teal:    #007A5E;
  --purple:  #6C2D8D;
  --red:     #E01E40;
  --yellow:  #F4C400;
  --orange:  #E55B1D;
  --bg-alt:  #F7F8FA;
  --line:    #E4E9EE;
  --line-soft: #EDF0F3;
  --ink:     #0E1C2F;
  --ink-soft:#43505E;
  --muted:   #7F8E9C;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--teal); }
a:hover { color: #00654E; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; display: inline-block; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); }
h2.sec-title {
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
  font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 20px; text-wrap: balance;
}
.lead { font-size: 18px; line-height: 1.62; color: var(--ink-soft); max-width: 660px; text-wrap: pretty; }
.lead + .lead { margin-top: 16px; }

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s;
}
.btn svg, .btn i { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(61,174,43,0.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-ghost-inverse { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost-inverse:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ─── nav ─── */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.topbar .brand img { height: 26px; display: block; }
.topbar-links { display: flex; gap: 6px; align-items: center; }
.topbar-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.topbar-links a:hover { color: var(--ink); background: var(--bg-alt); }
.topbar-links a.active { color: var(--ink); }
.topbar .btn { padding: 10px 20px; font-size: 14px; border-radius: 999px; }
@media (max-width: 860px){ .topbar-links { display: none; } }

.rainbow { display: flex; height: 6px; width: 132px; border-radius: 4px; overflow: hidden; }
.rainbow > i { flex: 1; }

/* ─── CTA banner ─── */
.cta-banner { background: var(--navy); text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(0,122,94,0.30) 0%, transparent 65%); }
.cta-banner::after { content: ''; position: absolute; bottom: -100px; left: -60px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(108,45,141,0.25) 0%, transparent 65%); }
.cta-banner .wrap { position: relative; z-index: 1; }
.cta-banner .rainbow { margin: 0 auto 32px; }
.cta-banner h2 { font-weight: 800; letter-spacing: -0.025em; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; color: #fff; margin-bottom: 20px; text-wrap: balance; }
.cta-banner p { font-size: 19px; color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto 38px; }
.cta-banner .btn-primary { border-radius: 999px; padding: 16px 34px; font-size: 16px; }

/* ─── footer ─── */
footer { background: #07101C; padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-logo img { height: 26px; display: block; margin-bottom: 16px; }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,0.42); line-height: 1.7; max-width: 250px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: rgba(255,255,255,0.95); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-legal { font-size: 12.5px; color: rgba(255,255,255,0.28); }
.footer-rainbow { height: 4px; width: 160px; border-radius: 999px; background: linear-gradient(90deg, #3DAE2B, #007A5E, #6C2D8D, #E01E40, #F4C400, #E55B1D); }
@media (max-width: 860px){ .footer-top { grid-template-columns: 1fr 1fr; } }

/* ─── reveal ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 640px){
  .wrap { padding: 0 22px; }
  section { padding: 76px 0; }
}
