:root {
  /* Light Theme (Flat 2D SaaS Palette) */
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #6ee7b7;
  --success-text: #065f46;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --danger: #dc2626;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  --border: #cbd5e1;
  --border-dark: #94a3b8;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
  --max-width: 1160px;
  --content-width: 860px;
  --font-base: 1.125rem; /* 18px Base para adultos mayores */
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --primary: #f8fafc;
  --primary-hover: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: #1e293b;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --success: #10b981;
  --success-bg: #064e3b;
  --success-border: #059669;
  --success-text: #a7f3d0;
  --warning: #fbbf24;
  --warning-bg: #451a03;
  --warning-border: #b45309;
  --danger: #ef4444;
  --bg: #0b1120;
  --surface: #131d31;
  --surface-alt: #1e293b;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border: #2d3b55;
  --border-dark: #475569;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
}

/* Font Size Scaling for Seniors / Accessibility */
body.font-large { --font-base: 1.25rem; }
body.font-xlarge { --font-base: 1.375rem; }

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  font-size: var(--font-base);
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Live Pulsing Dot & Dynamic Badges */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite cubic-bezier(0.66, 0, 0, 1);
  flex-shrink: 0;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

/* Floating Live Activity Toast */
.live-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 30px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.live-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: #2563eb;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}

.toast-time {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-left: 4px;
  white-space: nowrap;
}

/* Indicators Ticker */
.indicators-ticker {
  background: #070d19;
  color: #94a3b8;
  font-size: 0.8125rem;
  border-bottom: 1px solid #1e293b;
  padding: 8px 0;
  width: 100%;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-label {
  color: #64748b;
  font-weight: 600;
}

.ticker-val {
  color: #f8fafc;
  font-weight: 700;
}

/* Header & Navigation Bar */
.site-header {
  background-color: var(--surface);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.brand-text strong {
  font-weight: 900;
  color: var(--accent);
}

.brand-text span {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 700;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

/* Accessibility & Theme Controls */
.accessibility-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-ctrl {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  transition: all 0.15s ease;
}

.btn-ctrl:hover {
  background: var(--border);
  color: var(--text);
}

.cmd-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  height: 34px;
}

.cmd-trigger-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.kbd-shortcut {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.6875rem;
  font-family: monospace;
  font-weight: 700;
  color: var(--text-light);
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Slide-Over Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--surface);
  border-left: 2px solid var(--border);
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.2);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.drawer-close-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-close-btn:hover {
  background: var(--border);
  color: var(--danger);
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 14px 0 8px;
  letter-spacing: 0.05em;
}

.drawer-links-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.mobile-nav-link:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.mobile-nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.mobile-nav-link > span:first-child {
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--surface-alt);
  color: var(--text-light);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

/* Hero Section */
.hero {
  background: var(--surface);
  padding: 36px 0 32px;
  border-bottom: 2px solid var(--border);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.125rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Search Box & SaaS Filter Buttons */
.search-box {
  position: relative;
  margin: 28px 0 16px;
}

.search-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.0625rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 32px;
}

.filter-btn {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Catalog Section & Grid Layout */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 32px 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Solid SaaS Flat 2D Cards */
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  word-break: break-word;
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.card-amount {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 8px;
}

.card-entity {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* Decision routes: useful navigation in place of synthetic live activity. */
.quick-actions {
  margin: 30px 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-alt) 100%);
  box-shadow: var(--shadow-sm);
}

.quick-actions-heading {
  max-width: 680px;
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-actions-heading h2 { font-size: 1.35rem; margin-bottom: 5px; }
.quick-actions-heading p { color: var(--text-muted); }
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.quick-action-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-action-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-2px);
}

.quick-action-index { color: var(--accent); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; }
.quick-action-card strong { font-size: 0.9375rem; line-height: 1.3; }
.quick-action-card > span:last-child { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.45; }

.ad-slot-container,
.adsbygoogle,
.ad-slot-container iframe {
  max-width: 100% !important;
  overflow: hidden;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

/* Pro Citizen Poll System (Termómetro Social Pro) */
.poll-widget {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
  word-break: break-word;
}

.poll-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.poll-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.poll-tab-btn {
  background: var(--surface-alt);
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.poll-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.poll-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.poll-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.poll-question-box {
  margin-bottom: 22px;
}

.poll-title {
  font-size: 1.4375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.poll-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.poll-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.poll-option-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.poll-option-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.poll-option-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.poll-option-icon {
  font-size: 1.375rem;
  width: 42px;
  height: 42px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.poll-option-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.poll-vote-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.poll-option-card:hover .poll-vote-pill {
  background: var(--accent);
  color: #ffffff;
}

.poll-result-bar-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.poll-result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  flex-wrap: wrap;
  gap: 8px;
}

.poll-progress-track {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.poll-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: #059669;
}

.poll-progress-fill.user-voted {
  background: var(--accent);
}

/* Evaluador Universal & Tool Containers */
.evaluador-card, .tool-section {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
  word-break: break-word;
}

.evaluador-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.evaluador-title-group h2, .tool-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.evaluador-title-group p, .tool-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.evaluador-grid, .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.field-group, .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label, .form-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Robust SaaS Inputs & Selects */
.field-select, .field-input, .form-control, select, input[type="text"], input[type="number"] {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

select.field-select, select.form-control, select {
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%2364748b' stroke-width='2.5' 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 !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  background-color: var(--surface) !important;
  padding-right: 44px !important;
  cursor: pointer;
}

[data-theme="dark"] select.field-select,
[data-theme="dark"] select.form-control,
[data-theme="dark"] select {
  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='%23cbd5e1' stroke-width='2.5' 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 !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  background-color: var(--surface) !important;
}

.field-select:focus, .field-input:focus, .form-control:focus, select:focus, input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
  background-color: var(--surface) !important;
}

/* Firm Flat 2D Buttons */
.btn-diagnostico, .btn-primary, .ux-btn-action {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-diagnostico:hover, .btn-primary:hover, .ux-btn-action:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-diagnostico:active, .btn-primary:active, .ux-btn-action:active {
  transform: translateY(1px);
}

/* Report Panel */
.report-panel {
  background: var(--surface-alt);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 22px;
  display: none;
}

.report-panel.active { display: block; }

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.report-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.report-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.report-kpi-val {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.report-kpi-val.highlight { color: var(--success); }

.report-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* Redesigned Structured Report Benefit Cards */
.report-benefit-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-left: 6px solid var(--success);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.report-benefit-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.report-benefit-item.partial {
  border-left-color: var(--warning);
}

.report-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.report-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.report-benefit-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  flex-shrink: 0;
}

.report-benefit-tag.partial-tag {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.report-benefit-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.report-benefit-monto {
  font-size: 1.1875rem;
  font-weight: 900;
  color: var(--success);
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-align: right;
}

.report-benefit-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.report-benefit-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.report-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.report-action-btn {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.report-action-btn.primary {
  background: var(--accent);
  color: #fff;
}

.report-action-btn.primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.report-action-btn.secondary {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.report-action-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover { background: var(--surface-alt); }

/* Print / PDF Mode: Executive Official Document */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide everything except the diagnostic report */
  .indicators-ticker,
  .site-header,
  .hero-pill,
  .hero-live-badge,
  .hero-title,
  .hero-desc,
  .evaluador-header,
  .evaluador-grid,
  .btn-diagnostico,
  .poll-widget,
  .search-box,
  .filters-row,
  .catalog-header,
  .catalog-grid,
  .tool-section,
  .site-footer,
  .accessibility-bar,
  .report-actions,
  .report-card-footer,
  .live-toast,
  .ad-slot,
  #cmd-modal {
    display: none !important;
  }

  .hero, .evaluador-card, .container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .report-panel {
    display: block !important;
    background: #ffffff !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .report-screen-header {
    display: none !important;
  }

  .report-print-header {
    display: block !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    border-bottom: 3px solid #2563eb !important;
  }

  .report-print-header h2 {
    color: #ffffff !important;
  }

  .report-print-header p,
  .report-print-header span,
  .report-print-header div {
    color: #cbd5e1 !important;
  }

  .report-print-profile-box {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
    font-size: 9pt !important;
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
  }

  .report-print-profile-box strong {
    color: #ffffff !important;
  }

  .report-kpi-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .report-kpi-card {
    border: 2px solid #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
  }

  .report-kpi-label {
    font-size: 8pt !important;
    color: #64748b !important;
    font-weight: 700 !important;
  }

  .report-kpi-val {
    font-size: 15pt !important;
    font-weight: 900 !important;
    color: #0f172a !important;
  }

  .report-kpi-val.highlight {
    color: #059669 !important;
  }

  .report-benefit-item {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-left: 6px solid #059669 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
    page-break-inside: avoid !important;
    margin-bottom: 10px !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
  }

  .report-card-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .report-benefit-tag {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #6ee7b7 !important;
    font-size: 8pt !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
  }

  .report-benefit-title {
    font-size: 11pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .report-benefit-monto {
    font-size: 12pt !important;
    font-weight: 900 !important;
    color: #059669 !important;
    white-space: nowrap !important;
  }

  .report-benefit-desc {
    font-size: 9pt !important;
    color: #334155 !important;
    margin: 4px 0 !important;
  }

  .report-benefit-meta {
    font-size: 8pt !important;
    color: #64748b !important;
  }
}

/* Result Box */
.result-box {
  display: none;
  background: var(--success-bg);
  border: 2px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 22px;
}

.result-box.visible { display: block; }

.result-header {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--success-text);
  margin-bottom: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.result-item {
  background: var(--surface);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.result-item-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
}

.result-item-val {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
}

/* High Contrast Robust Tables */
.table-container {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 500px;
}

th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

tr.suc-row:hover td {
  background-color: var(--accent-light);
}

.badge-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
}

.faq-title {
  font-size: 1.3125rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq-question {
  padding: 14px 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-size: 1.375rem; font-weight: 800; color: var(--accent); }
.faq-item[open] .faq-question::after { content: "−"; }

.faq-answer {
  padding: 0 18px 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Article / Content Page */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--content-width);
  margin: 32px auto;
  word-break: break-word;
}

.article-header { margin-bottom: 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--text-light); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }
.article-title { font-size: 1.875rem; font-weight: 900; color: var(--text); line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.03em; word-break: break-word; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.875rem; color: var(--text-light); padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.article-body { font-size: 1.0625rem; line-height: 1.75; color: var(--text); word-break: break-word; }
.article-body figure { margin: 24px 0; text-align: center; }
.article-body img { border-radius: var(--radius-md); margin: 0 auto; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.article-body h2 { font-size: 1.375rem; font-weight: 800; color: var(--text); margin: 28px 0 12px; }
.article-body h3 { font-size: 1.1875rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.official-box { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-size: 0.9375rem; }
.author-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin: 32px 0 24px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.author-info h4 { font-size: 0.9375rem; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.author-info p { font-size: 0.8125rem; color: var(--text-light); margin: 0; }

/* Dark Theme Overrides for Article Content & Embedded Boxes */
[data-theme="dark"] .article-body {
  color: var(--text);
}

[data-theme="dark"] .article-body blockquote,
[data-theme="dark"] .article-body .su-box,
[data-theme="dark"] .official-box,
[data-theme="dark"] .author-card,
[data-theme="dark"] #encuesta-resultados {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .article-body h1,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body h4,
[data-theme="dark"] .article-body strong {
  color: #f8fafc !important;
}

[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body li {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .article-body a:not(.btn-primary):not(.report-action-btn):not(.btn-diagnostico):not(.btn-secondary) {
  color: var(--accent) !important;
}

/* ── WordPress Legacy Inline-Styled Boxes (Takeaways, Verdict, Author, FAQ) ── */
[data-theme="dark"] .article-body > div[style*="background-color"],
[data-theme="dark"] .article-body > div[style*="background:"],
[data-theme="dark"] .article-body div[style*="#f8f9fa"],
[data-theme="dark"] .article-body div[style*="#f0f8ff"],
[data-theme="dark"] .article-body div[style*="#ffffff"],
[data-theme="dark"] .article-body div[style*="#fff"],
[data-theme="dark"] .article-body div[style*="white"] {
  background-color: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Takeaway/verdict box titles and paragraphs with hardcoded colors */
[data-theme="dark"] .article-body div[style*="background"] p[style*="color: #333"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color:#333"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color: #0056b3"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color:#0056b3"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color: #111"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color:#111"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color: #0f172a"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color:#0f172a"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color: #666"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color:#666"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color: #334155"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color:#334155"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color: #64748b"],
[data-theme="dark"] .article-body div[style*="background"] p[style*="color:#64748b"],
[data-theme="dark"] .article-body div[style*="background"] li {
  color: var(--text-muted) !important;
}

/* Embedded UX diagnostic tool containers */
[data-theme="dark"] .ux-tool-container,
[data-theme="dark"] div[id^="ux_tool_"] {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .ux-tool-container h3,
[data-theme="dark"] div[id^="ux_tool_"] h3,
[data-theme="dark"] .ux-tool-container label,
[data-theme="dark"] div[id^="ux_tool_"] label {
  color: #f8fafc !important;
}

[data-theme="dark"] .ux-tool-container p,
[data-theme="dark"] div[id^="ux_tool_"] p {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .ux-tool-container select,
[data-theme="dark"] div[id^="ux_tool_"] select,
[data-theme="dark"] .ux-tool-container input,
[data-theme="dark"] div[id^="ux_tool_"] input {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .ux-tool-container div[style*="border-bottom"],
[data-theme="dark"] div[id^="ux_tool_"] div[style*="border-bottom"] {
  border-color: var(--border) !important;
}

[data-theme="dark"] .ux-result-box,
[data-theme="dark"] .ux-result-content {
  background: var(--surface-alt) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* WordPress inline FAQ questions with hardcoded dark colors */
[data-theme="dark"] .article-body p[style*="font-size: 18px"][style*="color: #333"],
[data-theme="dark"] .article-body p[style*="font-size: 18px"][style*="color:#333"] {
  color: #f8fafc !important;
}

/* WordPress author card with hardcoded white bg */
[data-theme="dark"] .article-body div[style*="display: flex"][style*="background: #ffffff"],
[data-theme="dark"] .article-body div[style*="display: flex"][style*="background:#ffffff"],
[data-theme="dark"] .article-body div[style*="display: flex"][style*="background: #fff"] {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .article-body div[style*="background: #f0f4f8"],
[data-theme="dark"] .article-body div[style*="background:#f0f4f8"] {
  background: var(--surface-alt) !important;
}

[data-theme="dark"] .article-body span[style*="background: #f0f8ff"],
[data-theme="dark"] .article-body span[style*="background:#f0f8ff"] {
  background: var(--surface-alt) !important;
  color: var(--accent) !important;
  border-color: var(--border) !important;
}

/* CTA interactive cards */
[data-theme="dark"] .cta-interactive-card {
  background: var(--surface) !important;
  border-color: var(--accent) !important;
}

/* Explicit Button Overrides in Dark Mode */
[data-theme="dark"] .btn-diagnostico,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .ux-btn-action,
[data-theme="dark"] a.btn-primary,
[data-theme="dark"] a.report-action-btn.primary,
[data-theme="dark"] .report-action-btn.primary {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  border: none !important;
}

[data-theme="dark"] a.report-action-btn.primary:hover,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-diagnostico:hover {
  background-color: var(--accent-hover) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .report-action-btn.secondary,
[data-theme="dark"] a.report-action-btn.secondary,
[data-theme="dark"] .btn-secondary {
  background-color: var(--surface-alt) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

[data-theme="dark"] a.report-action-btn.secondary:hover,
[data-theme="dark"] .btn-secondary:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

[data-theme="dark"] .filter-btn.active {
  background-color: var(--accent) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .poll-tab-btn.active {
  background-color: var(--surface) !important;
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
}

/* Modal Backdrop - strictly display:none by default */
.cmd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px;
}

.cmd-modal-backdrop.open { display: flex; }
.cmd-modal-box { background: var(--surface); border-radius: var(--radius-md); width: 100%; max-width: 540px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); overflow: hidden; border: 2px solid var(--border); }
.cmd-search-input { width: 100%; padding: 14px 18px; font-size: 1rem; border: none; border-bottom: 2px solid var(--border); outline: none; color: var(--text); background: var(--surface); }
.cmd-results-list { max-height: 300px; overflow-y: auto; padding: 6px; list-style: none; }
.cmd-result-item { padding: 10px 12px; border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.cmd-result-item:hover { background: var(--accent-light); color: var(--accent); }
.cmd-result-title { font-weight: 700; font-size: 0.9375rem; }
.cmd-result-category { font-size: 0.75rem; color: var(--text-light); }
.cmd-footer { padding: 8px 14px; background: var(--surface-alt); border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-light); }

/* Footer */
.site-footer { background: #070d19; color: #94a3b8; padding: 40px 0 32px; margin-top: auto; border-top: 2px solid #1e293b; font-size: 0.875rem; width: 100%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-col h4 { color: #fff; font-size: 0.9375rem; font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; border-top: 1px solid #1e293b; text-align: center; font-size: 0.8125rem; color: #64748b; }

/* Responsiveness down to 320px */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .hero-title { font-size: 1.625rem; }
  .article-title { font-size: 1.375rem; }
  .cmd-trigger-btn span, .cmd-trigger-btn kbd { display: none; }
  .catalog-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .tool-section, .evaluador-card { padding: 20px 16px; margin: 20px 0; }
  .evaluador-grid, .form-grid { grid-template-columns: 1fr; }
  .quick-actions { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .brand-text { font-size: 1.0625rem; }
  .brand-icon { width: 30px; height: 30px; }
  .ticker-items { gap: 7px; font-size: 0.75rem; grid-template-columns: 1fr; }
  .accessibility-bar { display: none; }
  .header-controls { gap: 6px; flex: 0 0 auto; }
  .header-inner > .brand { min-width: 0; }
  .header-inner .brand-text { white-space: nowrap; }
  .hero-title { font-size: 1.375rem; }
  .hero-desc { font-size: 0.9375rem; }
  .filters-row { gap: 8px; margin: 12px 0 24px; }
  .filter-btn { padding: 6px 12px; font-size: 0.8125rem; }
  .report-benefit-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .report-kpi-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
  .ticker-inner { display: block; }
  .ticker-items { display: grid; grid-template-columns: 1fr; }
  .ticker-inner > div:last-child { margin-top: 8px; }
  .quick-actions-grid { grid-template-columns: 1fr; }
  .quick-action-card { padding: 14px; }
  .mobile-nav-drawer { width: calc(100vw - 20px); max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
