.investing-wrapper {
  max-width: 900px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.sector-title {
  margin: 24px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #ddd;
  font-size: 18px;
  font-weight: 700;
}

.investing-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  align-items: center;
  font-size: 14px;
}

.investing-card:last-child {
  border-bottom: none;
}

.investing-card .ticker {
  font-weight: 600;
}

.investing-card .price {
  font-variant-numeric: tabular-nums;
}

.investing-card .change {
  font-weight: 600;
}

/* Estados */
.investing-card.up .change {
  color: #0a8f08;
}

.investing-card.down .change {
  color: #c40000;
}

.investing-card.flat .change {
  color: #555;
}

/* Mobile */
@media (max-width: 600px) {
  .investing-card {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "ticker ticker"
      "price change";
  }

  .investing-card .ticker {
    grid-area: ticker;
  }

  .investing-card .price {
    grid-area: price;
  }

  .investing-card .change {
    grid-area: change;
    text-align: right;
  }
}
