:root {
  --brand: #6915e8;
  --brand-light: #8b46f0;
  --brand-dark: #4e0fb3;
  --brand-faint: #f3ebff;
  --accent: #00d4aa;
  --gold: #f5a623;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border-default: #e2e8f0;
  --border-brand: rgba(105, 21, 232, 0.2);

  --semaforo-verde: #00d4aa;
  --semaforo-amarillo: #f5a623;
  --semaforo-rojo: #dc2626;
  --semaforo-neutro: #cbd5e1;

  --radius-btn: 0.75rem;
  --radius-card: 1rem;
  --radius-pill: 9999px;

  --shadow-reposo: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 32px rgba(105, 21, 232, 0.1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-reposo);
}

.btn {
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 0.875rem 1.5rem;
}

.btn-primary:active {
  background: var(--brand-dark);
}

.btn-primary:disabled {
  background: var(--text-tertiary);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border-brand);
  padding: 0.875rem 1.5rem;
}

.btn-chico {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-default);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-header .marca {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  letter-spacing: 0.02em;
}

.badge-verde {
  background: rgba(0, 212, 170, 0.12);
  color: #0a8a6f;
}

.badge-amarillo {
  background: rgba(245, 166, 35, 0.14);
  color: #92600f;
}

.badge-rojo {
  background: rgba(220, 38, 38, 0.12);
  color: var(--semaforo-rojo);
}

.badge-neutro {
  background: rgba(203, 213, 225, 0.35);
  color: var(--text-secondary);
}

.error-text {
  color: var(--semaforo-rojo);
  font-size: 0.875rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text-primary);
}

.input:focus {
  outline: none;
  border-color: var(--brand);
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.375rem;
}

.oculto {
  display: none !important;
}
