/* ─── Levels Grid ──────────────────────────────────────────────── */
.levels-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-width: 100vw;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg3);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.level-card .level-emoji {
  font-size: 2rem;
}

.level-card .level-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.level-card .level-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.level-card.local:hover    { border-color: #0ea5e9; }
.level-card.regional:hover { border-color: #10b981; }
.level-card.nacional:hover { border-color: #f59e0b; }
.level-card.europa:hover   { border-color: #3b82f6; }
.level-card.estonia:hover  { border-color: #8b5cf6; }
.level-card.reino_unido:hover { border-color: #1d70b8; }
.level-card.global:hover   { border-color: #ec4899; }

/* ─── Features ─────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Top Opportunities ────────────────────────────────────────── */
.top-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.top-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color 0.2s;
}

.top-item:hover { border-color: var(--blue-light); }

.top-item-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.top-item-link { color: inherit; text-decoration: none; }
.top-item-link:hover { color: var(--primary, #3b82f6); text-decoration: underline; }

.top-item-org {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.top-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.top-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.top-item-tag.importe {
  background: rgba(35, 134, 54, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.2);
}

.top-item-tag.nivel {
  background: rgba(31, 111, 235, 0.12);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.top-item-tag.relevancia {
  background: rgba(210, 153, 34, 0.15);
  color: #e3b341;
  border: 1px solid rgba(227, 179, 65, 0.2);
}

/* ─── Feature step badge ───────────────────────────────────────── */
.feature-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f6feb, #8957e5);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ─── Stats strip ──────────────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.stats-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stats-strip-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.stats-strip-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stats-strip-item span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .levels-grid { gap: 0.85rem; padding: 0 1.25rem; }
  .features-grid { gap: 1rem; }
  .top-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .levels-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; padding: 0 1rem; }
  .level-card { padding: 1rem 0.75rem; }
  .level-card .level-emoji { font-size: 1.5rem; }
  .level-card .level-name { font-size: 0.8rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.25rem; }
  .top-list { grid-template-columns: 1fr; gap: 0.75rem; }
  .stats-strip { padding: 2rem 1.5rem; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stats-strip-item strong { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 0 0.75rem; }
  .level-card { padding: 0.85rem 0.5rem; }
  .stats-strip { padding: 1.5rem 1rem; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stats-strip-icon { font-size: 1.2rem; }
  .stats-strip-item strong { font-size: 1.15rem; }
  .stats-strip-item span:last-child { font-size: 0.7rem; }
}
