/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-secondary);
}
.btn-primary:active { background: var(--accent); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:active { border-color: var(--text-primary); }

.btn-danger {
  background: transparent;
  color: var(--rojo);
  border: 1px solid var(--rojo);
}
.btn-danger:active { background: var(--rojo); color: var(--bg-secondary); }

.btn-accent {
  background: var(--accent);
  color: var(--bg-secondary);
}

.btn-full { width: 100%; }

/* INPUTS */
.input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  outline: none;
}
.input:focus { border-color: var(--accent); }

.input-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f1f1f1' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* BADGES */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.badge-gris     { background: rgba(241,241,241,0.12); color: var(--text-muted); }
.badge-azul     { background: rgba(96,165,250,0.15);  color: var(--azul); }
.badge-verde    { background: rgba(74,222,128,0.15);  color: var(--verde); }
.badge-rojo     { background: rgba(248,113,113,0.15); color: var(--rojo); }
.badge-naranja  { background: rgba(251,146,60,0.15);  color: var(--naranja); }
.badge-amarillo { background: rgba(255,255,0,0.15);   color: var(--accent); }

/* CARDS */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 8px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
}

.card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* MODALES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* TOASTS */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  animation: toast-in 0.2s ease;
}

.toast-ok     { border-color: var(--verde); color: var(--verde); }
.toast-error  { border-color: var(--rojo);  color: var(--rojo); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: var(--bg-secondary);
  font-size: 24px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* EMPTY STATE */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* SECCIÓN */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 24px;
}
