.metodologia-hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.metodologia-hero h1 {
  font-size: 2.5rem;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.metodologia-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.metodologia-container {
  max-width: 960px;
  margin: 0 auto 5rem;
}

.trust-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.trust-card-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

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

.trust-card-mini .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.trust-card-mini h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.trust-card-mini p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.step-num {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.step-title {
  font-size: 1.35rem;
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
}

.step-body p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.975rem;
  margin-bottom: 1rem;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body ul, .step-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-body li {
  margin-bottom: 0.4rem;
}

.methodology-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.methodology-box p {
  margin: 0;
  color: var(--text-main);
  font-size: 0.935rem;
  line-height: 1.6;
}

.weight-table-wrapper {
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.weight-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.95rem;
}

.weight-table th {
  background: rgba(99, 102, 241, 0.14);
  color: var(--text-main);
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.weight-table td {
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

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

.weight-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.source-item:hover {
  border-color: var(--border-accent);
}

.source-rank {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-label {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .metodologia-hero h1 {
    font-size: 1.9rem;
  }

  .step-card {
    padding: 1.5rem 1.25rem;
  }

  .step-title {
    font-size: 1.15rem;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .ai-disclaimer-card {
    padding: 1.25rem 1.25rem;
  }
}

/* Tarjeta Aviso IA y Alcance */
.ai-disclaimer-card {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.ai-disclaimer-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ai-disclaimer-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.975rem;
  margin: 0;
}

[data-theme="light"] .ai-disclaimer-card {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .ai-disclaimer-card h2 {
  color: #1e1b4b;
}

[data-theme="light"] .ai-disclaimer-card p {
  color: #334155;
}
