.correo-dialog{border:1px solid var(--border);border-radius:22px;padding:28px;width:min(580px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--text);background:#fff;margin:auto;box-shadow:0 24px 80px #003f3540}
.correo-dialog::backdrop{background:#102b2566}
.correo-dialog h2{font-family:Georgia,serif;color:var(--blue);font-size:27px;margin:0 35px 12px 0}
.correo-dialog p{line-height:1.5;margin:8px 0 16px}
.correo-dialog .correo-close{position:absolute;right:18px;top:14px;border:0;background:transparent;font-size:28px;cursor:pointer;color:var(--text2)}
.correo-dialog label{display:block;margin:16px 0 7px;font-weight:700}
.correo-dialog input,.correo-dialog textarea{width:100%;box-sizing:border-box;font:inherit;padding:12px;border:1px solid #a7bcb5;border-radius:10px;background:#fff}
.correo-dialog textarea{min-height:100px;resize:vertical}
.correo-dialog :focus-visible{outline:3px solid #0091ba;outline-offset:3px}
.correo-adjunto{padding:14px;border:1px solid #d5e5df;background:#f3f8f5;border-radius:12px;overflow-wrap:anywhere}
.correo-adjunto a{display:inline-block;margin-top:6px;color:var(--blue);font-weight:700}
.correo-adjunto a[hidden]{display:none}
.correo-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:20px}
.correo-dialog button:disabled{opacity:.6;cursor:wait}
.correo-status{padding:12px;border-radius:10px;background:#f2f6f4;line-height:1.5;margin:14px 0;overflow-wrap:anywhere}
.correo-status[data-error=true]{background:#fff0f0;color:#8f2424}
.correo-status[hidden]{display:none}
.correo-dialog details{margin-top:20px;border-top:1px solid var(--border);padding-top:14px}
.correo-dialog summary{cursor:pointer;color:var(--blue)}
.correo-historial{padding-left:20px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.correo-dialog .correo-small{font-size:13px;color:var(--text2)}
.correo-pdf-stage{position:fixed;left:-12000px;top:0;width:760px;background:#fff;pointer-events:none}
.correo-pdf-stage .pastoral-doc-page,.correo-pdf-stage .info-mat-sheet{width:760px!important;max-width:760px!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:22px 28px!important;background:#fff;color:#171717;font-family:Lora,Georgia,serif}
.correo-pdf-stage .pastoral-doc-page{font-size:15px;line-height:1.55}
.correo-pdf-stage .permiso-bautizo-sign,.correo-pdf-stage .pastoral-doc-sign{position:relative;margin-top:65px}
.correo-pdf-stage .correo-firma{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:165px;height:60px;object-fit:contain}
.correo-pdf-stage .info-mat-docs,.correo-pdf-stage button{display:none!important}
@media print{.correo-dialog,.correo-pdf-stage{display:none!important}}
.correo-confirmacion{position:fixed;bottom:18px;right:18px;z-index:10050;box-sizing:border-box;max-width:min(440px,calc(100vw - 36px));padding:16px 20px;border:1px solid #b5d4ca;border-radius:14px;background:#f0f8f4;color:#005d4e;box-shadow:0 8px 30px #0002;font:600 16px/1.5 sans-serif;overflow-wrap:anywhere;pointer-events:none}
.correo-confirmacion[hidden]{display:none}
