/* Estilos específicos de la Demo de Finanzas */
.finanzas-demo-container {
  max-width: 1200px;
  margin: 100px auto 40px auto;
  padding: 0 1.5rem;
}

.demo-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card, #111827);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.kpi-card.highlight {
  border-color: var(--accent, #27c93f);
  box-shadow: 0 4px 20px rgba(39, 201, 63, 0.15);
}

.kpi-label {
  font-size: 0.85rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.kpi-value.positive {
  color: #27c93f;
}

.kpi-value.negative {
  color: #ff5f56;
}

/* Grid Principal de Finanzas */
.finanzas-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

@media (max-width: 850px) {
  .finanzas-grid {
    grid-template-columns: 1fr;
  }
}

.finanzas-card {
  background: var(--bg-card, #111827);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.finanzas-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

/* Formulario */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent, #27c93f);
}

.form-group select option {
  background: #111827;
  color: #fff;
}

/* Tabla */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.table-responsive {
  overflow-x: auto;
}

.finanzas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.finanzas-table th,
.finanzas-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.finanzas-table th {
  color: #888;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.badge-tipo {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.badge-ingreso {
  background: rgba(39, 201, 63, 0.15);
  color: #27c93f;
}

.badge-gasto {
  background: rgba(255, 95, 86, 0.15);
  color: #ff5f56;
}

.btn-eliminar {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
}

.btn-eliminar:hover {
  color: #ff5f56;
}