.venta-container {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.meta-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.card-section {
  background: white;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #22C55E;
}
.card-section h2 {
  font-size: 1.05rem;
  color: #0A1D3D;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1rem;
}
.grid-span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.82rem;
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field input, .field select, .field textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: border 0.15s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.field input:invalid:not(:placeholder-shown) { border-color: #EF4444; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.upload-box {
  display: block;
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  background: #F9FAFB;
  transition: border 0.15s, background 0.15s;
  position: relative;
  min-height: 180px;
}
.upload-box:hover { border-color: #22C55E; background: #F0FDF4; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem; text-align: center; height: 100%;
}
.upload-icon { font-size: 2rem; }
.upload-label { font-size: 0.9rem; font-weight: 600; color: #111827; }
.upload-hint { font-size: 0.75rem; color: #6B7280; }
.preview {
  display: none;
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.5rem;
}
.upload-box.has-file .preview { display: block; }
.upload-box.has-file { border-style: solid; border-color: #22C55E; background: white; }

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}
.btn-primary { background: #22C55E; color: white; }
.btn-primary:hover { background: #16A34A; }
.btn-primary:disabled { background: #9CA3AF; cursor: not-allowed; }
.btn-secondary { background: #E5E7EB; color: #374151; }
.btn-secondary:hover { background: #D1D5DB; }
.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  padding: 1rem 1.5rem; border-radius: 10px;
  color: white; font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  z-index: 999; max-width: 90%;
}
.toast.success { background: #22C55E; }
.toast.error { background: #EF4444; }

@media (max-width: 720px) {
  .meta-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-span-2 { grid-column: span 1; }
  .docs-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
