.tiptap-content {
    .filament-tiptap-grid-builder {
        display: grid;
        gap: 1.5rem;
        margin-bottom: 1rem;
        width: 100%;

        .filament-tiptap-grid-builder__column p {
            margin: 0;
            padding: 0;
            line-height: 1.2;
        }

        &[data-cols="2"] {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        &[data-cols="3"] {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        @media (max-width: 768px) {
            grid-template-columns: 1fr !important;
            gap: 1rem;
        }
    }

    .tiptap-content > ul {
        list-style: none;
        padding-left: 0;
        margin: 0;

        li {
            position: relative;
            padding-left: 1.2rem;
            margin-bottom: 0;
            line-height: 1.4;

            &::before {
                content: "•";
                position: absolute;
                left: 0;
                top: 0;
                color: currentColor;
                font-weight: bold;
                font-size: 1.2rem;
                line-height: 1.4;
            }
        }
    }

    p {
        margin-bottom: 1rem;
    }

    /* --- NUEVOS ESTILOS PARA LOS BOTONES DE TIPTAP --- */

    a[data-as-button="true"] {
        @apply inline-block px-5 py-2.5 rounded-md font-semibold text-center transition-all duration-200 no-underline shadow-sm;

        /* --- SIZES (Leyendo el atributo hreflang) --- */

        /* Small (sm) */
        &[hreflang="sm"] {
            @apply px-3 py-1.5 text-xs;
        }

        /* Large (lg) */
        &[hreflang="lg"] {
            @apply px-20 py-5 text-lg;
        }

        /* Medium (md) - Por defecto o si no tiene hreflang */
        &[hreflang="md"],
        &:not([hreflang="sm"]):not([hreflang="lg"]) {
            @apply px-5 py-2.5 text-sm;
        }

        &[data-as-button-theme="button_secondary"] {
            @apply bg-gray-500 text-white hover:bg-gray-600;
        }

        &[data-as-button-theme="button_danger"] {
            @apply bg-red-600 text-white hover:bg-red-700;
        }

        &[data-as-button-theme="button_dark"] {
            @apply bg-gray-800 text-white hover:bg-gray-900;
        }

        /* --- Estilos Personalizados (usando tu tailwind.config.js) --- */

        &[data-as-button-theme="button_main_color"] {
            @apply bg-main-color text-white hover:opacity-80;
        }

        &[data-as-button-theme="button_color_one"] {
            @apply bg-main-one text-white hover:bg-main-two;
        }

        &[data-as-button-theme="button_color_two"] {
            @apply bg-main-two text-white hover:opacity-80;
        }

        &[data-as-button-theme="button_msb"] {
            @apply bg-main-one text-white hover:bg-main-two;
        }

        &[data-as-button-theme="button_m-yellow"] {
            @apply bg-m-yellow text-gray-800 hover:opacity-80;
        }
    }

    /* Estructura Base del Grid */
    .custom-grid-wrapper {
        display: grid;
        gap: 2rem; /* Espaciado más amplio entre columnas */
        margin-bottom: 2rem;
        width: 100%;
    }

    .custom-grid-wrapper.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .custom-grid-wrapper.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    @media (max-width: 768px) {
        .custom-grid-wrapper {
            grid-template-columns: 1fr !important;
        }
    }

    /* Contenido de la Columna */
    .custom-grid-wrapper .grid-col-content {
        position: relative;
        padding-left: 2.2rem; /* Espacio para el icono más grande */
        font-size: 1.1rem; /* Texto un poco más grande */
        line-height: 1.6;
        color: #333;
    }

    /* Configuración del Icono (Tabler Icons via Pseudo-elemento) */
    .custom-grid-wrapper[class*="icon-"]:not(.icon-none)
        .grid-col-content::before {
        position: absolute;
        left: 0;
        top: -0.1rem; /* Ajuste fino para centrar con el texto */
        /*font-family: "tabler-icons" !important;*/
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        -webkit-font-smoothing: antialiased;
        font-family: "FontAwesome";
        font-size: 1.4rem; /* Icono más grande y llamativo */
        color: #45a041; /* Tu verde principal */
    }

    /* Mapeo de Tabler Icons (Unicode) */
    .custom-grid-wrapper.icon-check .grid-col-content::before {
        content: "\ea5e";
    } /* ti-check */
    .custom-grid-wrapper.icon-trophy .grid-col-content::before {
        content: "\f06c";
    } /* ti-trophy */
    .custom-grid-wrapper.icon-double-arrow .grid-col-content::before {
        content: "\f101";
    } /* ti-chevrons-right */
    .custom-grid-wrapper.icon-arrow .grid-col-content::before {
        content: "\ea06";
    } /* ti-arrow-right */
}
