        html body div.xioleni-editor-container [style*="background-clip: text"],
        html body div.xioleni-editor-container [style*="-webkit-background-clip: text"],
        html body div.xioleni-editor-container [data-has-gradient="true"],
        html body div.xioleni-editor-container [data-xioleni-has-gradient="true"],
        html body div.xioleni-editor-container [data-gradient-css],
        html body div.xioleni-editor-container [data-xioleni-gradient],
        html body div.xioleni-editor-container [data-xioleni-gradient-fixed="true"] {
            color: transparent !important;
            -webkit-background-clip: text !important;
            background-clip: text !important;
            display: inline-block !important;
        }
        
        /* Forzar la preservación de color normal */
        html body div.xioleni-editor-container [class*="xioleni-text-"]:not([style*="background-clip"]):not([style*="-webkit-background-clip"]):not([data-has-gradient="true"]):not([data-xioleni-has-gradient="true"]) {
            color: var(--xioleni-color, inherit) !important;
        }
        
        /* Selector para capa de publicación */
        .xioleni-post-content [style*="background-clip: text"],
        .xioleni-post-content [style*="-webkit-background-clip: text"],
        .xioleni-post-content [data-has-gradient="true"],
        .xioleni-post-content [data-xioleni-has-gradient="true"],
        .xioleni-post-content [data-gradient-css],
        .xioleni-post-content [data-xioleni-gradient] {
            color: transparent !important;
            -webkit-background-clip: text !important;
            background-clip: text !important;
            display: inline-block !important;
        }

/* Reglas adicionales para asegurar text wrapping de etiquetas */
/* Text wrapping real como en Word - VERSIÓN MEJORADA */
body .xioleni-upload-tag,
body img[data-tag-image="true"],
body img[data-is-tag="true"],
body #xioleni-editor .xioleni-upload-tag,
body #xioleni-editor img[data-tag-image="true"],
body #xioleni-editor img[data-is-tag="true"],
body .xioleni-post-content .xioleni-upload-tag,
body .xioleni-post-content img[data-tag-image="true"],
body .xioleni-post-content img[data-is-tag="true"] {
    /* Configuración para text wrapping real como Word opción "estrecho" */
    display: inline !important;
    margin: 4px 8px 4px 4px !important;
    border: none !important;
    position: relative !important;
    z-index: 1 !important;
    border-radius: 8px !important;
    vertical-align: top !important;
    /* Text wrapping por defecto */
    float: left !important;
    clear: none !important;
    shape-outside: margin-box !important;
    -webkit-shape-outside: margin-box !important;
    -moz-shape-outside: margin-box !important;
    line-height: 0 !important;
}

/* Estilos específicos para etiquetas marcadas como inline-only */
body .xioleni-upload-tag.inline-only,
body img[data-tag-image="true"].inline-only,
body img[data-is-tag="true"].inline-only {
    float: none !important;
    margin: 2px !important;
    shape-outside: none !important;
    -webkit-shape-outside: none !important;
    -moz-shape-outside: none !important;
}

/* Estilos específicos solo para etiquetas con clases de posicionamiento */
body .xioleni-upload-tag.float-left,
body img[data-tag-image="true"].float-left,
body img[data-is-tag="true"].float-left {
    float: left !important;
    margin: 4px 8px 4px 4px !important;
    clear: none !important;
}

body .xioleni-upload-tag.float-right,
body img[data-tag-image="true"].float-right,
body img[data-is-tag="true"].float-right {
    float: right !important;
    margin: 4px 4px 4px 8px !important;
    clear: none !important;
}

body .xioleni-upload-tag.float-center,
body img[data-tag-image="true"].float-center,
body img[data-is-tag="true"].float-center {
    float: none !important;
    display: block !important;
    margin: 10px auto !important;
    clear: both !important;
    shape-outside: none !important;
    -webkit-shape-outside: none !important;
    -moz-shape-outside: none !important;
}

/* Asegurar que el editor permita el flujo de texto natural */
#xioleni-editor {
    overflow: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

/* Permitir que los párrafos contengan elementos flotantes */
#xioleni-editor p,
#xioleni-editor div,
.xioleni-post-content p,
.xioleni-post-content div {
    overflow: visible !important;
    display: block !important;
    position: relative !important;
    line-height: 1.5 !important;
    text-align: justify !important;
}
