:root{font:16px system-ui,-apple-system,Segoe UI,sans-serif;color:#183047;background:#f3f7f8}*{box-sizing:border-box}body{margin:0}header{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:18px max(24px,calc((100vw - 1260px)/2));border-bottom:1px solid #dbe5ea}header strong{font-size:23px}header span{color:#079a83}header small,p{color:#60717d}main{max-width:1260px;margin:32px auto;padding:0 20px}footer{text-align:center;padding:28px;color:#6b7b87;font-size:12px}.top{display:flex;justify-content:space-between;align-items:center}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px;align-items:start}.panel{background:#fff;border:1px solid #e2eaee;border-radius:18px;padding:24px;box-shadow:0 2px 12px #1234 0}.narrow{max-width:460px;margin:60px auto}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:block;font-weight:650;font-size:13px;margin-bottom:16px}input,select{display:block;width:100%;border:1px solid #cbd9df;border-radius:10px;margin-top:7px;padding:11px;font:inherit;background:#fff;color:#1b3445}button{background:#0b9782;color:#fff;border:0;border-radius:10px;padding:12px 15px;cursor:pointer;font-weight:700}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#eaf2f4;color:#274355}.help{padding:12px;background:#f2f8f7;border-radius:10px;color:#547078;font-size:12px;margin-bottom:18px}.notice{margin-top:12px;color:#31536b;font-size:13px}.notice.error{color:#b02f2f}.notice.ok{color:#147e50}.preview-head{display:flex;gap:8px;align-items:center;justify-content:space-between}.preview-head button{margin-left:6px}.paper{background:#fff;max-width:794px;min-height:1123px;padding:64px 70px;margin:auto;border:1px solid #d3dfe3;box-shadow:0 5px 24px #2332;line-height:1.55}.paper h2{text-align:center;color:#163c47}.paper h3{color:#163c47;border-bottom:1px solid #dce8eb}.subtitle{text-align:center;color:#5a7580}.editable{min-height:50px;white-space:pre-wrap}.print-section{break-inside:avoid}.page-break{break-before:page;border-top:2px dashed #dce8eb;margin:40px 0}.question{margin-bottom:22px}.lines{color:#9aabb0;line-height:2}.warning{color:#9c5a00}.source{font-size:11px}table{border-collapse:collapse;width:100%}td,th{border:1px solid #506974;padding:8px}.placeholder{text-align:center;margin:120px 0}[contenteditable]{outline-offset:4px}[contenteditable]:focus{outline:2px solid #0b9782}@media(max-width:950px){.workspace{grid-template-columns:1fr}.paper{padding:30px;min-height:0}.top{gap:10px}}@media print{@page{size:A4;margin:15mm}html,body,main{margin:0;padding:0;background:#fff}header,footer,.top,.workspace>.panel:first-child,.preview-head{display:none!important}.workspace,.panel{display:block;border:0;padding:0;box-shadow:none}.paper{width:100%;max-width:none;min-height:0;border:0;box-shadow:none;padding:0}.page-break{border:0;break-before:page}.print-section,.question,tr{break-inside:avoid}.source{color:#777}}:root{--grafiplot-primary:#17334b;--grafiplot-accent:#008d82;--grafiplot-surface:#f1f7f9}body{background:linear-gradient(145deg,#f0f7f9,#f9fcfc 60%)}header{background:#fff;border-bottom:3px solid var(--grafiplot-accent);box-shadow:0 3px 16px #14344412}header .brand{display:flex;align-items:center;gap:14px}header .brand>div{display:flex;flex-direction:column;gap:3px}.brand-logo{width:60px;height:60px;object-fit:contain}.brand strong{font-size:21px;letter-spacing:.2px;color:var(--grafiplot-primary)}.brand span{color:var(--grafiplot-accent)}.brand small{font-size:12px}.header-pill{background:#e7f4f2;color:#096d65;font-size:12px;border-radius:40px;padding:8px 12px;font-weight:700}.panel{border-radius:22px;box-shadow:0 12px 36px #223e4b0d}button{background:var(--grafiplot-accent)}button:hover:not(:disabled){filter:brightness(.93)}input:focus,select:focus{outline:2px solid #65c7bb;outline-offset:1px}h1,h2{letter-spacing:-.02em}@media(max-width:600px){header{padding:14px 16px}.header-pill{display:none}.brand-logo{width:45px;height:45px}.brand strong{font-size:17px}}.additional{margin:15px 0;padding:12px;border:1px solid #d8e6e9;border-radius:12px}.additional summary{cursor:pointer;font-weight:700;color:#14665d;margin-bottom:9px}.additional textarea{display:block;box-sizing:border-box;width:100%;padding:10px;border:1px solid #cbd9df;border-radius:9px;margin-top:8px;font:inherit}.document-heading{text-align:center;font-size:12px;font-weight:800;letter-spacing:.08em;color:#1b4547;border-bottom:2px solid #1b4547;padding-bottom:10px}.meta-table{font-size:12px;margin:15px 0}.meta-table th{background:#eff5f5;text-align:left;width:33%}.paper .print-section h3{background:#f1f6f6;padding:8px 10px;border-left:4px solid #197b73;font-size:15px}.paper h2{font-size:19px}.paper .question{break-inside:avoid}@media print{.paper .print-section h3,.meta-table th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}.paper .document-heading{font-size:18px;letter-spacing:0;border:0;padding:0 0 8px;color:#222}.paper h2{color:#222;font-size:17px}.paper h3{color:#222;font-size:14px;border:0;background:none}.paper .curricular,.paper .moments{width:100%;font-size:11px;table-layout:fixed;margin:14px 0 22px}.paper .curricular th,.paper .moments th{background:#eceff1;color:#111;font-size:11px}.paper .curricular td,.paper .moments td{vertical-align:top;word-break:break-word;white-space:pre-wrap}.paper .moments th:first-child{width:23%;text-align:left}.paper .moments th:last-child{width:12%}.paper .meta-table td,.paper .meta-table th{padding:4px 7px}.paper .signatures{display:flex;justify-content:space-around;text-align:center;flex-wrap:wrap;gap:18px;margin:68px 0 20px;font-size:11px;font-weight:700}@media print{.paper{font-family:Arial,sans-serif;font-size:11px}.paper .document-heading{font-size:15px}.paper .curricular,.paper .moments{font-size:10px}.paper .moments tr{break-inside:avoid}.paper .signatures{margin-top:50px}}.pdf-staging{position:fixed;left:-20000px;top:0;width:190mm;background:#fff;z-index:-1}.pdf-staging .pdf-paper{width:190mm!important;max-width:190mm!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;font-family:Arial,sans-serif;font-size:11px;color:#151515;line-height:1.35}.pdf-paper table{width:100%;border-collapse:collapse;table-layout:fixed}.pdf-paper th,.pdf-paper td{border:1px solid #333;padding:5px;overflow-wrap:anywhere;vertical-align:top}.pdf-paper .document-heading{text-align:center}.pdf-paper tr,.pdf-paper .question,.pdf-paper .signatures{break-inside:avoid;page-break-inside:avoid}.pdf-paper .page-break{height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;break-before:page;page-break-before:always}.pdf-paper h2,.pdf-paper h3{break-after:avoid;page-break-after:avoid}.pdf-paper .lines{color:#666}.image-panel{margin:24px 0;break-before:page;page-break-before:always}.image-slot{border:2px dashed #2d78bc;background:#f3f9ff;border-radius:9px;margin:16px 0;padding:15px;break-inside:avoid}.image-slot strong{color:#164f84}.image-slot p{font-size:12px;margin:7px 0}.image-slot label{margin:9px 0 4px}.image-slot input{font-size:12px}.image-search{font-size:13px;color:#145fa1;display:inline-block;margin:4px 0}.image-holder img{display:block;max-width:100%;max-height:470px;object-fit:contain;margin:10px auto;border:1px solid #d7e6f5}.image-message{font-size:12px;color:#7b5421}.pdf-paper .image-slot,.pdf-paper .image-panel{background:#fff;border:0;padding:0}.pdf-paper .image-slot:not(:has(img)){display:none}.pdf-paper .image-slot:has(img){border:1px solid #2d78bc;padding:8px}.pdf-paper .image-slot .image-search,.pdf-paper .image-slot label,.pdf-paper .image-slot .image-message,.pdf-paper .image-panel>p{display:none}.pdf-paper .image-panel:not(:has(img)){display:none}@media print{.image-slot:not(:has(img)),.image-search,.image-slot label,.image-message,.image-panel>p{display:none!important}.image-panel:not(:has(img)){display:none!important}.image-slot:has(img){border:1px solid #2d78bc;background:#fff;padding:8px}.image-panel{break-before:page}.image-slot img{max-height:160mm}}.gemini-image-panel{margin:22px 0;border:2px solid #3074b5;border-radius:12px;padding:18px;background:#f0f7ff;break-inside:avoid}.gemini-image-panel h3{color:#164f84!important;font-weight:800!important}.gemini-image-panel textarea{display:block;box-sizing:border-box;width:100%;padding:10px;font:12px Arial,sans-serif;line-height:1.5;border:1px solid #8cadcd;border-radius:8px;background:#fff;resize:vertical}.gemini-image-buttons{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.gemini-image-buttons button,.gemini-image-panel input[type=file]{font-size:12px}.gemini-image-info{font-size:12px;color:#155a42;margin:7px 0}.gemini-image-holder img{display:block;width:auto;max-width:100%;max-height:900px;object-fit:contain;margin:10px auto;border:1px solid #3074b5}.pdf-paper .gemini-image-panel:has(img){background:#fff;border:0;padding:0;break-before:page;page-break-before:always}.pdf-paper .gemini-image-panel:not(:has(img)){display:none}.pdf-paper .gemini-image-panel p,.pdf-paper .gemini-image-panel label,.pdf-paper .gemini-image-panel textarea,.pdf-paper .gemini-image-panel .gemini-image-buttons,.pdf-paper .gemini-image-panel .gemini-image-info{display:none}@media print{.gemini-image-panel:not(:has(img)){display:none!important}.gemini-image-panel:has(img){break-before:page;background:#fff;border:0;padding:0}.gemini-image-panel p,.gemini-image-panel label,.gemini-image-panel textarea,.gemini-image-panel .gemini-image-buttons,.gemini-image-info{display:none!important}.gemini-image-holder img{max-height:245mm}}@media screen and (max-width:760px){html,body,#app{width:100%;max-width:100%;overflow-x:hidden}body{font-size:16px;background:#f1f6f9}header{padding:13px 15px!important;position:relative;gap:10px;align-items:center;box-shadow:0 2px 10px #15384f12}header .brand{min-width:0;gap:10px}header .brand strong{font-size:18px;line-height:1.18}header .brand small{font-size:11px;line-height:1.3}header .brand-logo{width:40px;height:40px;flex-shrink:0}main{width:100%;margin:16px auto 0!important;padding:0 12px 20px!important}h1{font-size:25px;line-height:1.22;margin:0 0 8px}h2{font-size:19px}.top{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px}.top>div{min-width:0;flex:1 1 200px}.top .secondary{flex:0 0 auto}.workspace{display:flex!important;flex-direction:column;gap:16px}.workspace>.panel{width:100%;min-width:0}.panel{padding:18px 15px;border-radius:16px;box-shadow:0 5px 20px #0b37490c}.narrow{margin:30px auto;max-width:460px}.two{grid-template-columns:1fr;gap:0}label{font-size:14px;margin-bottom:13px}input,select,textarea{max-width:100%;font-size:16px!important;padding:12px!important;min-height:46px}input[type=file]{font-size:13px!important;min-height:0}button{min-height:46px;padding:12px 14px;border-radius:11px;font-size:14px}#generar>button,#login button{display:block;width:100%;min-height:52px;font-size:15px}.preview-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:12px}.preview-head>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preview-head button{margin:0!important;min-width:0;white-space:normal}.paper{width:100%;max-width:100%;min-height:320px;padding:18px 11px!important;box-shadow:none;border-radius:10px;overflow-wrap:anywhere;font-size:12px;line-height:1.45}.paper .document-heading,.paper h2{font-size:15px}.paper h3{font-size:13px}.paper .curricular,.paper .moments,.paper .meta-table{font-size:10px;table-layout:auto}.paper th,.paper td{padding:4px 3px;font-size:10px;word-break:break-word;overflow-wrap:anywhere}.paper .curricular th{font-size:9px}.paper .signatures{gap:12px;margin:36px 0 16px;font-size:9px}.image-slot,.gemini-image-panel{padding:13px;margin:12px 0}.gemini-image-buttons{display:grid;grid-template-columns:1fr}.gemini-image-buttons button{width:100%}.image-search{display:inline-block;padding:10px 0}footer{padding:18px 14px;font-size:11px}}@media screen and (max-width:360px){main{padding:0 8px 16px!important}.panel{padding:14px 10px}.preview-head>div{grid-template-columns:1fr}.paper{padding:12px 7px!important}.paper .curricular th,.paper th,.paper td{font-size:9px}}
