.dolares-card {
  grid-column: span 2;
}

.dolares-card .content {
  overflow: visible !important;
  padding-top: 0 !important;
}

.usd-layout {
  --usd-gap: 14px;
  --usd-card-w: calc((100% - (3 * var(--usd-gap))) / 4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.usd-top,
.usd-bottom {
  display: flex;
  gap: var(--usd-gap);
  align-items: stretch;
}

.usd-top {
  justify-content: center;
  margin-top: -18px;
}

.usd-bottom {
  justify-content: space-between;
}

.usd-card {
  position: relative;
  flex: 0 0 var(--usd-card-w);
  width: var(--usd-card-w);
  max-width: var(--usd-card-w);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 10px 8px !important;
  border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .35) inset, 0 8px 18px rgba(0, 0, 0, .25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.usd-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, .07);
  opacity: .95;
}

.usd-card::after {
  content: "";
  position: absolute;
  inset: -70px -70px auto auto;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, var(--usd-glow, rgba(255, 255, 255, .10)) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: .22;
  pointer-events: none;
}

.usd-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .05) inset;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 60%, rgba(0, 0, 0, 0) 100%);
}

.usd-title {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px !important;
  margin-bottom: 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.usd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.usd-col {
  text-align: center;
  padding: 0 8px;
  overflow: hidden;
}

.usd-col + .usd-col {
  border-left: 1px solid #1f1f1f;
}

.usd-label {
  color: rgba(255, 255, 255, .55);
  font-size: 10px !important;
  margin-bottom: 4px !important;
  letter-spacing: .02em;
}

.usd-value {
  display: block;
  max-width: 100%;
  font-weight: 900;
  font-size: 16px !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .78);
}

.usd-value.muted {
  color: var(--muted);
  font-weight: 800;
}

.usd-card.usd-oficial { --usd-glow: rgba(150, 92, 255, .28); }
.usd-card.usd-blue { --usd-glow: rgba(60, 150, 255, .28); }
.usd-card.usd-mep { --usd-glow: rgba(55, 210, 120, .26); }
.usd-card.usd-tarjeta { --usd-glow: rgba(255, 170, 60, .26); }
.usd-card.usd-cripto { --usd-glow: rgba(255, 220, 70, .24); }
.usd-card.usd-ccl { --usd-glow: rgba(255, 255, 255, .20); }

.usd-card.usd-oficial .usd-title { color: #8b5cf6 !important; }
.usd-card.usd-blue .usd-title { color: #3b82f6 !important; }
.usd-card.usd-mep .usd-title { color: #22c55e !important; }
.usd-card.usd-tarjeta .usd-title { color: #f59e0b !important; }
.usd-card.usd-cripto .usd-title { color: #facc15 !important; }
.usd-card.usd-ccl .usd-title { color: rgba(255, 255, 255, .90) !important; }

.usd-card.usd-oficial::before { background: linear-gradient(180deg, rgba(150, 92, 255, .95), rgba(150, 92, 255, .18)); }
.usd-card.usd-blue::before { background: linear-gradient(180deg, rgba(60, 150, 255, .95), rgba(60, 150, 255, .18)); }
.usd-card.usd-mep::before { background: linear-gradient(180deg, rgba(55, 210, 120, .92), rgba(55, 210, 120, .16)); }
.usd-card.usd-tarjeta::before { background: linear-gradient(180deg, rgba(255, 170, 60, .92), rgba(255, 170, 60, .16)); }
.usd-card.usd-cripto::before { background: linear-gradient(180deg, rgba(255, 220, 70, .90), rgba(255, 220, 70, .14)); }
.usd-card.usd-ccl::before { background: linear-gradient(180deg, rgba(235, 235, 235, .80), rgba(235, 235, 235, .12)); }

.usd-card.usd-ccl .usd-label,
.usd-card.usd-ccl .usd-value {
  color: rgba(255, 255, 255, .78) !important;
  text-shadow: none !important;
}

@media (max-width: 1200px) {
  .usd-layout {
    --usd-card-w: calc((100% - var(--usd-gap)) / 2);
  }

  .usd-top,
  .usd-bottom {
    flex-wrap: wrap;
    justify-content: center;
  }
}
