* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #f5f5f5; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 2.5rem; width: 420px; max-width: 90vw; }
h1 { font-size: 1.4rem; margin-bottom: 1.5rem; color: #111; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: #333; }
select, .text-input {
  width: 100%; padding: .55rem .7rem; border: 1px solid #ccc; border-radius: 6px; font-size: .9rem; margin-bottom: 1.2rem;
}
.dropzone {
  border: 2px dashed #bbb; border-radius: 8px; padding: 2.5rem 1rem;
  text-align: center; color: #888; cursor: pointer; transition: .15s;
  margin-bottom: 1.2rem; position: relative;
}
.dropzone.hover { border-color: #4f8cff; background: #eef4ff; color: #4f8cff; }
.dropzone.has-file { border-color: #34a853; color: #34a853; border-style: solid; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
button {
  width: 100%; padding: .65rem; border: none; border-radius: 6px;
  background: #111; color: #fff; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: .15s;
}
button:hover { background: #333; }
button:disabled { background: #aaa; cursor: not-allowed; }
.msg { margin-top: 1rem; font-size: .85rem; text-align: center; }
.msg.error { color: #d93025; }
.spinner { display: none; margin: 1rem auto 0; width: 24px; height: 24px; border: 3px solid #ddd; border-top-color: #111; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkbox-row { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; }
.checkbox-row input[type="checkbox"] { width: 1rem; height: 1rem; cursor: pointer; accent-color: #111; }
.checkbox-row label { margin: 0; font-size: .85rem; font-weight: 600; color: #333; cursor: pointer; }
#honorariosSection { margin-bottom: 1.2rem; }
#honorariosSection > .section-label { font-size: .85rem; font-weight: 600; color: #333; margin-bottom: .6rem; }
.grano-honorario { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.grano-honorario label { width: 130px; flex-shrink: 0; font-size: .85rem; font-weight: 600; color: #333; margin-bottom: 0; }
.grano-honorario .text-input { margin-bottom: 0; flex: 1; }
