/* Pestaña Redactar */
.hoja { background: #fff; box-shadow: 0 1px 3px #0000001f; border: 1px solid #e2e8f0; padding: 72pt 70pt 72pt 72pt; min-height: 800px; position: relative; }
.hoja .logo { position: absolute; top: 37.5pt; right: 74pt; width: 64.5pt; height: 64.5pt; }
.hoja .documento { outline: none; min-height: 600px; margin-top: 35pt; }
.hoja .documento:focus { outline: none; }
.documento .ia-nuevo { background: #dbeafe; }
.zona-editor { max-width: 860px; }
@media (max-width: 900px) { .hoja { padding: 36pt 22pt; } .hoja .logo { right: 22pt; top: 14pt; width: 44pt; height: 44pt; } }
.flotante-ia { position: absolute; z-index: 40; }
.panel-ia { position: absolute; z-index: 41; width: 380px; max-width: 92vw; background: #fff; border: 1px solid #cbd5e1; border-radius: .75rem; box-shadow: 0 10px 30px #0000002e; padding: 12px; }
.chip-ia { display: inline-block; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid #cbd5e1; margin: 0 .25rem .3rem 0; cursor: pointer; background: #f8fafc; }
.chip-ia:hover { background: #e2e8f0; }
.propuesta { font-family: 'Montserrat', Arial, sans-serif; font-size: 10pt; line-height: 1.6; border: 1px dashed #93c5fd; background: #eff6ff; padding: 8px; border-radius: .5rem; max-height: 260px; overflow: auto; text-align: justify; }
.paso { display: flex; gap: .6rem; align-items: center; font-weight: 600; margin-bottom: .6rem; }
.paso .n { width: 1.6rem; height: 1.6rem; border-radius: 999px; background: #1e3a8a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.opcion { border: 1px solid #e2e8f0; border-radius: .6rem; padding: .55rem .75rem; cursor: pointer; background: #fff; }
.opcion:hover { border-color: #93c5fd; }
.opcion.sel { border-color: #1e3a8a; background: #eff6ff; }
.cargando { display: inline-block; width: 1rem; height: 1rem; border: 2px solid #cbd5e1; border-top-color: #1e3a8a; border-radius: 999px; animation: gira 0.8s linear infinite; vertical-align: -3px; }
@keyframes gira { to { transform: rotate(360deg); } }
.modal-fondo { position: fixed; inset: 0; background: #0f172a80; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: .75rem; max-width: 820px; width: 100%; max-height: 88vh; overflow: auto; padding: 18px; }
.barra-editor { position: sticky; top: 0; z-index: 30; background: #f1f5f9; padding: 8px 0; }
