body { background: #e8eaed; }
body::before { display: none; }
.solicitud-shell { width: min(1100px, calc(100% - 32px)); margin: 24px auto 48px; }
.solicitud-shell .panel { padding: 28px; border: 1px solid #c3c7cb; box-shadow: 0 8px 30px #0000000c; }
.top-link { display: inline-block; margin-bottom: 14px; color: var(--teal); font-size: 13px; text-decoration: none; }
.solicitud-shell .panel-header { border-bottom: 2px solid #555b61; padding-bottom: 16px; margin-bottom: 16px; }
.solicitud-shell h2 { font: 700 23px/1.25 Arial, sans-serif; letter-spacing: 0; text-transform: uppercase; }
.sheet-subtitle { margin: 8px 0 0; font-size: 11px; color: #60666c; }
.solicitud-shell .step-label { color: #60666c; }
.form-section { margin-top: 14px; border: 1px solid #9ca2a8; }
.form-section[hidden] { display: none; }
.form-section summary { display: flex; justify-content: space-between; padding: 7px 10px; background: #585e64; color: white; font: 600 12px/1.3 Arial, sans-serif; text-transform: uppercase; cursor: pointer; list-style: none; }
.form-section summary::-webkit-details-marker { display: none; }
.chevron { transform: rotate(0); }
.form-section[open] .chevron { transform: rotate(90deg); }
.fields-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.solicitud-shell .fields { gap: 12px; margin: 0; }
.fields-grid .field { padding: 6px 8px; border-right: 1px solid #d1d4d8; border-bottom: 1px solid #d1d4d8; }
.solicitud-shell .field { margin: 0; min-width: 0; }
.solicitud-shell .field > span { display: block; margin-bottom: 4px; font-size: 11px; color: #30363b; line-height: 1.4; }
.solicitud-shell .field small { font-size: 10px; }
.required-mark { color: #a33124; }
.solicitud-shell input:not([type=checkbox]):not([type=file]), .solicitud-shell select, .solicitud-shell textarea { min-width: 0; width: 100%; border: 1px solid #d1d6dc; border-radius: 2px; padding: 6px 7px; background: #f8fafc; font: 13px/1.4 Arial, sans-serif; color: #17211f; }
.solicitud-shell input:focus, .solicitud-shell select:focus, .solicitud-shell textarea:focus { outline: 2px solid #176c63; outline-offset: 1px; background: white; }
.solicitud-shell textarea { min-height: 56px; resize: vertical; }
.span-2 { grid-column: span 2; }
.authorization-text { padding: 12px 14px; font: 13px/1.6 Arial, sans-serif; color: #30363b; }
.authorization-text p { margin: 0 0 10px; }
.authorization-text p:last-child { margin-bottom: 0; }
.span-4 { grid-column: 1 / -1; }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--teal); }
.checkbox-field span { margin: 0 !important; }
.financial-grid { display: grid; grid-template-columns: 1fr 1fr; }
.financial-group { min-width: 0; }
.financial-group + .financial-group { border-left: 1px solid #9ca2a8; }
.financial-group h3 { margin: 0; padding: 7px 8px; background: #e8eaed; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid #b8bec4; }
.financial-group .field { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px; min-height: 39px; border-bottom: 1px solid #d1d4d8; }
.financial-group .field > span { flex: 1; margin: 0; }
.financial-group .field input[type=number] { width: 120px; text-align: right; flex: 0 0 120px; }
.financial-group .checkbox-field { flex-direction: row-reverse; }
.financial-notes { grid-column: 1 / -1; border-left: 0 !important; }
.financial-notes .field { display: block; }
.asset-group { grid-column: 1 / -1; padding: 10px 8px; border-top: 1px solid #d1d4d8; }
.asset-group template { display: none; }
.asset-row { padding: 10px; margin-bottom: 8px; border: 1px solid #d1d4d8; border-radius: 3px; background: #fbfcfd; }
.asset-row .field { padding: 4px 0; min-height: auto; }
.asset-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.asset-row-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #30363b; }
.asset-remove { padding: 3px 9px; cursor: pointer; color: #a33124; border: 1px solid #e2b3ab; border-radius: 2px; background: #fff; font-size: 11px; }
.asset-remove:hover { background: #fff0ea; }
.asset-add { padding: 8px 14px; cursor: pointer; color: var(--teal); border: 1px dashed #9cbbb4; border-radius: 2px; background: #fff; font-size: 12px; font-weight: 700; width: 100%; }
.asset-add:hover:not(:disabled) { background: #eff8f2; border-style: solid; }
.asset-add:disabled { cursor: default; opacity: .6; }
.financial-notes .field > span { margin-bottom: 4px; }
.solicitud-shell .dropzone { min-height: 110px; padding: 16px; }
.solicitud-shell .upload-icon { display: none; }
.solicitud-shell .drop-title { font-size: 14px; }
@media(max-width: 700px) {
  .solicitud-shell { width: calc(100% - 16px); margin-top: 12px; }
  .solicitud-shell .panel { padding: 12px; }
  .solicitud-shell h2 { font-size: 18px; }
  .fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-grid { grid-template-columns: 1fr; }
  .financial-group + .financial-group { border-left: 0; }
  .solicitud-shell input:not([type=checkbox]):not([type=file]), .solicitud-shell select, .solicitud-shell textarea { font-size: 16px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: white; }
  .solicitud-shell { width: 100%; margin: 0; }
  .solicitud-shell .panel { padding: 0; border: 0; box-shadow: none; }
  .top-link, .form-footer, .feedback, .chevron, .dropzone { display: none !important; }
  .form-section { break-inside: avoid; margin-top: 8px; }
  .form-section summary { background: #ddd; color: #111; }
  [data-section=info_financiera] { break-before: page; }
  .solicitud-shell input, .solicitud-shell select, .solicitud-shell textarea { background: white !important; }
}

/* Firma en pantalla */
.signature-pad { padding: 12px; border-top: 1px solid #d1d4d8; }
.signature-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #30363b; }
#signatureCanvas { display: block; width: 100%; height: 200px; border: 1px dashed #7d858c; border-radius: 2px; background: #fff; touch-action: none; cursor: crosshair; }
.signature-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: #60666c; }
.signature-actions button { padding: 6px 12px; font-size: 12px; }
.signature-hint { margin: 8px 0 0; font-size: 11px; color: #60666c; line-height: 1.5; }
@media print { .signature-actions, .signature-hint { display: none !important; } }
@media (min-width: 700px) { #signatureCanvas { height: 240px; } }

.letterhead-logo { flex: 0 0 auto; align-self: center; height: 34px; width: auto; }
@media (max-width: 640px) { .panel-header { flex-wrap: wrap; } .letterhead-logo { order: -1; height: 26px; } }
@media print { .letterhead-logo { height: 30px; } }
.draft-panel { padding: 14px; margin-bottom: 18px; border: 1px solid #cfd9e0; border-radius: 6px; background: #f4f8fa; }
.draft-panel p { font-size: 12px; line-height: 1.5; margin: 8px 0; }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.draft-actions button { padding: 8px 12px; background: white; color: #176c63; border: 1px solid #bccdc8; border-radius: 4px; cursor: pointer; }
.draft-actions [hidden] { display: none; }
