/* Enciclopedia histórica y comparador de tarjetas gráficas (GPU) - 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: #10b981;
  --accent-primary-hover: #059669;
  --accent-primary-soft: rgba(16, 185, 129, 0.14);
  --accent-secondary: #38bdf8;
  --accent-success: #34d399;
  --accent-success-soft: rgba(52, 211, 153, 0.14);
  --accent-warning: #fbbf24;

  --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: #059669;
  --accent-primary-hover: #047857;
  --accent-primary-soft: rgba(5, 150, 105, 0.1);
  --accent-secondary: #0284c7;
  --accent-success: #059669;
  --accent-success-soft: rgba(5, 150, 105, 0.1);
  --accent-warning: #d97706;

  --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;
}

/* Blindaje defensivo obligatorio de cabecera institucional */
[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 introductorio */
.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% 14%, rgba(16, 185, 129, 0.15), transparent 45%);
  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.45rem, 2.5vw, 1.95rem);
  margin-bottom: 0.55rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 72ch;
}

.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.2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Bandeja comparador */
.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(16, 185, 129, 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 2px;
}

.compare-pill button:hover {
  color: var(--text-main);
}

.compare-tray-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Pestañas */
.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(5, 150, 105, 0.3);
}

[data-theme="dark"] .tab-btn.active {
  color: #022c22;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Paneles y filtros */
.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);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: 2fr repeat(4, 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-input,
.control-select {
  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;
}

.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-input:focus,
.control-select: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: 32px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  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,
.quick-pill.selected-pill {
  background: var(--accent-primary-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Grid GPU */
.gpu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gpu-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;
}

.gpu-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.gpu-card.selected {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.gpu-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;
}

.brand-nvidia { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.brand-amd { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.brand-ati { background: rgba(244, 63, 94, 0.16); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.brand-3dfx { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.brand-intel { background: rgba(59, 130, 246, 0.16); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.brand-retro { background: rgba(139, 92, 246, 0.16); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.35); }

[data-theme="light"] .brand-nvidia { color: #047857; }
[data-theme="light"] .brand-amd { color: #b91c1c; }
[data-theme="light"] .brand-ati { color: #be123c; }
[data-theme="light"] .brand-3dfx { color: #b45309; }
[data-theme="light"] .brand-intel { color: #1d4ed8; }
[data-theme="light"] .brand-retro { color: #6d28d9; }

.year-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  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;
}

.gpu-card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.gpu-card-arch {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.gpu-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.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gpu-milestone-snippet {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.gpu-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* Botones */
.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;
}
[data-theme="dark"] .btn-primary {
  color: #022c22;
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
}

.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-compare.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.gpu-card-actions .btn {
  flex: 1 1 0%;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

/* 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.86rem;
}

.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;
}

.compare-table thead th {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.compare-table td.winner-cell {
  color: var(--accent-success);
  font-weight: 700;
  background: var(--accent-success-soft);
}

/* Gráfica evolución 3D */
.chart-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chart-metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 360px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

#gpu-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  color: var(--text-main);
  z-index: 5;
  max-width: 250px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1rem;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.timeline-body h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.timeline-body p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Calculadoras PSU y Ancho de Banda */
.calc-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.calc-result-box {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
}

.calc-result-main {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0.25rem 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.guide-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.guide-card h4 {
  font-size: 0.96rem;
}

.guide-card p {
  font-size: 0.85rem;
  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: 780px;
  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-close-btn:hover {
  border-color: var(--accent-primary);
}

.modal-hero-gpu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.gpu-svg-box {
  width: 104px;
  height: 76px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.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);
}

/* SEO y FAQ */
.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;
}

@media (max-width: 980px) {
  .filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gpu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .compare-bars-grid,
  .calc-split-grid,
  .guide-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,
  .gpu-grid,
  .compare-selectors-grid,
  .modal-specs-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .hero-sister-cta,
  .search-box input,
  .control-input,
  .control-select,
  .btn {
    width: 100%;
    min-height: 44px;
  }
  .gpu-card-actions {
    flex-direction: column;
  }
}
