/* ════════════════════════════════════════
   CRITERIO CLÍNICO — Global Stylesheet
   Sistema de diseño inamovible
════════════════════════════════════════ */

/* Google Fonts — se cargan desde cada página */

/* ════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════ */
:root {
  --ink:        #1E3A5F;
  --ink-soft:   #3B5675;
  --ink-muted:  #64748B;
  --cyan:       #38BDF8;
  --cyan-deep:  #0EA5E9;
  --coral:      #FF6B6B;
  --coral-deep: #F04F4F;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --line:       #E2E8F0;
  --line-soft:  #EEF2F8;
  --shadow-sm:  0 1px 3px rgba(30,58,95,0.06);
  --shadow-md:  0 4px 16px rgba(30,58,95,0.09);
  --shadow-lg:  0 18px 44px -12px rgba(30,58,95,0.18);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

::selection { background: var(--cyan); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section + .section,
.section + footer { border-top: 1px solid var(--line); }

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,252,0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink);
  position: relative;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--cyan);
  border-radius: 2px;
}
.brand-mark::before { width: 14px; height: 2.5px; transform: translate(-50%, -50%); }
.brand-mark::after  { width: 2.5px; height: 14px; transform: translate(-50%, -50%); }

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: -1px;
}

.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .18s ease, background .18s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); background: var(--line-soft); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: none;
  padding: 9px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s ease, transform .15s ease;
}
.nav-cta:hover { background: #16294a; transform: translateY(-1px); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
}

/* ════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════ */
.kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.section-head p { font-size: 0.95rem; color: var(--ink-muted); max-width: 540px; line-height: 1.7; }

/* ════════════════════════════════════════
   REVEAL ON SCROLL
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .05s; }
.reveal.d2 { transition-delay: .13s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .29s; }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, color .25s ease;
  z-index: 0;
}
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(30,58,95,0.5);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: #16294a;
  transform: translateX(-101%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(30,58,95,0.55); }

.btn-secondary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(56,189,248,0.55);
}
.btn-secondary:hover { background: #7cd2fa; transform: translateY(-2px); }

/* ════════════════════════════════════════
   UTILITIES
════════════════════════════════════════ */
.link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .18s ease, gap .18s ease;
}
.link:hover { color: var(--cyan); gap: 10px; }

.dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   CATEGORY CARDS
════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--cyan); }

.cat-icon {
  width: 44px; height: 44px;
  background: rgba(56,189,248,0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 18px;
  transition: background .2s ease;
}
.cat-card:hover .cat-icon { background: rgba(56,189,248,0.16); }

.cat-card h3 { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.cat-card p  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; flex: 1; }

.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.03em;
}
.cat-arrow { display: inline-block; transition: transform .2s ease; }
.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* ════════════════════════════════════════
   ARTICLE CARDS
════════════════════════════════════════ */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.art-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.art-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.art-img { position: relative; height: 180px; overflow: hidden; }
.art-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ink) 0%, #294d7a 100%);
}

.art-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(30,58,95,0.7);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.art-badge.cyan  { background: rgba(56,189,248,0.85); color: var(--ink); }
.art-badge.coral { background: rgba(255,107,107,0.85); color: var(--white); }
.art-badge.gold  { background: rgba(251,191,36,0.85);  color: var(--ink); }

.art-img-label {
  position: absolute;
  bottom: 10px; left: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

.art-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.art-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.art-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  transition: color .18s ease;
}
.art-card:hover h3 { color: var(--cyan-deep); }

.art-excerpt { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.7; flex: 1; margin-bottom: 18px; }

.art-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1.5px solid var(--cyan);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color .18s ease, gap .18s ease;
}
.art-cta:hover { color: var(--cyan-deep); gap: 8px; }

/* ════════════════════════════════════════
   NEWSLETTER
════════════════════════════════════════ */
.news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 56px 60px;
}

.news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 18px;
}

.pip { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

.news-text h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 14px; }
.news-text h2 em { font-style: italic; color: var(--cyan-deep); font-family: 'Fraunces', serif; }
.news-sub { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.7; }

.news-form label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.news-input-row { display: flex; gap: 10px; }

.news-input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color .18s ease;
}
.news-input:focus { border-color: var(--cyan); }
.news-input::placeholder { color: #94A3B8; }

.news-submit {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .28s ease;
  z-index: 0;
}
.news-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}
.news-submit:hover::before { transform: translateX(0); }
.news-submit:hover { color: var(--ink); }

.news-fine { margin-top: 12px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: #94A3B8; line-height: 1.55; }
.news-fine strong { font-weight: 600; color: var(--ink-muted); }

.news-success {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-deep);
}
.news-success.show { display: flex; }

/* ════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════ */
.breadcrumb {
  padding: 18px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color .18s; }
.breadcrumb a:hover { color: var(--cyan-deep); }
.breadcrumb .sep { color: var(--line); font-size: 16px; }
.breadcrumb .current { color: var(--ink-soft); font-weight: 500; }

/* ════════════════════════════════════════
   ARTICLE READING LAYOUT
════════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: flex-start;
}

.article-hero {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.article-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 20px;
  text-decoration: none;
  transition: color .18s;
}
.article-hero-cat:hover { color: var(--cyan); }

.article-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 20px; max-width: 860px; }

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
}

.article-hero-meta .author { font-weight: 600; color: var(--ink-soft); }

.article-prose { font-size: 1.0625rem; line-height: 1.82; color: var(--ink); }
.article-prose h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  margin: 2.8rem 0 1rem;
  letter-spacing: -0.02em;
}
.article-prose h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin: 2.2rem 0 0.75rem;
}
.article-prose p { margin-bottom: 1.3rem; }
.article-prose ul,
.article-prose ol { margin: 1rem 0 1.3rem 1.6rem; }
.article-prose li { margin-bottom: 0.5rem; line-height: 1.72; }
.article-prose strong { color: var(--ink); font-weight: 600; }
.article-prose em { font-style: italic; color: var(--ink-soft); }
.article-prose a { color: var(--cyan-deep); border-bottom: 1px solid rgba(14,165,233,.3); transition: border-color .18s; }
.article-prose a:hover { border-bottom-color: var(--cyan-deep); }

/* Key points highlight box */
.key-points {
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.22);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 22px 26px;
  margin: 0 0 2.5rem;
}
.key-points-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 14px;
}
.key-points ul { list-style: none; padding: 0; margin: 0; }
.key-points li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  padding: 5px 0 5px 22px;
  position: relative;
}
.key-points li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--cyan-deep);
  font-weight: 700;
  font-size: 0.8rem;
  top: 6px;
}

/* Evidence callout */
.evidence-box {
  background: var(--line-soft);
  border-left: 3px solid var(--cyan);
  padding: 16px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.evidence-box .source {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--cyan-deep);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}
.data-table th {
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.5;
}
.data-table tr:hover td { background: var(--line-soft); }

/* References */
.references {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.references-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.references ol { padding-left: 1.5rem; }
.references li {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* Article medical disclaimer */
.art-disclaimer {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255,107,107,0.05);
  border: 1px solid rgba(255,107,107,0.16);
  border-radius: var(--r-md);
  margin-top: 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}
.art-disclaimer-icon {
  color: var(--coral);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,107,107,0.1);
  display: grid;
  place-items: center;
}

/* Sidebar */
.sidebar { position: sticky; top: 88px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  margin-bottom: 18px;
}
.sidebar-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.related-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.related-list li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
  transition: color .18s;
  display: block;
}
.related-list li a:hover { color: var(--cyan-deep); }
.related-list li .rel-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 3px;
  display: block;
}

/* ════════════════════════════════════════
   PAGE HEADER (interior pages)
════════════════════════════════════════ */
.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.page-header .kicker { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; max-width: 780px; }
.page-header p { font-size: 1.05rem; color: var(--ink-muted); line-height: 1.75; max-width: 620px; }

/* Category hero badge */
.cat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.cat-hero-badge-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
}

/* ════════════════════════════════════════
   FILTER TABS
════════════════════════════════════════ */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.filter-btn:hover { border-color: var(--cyan); color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ════════════════════════════════════════
   LEGAL / DOCUMENT PAGES
════════════════════════════════════════ */
.doc-layout {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.doc-layout h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.doc-meta { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink-muted); margin-bottom: 48px; }
.doc-layout h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }
.doc-layout h3 { font-size: 1.05rem; margin: 1.8rem 0 0.6rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.doc-layout p { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.78; margin-bottom: 1.1rem; }
.doc-layout ul, .doc-layout ol { margin: 0.75rem 0 1.1rem 1.5rem; }
.doc-layout li { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.72; margin-bottom: 0.4rem; }
.doc-layout a { color: var(--cyan-deep); border-bottom: 1px solid rgba(14,165,233,.3); }
.doc-layout strong { color: var(--ink); font-weight: 600; }

/* ════════════════════════════════════════
   CONTACT FORM
════════════════════════════════════════ */
.contact-form { max-width: 620px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .18s ease;
  appearance: none;
}
.form-control:focus { border-color: var(--cyan); }
.form-control::placeholder { color: #94A3B8; }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer { background: var(--ink); border-top: none !important; }

.footer-top { padding: 64px 0 48px; }

.disclaimer {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  margin-bottom: 52px;
}
.disclaimer-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,107,107,0.18);
  color: var(--coral);
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.disclaimer-body { font-family: 'DM Sans', sans-serif; font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.65; }
.disclaimer-body strong { color: rgba(255,255,255,0.75); font-weight: 600; margin-right: 4px; }
.disclaimer-body em { font-style: italic; color: rgba(255,255,255,0.65); }

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand .brand-name { color: var(--white); }
.foot-brand .brand-name small { color: rgba(255,255,255,0.4); }
.foot-brand p { font-family: 'DM Sans', sans-serif; font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 20px; }

.socials { display: flex; gap: 10px; }
.social {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.social:hover { background: rgba(56,189,248,0.15); color: var(--cyan); border-color: rgba(56,189,248,0.3); }

.foot-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-family: 'DM Sans', sans-serif; font-size: 13.5px; color: rgba(255,255,255,0.55); transition: color .18s ease; }
.foot-col a:hover { color: var(--cyan); }

.foot-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}
.foot-bottom .author { color: rgba(255,255,255,0.45); }

.legal-note { padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.legal-note p {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #64748B;
  line-height: 1.65;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cat-grid       { grid-template-columns: repeat(2, 1fr); }
  .foot-grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
  .news           { grid-template-columns: 1fr; gap: 40px; padding: 48px 40px; }
  .art-grid       { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar        { position: static; margin-top: 48px; }
}

@media (max-width: 768px) {
  .section        { padding: 60px 0; }
  .cat-grid       { grid-template-columns: 1fr; }
  .art-grid       { grid-template-columns: 1fr; }
  .news           { padding: 36px 24px; }
  .news-input-row { flex-direction: column; }
  .news-submit    { width: 100%; justify-content: center; }
  .foot-grid      { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom    { flex-direction: column; gap: 8px; text-align: center; }
  .page-header    { padding: 48px 0 40px; }
  .doc-layout     { padding: 48px 24px 72px; }
}
