/* ============================================
   PARANOVATOS — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --blue-mid: #DBEAFE;
  --teal: #0D9488;
  --teal-light: #F0FDFA;
  --coral: #F97316;
  --coral-light: #FFF7ED;
  --off-white: #FAFAFA;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --off-white: #0F172A;
  --gray-50: #1E293B;
  --gray-100: #1E293B;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748B;
  --gray-500: #94A3B8;
  --gray-600: #CBD5E1;
  --gray-700: #E2E8F0;
  --gray-800: #F1F5F9;
  --gray-900: #F8FAFC;
  --white: #1E293B;
  --blue-light: #1e3a5f;
  --blue-mid: #1e3a5f;
  --teal-light: #0d2e2b;
  --coral-light: #2d1a0e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { color: var(--gray-600); }

.text-display { font-family: var(--font-display); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .nav {
  background: rgba(15,23,42,0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gray-900);
  white-space: nowrap;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--blue); background: var(--blue-light); }
.nav-link.active { color: var(--blue); background: var(--blue-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-theme {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.btn-theme:hover { background: var(--gray-200); color: var(--gray-900); }

.btn-primary {
  background: var(--coral);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: #ea6c00; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--blue); color: white; }

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
}
.hamburger span {
  width: 18px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover { color: var(--blue); background: var(--blue-light); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 50%, #FFF7ED 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f1f3d 0%, #0a2622 50%, #2d1a0e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-mid);
  color: var(--blue);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--blue); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition);
}

.btn-blue {
  background: var(--blue);
  color: white;
}
.btn-blue:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}
.hero-stat { }
.hero-stat strong { display: block; font-size: 1.5rem; font-family: var(--font-display); color: var(--gray-900); }
.hero-stat span { font-size: 0.8rem; color: var(--gray-500); }

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  height: 400px;
}

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  transition: transform 0.3s ease;
}

.hero-card:hover { transform: translateY(-4px) !important; }

.hero-card-1 {
  width: 260px;
  top: 20px; left: 10px;
  z-index: 3;
}
.hero-card-2 {
  width: 230px;
  top: 120px; right: 0;
  z-index: 2;
  transform: rotate(2deg);
}
.hero-card-3 {
  width: 200px;
  bottom: 20px; left: 40px;
  z-index: 1;
  transform: rotate(-1deg);
}

.hero-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
}
.hero-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.hero-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.hero-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* ---- Section Headers ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; color: var(--gray-500); max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

/* ---- Category Cards ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.category-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-card:hover .category-icon { background: var(--blue); color: white; }

.category-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition);
}
.cat-tech { background: var(--blue-light); color: var(--blue); }
.cat-ai { background: #EDE9FE; color: #7C3AED; }
.cat-prod { background: var(--teal-light); color: var(--teal); }
.cat-security { background: #FEF3C7; color: #D97706; }
.cat-tools { background: var(--coral-light); color: var(--coral); }
.cat-money { background: #ECFDF5; color: #059669; }
.cat-guides { background: #FDF2F8; color: #DB2777; }

.category-card h4 { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); font-family: var(--font-body); }
.category-card span { font-size: 0.75rem; color: var(--gray-500); }

/* ---- Article Cards ---- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.article-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.article-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.article-card-img-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img-inner { transform: scale(1.05); }

.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  color: var(--blue);
}
.tag-ai { background: #EDE9FE; color: #7C3AED; }
.tag-prod { background: var(--teal-light); color: var(--teal); }
.tag-security { background: #FEF3C7; color: #D97706; }
.tag-tools { background: var(--coral-light); color: var(--coral); }
.tag-money { background: #ECFDF5; color: #059669; }
.tag-guides { background: #FDF2F8; color: #DB2777; }

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gray-900);
  line-height: 1.35;
  flex: 1;
}
.article-card p { font-size: 0.875rem; color: var(--gray-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ---- Difficulty Badges (Explícamelo Fácil) ---- */
.article-meta-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-easy { background: #DCFCE7; color: #16A34A; }
.badge-medium { background: #FEF3C7; color: #D97706; }
.badge-hard { background: #FEE2E2; color: #DC2626; }
.badge-time { background: var(--gray-100); color: var(--gray-600); }
.badge-level { background: var(--blue-light); color: var(--blue); }

/* ---- Featured Card (large) ---- */
.featured-article {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: box-shadow var(--transition);
}
.featured-article:hover { box-shadow: var(--shadow-xl); }

.featured-article-visual {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.featured-article-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.featured-article-body h2 { font-size: 1.7rem; }
.featured-article-body p { font-size: 1rem; color: var(--gray-500); }

/* ---- Explícamelo Fácil Section ---- */
.explicame-section {
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin: 3rem 0;
}
[data-theme="dark"] .explicame-section {
  background: linear-gradient(135deg, #1e3a5f, #0d2e2b);
}

.explicame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.explicame-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.explicame-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.explicame-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.explicame-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--gray-900); }
.explicame-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ---- Learning Paths ---- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.path-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.path-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }

.path-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.path-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.path-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--gray-900); }
.path-desc { font-size: 0.875rem; color: var(--gray-500); }

.path-steps { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }

.path-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all var(--transition);
  cursor: pointer;
}
.path-step:hover { background: var(--blue-light); color: var(--blue); }
.path-step:hover .path-step-num { background: var(--blue); color: white; }

.path-step-num {
  width: 24px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.path-step.completed .path-step-num { background: var(--teal); color: white; }

/* ---- Tool Rating ---- */
.tool-rating {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.rating-label { color: var(--gray-500); width: 100px; flex-shrink: 0; }
.rating-bar-wrap { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.rating-bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.rating-bar.green { background: var(--teal); }
.rating-bar.blue { background: var(--blue); }
.rating-bar.coral { background: var(--coral); }
.rating-score { font-weight: 600; color: var(--gray-700); font-size: 0.75rem; width: 24px; text-align: right; }

/* ---- Error Blocks (Principiante) ---- */
.error-block {
  display: flex;
  gap: 1rem;
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
[data-theme="dark"] .error-block { background: #2d1a0e; border-color: #92400e; }
.error-block-icon { font-size: 1.5rem; flex-shrink: 0; }
.error-block h5 { font-family: var(--font-body); font-weight: 700; color: #92400E; font-size: 0.875rem; margin-bottom: 0.25rem; }
.error-block p { font-size: 0.85rem; color: #78350F; }
[data-theme="dark"] .error-block h5, [data-theme="dark"] .error-block p { color: #fbbf24; }

.tip-block {
  display: flex;
  gap: 1rem;
  background: #F0FDFA;
  border: 1.5px solid #99F6E4;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
[data-theme="dark"] .tip-block { background: #0d2e2b; border-color: #0f766e; }
.tip-block-icon { font-size: 1.5rem; flex-shrink: 0; }
.tip-block h5 { font-family: var(--font-body); font-weight: 700; color: #0F766E; font-size: 0.875rem; margin-bottom: 0.25rem; }
.tip-block p { font-size: 0.85rem; color: #134E4A; }
[data-theme="dark"] .tip-block h5, [data-theme="dark"] .tip-block p { color: #5eead4; }

/* ---- Comparison Cards ---- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.compare-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gray-200);
}
.compare-card.winner { border-color: var(--blue); }

.compare-card-head {
  padding: 1.75rem;
  text-align: center;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.compare-card.winner .compare-card-head { background: var(--blue-light); }

.compare-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.compare-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--gray-900); }
.compare-tagline { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

.compare-card-body { padding: 1.5rem; }

.compare-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-700);
}
.compare-row:last-child { border-bottom: none; }
.compare-check { color: var(--teal); flex-shrink: 0; font-size: 1rem; }
.compare-x { color: var(--gray-300); flex-shrink: 0; font-size: 1rem; }

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  margin-top: 3rem;
  flex-shrink: 0;
}
.compare-vs-badge {
  width: 40px; height: 40px;
  background: var(--gray-800);
  color: white;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem;
}

/* ---- Newsletter ---- */
.newsletter-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  color: white;
  text-align: center;
}

.newsletter-section h2 { color: white; margin-bottom: 0.75rem; }
.newsletter-section p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.95);
  color: var(--gray-800);
  outline: none;
}
.newsletter-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.newsletter-btn {
  background: var(--coral);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.newsletter-btn:hover { background: #ea6c00; transform: translateY(-1px); }

.newsletter-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 1rem; }

/* ---- Trust Section ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.trust-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.trust-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--gray-800); margin-bottom: 0.25rem; }
.trust-item p { font-size: 0.825rem; color: var(--gray-500); }

/* ---- Author Section ---- */
.author-section {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.author-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--gray-200);
}

.author-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--gray-800); }
.author-card span { font-size: 0.8rem; color: var(--gray-500); }
.author-card p { font-size: 0.8rem; color: var(--gray-500); }

/* ---- Tool Cards ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.tool-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tool-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tool-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--gray-900); }
.tool-card .tool-type { font-size: 0.75rem; color: var(--gray-500); }

.tool-desc { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1rem; }
.tool-price-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: #DCFCE7;
  color: #16A34A;
  margin-bottom: 0.875rem;
}
.tool-price-badge.freemium { background: #EDE9FE; color: #7C3AED; }
.tool-price-badge.paid { background: #FEE2E2; color: #DC2626; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--gray-400);
  padding: 1rem 0;
}
.breadcrumb a { color: var(--gray-500); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--gray-300); }

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--gray-200);
}
[data-theme="dark"] .page-header { background: linear-gradient(135deg, #1e3a5f, #0d2e2b); }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.page-header p { font-size: 1rem; color: var(--gray-500); max-width: 600px; }

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}
[data-theme="dark"] .footer { background: #020617; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: var(--gray-500); margin-top: 0.75rem; max-width: 280px; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--gray-600); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: var(--gray-600); transition: color var(--transition); }
.footer-legal a:hover { color: white; }

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  color: white;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 700px;
  background: var(--gray-900);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 9999;
  flex-wrap: wrap;
}
[data-theme="dark"] .cookie-banner { background: #0f172a; border: 1px solid var(--gray-700); }
.cookie-banner p { font-size: 0.85rem; color: var(--gray-300); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--blue); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-accept {
  background: var(--blue);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-accept:hover { background: #1d4ed8; }
.cookie-decline {
  background: var(--gray-700);
  color: var(--gray-300);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-decline:hover { background: var(--gray-600); }

/* ---- 404 Page ---- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.notfound-number {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.notfound h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.notfound p { color: var(--gray-500); max-width: 400px; margin: 0 auto 2rem; }

/* ---- Sitemap ---- */
.sitemap-section h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.sitemap-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sitemap-links a {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--gray-600);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}
.sitemap-links a:hover { color: var(--blue); }

/* ---- Legal pages ---- */
.legal-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.2rem; color: var(--gray-900); }
.legal-content p { margin-bottom: 1rem; font-size: 0.95rem; color: var(--gray-600); line-height: 1.8; }
.legal-content ul { margin: 1rem 0 1.5rem 1.5rem; }
.legal-content ul li { list-style: disc; font-size: 0.95rem; color: var(--gray-600); margin-bottom: 0.5rem; line-height: 1.7; }

/* ---- Utility ---- */
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }
.bg-gradient { background: linear-gradient(135deg, var(--blue-light), var(--teal-light)); }
.divider { height: 1px; background: var(--gray-200); margin: 0; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap var(--transition);
}
.read-more:hover { gap: 0.6rem; }

/* ---- Affiliate Notice ---- */
.affiliate-notice {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-size: 0.8rem;
  color: var(--blue);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 2rem; }
  .article-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: 1fr; gap: 1rem; }
  .compare-vs { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-visual { min-height: 200px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-actions .btn-primary { display: none; }
  .paths-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .article-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .comparison-grid { grid-template-columns: 1fr; }
  .newsletter-section { padding: 2rem 1.5rem; }
}


.logo{
  max-width: 150px;
}

html{
  overflow-x: hidden;
}

.footer-brand img{
  filter: brightness(0) invert(1);
}

.article-card-img{
  background-size: cover!important;
}

.article-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-tag{
  width: max-content!important;
}