:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#18312b;background:#f5f7f2;font-synthesis:none;text-rendering:optimizeLegibility;--green:#18844c;--deep:#174c38;--muted:#65766f;--line:#dfe7e0}*{box-sizing:border-box}body{margin:0;min-width:320px}.app-shell{max-width:1100px;margin:0 auto;padding:48px 28px 28px}.intro{max-width:700px;margin:0 auto 34px;text-align:center}.brand-mark{display:grid;place-items:center;margin:0 auto 14px;width:42px;height:42px;background:#dff1e4;color:var(--green);border-radius:14px;font-size:24px}.eyebrow{margin:0 0 7px;color:var(--green);font-size:11px;font-weight:800;letter-spacing:.14em}.intro h1{font-size:clamp(29px,4vw,43px);letter-spacing:-.045em;line-height:1.08;margin:0;color:#14352a}.intro-copy{font-size:15px;line-height:1.65;color:#60736b;max-width:610px;margin:14px auto 0}.layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:22px;align-items:start}.form-panel,.preview-panel{background:#fff;border:1px solid #e5ebe5;border-radius:20px;padding:25px;box-shadow:0 8px 28px #21392a0b}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-heading h2{font-size:20px;letter-spacing:-.025em;margin:0;color:#18372d}.private-note{font-size:11px;color:#52735f;background:#eff7f0;border-radius:99px;padding:8px 10px;white-space:nowrap}form{display:grid;gap:15px}.field-grid{display:grid;gap:12px}.two-col{grid-template-columns:1fr 1fr}.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#385248}input,select,textarea{width:100%;min-width:0;min-height:42px;border:1px solid #dbe4dc;border-radius:9px;padding:10px 11px;font:inherit;font-size:13px;color:#203a30;background:#fff;outline:none}textarea{resize:vertical;line-height:1.4}input::placeholder,textarea::placeholder{color:#a0ada5;font-weight:400}input:focus,select:focus,textarea:focus{border-color:#55a876;box-shadow:0 0 0 3px #18844c19}fieldset{border:0;padding:0;margin:0}legend{font-size:12px;font-weight:700;color:#385248;margin-bottom:7px}legend span,.optional{font-weight:400;color:#84928a}.contact-fields{margin-top:1px}.privacy-copy{border-left:3px solid #d9eadc;background:#f6faf6;padding:10px 12px;color:#687a70;font-size:11px;line-height:1.55;margin:0}.form-actions{display:flex;align-items:center;gap:15px;margin-top:1px}.primary-button,.secondary-button{border:0;border-radius:10px;padding:12px 17px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;transition:transform .15s,background .15s}.primary-button{background:var(--deep);color:#fff}.primary-button:hover,.secondary-button:hover:not(:disabled){background:#206b4d;transform:translateY(-1px)}.primary-button span,.secondary-button span{margin-left:8px}.text-button{border:0;background:transparent;color:#6b7b72;font:inherit;font-size:12px;cursor:pointer;padding:9px}.text-button:hover{color:#b6433e}.form-message,.preview-message{font-size:12px;color:#52735f;min-height:16px;margin:0}.form-message.error,.preview-message.error{color:#b43b36}.size-pill{font-size:11px;font-weight:700;color:#398055;background:#edf7ef;padding:7px 9px;border-radius:8px;white-space:nowrap}.preview-stage{background:#f5f8f4;border:1px solid #e9eee8;border-radius:14px;min-height:350px;display:grid;place-items:center;padding:24px}.print-card{position:relative;isolation:isolate;width:5cm;height:7cm;background:#fff;border:1px solid #dce5dc;border-radius:3mm;overflow:hidden;display:flex;flex-direction:column;align-items:center;padding:3.2mm 3mm 2.4mm;box-shadow:0 10px 24px #22392b20;color:#163a2a}.card-header{z-index:2;display:grid;justify-items:center;gap:0}.sos-word{font-size:25pt;font-weight:950;line-height:.95;letter-spacing:.04em;color:#d5222b}.card-caption{font-size:5.1pt;font-weight:800;letter-spacing:.12em;color:#587165;margin-top:1mm}.cross-area{position:relative;width:100%;flex:1;min-height:0;display:grid;place-items:center;margin:1mm 0}.red-circle{position:absolute;z-index:-2;width:41mm;height:41mm;border:1.8mm solid #d5222b;border-radius:50%;background:linear-gradient(90deg,#d5222b 0 50%,#fff 50% 100%)}.theme-black-yellow .red-circle{border-color:#151515;background:linear-gradient(90deg,#151515 0 50%,#ffd928 50% 100%)}.recommended-swatch{background:radial-gradient(circle,#fff 53%,#d5222b 55% 72%,transparent 74%),linear-gradient(90deg,#18844c 0 50%,#fff 50%)}.design-options{display:flex;gap:8px;margin:-4px 0 13px}.design-option{display:flex;align-items:center;gap:7px;border:1px solid #dfe7e0;background:#fff;border-radius:9px;padding:8px 10px;color:#52665c;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.design-option.active{border-color:#328151;color:#205b3c;background:#f2f8f3;box-shadow:0 0 0 2px #18844c12}.swatch{width:20px;height:20px;border:1px solid #dce3dc;border-radius:50%;display:inline-block}.red-white-swatch{background:linear-gradient(90deg,#d5222b 0 50%,#fff 50% 100%)}.black-yellow-swatch{background:linear-gradient(90deg,#151515 0 50%,#ffd928 50% 100%)}.cross-vertical{position:absolute;z-index:-1;width:15mm;height:100%;max-height:39mm;background:#16934f;border-radius:1.2mm}.cross-horizontal{position:absolute;z-index:-1;width:100%;height:15mm;max-width:44mm;background:#16934f;border-radius:1.2mm}.qr-frame{position:relative;width:30mm;height:30mm;display:grid;place-items:center;background:#fff;border:1.3mm solid #fff;border-radius:.5mm;box-shadow:0 0 0 .3mm #e6eee8;overflow:hidden}.qr-frame canvas,.qr-frame img{position:absolute;inset:0;width:100%!important;height:100%!important;image-rendering:pixelated}.qr-placeholder{position:absolute;inset:0;background:#fff;display:grid;place-items:center;align-content:center;gap:2mm;color:#89988e;text-align:center;font-size:6pt}.placeholder-cross{font-size:18pt;color:#a8c9ae;line-height:1}#qrcode{width:100%;height:100%;display:grid;place-items:center}.card-footer{z-index:2;display:grid;justify-items:center;gap:1mm;width:100%;text-align:center}.card-footer span{font-size:5.2pt;color:#526c5d}.preview-actions{margin-top:16px}.secondary-button{width:100%;background:#e8f3eb;color:#205b3c}.secondary-button:disabled{cursor:not-allowed;opacity:.58}.preview-message{text-align:center;margin-top:8px;color:#718078}.print-tip{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:11px 12px;border-radius:10px;background:#f7f9f6;color:#738178;font-size:11px;line-height:1.5}.print-tip span{color:#39905a;font-size:14px}.print-tip p{margin:0}.page-footer{text-align:center;margin-top:22px;color:#8b9890;font-size:11px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.app-shell{padding:30px 16px 22px}.layout{grid-template-columns:1fr}.form-panel,.preview-panel{padding:20px}.intro{margin-bottom:25px}.preview-panel{order:-1}.preview-stage{min-height:320px}.private-note{font-size:10px}}@media(max-width:450px){.two-col{grid-template-columns:1fr}.three-col{grid-template-columns:1fr}.intro-copy{font-size:14px}.section-heading{align-items:flex-start}.private-note{white-space:normal;text-align:right;max-width:130px}}
@media print{@page{size:5cm 7cm;margin:0}html,body{width:5cm!important;height:7cm!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:hidden!important}.app-shell,.intro,.layout,.form-panel,.preview-panel,.preview-stage{display:contents!important}.preview-heading,.design-options,.preview-actions,.print-tip,.page-footer{display:none!important}#print-card{position:fixed!important;left:0!important;top:0!important;width:5cm!important;height:7cm!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}.cross-vertical,.cross-horizontal,.red-circle{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}.qr-frame{box-shadow:none!important}}






.theme-recommended .red-circle{background:#fff}.theme-red-white .red-circle{background:linear-gradient(90deg,#d5222b 0 50%,#fff 50% 100%)}

/* Texto bilingue: espanhol em destaque e português em itálico menor */
.pt{display:block;font-size:.84em;font-style:italic;font-weight:500;color:#467a57;line-height:1.25;text-transform:none;letter-spacing:0}
.dual-text,.dual-label{display:grid;gap:3px}
.dual-label .es,.dual-text .es{display:block;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.035em;color:#385248;line-height:1.15}
.dual-label .pt,.dual-text .pt{display:block;font-size:10px;font-style:italic;font-weight:500;color:#4a805b;line-height:1.2}
.intro h1 .pt{font-size:15px;margin-top:8px;color:#52775f;letter-spacing:0;font-weight:500}
.intro-copy .pt{margin-top:7px}
.section-heading h2 .pt{font-size:12px;margin-top:4px}
.private-note{display:grid;gap:3px;white-space:normal}
.private-note .pt{font-size:9px}
legend .dual-label{margin-bottom:4px}
.privacy-copy .pt,.print-tip .pt{margin-top:5px}
.primary-button,.secondary-button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:8px;row-gap:1px}
.primary-button>.es,.secondary-button>.es{font-size:12px;font-weight:850}
.primary-button>.pt,.secondary-button>.pt{font-size:10px;margin:0}
.primary-button>span[aria-hidden],.secondary-button>span[aria-hidden]{margin-left:1px}
.text-button{display:grid;gap:2px}
.text-button .pt{font-size:9px}
.card-header{gap:.5mm}
.sos-word{font-size:29pt;line-height:.95}
.card-caption{display:grid;justify-items:center;gap:.4mm;margin-top:.5mm;letter-spacing:.08em}
.card-caption .es{font-size:5.1pt;font-weight:850;line-height:1.05;color:#315a43}
.card-caption .pt{font-size:4.4pt;font-weight:600;line-height:1;color:#4a805b}
.cross-area{isolation:isolate}
.cross-vertical{z-index:0;width:15mm;height:100%;max-height:39mm;background:#16884c}
.cross-horizontal{z-index:0;width:100%;height:15mm;max-width:44mm;background:#16884c}
.qr-frame{z-index:1;width:29mm;height:29mm;border:1.1mm solid #fff;box-shadow:0 0 0 .35mm #147a45;border-radius:.7mm}
.card-footer{gap:.5mm}
.card-footer .es{font-size:5pt;font-weight:850;letter-spacing:.04em;color:#315a43}
.card-footer .pt{font-size:4.3pt;color:#4a805b}
.page-footer{display:grid;gap:3px}
.page-footer .pt{font-size:10px}
@media print{
  .sos-word{font-size:29pt}
  .cross-vertical,.cross-horizontal{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
}
.button-label{display:grid;gap:2px;text-align:center}.button-label .es{font-size:12px;font-weight:850;line-height:1.15}.button-label .pt{font-size:10px;margin:0}
.form-message .pt,.preview-message .pt{margin-top:4px}
@media print{.card-header,.card-caption,.card-footer,.cross-area{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}}
@media print{
  body *{visibility:hidden!important}
  #print-card,#print-card *{visibility:visible!important}
  #print-card{z-index:99999!important}
}

.welcome-screen{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:24px;background:radial-gradient(circle at 50% 15%,#e8f5eb 0,#f5f7f2 48%,#e9f0e9 100%);opacity:1;transition:opacity .26s ease,visibility .26s ease}
.welcome-screen[hidden]{display:none}
.welcome-screen.is-leaving{opacity:0;visibility:hidden}
.welcome-card{width:min(100%,560px);flex:0 0 auto;margin:auto 0;padding:clamp(28px,6vw,52px);background:#fff;border:1px solid #e1eae1;border-radius:24px;box-shadow:0 20px 70px #173b281a;text-align:center}
.welcome-mark{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 20px;border-radius:18px;background:#e2f2e6;color:#18844c;font-size:32px}
.welcome-card h1{margin:0;color:#14352a;font-size:clamp(28px,5vw,39px);line-height:1.1;letter-spacing:-.04em}
.welcome-card h1 .es{display:block}
.welcome-card h1 .pt{margin-top:8px;font-size:.49em;font-weight:550;letter-spacing:0}
.welcome-copy{margin:20px 0 15px;color:#50645a;font-size:15px;line-height:1.7}
.welcome-copy+.welcome-copy{margin-top:0}
.welcome-copy .pt,.welcome-note .pt{margin-top:9px;font-size:12px}
.welcome-instruction{padding:12px 14px;margin:16px 0 20px;border-radius:10px;background:#eff7f0;color:#245c3b;font-size:13px;font-weight:750;line-height:1.5}
.welcome-instruction .pt{margin-top:4px;font-size:11px}
.welcome-note{padding:12px 14px;margin:0 0 20px;border-left:3px solid #18844c;border-radius:8px;background:#f3f8f3;color:#68786e;font-size:12px;line-height:1.55;text-align:left}
.welcome-card .primary-button{min-width:190px;margin:auto}
.welcome-card .welcome-continue-top{margin:14px auto 0}
.welcome-timer{margin:13px 0 0;color:#86928a;font-size:11px}
.story-signature{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:4px 2px 17px;color:#245c3b}
.story-signature>span{font-family:"Segoe Script","Brush Script MT",cursive;font-size:22px;font-style:italic;font-weight:700;letter-spacing:.02em}
.paraguay-flag{width:30px;height:20px;filter:drop-shadow(0 1px 1px #18312b26)}
.page-footer{justify-items:center;gap:9px;margin-top:28px}
.motto{max-width:760px;margin:0;color:#50645a;font-size:12px;line-height:1.6;text-align:center}
.motto .es{display:block;font-weight:700}
.motto .pt{margin-top:5px;font-size:10px}
.closing-symbols{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:1px}
.closing-star{width:20px;height:20px;color:#1e6248}
.acacia-branch{width:75px;height:23px;overflow:visible}
.branch-stem{fill:none;stroke:#527b45;stroke-width:2;stroke-linecap:round}
.branch-leaves{fill:#719851}
.form-actions{flex-wrap:wrap}
.form-actions .primary-button{max-width:100%}
.print-tip>div{min-width:0;flex:1}
.print-tip p{margin:0}
.print-tip ol{margin:7px 0 0;padding-left:17px}
.print-tip li{padding-left:2px;margin:0 0 6px;line-height:1.5}
.print-tip li:last-child{margin-bottom:0}
.print-tip li .pt{margin-top:2px}
.print-tip strong.es,.print-tip strong.pt{font-size:10px;font-weight:850;color:#47604f}
@media(prefers-reduced-motion:reduce){.welcome-screen{transition:none}}

/* Ajustes móviles: lectura desplazable, controles cómodos y ficha primero. */
@media(max-width:760px){
  .app-shell{padding:24px 16px 22px}
  .layout{grid-template-columns:1fr}
  .form-panel,.preview-panel{padding:20px}
  .intro{margin-bottom:22px}
  .preview-panel{order:0}
  .preview-stage{min-height:300px;padding:18px}
  .private-note{font-size:10px}
}
@media(max-width:450px){
  .app-shell{padding:18px 12px 20px}
  .two-col,.three-col{grid-template-columns:1fr}
  .intro-copy{font-size:14px}
  .section-heading{align-items:flex-start}
  .private-note{white-space:normal;text-align:right;max-width:130px}
  input,select,textarea{min-height:48px;padding:12px;font-size:16px}
  textarea{min-height:76px}
  .primary-button,.secondary-button{min-height:48px;padding:12px 14px}
  .text-button{min-height:44px}
  .form-actions{gap:8px}
  .form-panel,.preview-panel{padding:17px;border-radius:16px}
  .welcome-screen{padding:12px}
  .welcome-card{width:100%;padding:24px 18px;border-radius:18px}
  .welcome-copy{font-size:14px;line-height:1.6}
  .welcome-instruction{font-size:12px}
}

.demo-button{width:100%;min-height:44px;margin:0 0 14px;padding:10px 12px;border:1px dashed #398055;border-radius:10px;background:#f2f8f3;color:#205b3c;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.demo-button:hover{background:#e8f3eb}


.qr-placeholder[hidden]{display:none!important}

/* Reporte de lectura amplio para el teléfono o para guardar como PDF */
.report-view[hidden]{display:none!important}
.confirm-view[hidden]{display:none!important}
.confirm-view{min-height:100vh;padding:28px 16px;background:#f2f6f2;color:#18312b}
.confirm-sheet{max-width:760px;margin:0 auto;padding:clamp(22px,5vw,48px);border:1px solid #dce7de;border-radius:22px;background:#fff;box-shadow:0 12px 36px #19392a12}
.confirm-sheet h1{margin:5px 0;color:#14352a;font-size:clamp(25px,5vw,38px);line-height:1.12}
.confirm-copy{color:#60736b;font-size:14px;line-height:1.6}
.confirm-image{display:block;width:100%;height:auto;margin:18px 0;border:1px solid #e2e9e3;border-radius:12px;background:#fff}
.confirm-actions{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:18px}
.confirm-actions .primary-button{width:min(100%,360px)}
.report-view{page:readable-report;min-height:100vh;padding:28px 16px;background:#f2f6f2;color:#18312b}
.report-sheet{max-width:760px;margin:0 auto;padding:clamp(22px,5vw,48px);border:1px solid #dce7de;border-radius:22px;background:#fff;box-shadow:0 12px 36px #19392a12}
.report-header{text-align:center;padding-bottom:22px;border-bottom:2px solid #18844c}
.report-mark{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 12px;border-radius:16px;background:#e5f3e8;color:#18844c;font-size:30px}
.report-header h1{margin:5px 0;color:#14352a;font-size:clamp(25px,5vw,38px);line-height:1.12}
.report-header h1 .pt{margin-top:5px;font-size:.56em}
.report-subtitle{margin:8px 0 0;color:#65766f;font-size:14px}
.report-subtitle .pt{margin-top:3px;font-size:11px}
.report-person{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0;padding:18px;border-radius:14px;background:#f0f7f1}
.report-person>div:first-child{min-width:0}
.report-label{display:block;color:#60736b;font-size:10px;font-weight:850;letter-spacing:.1em}
.report-person>div:first-child>strong{display:block;margin-top:5px;color:#14352a;font-size:clamp(22px,5vw,32px);overflow-wrap:anywhere}
.report-blood{flex:0 0 auto;min-width:90px;padding:10px 14px;border:2px solid #bd2832;border-radius:12px;background:#fff;text-align:center}
.report-blood[hidden]{display:none!important}
.report-blood strong{display:block;margin-top:2px;color:#bd2832;font-size:28px}
.report-section{margin-top:19px;padding:18px 20px;border:1px solid #e1e9e2;border-radius:14px}
.report-section h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:0 0 10px;color:#17623d;font-size:15px;font-weight:900;letter-spacing:.04em}
.report-section h2 .pt{font-size:11px}
.report-row{display:grid;grid-template-columns:minmax(120px,185px) minmax(0,1fr);gap:12px;padding:11px 0;border-top:1px solid #edf1ed}
.report-row-label strong{display:block;color:#52685b;font-size:12px}
.report-row-label em{display:block;margin-top:3px;color:#63806b;font-size:10px}
.report-row-value{margin:0;color:#172e23;font-size:16px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;white-space:pre-wrap}
.report-disclaimer{margin:20px 0 0;padding:13px 15px;border-left:4px solid #d5222b;border-radius:8px;background:#fff6f5;color:#675653;font-size:12px;line-height:1.55}
.report-disclaimer .pt{margin-top:4px;font-size:10px}
.report-actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:20px}
.report-actions .primary-button{min-width:240px}
.report-preview-button{width:100%;min-height:44px;margin-top:10px;padding:10px 12px;border:1px solid #cfe1d2;border-radius:10px;background:#fff;color:#205b3c;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.report-preview-button:disabled{cursor:not-allowed;opacity:.55}
.report-image{display:block;width:100%;height:auto;border:1px solid #e2e9e3;border-radius:12px;background:#fff}
.image-report .report-header,.image-report .report-person,.image-report .report-details,.image-report .report-disclaimer{display:none}
.local-qr-note{margin:8px 0 0;padding:9px 11px;border-radius:9px;background:#fff8e9;color:#705b28;font-size:11px;line-height:1.5}
.local-qr-note .pt{margin-top:4px;font-size:10px}
@media(max-width:520px){.report-view{padding:12px 9px}.report-sheet{padding:23px 15px;border-radius:15px}.report-person{align-items:flex-start;gap:9px;padding:14px}.report-blood{min-width:76px;padding:8px}.report-row{grid-template-columns:1fr;gap:3px;padding:10px 0}.report-row-value{font-size:15px}.report-section{padding:15px}.confirm-view{padding:12px 9px}.confirm-sheet{padding:23px 15px;border-radius:15px}}
@page readable-report{size:A4 portrait;margin:14mm}
@media print{
  body.printing-report{width:auto!important;height:auto!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important}
  body.printing-report *{visibility:hidden!important}
  body.printing-report #report-view,body.printing-report #report-view *{visibility:visible!important}
  body.printing-report #report-view{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important}
  body.printing-report #report-view .report-actions{display:none!important}
  body.printing-report #print-card{visibility:hidden!important}
  body.printing-report .report-sheet{max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
}

.character-count{display:flex;justify-content:flex-end;margin-top:-2px;color:#718078;font-size:11px;font-weight:500}.character-count[data-full='true']{color:#b43b36;font-weight:700}

#emergency-form input,#emergency-form textarea{text-transform:uppercase}
#emergency-form select[name='sangre']{width:calc(7ch + 22px);min-width:calc(7ch + 22px);max-width:100%;height:34px;min-height:34px;padding:4px 8px;line-height:1.2;text-align:center}

