/* ============================================================
   RecursoAutonomo.com — Hoja de estilos global
   Diseño premium, responsive, optimizado para AdSense
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

/* ── Reset y variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f2044;
  --navy2:   #1a3260;
  --blue:    #2563eb;
  --blue-l:  #3b82f6;
  --gold:    #d97706;
  --gold-l:  #fbbf24;
  --green:   #059669;
  --white:   #ffffff;
  --light:   #f8fafc;
  --border:  #e2e8f0;
  --text:    #1e293b;
  --muted:   #64748b;
  --radius:  10px;
  --radius-lg: 16px;
  --shadow:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --max-w: 1140px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .3px;
}
.topbar strong { color: var(--gold-l); }

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--blue); }

/* ── Nav ── */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .dropdown { display: block; pointer-events: auto; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 400;
  padding: 8px 0;
  pointer-events: none;
}
.dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  border-radius: 0;
}
.dropdown a:hover { background: var(--light); color: var(--navy); }

/* ── Search ── */
.search-wrapper { margin-left: auto; position: relative; }
.search-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-body);
  transition: border-color .15s;
}
.search-toggle:hover { border-color: var(--blue); color: var(--blue); }
.search-toggle svg { width: 16px; height: 16px; }
.search-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 500;
}
.search-box.open { display: block; }
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.search-input-wrap svg { color: var(--muted); flex-shrink: 0; width: 18px; height: 18px; }
#search-input {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-body);
  flex: 1;
  color: var(--text);
}
#search-results { max-height: 320px; overflow-y: auto; }
.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.search-result-item:hover { background: var(--light); }
.search-result-item:last-child { border-bottom: none; }
.search-result-cat { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.search-result-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.search-empty { padding: 20px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--blue); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1e4080 100%);
  color: var(--white);
  padding: 64px 20px 72px;
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 680px;
}
.hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: rgba(255,255,255,.78);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-block;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #b45309; color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,.3);
  display: inline-block;
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); color: var(--white); text-decoration: none; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat-n { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--gold-l); }
.stat-l { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── Ad slots ── */
.ad-slot {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  overflow: hidden;
}
.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
}
.ad-wrap { max-width: var(--max-w); margin: 20px auto; padding: 0 20px; }

/* ── Layout main ── */
.page-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.page-layout.full-width { grid-template-columns: 1fr; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.section-link { font-size: 14px; font-weight: 600; color: var(--blue); }

/* ── Category filters ── */
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-btn {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Article card grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s, border-color .15s;
}
.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue-l);
}
.article-card.hidden { display: none; }
.card-thumb {
  height: 8px;
  background: var(--navy);
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--white);
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}
.card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.card-meta { display: flex; gap: 14px; font-size: 12px; color: #94a3b8; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-read {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-read:hover { text-decoration: underline; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-box-header {
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}
.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background .1s;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { background: var(--light); color: var(--navy); }
.sidebar-num { font-size: 12px; font-weight: 700; color: var(--gold); min-width: 22px; padding-top: 1px; flex-shrink: 0; }
.sidebar-text { line-height: 1.4; }
.disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.disclaimer p { font-size: 13px; color: #92400e; line-height: 1.6; }

/* Author box */
.author-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.author-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}
.author-card-body { padding: 16px 18px; display: flex; gap: 14px; }
.author-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white);
  flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.author-role { font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.author-bio { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── Calc widget ── */
.calc-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.calc-header { background: var(--navy); color: var(--white); padding: 13px 18px; }
.calc-header h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.calc-header p { font-size: 12px; opacity: .7; margin-top: 2px; }
.calc-body { padding: 18px; }
.calc-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.calc-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  margin-bottom: 12px;
  outline: none;
  transition: border-color .15s;
}
.calc-input:focus { border-color: var(--navy); }
.calc-btn {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s;
}
.calc-btn:hover { background: var(--navy2); }
.calc-result {
  display: none;
  margin-top: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 14px;
}
.calc-result.show { display: block; }
.result-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 4px; }
.result-value { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--navy); }
.result-detail { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.result-note { font-size: 11px; color: #94a3b8; margin-top: 8px; font-style: italic; }

/* ── Calendar ── */
.cal-item { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.cal-item:last-child { border-bottom: none; }
.cal-badge {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 9px;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}
.cal-month { font-size: 10px; font-weight: 700; text-transform: uppercase; opacity: .7; }
.cal-day { font-size: 18px; font-weight: 700; line-height: 1; }
.cal-event { font-size: 13px; font-weight: 600; color: var(--text); }
.cal-model { font-size: 11px; color: var(--blue); font-weight: 600; margin-top: 2px; }

/* ── Article page ── */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--muted); }
.article-cat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); margin-bottom: 10px; }
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.article-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
}
.author-mini-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); flex-shrink: 0;
}
.author-mini-info { font-size: 12px; color: var(--muted); line-height: 1.5; }
.author-mini-info strong { display: block; color: var(--navy); font-size: 13px; }
.article-icon-block {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  margin-bottom: 28px;
  color: var(--white);
}
.article-icon-block .icon { font-size: 56px; margin-bottom: 10px; }
.article-icon-block .cat-tag { font-size: 12px; opacity: .7; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }

/* Article content */
.article-content { font-size: 16px; line-height: 1.9; color: var(--text); }
.article-content p { margin-bottom: 20px; }
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 26px 0 10px;
}
.article-content ul, .article-content ol { margin: 12px 0 20px 26px; }
.article-content li { margin-bottom: 8px; line-height: 1.75; }
.article-content strong { font-weight: 700; color: #0f172a; }
.article-content a { color: var(--blue); text-decoration: underline; }
.article-content a:hover { color: #1d4ed8; }
.article-content blockquote {
  background: #f0f9ff;
  border-left: 5px solid var(--blue);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #1e3a5f;
  font-size: 15px;
  line-height: 1.75;
}
.article-content blockquote cite { display: block; font-size: 12px; font-weight: 700; font-style: normal; margin-top: 8px; color: var(--blue); }
.highlight-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.highlight-box p { margin: 0; font-size: 14px; line-height: 1.7; }
.warning-box {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.warning-box p { margin: 0; font-size: 14px; line-height: 1.7; }
.success-box {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.success-box p { margin: 0; font-size: 14px; line-height: 1.7; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--light); }

/* Related articles */
.related-section { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--navy); }
.related-section h2 { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-decoration: none; display: block; transition: box-shadow .15s, border-color .15s; }
.related-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-l); }
.related-card-cat { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; margin-bottom: 4px; }
.related-card-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14px; font-weight: 600; margin-top: 32px; }
.back-link:hover { text-decoration: underline; }

/* ── Static pages ── */
.static-wrap { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.static-wrap h1 { font-family: var(--font-serif); font-size: 30px; color: var(--navy); margin-bottom: 8px; }
.page-updated { font-size: 13px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.static-wrap h2 { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin: 30px 0 12px; }
.static-wrap p { font-size: 15px; line-height: 1.85; color: var(--text); margin-bottom: 14px; }
.static-wrap ul { margin: 10px 0 16px 22px; }
.static-wrap li { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 6px; }
.static-wrap a { color: var(--blue); }
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  margin: 24px 0;
}
.team-av {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--white); flex-shrink: 0;
}
.team-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.team-role { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.65; }
.contact-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin: 28px 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s;
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--navy2); }
.form-success { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 16px; color: #166534; font-size: 14px; }
.form-success.show { display: block; }

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0f172a;
  color: rgba(255,255,255,.85);
  padding: 16px 20px;
  z-index: 9999;
  border-top: 3px solid var(--navy2);
}
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: 13px; line-height: 1.6; min-width: 200px; }
.cookie-text a { color: #93c5fd; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.ck-accept {
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}
.ck-reject {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── Footer ── */
.site-footer { background: #0f172a; color: #94a3b8; padding: 56px 20px 28px; border-top: 4px solid var(--navy2); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: #93c5fd; }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: #93c5fd; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 8px; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.footer-disclaimer { font-size: 11px; color: #475569; margin-top: 12px; line-height: 1.65; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-wrapper { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 44px 20px 52px; }
  .hero-stats { gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-desc { max-width: 100%; }
  .team-card { flex-direction: column; }
  .cookie-inner { flex-direction: column; }
  .cookie-btns { width: 100%; justify-content: flex-end; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .articles-grid { grid-template-columns: 1fr; }
  .search-box { width: calc(100vw - 40px); right: -20px; }
}
