/* Editor de texto enriquecido con imágenes embebidas (v7.0.8) */
.rt-wrap { position: relative; border: 1px solid #ced4da; border-radius: 6px; background: #fff; }
.rt-wrap:focus-within { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.18); }
.rt-wrap.rt-invalid { border-color: #dc3545; }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 6px; border-bottom: 1px solid #e5e7eb; background: #f8f9fa; border-radius: 6px 6px 0 0; }
.rt-toolbar button { border: 0; background: transparent; width: 28px; height: 26px; border-radius: 5px; color: #374151; font-size: 14px; line-height: 1; cursor: pointer; }
.rt-toolbar button:hover { background: #e5e7eb; }
.rt-toolbar .rt-sep { width: 1px; background: #d1d5db; margin: 3px 4px; }
.rt-toolbar .rt-hint { margin-left: auto; align-self: center; font-size: 11px; color: #6b7280; padding-right: 4px; }
.rt-editor { min-height: 120px; max-height: 70vh; overflow-y: auto; padding: 8px 10px; outline: none; font-size: 14px; line-height: 1.5; word-break: break-word; resize: vertical; }
.rt-editor:empty::before { content: attr(data-placeholder); color: #9ca3af; pointer-events: none; }
.rt-editor img, .rt-contenido img { max-width: 100%; height: auto; border-radius: 4px; vertical-align: bottom; }
.rt-editor img { cursor: pointer; margin: 2px 0; }
.rt-editor img.rt-sel { outline: 2px solid #23c9d3; outline-offset: 1px; }
.rt-editor p, .rt-contenido p { margin: 0 0 .4rem; }
.rt-editor ul, .rt-editor ol, .rt-contenido ul, .rt-contenido ol { margin: 0 0 .4rem; padding-left: 1.4rem; }
.rt-contenido { word-break: break-word; }
.rt-handle { position: absolute; width: 12px; height: 12px; background: #23c9d3; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px #0891a0; cursor: nwse-resize; display: none; z-index: 5; touch-action: none; }
.rt-imgbar { position: absolute; display: none; z-index: 6; background: #1f2937; color: #fff; border-radius: 8px; padding: 3px; gap: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.rt-imgbar button { border: 0; background: transparent; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.rt-imgbar button:hover { background: rgba(255,255,255,.18); }
.rt-imgbar .rt-del { color: #fca5a5; }
.rt-aviso { padding: 0 10px 6px; font-size: 12px; color: #b45309; }
.rt-aviso:empty { display: none; }
.rt-wrap.rt-drop { outline: 2px dashed #23c9d3; }
.rt-readonly .rt-toolbar { display: none; }
