:root {
  --stat-bg-surface: #FFFFFF;
  --stat-border: #E5DFD7;
  --stat-title-color: #121212;
  --stat-text-muted: #6B6763;
  --stat-accent: #C85A32;
  --stat-gold: #C5A059;
  --stat-blue: #3B82F6;
  --stat-green: #10B981;
  --stat-radius: 12px;
  --stat-radius-pill: 50px;
}

.dashboard-hero-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--stat-border);
}

.dashboard-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--stat-title-color);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.admin-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--stat-accent);
  letter-spacing: 0.2px;
}

.dashboard-date-badge {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--stat-text-muted);
  background: var(--stat-bg-surface);
  padding: 0.45rem 1rem;
  border-radius: var(--stat-radius-pill);
  border: 1px solid var(--stat-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Grilla de 4 tarjetas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--stat-bg-surface);
  border-radius: var(--stat-radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--stat-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Indicador cromático lateral al hover */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stat-card-primary::before { background-color: var(--stat-accent); }
.stat-card-gold::before    { background-color: var(--stat-gold); }
.stat-card-blue::before    { background-color: var(--stat-blue); }
.stat-card-green::before   { background-color: var(--stat-green); }

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #D8CEBE;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stat-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--stat-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.icon-primary {
  background-color: #F7EBE6;
  color: var(--stat-accent);
}

.icon-gold {
  background-color: #FBF6EB;
  color: var(--stat-gold);
}

.icon-blue {
  background-color: #EFF6FF;
  color: var(--stat-blue);
}

.icon-green {
  background-color: #ECFDF5;
  color: var(--stat-green);
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--stat-title-color);
  line-height: 1;
}

.stat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--stat-radius-pill);
}

.badge-active {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.badge-featured {
  background-color: #FBF6EB;
  color: #936F1C;
}

.badge-new {
  background-color: #EFF6FF;
  color: #2563EB;
}

.badge-green {
  background-color: #ECFDF5;
  color: #047857;
}

.stat-description {
  font-size: 0.82rem;
  color: var(--stat-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Responsive */
@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
