/* ══════════════════════════════════════════════════════════════
   HerramientasNegocio.com — Design System
   Mobile-first, production-ready
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --blue-600:     #1B4FE4;
  --blue-700:     #1440C7;
  --blue-500:     #3B6EF8;
  --blue-100:     #EEF3FE;
  --blue-50:      #F4F7FF;

  --gray-900:     #0F1523;
  --gray-800:     #1E2840;
  --gray-700:     #374160;
  --gray-600:     #4B5578;
  --gray-500:     #6B7490;
  --gray-400:     #9BA3B8;
  --gray-300:     #C8CEDC;
  --gray-200:     #E4E8F0;
  --gray-100:     #F2F4F8;
  --gray-50:      #F8FAFC;

  --white:        #ffffff;
  --green-500:    #22C55E;
  --green-100:    #DCFCE7;
  --red-500:      #EF4444;
  --red-100:      #FEE2E2;
  --amber-500:    #F59E0B;
  --amber-100:    #FEF3C7;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  --shadow-xs:    0 1px 2px rgba(15,21,35,.06);
  --shadow-sm:    0 2px 8px rgba(15,21,35,.08);
  --shadow:       0 4px 16px rgba(15,21,35,.10);
  --shadow-md:    0 8px 24px rgba(15,21,35,.12);
  --shadow-lg:    0 16px 48px rgba(15,21,35,.14);
  --shadow-blue:  0 8px 24px rgba(27,79,228,.20);

  --transition:   0.22s ease;
  --transition-slow: 0.4s ease;

  --header-h:     64px;
  --container:    1200px;
  --content-max:  780px;
}

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

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

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1200px) { .container { padding: 0 40px; } }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; color: var(--gray-900); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem);    font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--gray-900); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);  font-weight: 700; line-height: 1.4; color: var(--gray-900); }
h4 { font-size: 1rem;  font-weight: 600; color: var(--gray-800); }
p  { color: var(--gray-700); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--gray-900); }
em { font-style: italic; }
small { font-size: 0.8rem; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(27,79,228,.28); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-600); color: var(--white); transform: translateY(-1px); }

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-200); color: var(--gray-900); }

.btn-nav {
  background: var(--blue-600);
  color: var(--white) !important;
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius);
}
.btn-nav:hover { background: var(--blue-700); color: var(--white); }

.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 0.825rem; }

/* ─── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-blue   { background: var(--blue-100);  color: var(--blue-600); }
.badge-green  { background: var(--green-100); color: #15803D; }
.badge-amber  { background: var(--amber-100); color: #B45309; }
.badge-red    { background: var(--red-100);   color: #B91C1C; }
.badge-gray   { background: var(--gray-200);  color: var(--gray-600); }

/* ─── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 500;
  flex-shrink: 0;
}
.site-logo strong { color: var(--blue-600); font-weight: 800; }
.site-logo:hover { color: var(--gray-900); }
.logo-text { display: none; }
@media (min-width: 480px) { .logo-text { display: block; } }

.main-nav { display: none; flex: 1; }
@media (min-width: 1024px) { .main-nav { display: flex; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-highlight {
  color: var(--blue-600);
  font-weight: 600;
}
.nav-highlight:hover { background: var(--blue-100); }

.nav-cta { display: none; margin-left: auto; }
@media (min-width: 1024px) { .nav-cta { display: flex; } }

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  margin-left: auto;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 12px 0;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: block;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.mobile-nav-link:hover { background: var(--blue-50); color: var(--blue-600); }
.mobile-highlight { color: var(--blue-600); font-weight: 600; }
body.nav-open { overflow: hidden; }

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(135deg, var(--blue-600) 0%, #2563EB 50%, #1440C7 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.hero-content { color: var(--white); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: rgba(255,255,255,.7); }
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--blue-600);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover { background: var(--gray-100); color: var(--blue-700); border-color: var(--gray-100); }
.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-white-outline:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

.hero-visual { position: relative; }
.hero-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 320px;
  object-fit: cover;
}
@media (min-width: 900px) { .hero-img { height: 380px; } }

.hero-badge-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badge-float-1 { bottom: -16px; left: -16px; }
.hero-badge-float-2 { top: -16px;    right: -16px; }
.badge-float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.badge-float-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
}
.badge-float-text span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ─── SECTIONS ───────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; }

/* ─── SILOS GRID ──────────────────────────────────────────────── */
.silos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 600px)  { .silos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .silos-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .silos-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

.silo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.silo-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
  color: inherit;
}
.silo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
}
.silo-icon svg { width: 22px; height: 22px; }
.silo-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.silo-card p  { font-size: 0.8rem; color: var(--gray-500); margin: 0; line-height: 1.4; }
.silo-arrow { font-size: 0.8rem; color: var(--blue-600); font-weight: 600; margin-top: auto; }

/* ─── CARDS GRID ──────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gray-300); }
.card-body { padding: 24px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card h3 a { color: var(--gray-900); }
.card h3 a:hover { color: var(--blue-600); }
.card p { font-size: 0.875rem; color: var(--gray-600); margin: 0; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.card-footer a { font-size: 0.875rem; font-weight: 600; color: var(--blue-600); display: flex; align-items: center; gap: 4px; }
.card-footer a:hover { color: var(--blue-700); }

/* ─── TOOL CARD ──────────────────────────────────────────────── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  position: relative;
}
.tool-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-600); }
.tool-card.featured { border-color: var(--blue-600); border-width: 2px; }
.tool-featured-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tool-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tool-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}
.tool-name { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.tool-category { font-size: 0.75rem; color: var(--gray-500); }
.tool-rating { display: flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 600; color: var(--amber-500); }
.tool-desc { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.5; }

.tool-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pros-list, .cons-list { font-size: 0.8rem; }
.pros-list h4 { color: #15803D; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.cons-list h4 { color: #B91C1C; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.pros-list li, .cons-list li { display: flex; align-items: flex-start; gap: 6px; color: var(--gray-700); margin-bottom: 4px; line-height: 1.4; }
.pros-list li::before { content: '✓'; color: var(--green-500); font-weight: 700; flex-shrink: 0; }
.cons-list li::before { content: '✗'; color: var(--red-500); font-weight: 700; flex-shrink: 0; }

.tool-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}
.price-from { font-size: 0.75rem; color: var(--gray-500); }
.price-amount { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.price-period { font-size: 0.75rem; color: var(--gray-500); }
.price-free { font-size: 0.8rem; font-weight: 600; color: var(--green-500); }

.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-actions .btn { flex: 1; justify-content: center; }

/* ─── COMPARISON TABLE ────────────────────────────────────────── */
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
  min-width: 600px;
}
.comparison-table th {
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.comparison-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--gray-50); }
.comparison-table tr.row-hover td { background: var(--blue-50); }
.comparison-table td:first-child { font-weight: 600; color: var(--gray-900); }
.comparison-table .check { color: var(--green-500); font-size: 1rem; }
.comparison-table .cross { color: var(--red-500); font-size: 1rem; }
.comparison-table .partial { color: var(--amber-500); font-size: 1rem; }
.td-tool { display: flex; align-items: center; gap: 10px; }
.td-tool-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}
@media (min-width: 1100px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
    gap: 56px;
  }
}

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.sidebar-widget-header {
  padding: 14px 20px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget-body { padding: 16px 20px; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.sidebar-link:hover { background: var(--blue-50); color: var(--blue-600); }
.sidebar-link::before { content: '→'; font-size: 0.75rem; color: var(--blue-600); }

.sidebar-cta-widget {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
  text-align: center;
}
.sidebar-cta-widget h4 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.sidebar-cta-widget p  { color: rgba(255,255,255,.8); font-size: 0.85rem; margin-bottom: 16px; }

/* ─── ARTICLE CONTENT ────────────────────────────────────────── */
.article-header {
  padding: 48px 0 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb span { color: var(--gray-400); }
.breadcrumb .current { color: var(--gray-700); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8rem;
  color: var(--gray-500);
}
.article-meta-item { display: flex; align-items: center; gap: 5px; }

.article-body {
  max-width: var(--content-max);
}
.article-body h2 { margin-top: 48px; margin-bottom: 16px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.article-body h3 { margin-top: 32px; margin-bottom: 12px; }
.article-body p  { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: 6px; color: var(--gray-700); }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }

.article-intro {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.75;
  border-left: 4px solid var(--blue-600);
  padding-left: 20px;
  margin: 24px 0 32px;
}

.article-toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.article-toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 12px; }
.toc-list { display: flex; flex-direction: column; gap: 4px; }
.toc-list a { font-size: 0.875rem; color: var(--gray-700); }
.toc-list a:hover { color: var(--blue-600); }
.toc-list li { counter-increment: toc-counter; display: flex; gap: 8px; align-items: baseline; }
.toc-list li::before { content: counter(toc-counter, decimal-leading-zero); font-size: 0.7rem; color: var(--gray-400); flex-shrink: 0; }
.toc-list { counter-reset: toc-counter; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-section { margin-top: 64px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.faq-open { border-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: background var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question:hover { background: var(--gray-50); }
.faq-item.faq-open .faq-question { background: var(--blue-50); color: var(--blue-600); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gray-400);
}
.faq-item.faq-open .faq-chevron { transform: rotate(180deg); color: var(--blue-600); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.faq-item.faq-open .faq-answer { display: block; }

/* ─── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-600) 0%, #2563EB 100%);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
  margin: 64px 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 520px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── VERDICT BOX ────────────────────────────────────────────── */
.verdict-box {
  background: var(--blue-50);
  border: 2px solid var(--blue-600);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}
.verdict-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  font-weight: 700;
  margin-bottom: 8px;
}
.verdict-box p { color: var(--gray-800); font-size: 0.95rem; margin: 0; }

/* ─── HIGHLIGHT BOX ──────────────────────────────────────────── */
.highlight-box {
  border-left: 4px solid var(--blue-600);
  background: var(--blue-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--gray-800);
}
.highlight-green  { border-color: var(--green-500);  background: var(--green-100); }
.highlight-amber  { border-color: var(--amber-500);  background: var(--amber-100); }
.highlight-red    { border-color: var(--red-500);    background: var(--red-100); }

/* ─── STATS BANNER ───────────────────────────────────────────── */
.stats-banner {
  background: var(--gray-900);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-logo:hover { color: var(--white); }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; margin-bottom: 12px; color: var(--gray-400); }
.footer-disclaimer { font-size: 0.75rem; color: var(--gray-500); line-height: 1.5; }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-300);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--gray-500); }
.footer-bottom-links a:hover { color: var(--gray-300); }

/* ─── 404 PAGE ───────────────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.error-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gray-200);
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}
.error-page h1 { margin-bottom: 12px; }
.error-page p  { color: var(--gray-600); max-width: 480px; margin: 0 auto 28px; }

/* ─── PLANNING DASHBOARD ─────────────────────────────────────── */
.planning-header {
  background: var(--gray-900);
  color: var(--white);
  padding: 40px 0;
  margin-bottom: 40px;
}
.planning-header h1 { color: var(--white); }
.progress-bar-wrap {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}
.planning-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.planning-stat-box {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 12px 20px;
  text-align: center;
}
.planning-stat-box .num { font-size: 2rem; font-weight: 800; color: var(--white); }
.planning-stat-box .label { font-size: 0.75rem; color: var(--gray-400); }

.planning-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.planning-table th {
  background: var(--gray-100);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
}
.planning-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.planning-table tr.published td { background: #F0FFF4; }
.planning-table tr.future td    { background: var(--white); }
.planning-table tr.today td     { background: var(--blue-50); font-weight: 600; }
.status-published { color: var(--green-500); font-weight: 700; font-size: 0.75rem; }
.status-future    { color: var(--gray-400);  font-size: 0.75rem; }
.week-badge {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.week-badge.current { background: var(--blue-600); color: var(--white); }

/* ─── LOGIN FORM ─────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.login-card p  { color: var(--gray-600); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(27,79,228,.1); }
.form-error { font-size: 0.8rem; color: var(--red-500); margin-top: 6px; }

/* ─── HOMEPAGE SPECIFIC ──────────────────────────────────────── */
.homepage-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .homepage-featured { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .homepage-featured { grid-template-columns: repeat(3, 1fr); } }

.featured-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.featured-item:hover { box-shadow: var(--shadow); border-color: var(--blue-600); transform: translateY(-2px); }
.featured-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
  font-size: 1.3rem;
}
.featured-content h3 { font-size: 0.9rem; margin-bottom: 4px; }
.featured-content h3 a { color: var(--gray-900); }
.featured-content h3 a:hover { color: var(--blue-600); }
.featured-content p { font-size: 0.8rem; color: var(--gray-500); margin: 0; }

/* ─── ALTERNATIVAS HUB ───────────────────────────────────────── */
.alt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px)  { .alt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .alt-grid { grid-template-columns: repeat(4, 1fr); } }

.alt-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all var(--transition);
}
.alt-card:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-600); }
.alt-icon { font-size: 1.1rem; }

/* ─── REVEAL ON SCROLL ───────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── UTILITY ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-blue   { color: var(--blue-600); }
.text-gray   { color: var(--gray-500); }
.text-green  { color: var(--green-500); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }

.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 48px 0;
}

/* ─── SKIP LINK (accessibilité) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-600);
  color: var(--white);
  padding: 8px 16px;
  z-index: 2000;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── RESPONSIVE TABLES ──────────────────────────────────────── */
@media (max-width: 599px) {
  .comparison-table { font-size: 0.8rem; min-width: 480px; }
  .tool-pros-cons   { grid-template-columns: 1fr; }
  .hero-actions     { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-section      { padding: 40px 24px; }
  .cta-actions      { flex-direction: column; align-items: center; }
}