:root{--bg:#f5f6f8;--paper:#fff;--ink:#1a1a1a;--muted:#555;--border:#d1d5db;--accent:#8b1e25;--accent-hover:#6e171d;--shadow:0 4px 20px #00000014}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--ink);min-height:100vh;margin:0;padding:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.app-header{background:var(--paper);border-bottom:1px solid var(--border);z-index:10;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex;position:sticky;top:0}.brand{color:inherit;align-items:center;gap:.75rem;text-decoration:none;display:flex}.brand-mark{object-fit:cover;border-radius:.4rem;width:2.75rem;height:2.75rem;display:block}.brand-text h1{letter-spacing:.02em;margin:0;font-size:1.15rem;font-weight:600}.brand-text p{color:var(--muted);margin:0;font-size:.75rem}.tag{text-transform:uppercase;letter-spacing:.08em;color:var(--accent);border:1px solid var(--accent);border-radius:999px;padding:.25rem .5rem;font-size:.7rem}.header-right{align-items:center;gap:.85rem;display:flex}.storage-notice{color:var(--muted);font-size:.72rem}@media (width<=640px){.storage-notice{display:none}}.layout{max-width:880px;margin:0 auto;padding:1.5rem;display:block}@media (width<=900px){.layout{padding:1rem}}.panel{background:var(--paper);box-shadow:var(--shadow);border-radius:.5rem;flex-direction:column;display:flex;overflow:hidden}.panel-header{border-bottom:1px solid var(--border);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:1rem 1.25rem;font-size:.85rem;font-weight:600}.panel-body{padding:1.25rem}.form-group{margin-bottom:1rem}label{color:var(--muted);margin-bottom:.35rem;font-size:.78rem;font-weight:500;display:block}input[type=text],input[type=date],textarea{border:1px solid var(--border);width:100%;color:var(--ink);background:#fff;border-radius:.35rem;padding:.55rem .7rem;font-family:inherit;font-size:.95rem;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #8b1e2514}textarea{resize:vertical;min-height:5rem;font-family:inherit;line-height:1.55}.row{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}@media (width<=420px){.row{grid-template-columns:1fr}}.hint{color:var(--muted);margin-top:.3rem;font-size:.72rem}.logo-row{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.logo-field{border:1px dashed var(--border);text-align:center;cursor:pointer;border-radius:.35rem;place-items:center;min-height:4.5rem;padding:.75rem;transition:border-color .15s,background .15s;display:grid;position:relative}.logo-field:hover{border-color:var(--accent);background:#fafafa}.logo-field input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.logo-preview{object-fit:contain;max-width:100%;margin:0 auto;display:block}.logo-placeholder{color:var(--muted);pointer-events:none;font-size:.75rem}.logo-field:not(.has-image) .logo-preview,.logo-field.has-image .logo-placeholder{display:none}.actions{gap:.75rem;margin-top:1.25rem;display:flex}.actions+.actions{margin-top:.75rem}@media (width<=480px){.actions{flex-direction:column}.actions button{width:100%}}button{cursor:pointer;border:none;border-radius:.35rem;padding:.7rem 1.1rem;font-size:.9rem;font-weight:600;transition:background .15s,transform 50ms,opacity .15s}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--accent);color:#fff;flex:1}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-secondary{color:var(--ink);background:#e5e7eb}.btn-secondary:hover:not(:disabled){background:#d1d5db}.btn-sm{flex:0;padding:.45rem .85rem;font-size:.82rem}.btn-link{color:var(--muted);text-underline-offset:3px;background:0 0;align-self:flex-start;padding:.4rem 0;font-size:.78rem;font-weight:500;text-decoration:underline}.btn-link:hover:not(:disabled){color:var(--accent)}.app-footer{text-align:center;color:var(--muted);padding:1.25rem 1rem 1.75rem;font-size:.7rem}.app-footer-blurb{margin:0}.app-footer-support{color:var(--ink);margin:.6rem 0 0;font-size:.75rem}.support-link{color:var(--accent);white-space:nowrap;border-bottom:1px solid #0000;font-weight:600;text-decoration:none;transition:border-color .15s}.support-link:hover{border-bottom-color:var(--accent)}.source-wrapper{pointer-events:none;width:216mm;position:absolute;top:0;left:-99999px}.modal{z-index:100;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:pointer;background:#0f172aa6;position:absolute;inset:0}.modal-window{background:#f5f6f8;border-radius:.5rem;flex-direction:column;width:min(95vw,920px);max-height:92dvh;display:flex;position:relative;overflow:hidden;box-shadow:0 25px 60px #00000059}.modal-header{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1.25rem;display:flex}.modal-header h2{color:var(--ink);margin:0;font-size:1.05rem;font-weight:600}.modal-actions{align-items:center;gap:.6rem;display:flex}.page-indicator{color:var(--muted);background:#f3f4f6;border-radius:999px;padding:.25rem .6rem;font-size:.78rem}.modal-close{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:.35rem;flex:0;place-items:center;width:2rem;height:2rem;padding:0;font-size:1.6rem;line-height:1;display:grid}.modal-close:hover{color:var(--ink);background:#e5e7eb}.modal-body{flex-direction:column;flex:1;align-items:center;padding:1.5rem;display:flex;overflow:auto}.sheet-stack{flex-direction:column;align-items:center;gap:1.25rem;display:flex}.modal-body .sheet{flex-shrink:0;box-shadow:0 6px 24px #0000002e}@media (width<=640px){.modal-window{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.modal-header{padding:.7rem .85rem}.modal-body{padding:.75rem}}.home-layout{max-width:960px;margin:0 auto;padding:2.5rem 1.5rem}.home-intro{text-align:center;margin-bottom:2rem}.home-intro h1{margin:0 0 .5rem;font-size:1.6rem;font-weight:600}.home-intro p{color:var(--muted);margin:0;font-size:.95rem}.document-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;display:grid}.document-card{background:var(--paper);box-shadow:var(--shadow);border:1px solid #0000;border-radius:.5rem;flex-direction:column;padding:1.5rem;transition:box-shadow .15s,transform .15s,border-color .15s;display:flex}.document-card:hover{border-color:var(--border);transform:translateY(-2px);box-shadow:0 8px 28px #0000001f}.document-card h2{margin:0 0 .5rem;font-size:1.15rem;font-weight:600}.document-card p{color:var(--muted);flex:1;margin:0 0 1.25rem;font-size:.9rem;line-height:1.5}.document-card .btn-primary{text-align:center;text-decoration:none;display:inline-block}.document-card button:disabled{color:#9ca3af;cursor:not-allowed;background:#e5e7eb}.form-section{border:1px solid var(--border);border-radius:.5rem;margin:0 0 1.25rem;padding:1rem 1rem .25rem}.form-section>legend{color:var(--ink);margin:0;padding:0 .4rem;font-size:.9rem;font-weight:600}.radio-group{flex-wrap:wrap;align-items:center;gap:.4rem 1rem;padding-top:.15rem;display:flex}.radio-option{color:var(--ink);cursor:pointer;align-items:center;gap:.35rem;margin:0;font-size:.9rem;font-weight:400;display:inline-flex}.radio-option input{width:auto;accent-color:var(--accent);margin:0}.radio-clear{padding:0;font-size:.72rem}.sub-card{border:1px dashed var(--border);border-radius:.4rem;margin-bottom:.85rem;padding:.75rem}.sub-card-title{color:var(--accent);margin-bottom:.6rem;font-size:.82rem;font-weight:600}.sheet{color:#000;text-align:justify;background:#fff;width:216mm;height:auto;min-height:279mm;padding:20mm 25mm 25mm;font-size:12pt;line-height:1.6;position:relative;box-shadow:0 2px 12px #0000001f}.sheet *{font-family:Times New Roman,Times,Georgia,serif}.letterhead{margin-bottom:1.5rem}.letterhead-logos{justify-content:space-between;align-items:center;min-height:70px;margin-bottom:.75rem;display:flex}.letterhead .logo-cell{text-align:center;width:22%}.letterhead .logo-cell img{object-fit:contain;max-width:100%;max-height:70px}.letterhead .institution{text-align:right}.institution-line{letter-spacing:.04em;font-size:13pt;font-weight:700;line-height:1.15}.meta,.addressee,.closing,.signature-block,.cc{page-break-inside:avoid;break-inside:avoid}.meta{text-align:right;margin-bottom:1.25rem}.meta-line{line-height:1.4}.meta-label{font-weight:700}.addressee{margin-bottom:1.25rem;line-height:1.4}.addressee .name,.addressee .role,.addressee .org,.addressee .presente{font-weight:700}.body-text{white-space:pre-wrap;margin-bottom:1.5rem}.closing{margin-bottom:6rem;font-weight:700}.signature-block{text-align:center;max-width:55%;margin:0 auto}.signature-line{border-top:1px solid #000;margin-bottom:.25rem;padding-top:.25rem}.signature-name{font-size:10pt;font-weight:700}.signature-role{font-size:9.5pt}.cc{margin-top:2rem;font-size:10.5pt}.cc-label,.cc-text{font-weight:700}.sheet.preview-sheet{flex-direction:column;display:flex}.preview-sheet .cc-slot{margin-top:auto}@media print{.source-wrapper{display:none}.sheet.preview-sheet{height:234mm!important;min-height:234mm!important}.sheet.preview-sheet+.sheet.preview-sheet{page-break-before:always}}.sheet.solicitud{color:#000;text-align:left;background:#fff;flex-direction:column;justify-content:space-between;width:216mm;height:auto;min-height:279mm;padding:8mm;display:flex;position:relative;box-shadow:0 2px 12px #0000001f}@media print{.sheet.solicitud{min-height:263mm!important}}.sheet.solicitud,.sheet.solicitud *{font-family:Arial,Helvetica,Liberation Sans,sans-serif;font-size:7pt;line-height:1.2}.sheet.solicitud+.sheet.solicitud{page-break-before:always}.sheet.solicitud .head{border-collapse:collapse;table-layout:fixed;width:100%;margin-bottom:4pt}.sheet.solicitud .head td{vertical-align:top;border:.75pt solid #000;padding:2pt 4pt}.sheet.solicitud .head .title{text-align:center;color:#1f3864;vertical-align:middle;background:#fbf8e4;width:40%;font-size:13pt;font-weight:700}.sheet.solicitud .head .puesto{vertical-align:middle;width:40%}.sheet.solicitud .head .puesto .lbl{color:#444;font-size:7pt;display:block}.sheet.solicitud .head .puesto .val{min-height:12pt;padding-top:1pt;font-size:10pt;font-weight:700;display:block}.sheet.solicitud .head .head-field{width:42%}.sheet.solicitud .head .foto{background:#fafafa;border:1pt dashed #888;width:18%}.sheet.solicitud .sec-title{text-align:center;background:#fbf8e4;border:.75pt solid #000;border-bottom:none;margin-top:3pt;padding:2pt 0;font-size:8pt;font-weight:700}.sheet.solicitud .sec{border-collapse:collapse;table-layout:fixed;width:100%}.sheet.solicitud .sec td,.sheet.solicitud .sec th{vertical-align:top;word-wrap:break-word;overflow-wrap:break-word;border:.75pt solid #000;padding:2pt 3pt}.sheet.solicitud .cell .lbl{color:#444;font-size:6.5pt;line-height:1.1;display:block}.sheet.solicitud .cell .lbl .hint{color:#777;font-style:italic}.sheet.solicitud .cell .val{white-space:pre-wrap;min-height:11pt;padding-top:1pt;font-weight:700;display:block}.sheet.solicitud .grid th{text-align:center;vertical-align:middle;background:#fbf8e4;font-size:6.5pt;font-weight:700}.sheet.solicitud .grid td{height:14pt;font-weight:700}.sheet.solicitud .grid .rowhead{text-align:left;white-space:normal;background:#f5f5f5;font-weight:700}.sheet.solicitud .grid .narrow{width:6%}.sheet.solicitud .lbl-inline{color:#777;font-size:6pt;font-style:italic;font-weight:400}.sheet.solicitud .center{text-align:center}.sheet.solicitud .cierre .firma{text-align:center;width:45%}.sheet.solicitud .firma-linea{color:#444;border-top:.75pt solid #000;margin-top:22pt;padding-top:2pt;font-size:6.5pt;display:block}.sheet.solicitud .confidencial{text-align:center;margin:4pt 0 2pt;font-size:6.5pt;font-weight:700}
