/* MADMIX Market section module */

#mercado {
  background:
    linear-gradient(135deg, rgba(232,114,74,0.04), transparent 34%),
    var(--gray);
}

.mercado-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 4rem;
  align-items: start;
}

.mercado-text p {
  color: var(--gray3);
  line-height: 1.85;
  font-weight: 300;
  font-size: var(--text-md);
  margin-bottom: 1.2rem;
}

.mercado-text strong {
  color: var(--white);
  font-weight: 500;
}

.mercado-facts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.fact-card {
  border: 1px solid var(--border);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  background: rgba(9,9,9,0.48);
}

.fact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-text);
}

.fact-card::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  width: 72px;
  height: 28px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 5px, transparent 5px 10px);
  opacity: 0.45;
}

.fact-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}

.fact-text {
  font-size: var(--text-sm);
  color: var(--gray3);
  margin-top: 0.4rem;
  line-height: 1.55;
}

.fact-source {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--text-2xs);
  color: var(--gray4);
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fact-source:hover {
  color: var(--red-text);
}

@media (max-width: 900px) {
  .mercado-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
  }

  .fact-num {
    font-size: 2.2rem;
  }

  .fact-text {
    font-size: var(--text-sm);
  }
}

@media (min-width: 1440px) {
  .mercado-grid {
    gap: 6rem;
  }
}
