.mensajes-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.mensajes-titulo .menu-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9em;
}

.mensajes-titulo .menu-links a,
.entry-content .btn-msg {
    text-decoration: none;
}

.mensaje-item {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
}

.message-content,
.mensaje-contenido {
    overflow-wrap: anywhere;
}

.btn-msg {
    display: inline-block;
    margin: 4px;
    padding: 7px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.mm-warning,
.mm-ok {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 4px solid;
}

.mm-warning {
    border-color: #dba617;
    background: #fcf9e8;
}

.mm-ok {
    border-color: #00a32a;
    background: #edfaef;
}

.mi-mensaje-boton-flotante {
    position: fixed;
    z-index: 9999;
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--mi-mensaje-color, #0073aa);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.mi-mensaje-boton-flotante:hover {
    filter: brightness(0.85);
    color: #fff;
    transform: translateY(-2px);
}

.mi-mensaje-boton-flotante:focus-visible {
    outline: 3px solid #1d2327;
    outline-offset: 3px;
}

.mi-mensaje-bottom-right {
    right: 20px;
    bottom: 20px;
}

.mi-mensaje-bottom-left {
    bottom: 20px;
    left: 20px;
}

.mi-mensaje-top-right {
    top: 20px;
    right: 20px;
}

.mi-mensaje-top-left {
    top: 20px;
    left: 20px;
}

.mi-mensaje-boton-flotante .mi-mensaje-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    min-width: 20px;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2px 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 600px) {
    .mensajes-titulo {
        align-items: flex-start;
    }

    .mensajes-titulo .menu-links {
        gap: 8px;
    }

    .mi-mensaje-bottom-right {
        right: 14px;
        bottom: 14px;
    }

    .mi-mensaje-bottom-left {
        bottom: 14px;
        left: 14px;
    }

    .mi-mensaje-top-right {
        top: 14px;
        right: 14px;
    }

    .mi-mensaje-top-left {
        top: 14px;
        left: 14px;
    }
}
