/* Enciclopedia de tecnologías de radio y laboratorio de modulación - Fijate Tools */
:root,
[data-theme="dark"] {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-body: #0b0f17;
  --bg-surface: #111827;
  --bg-card: #161f30;
  --bg-card-subtle: #1e293b;
  --bg-input: #0f172a;
  --border-color: #2a3950;
  --border-subtle: #1e293b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #38bdf8;
  --accent-primary-hover: #0ea5e9;
  --accent-primary-soft: rgba(56, 189, 248, 0.14);
  --accent-secondary: #818cf8;
  --accent-success: #34d399;
  --accent-success-soft: rgba(52, 211, 153, 0.14);
  --accent-warning: #fbbf24;
  --accent-danger: #f87171;

  --scope-bg: #080d16;
  --scope-grid: rgba(56, 189, 248, 0.12);
  --scope-text: #cbd5e1;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-body: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-input: #ffffff;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-primary-soft: rgba(2, 132, 199, 0.1);
  --accent-secondary: #4f46e5;
  --accent-success: #059669;
  --accent-success-soft: rgba(5, 150, 105, 0.1);
  --accent-warning: #d97706;
  --accent-danger: #dc2626;

  --scope-bg: #0f172a;
  --scope-grid: rgba(56, 189, 248, 0.16);
  --scope-text: #e2e8f0;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
  color-scheme: light;
}

[data-theme="dark"] .app-header { background: #131b2e !important; border-bottom: 1px solid #1e293b !important; }
[data-theme="dark"] .brand-title { color: #f8fafc !important; }
[data-theme="light"] .app-header { background: #ffffff !important; border-bottom: 1px solid #cbd5e1 !important; }
[data-theme="light"] .brand-title { color: #0f172a !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, h5, h6, .brand-title, .section-title, .hero-title, .faq-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}
.text-mono, .mono, code { font-family: var(--font-mono); }

.main-wrapper.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
}
.tool-with-sidebar { display: flex; gap: 2rem; align-items: flex-start; width: 100%; }
.tool-main-content { flex: 1 1 0%; min-width: 0; width: 100%; }

.hero-intro-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-intro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 12%, rgba(56, 189, 248, 0.14), transparent 46%);
  pointer-events: none;
}
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.hero-title { font-size: clamp(1.42rem, 2.4vw, 1.92rem); margin-bottom: 0.55rem; }
.hero-subtitle { color: var(--text-muted); font-size: 0.95rem; max-width: 74ch; }
.hero-sister-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.05rem;
  min-height: 42px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
  white-space: nowrap;
}
.hero-sister-cta:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
  transform: translateY(-1px);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
  position: relative;
  z-index: 1;
}
.hero-stat-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-val { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: var(--accent-primary); }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); }

.compare-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.compare-tray[hidden] { display: none; }
.compare-tray-items { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.compare-tray-label { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); margin-right: 0.25rem; }
.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-primary-soft);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
}
.compare-pill button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
  min-width: 24px;
  min-height: 24px;
}
.compare-tray-actions { display: flex; align-items: center; gap: 0.55rem; }

.tabs-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.45rem;
  border-radius: 14px;
}
.tab-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tab-btn:hover { color: var(--text-main); background: var(--bg-card-subtle); }
.tab-btn.active { background: var(--accent-primary); color: #ffffff; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3); }
[data-theme="dark"] .tab-btn.active { color: #082f49; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.35rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
}

/* Simulador de modulación */
.sim-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.sim-audio-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.sim-mode-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.sim-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.sim-slider-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.sim-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}
.sim-slider-head label { font-weight: 600; color: var(--text-muted); }
.sim-slider-head span { color: var(--accent-primary); font-weight: 700; }
.sim-slider-box input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
  height: 24px;
}

.oscilloscope-wrap {
  background: var(--scope-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.oscilloscope-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.sim-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.sim-explain-box {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sim-explain-box strong { color: var(--text-main); }

/* Filtros y tarjetas de catálogo */
.filter-toolbar { display: grid; grid-template-columns: 2fr repeat(2, minmax(0, 1fr)); gap: 0.75rem; align-items: end; }
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.filter-field label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.search-box { position: relative; display: flex; align-items: center; width: 100%; }
.search-box svg { position: absolute; left: 0.85rem; color: var(--text-dim); pointer-events: none; }
.search-box input, .control-select, .control-input {
  width: 100%; max-width: 100%; min-width: 0; min-height: 42px; border-radius: 10px;
  border: 1px solid var(--border-color); background-color: var(--bg-input); color: var(--text-main);
  font-family: var(--font-main); font-size: 0.88rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input { padding: 0.55rem 0.85rem 0.55rem 2.4rem; }
.control-input { padding: 0.55rem 0.85rem; font-family: var(--font-mono); }
.control-select {
  padding: 0.55rem 40px 0.55rem 0.85rem; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
}
.control-select option { background-color: var(--bg-card); color: var(--text-main); }
.search-box input:focus, .control-select:focus, .control-input:focus {
  outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-primary-soft);
}

.results-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}
.results-count { font-size: 0.86rem; color: var(--text-muted); }
.results-count strong { color: var(--text-main); font-family: var(--font-mono); }
.brand-quick-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.quick-pill {
  min-height: 36px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.quick-pill:hover { border-color: var(--accent-primary); color: var(--text-main); }
.quick-pill.active { background: var(--accent-primary-soft); border-color: var(--accent-primary); color: var(--accent-primary); }

.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.35rem; }
.hw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hw-card:hover { transform: translateY(-2px); border-color: var(--accent-primary); box-shadow: var(--shadow-md); }
.hw-card.selected { border-color: var(--accent-success); box-shadow: 0 0 0 2px var(--accent-success-soft); }
.hw-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

.brand-tag { display: inline-flex; align-items: center; padding: 0.22rem 0.6rem; border-radius: 6px; font-size: 0.73rem; font-weight: 700; }
.fam-am { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.fam-fm { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.fam-dig { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.fam-sat { background: rgba(129, 140, 248, 0.18); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.38); }
.fam-sdr { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

[data-theme="light"] .fam-am { color: #b45309; }
[data-theme="light"] .fam-fm { color: #0369a1; }
[data-theme="light"] .fam-dig { color: #047857; }
[data-theme="light"] .fam-sat { color: #4338ca; }
[data-theme="light"] .fam-sdr { color: #7e22ce; }

.year-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}
.hw-card-title { font-size: 1.03rem; font-weight: 700; color: var(--text-main); }
.hw-card-arch { font-size: 0.79rem; color: var(--text-muted); margin-top: 0.15rem; }
.hw-specs-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  border-radius: 10px;
  padding: 0.65rem;
}
.mini-spec { display: flex; flex-direction: column; min-width: 0; }
.mini-spec-lbl { font-size: 0.7rem; color: var(--text-dim); }
.mini-spec-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-milestone-snippet {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.hw-card-actions { display: flex; gap: 0.5rem; margin-top: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}
.btn-primary { background: var(--accent-primary); color: #ffffff; }
.btn-primary:hover { background: var(--accent-primary-hover); }
[data-theme="dark"] .btn-primary { color: #082f49; }
.btn-outline { background: var(--bg-card-subtle); border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-outline.active, .btn-compare.active {
  background: var(--accent-success-soft);
  border-color: var(--accent-success);
  color: var(--accent-success);
}
.hw-card-actions .btn { flex: 1 1 0%; }

/* Comparador */
.presets-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.1rem; }
.compare-selectors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1.25rem; }
.compare-bars-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.35rem; }
.bar-chart-card { background: var(--bg-card-subtle); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1rem; }
.bar-chart-card h4 { font-size: 0.9rem; margin-bottom: 0.75rem; }
.bar-row { margin-bottom: 0.65rem; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row-head { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 0.25rem; gap: 0.5rem; }
.bar-row-name { color: var(--text-main); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row-val { font-family: var(--font-mono); color: var(--accent-primary); font-weight: 700; white-space: nowrap; }
.bar-track { height: 10px; background: var(--bg-input); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); transition: width 0.35s ease; }

.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.compare-table th, .compare-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: middle; }
.compare-table th { background: var(--bg-card-subtle); color: var(--text-muted); font-weight: 600; min-width: 145px; }
.compare-table thead th { color: var(--text-main); font-family: var(--font-heading); font-size: 0.93rem; }
.compare-table td.winner-cell { color: var(--accent-success); font-weight: 700; background: var(--accent-success-soft); }

/* Calculadora de antena y guía */
.calc-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.35rem; }
.calc-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.calc-result-box { background: var(--bg-card-subtle); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem; margin-top: 0.85rem; }
.calc-kpi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 0.65rem; }
.calc-kpi { background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 0.65rem 0.8rem; }
.calc-kpi span { display: block; font-size: 0.73rem; color: var(--text-dim); }
.calc-kpi strong { font-family: var(--font-mono); font-size: 1rem; color: var(--accent-primary); }
.calc-note { font-size: 0.85rem; color: var(--text-muted); }

.diagram-wrap { background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1rem; overflow-x: auto; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.guide-card { background: var(--bg-card-subtle); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 0.95rem 1.05rem; }
.guide-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.guide-card h4 { font-size: 0.94rem; }
.guide-card p { font-size: 0.84rem; color: var(--text-muted); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}
.modal-overlay.open { display: flex; }
.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-hero-die { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; margin-bottom: 1.1rem; padding-right: 2.5rem; }
.modal-specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 1rem 0; }
.modal-spec-box { background: var(--bg-card-subtle); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 0.65rem 0.85rem; }
.modal-spec-box span { display: block; font-size: 0.74rem; color: var(--text-dim); }
.modal-spec-box strong { font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-main); }
.modal-lists-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-top: 0.85rem; }
.modal-list-card { background: var(--bg-card-subtle); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 0.9rem; }
.modal-list-card h4 { font-size: 0.88rem; margin-bottom: 0.45rem; }
.modal-list-card ul { padding-left: 1.1rem; font-size: 0.84rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.35rem; }

/* FAQs */
.seo-faq-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.faq-section-title { font-size: 1.25rem; margin-bottom: 1rem; }
.seo-faq-list { display: flex; flex-direction: column; gap: 0.65rem; }
.seo-faq-item { background: var(--bg-card-subtle); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 0.85rem 1rem; }
.seo-faq-item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.seo-faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.15rem; color: var(--accent-primary); }
.seo-faq-item[open] summary::after { content: '−'; }
.faq-answer { margin-top: 0.65rem; color: var(--text-muted); font-size: 0.9rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); background: var(--bg-card); border: 1px dashed var(--border-color); border-radius: 14px; grid-column: 1 / -1; }

@media (max-width: 980px) {
  .filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim-controls-grid, .sim-telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-bars-grid, .guide-grid, .calc-split-grid, .modal-lists-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-wrapper.tool-layout { padding: 0 0.75rem; }
  .hero-intro-card { padding: 1.2rem; }
  .hero-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-toolbar, .item-grid, .compare-selectors-grid, .modal-specs-grid, .calc-two-col, .calc-kpi-row, .sim-controls-grid, .sim-telemetry-grid {
    grid-template-columns: 1fr;
  }
  .hero-sister-cta, .search-box input, .control-select, .control-input, .btn { width: 100%; min-height: 44px; }
  .hw-card-actions { flex-direction: column; }
  .sim-audio-actions { width: 100%; }
}
